d92487b81c83f80f2748ea30d7ef432d4711cfad
[gnulib.git] / ChangeLog
1 2010-04-05  Jim Meyering  <meyering@redhat.com>
2
3         init.sh: fix typo
4         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
5
6         init.sh: make it easier for a test script to write to the tty, ...
7         when using automake's parallel-tests mode.
8         * tests/init.sh (stderr_fileno_): Define overridable variable.
9         (warn_): New function, to use it.
10         (fail_, skip_, framework_failure_): Use warn_.
11
12 2010-04-04  Bruno Haible  <bruno@clisp.org>
13
14         btowc: Avoid warning.
15         * lib/btowc.c: Include <stdlib.h>.
16         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17
18 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
19             Bruno Haible  <bruno@clisp.org>
20
21         wchar: Port to NetBSD 1.5.
22         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23         * lib/wctype.in.h (WEOF): Likewise.
24
25 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26             Bruno Haible  <bruno@clisp.org>
27
28         Port extended stdio to NetBSD 1.5.
29         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31         older.
32
33 2010-04-04  Bruno Haible  <bruno@clisp.org>
34
35         string: Remove unused substitution.
36         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37         HAVE_DECL_STRERROR.
38         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
39
40 2010-04-04  Bruno Haible  <bruno@clisp.org>
41
42         strtod: Avoid a possible C++ test error.
43         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
44         set REPLACE_STRTOD.
45
46 2010-04-04  Bruno Haible  <bruno@clisp.org>
47
48         strerror: Update documentation.
49         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
50
51 2010-04-04  Bruno Haible  <bruno@clisp.org>
52
53         stdio: Fix some C++ test errors on Solaris 8 with GCC.
54         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
55         _GL_CXXALIAS_SYS_CAST.
56
57 2010-04-04  Bruno Haible  <bruno@clisp.org>
58
59         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
60         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
61         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
62         REPLACE_FREXPL to 1.
63         * doc/posix-functions/frexpl.texi: Update documentation.
64
65 2010-04-04  Bruno Haible  <bruno@clisp.org>
66
67         math: Fix some C++ test errors on Solaris 8 and Cygwin.
68         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
69
70 2010-04-04  Bruno Haible  <bruno@clisp.org>
71
72         Implement nanosleep for native Windows.
73         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
74
75 2010-04-04  Bruno Haible  <bruno@clisp.org>
76
77         math: Fix some C++ test errors on Solaris 8.
78         * lib/math.in.h (truncf, trunc): Use simpler idiom.
79
80 2010-04-04  Bruno Haible  <bruno@clisp.org>
81
82         math: Fix some C++ test errors on Cygwin.
83         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
84         truncl): Provide declaration if the system does not have it.
85         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
86         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
87         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
88         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
89         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
90         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
91         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
92         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
93         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
94         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
95         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
96         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
97         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
98         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
99         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
100         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
102         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
103         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
104         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
105         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
106         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
107
108 2010-04-04  Bruno Haible  <bruno@clisp.org>
109
110         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
111         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
112         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
113         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
114         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
115         * m4/isinf.m4 (gl_ISINF): Likewise.
116         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
117
118 2010-04-04  Bruno Haible  <bruno@clisp.org>
119
120         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
121         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
122
123 2010-04-04  Bruno Haible  <bruno@clisp.org>
124
125         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
126         * modules/tmpfile (configure.ac): Update.
127
128         tmpfile: Fix C++ test error on mingw.
129         * lib/stdio.in.h (tmpfile): New declaration.
130         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
131         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
132         * modules/tmpfile (Depends-on): Add stdio.
133         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
134         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
135         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
136         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
137         REPLACE_TMPFILE.
138         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
139
140 2010-04-04  Bruno Haible  <bruno@clisp.org>
141
142         ioctl: Fix C++ test error on mingw.
143         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
144         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
145         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
146
147 2010-04-03  Bruno Haible  <bruno@clisp.org>
148
149         wcwidth: Fix C++ test error on mingw.
150         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
152         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
153
154 2010-04-03  Bruno Haible  <bruno@clisp.org>
155
156         nanosleep: Fix C++ test error on mingw.
157         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
158         * lib/time.in.h (nanosleep): Use modern idiom.
159         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
160         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
161         REPLACE_NANOSLEEP to 1.
162         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
163         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
164
165 2010-04-03  Bruno Haible  <bruno@clisp.org>
166
167         strptime: Fix C++ test error on mingw.
168         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
169         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
170         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
171         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
172         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
173         not REPLACE_STRPTIME.
174         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
175         REPLACE_STRPTIME.
176
177 2010-04-03  Bruno Haible  <bruno@clisp.org>
178
179         timegm: Fix C++ test error on mingw.
180         * lib/time.in.h (timegm): Use modern idiom.
181         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
182         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
183         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
184         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
185
186 2010-04-03  Bruno Haible  <bruno@clisp.org>
187
188         timegm: Assume declaration if function exists.
189         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
190         if it exists. Don't clobber ac_cv_func_timegm.
191
192 2010-04-03  Bruno Haible  <bruno@clisp.org>
193
194         time_r: Fix C++ test error on mingw.
195         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
196         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
197         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
198         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
199         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
200
201 2010-04-03  Bruno Haible  <bruno@clisp.org>
202
203         time_r: Minor updates.
204         * modules/time_r (Description): Mention the provided functions.
205         * lib/time_r.c: Don't include <string.h>.
206         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
207         * doc/posix-functions/localtime_r.texi: Likewise.
208
209 2010-04-03  Bruno Haible  <bruno@clisp.org>
210
211         time: Fix regression introduced on 2010-03-08.
212         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
213         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
214
215 2010-04-03  Jim Meyering  <meyering@redhat.com>
216
217         maint.mk: don't silently disable project-specific syntax-check rules
218         * top/maint.mk (_prohibit_regexp): Define, to help people realize
219         that they need to convert their project-specific syntax-check rules
220         to use the new _sc_search_regexp.
221
222 2010-04-03  Bruno Haible  <bruno@clisp.org>
223
224         fchdir: Fix regression introduced on 2010-03-08.
225         * lib/unistd.in.h (fchdir): Fix declaration.
226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
228         REPLACE_FCHDIR.
229         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
230         REPLACE_FCHDIR.
231
232 2010-04-03  Bruno Haible  <bruno@clisp.org>
233
234         getpagesize: Fix C++ test error on mingw.
235         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
236         system does not declare the function.
237         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
238         declared.
239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
240         HAVE_DECL_GETPAGESIZE.
241         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
242
243 2010-04-03  Bruno Haible  <bruno@clisp.org>
244
245         stdio: Make C++ tests work on mingw.
246         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
247         does not declare the function.
248
249 2010-04-03  Bruno Haible  <bruno@clisp.org>
250
251         ftello: Fix C++ test error on mingw.
252         * lib/stdio.in.h (ftello): Use modern idiom.
253         * lib/ftello.c (ftello): Renamed from rpl_ftello.
254         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
255         is missing and that it needs to be replaced.
256         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
258         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
259
260 2010-04-03  Bruno Haible  <bruno@clisp.org>
261
262         fseeko: Fix C++ test error on mingw.
263         * lib/stdio.in.h (fseeko): Use modern idiom.
264         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
265         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
266         is missing and that it needs to be replaced.
267         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
269         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
270
271 2010-04-03  Bruno Haible  <bruno@clisp.org>
272
273         mkstemp: Fix C++ test error on mingw.
274         * lib/stdlib.in.h (mkstemp): Use modern idiom.
275         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
276         function is missing and that it needs to be replaced.
277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
278         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
279
280 2010-04-03  Bruno Haible  <bruno@clisp.org>
281
282         stpncpy: Fix C++ test error on mingw.
283         * lib/string.in.h (stpncpy): Use modern idiom.
284         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
285         function is missing and that it needs to be replaced.
286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
287         REPLACE_STPNCPY.
288         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
289
290 2010-04-03  Bruno Haible  <bruno@clisp.org>
291
292         sys_stat: Fix C++ test error on mingw.
293         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
294         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
295
296 2010-04-03  Bruno Haible  <bruno@clisp.org>
297
298         pty: Update doc.
299         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
300
301 2010-04-03  Bruno Haible  <bruno@clisp.org>
302
303         unistd: Fix C++ test error on mingw.
304         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
305
306 2010-04-03  Bruno Haible  <bruno@clisp.org>
307
308         Update doc regarding mingw.
309         * doc/glibc-functions/openpty.texi: Update regarding mingw.
310         * doc/glibc-functions/login_tty.texi: Likewise.
311         * doc/glibc-functions/forkpty.texi: Likewise.
312
313 2010-04-03  Bruno Haible  <bruno@clisp.org>
314
315         stdlib: Avoid compilation failure of c-strtold on mingw.
316         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
317
318 2010-04-03  Bruno Haible  <bruno@clisp.org>
319
320         locale: Make C++ tests work on Cygwin and mingw.
321         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
322         cannot provide the function.
323         Reported by Simon Josefsson.
324
325 2010-04-03  Bruno Haible  <bruno@clisp.org>
326
327         localename: Port to MacOS X 10.6.
328         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
329         memory layout of the locales in MacOS X 10.6 as well.
330         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
331
332 2010-04-02  Bruno Haible  <bruno@clisp.org>
333
334         gnulib-tool: Ensure that long-running tests are executed last.
335         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
336         running tests after the one for the other tests.
337
338 2010-04-02  Bruno Haible  <bruno@clisp.org>
339
340         gnulib-tool: Ensure the tests in the main directory are executed first.
341         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
342         start with the current directory.
343
344 2010-04-02  Bruno Haible  <bruno@clisp.org>
345
346         Tests for module 'havelib', moved here from GNU gettext.
347         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
348         modifications.
349         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
350         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
351         with modifications.
352         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
353         modifications.
354         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
355         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
356         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
357         with modifications.
358         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
359         with modifications.
360         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
361         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
362         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
363         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
364         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
365         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
366         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
367         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
368         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
369         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
370         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
371         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
372         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
373         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
374         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
375         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
376         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
377         with modifications.
378         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
379         with modifications.
380         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
381         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
382         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
383         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
384         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
385         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
386         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
387         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
388         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
389         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
390         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
391         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
392         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
393         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
394         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
395         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
396         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
397         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
398         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
399         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
400         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
401         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
402         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
403         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
404         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
405         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
406         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
407         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
408         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
409         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
410         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
411         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
412         * tests/havelib/rpathx/rpathx.c: New file, from
413         gettext/autoconf-lib-link.
414         * tests/havelib/rpathx/Makefile.am: New file, from
415         gettext/autoconf-lib-link.
416         * tests/havelib/rpathx/configure.ac: New file, from
417         gettext/autoconf-lib-link with modifications.
418         * tests/havelib/rpathy/rpathy.c: New file, from
419         gettext/autoconf-lib-link.
420         * tests/havelib/rpathy/Makefile.am: New file, from
421         gettext/autoconf-lib-link.
422         * tests/havelib/rpathy/configure.ac: New file, from
423         gettext/autoconf-lib-link with modifications.
424         * tests/havelib/rpathz/rpathz.c: New file, from
425         gettext/autoconf-lib-link.
426         * tests/havelib/rpathz/Makefile.am: New file, from
427         gettext/autoconf-lib-link.
428         * tests/havelib/rpathz/configure.ac: New file, from
429         gettext/autoconf-lib-link with modifications.
430         * tests/havelib/rpathlx/usex.c: New file, from
431         gettext/autoconf-lib-link.
432         * tests/havelib/rpathlx/Makefile.am: New file, from
433         gettext/autoconf-lib-link.
434         * tests/havelib/rpathlx/configure.ac: New file, from
435         gettext/autoconf-lib-link with modifications.
436         * tests/havelib/rpathly/usey.c: New file, from
437         gettext/autoconf-lib-link.
438         * tests/havelib/rpathly/Makefile.am: New file, from
439         gettext/autoconf-lib-link.
440         * tests/havelib/rpathly/configure.ac: New file, from
441         gettext/autoconf-lib-link with modifications.
442         * tests/havelib/rpathlz/usez.c: New file, from
443         gettext/autoconf-lib-link.
444         * tests/havelib/rpathlz/Makefile.am: New file, from
445         gettext/autoconf-lib-link.
446         * tests/havelib/rpathlz/configure.ac: New file, from
447         gettext/autoconf-lib-link with modifications.
448         * tests/havelib/rpathlyx/usey.c: New file, from
449         gettext/autoconf-lib-link.
450         * tests/havelib/rpathlyx/Makefile.am: New file, from
451         gettext/autoconf-lib-link.
452         * tests/havelib/rpathlyx/configure.ac: New file, from
453         gettext/autoconf-lib-link with modifications.
454         * tests/havelib/rpathlzyx/usez.c: New file, from
455         gettext/autoconf-lib-link.
456         * tests/havelib/rpathlzyx/Makefile.am: New file, from
457         gettext/autoconf-lib-link.
458         * tests/havelib/rpathlzyx/configure.ac: New file, from
459         gettext/autoconf-lib-link with modifications.
460         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
461         with modifications.
462
463 2010-04-02  Bruno Haible  <bruno@clisp.org>
464
465         gnulib-tool: Create distributed built sources also for the tests.
466         * gnulib-tool (func_create_testdir): Also generate distributed built
467         sources in the tests directory.
468
469 2010-04-02  Bruno Haible  <bruno@clisp.org>
470
471         gnulib-tool: Obey user's environment variables.
472         * gnulib-tool (func_create_testdir): When creating built sources,
473         respect the environment variables for autoconf, automake, etc. given by
474         the user.
475
476 2010-04-02  Bruno Haible  <bruno@clisp.org>
477
478         gnulib-tool: Provide the value of --m4-base to modules.
479         * gnulib-tool (func_import, func_create_testdir): Emit a definition
480         of gl_m4_base.
481
482 2010-04-02  Eric Blake  <eblake@redhat.com>
483
484         maint.mk: fix some fallout
485         * NEWS: Document the incompatible change, and its effect on cfg.mk.
486         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
487
488 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
489
490         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
491         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
492         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
493         (sc_cast_of_x_alloc_return_value): Likewise.
494         (sc_cast_of_alloca_return_value): Likewise.
495         (sc_space_tab): Likewise.
496         (sc_prohibit_atoi_atof): Likewise.
497         (sc_prohibit_magic_number_exit): Likewise.
498         (sc_error_exit_success): Likewise.
499         (sc_file_system): Likewise.
500         (sc_prohibit_have_config_h): Likewise.
501         (sc_require_config_h): Likewise.
502         (sc_prohibit_HAVE_MBRTOWC): Likewise.
503         (sc_obsolete_symbols): Likewise.
504         (sc_changelog): Likewise.
505         (sc_program_name): Likewise.
506         (sc_the_the): Likewise.
507         (sc_trailing_blank): Likewise.
508         (sc_two_space_separator_in_usage): Likewise.
509         (sc_useless_cpp_parens): Likewise.
510         (sc_GPL_version): Likewise.
511         (sc_GFDL_version): Likewise.
512         (sc_texinfo_acronym): Likewise.
513         (sc_prohibit_cvs_keyword): Likewise.
514         (sc_prohibit_stat_st_blocks): Likewise.
515         (sc_prohibit_S_IS_definition): Likewise.
516         (sc_redundant_const): Likewise.
517         (sc_makefile_TAB_only_indentation): Likewise.
518         (sc_m4_quote_check): Likewise.
519         (sc_makefile_path_separator_check): Likewise.
520         (sc_copyright_check): Likewise.
521         (sc_Wundef_boolean): Likewise.
522         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
523
524         maint.mk: match 0 or more whitespace-before-function-call '('
525         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
526         that have zero or two-and-more spaces between the function name
527         and the open parenthesis.
528         (sc_error_message_warn_fatal): Likewise.
529         (sc_error_message_uppercase): Likewise.
530         (sc_error_message_period): Likewise.
531
532 2010-03-31  Eric Blake  <eblake@redhat.com>
533
534         maint.mk: check for [ as well as test
535         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
536         Based on a libvirt report by Matthias Bolte.
537
538         gnumakefile: don't squelch _version output
539         * top/GNUmakefile (_version): Create one-shot dependency rather
540         than using $(shell) when version must be regenerated.
541         (_autoreconf): Run verbosely, by default.
542
543         sys_time: avoid compiler warnings
544         * lib/sys_time.in.h (includes): Ensure gcc pragma is
545         unconditional, fixing regression from 2010-03-29.
546         Reported by Simon Josefsson.
547
548 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
549
550         maint.mk: s/_header_without_use/_sc_header_without_use/
551         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
552         (sc_prohibit_assert_without_use): Use the new name.
553         (sc_prohibit_close_stream_without_use): Likewise.
554         (sc_prohibit_getopt_without_use): Likewise.
555         (sc_prohibit_quotearg_without_use): Likewise.
556         (sc_prohibit_quote_without_use): Likewise.
557         (sc_prohibit_long_options_without_use): Likewise.
558         (sc_prohibit_inttostr_without_use): Likewise.
559         (sc_prohibit_ignore_value_without_use): Likewise.
560         (sc_prohibit_error_without_use): Likewise.
561         (sc_prohibit_xalloc_without_use): Likewise.
562         (sc_prohibit_hash_without_use): Likewise.
563         (sc_prohibit_hash_pjw_without_use): Likewise.
564         (sc_prohibit_safe_read_without_use): Likewise.
565         (sc_prohibit_argmatch_without_use): Likewise.
566         (sc_prohibit_canonicalize_without_use): Likewise.
567         (sc_prohibit_root_dev_ino_without_use): Likewise.
568         (sc_prohibit_openat_without_use): Likewise.
569         (sc_prohibit_c_ctype_without_use): Likewise.
570         (sc_prohibit_signal_without_use): Likewise.
571         (sc_prohibit_intprops_without_use): Likewise.
572
573 2010-03-30  Eric Blake  <eblake@redhat.com>
574
575         maint: improve module indicators
576         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
577         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
578         columns, and avoid extra macro expansion.
579
580         fdopendir: work around FreeBSD bug
581         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
582         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
583         * modules/dirent (Makefile.am): Substitute it.
584         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
585         declaration.
586         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
587         fix.
588         Reported by Christian Weisgerber <naddy@mips.inka.de>.
589
590 2010-03-29  Bruno Haible  <bruno@clisp.org>
591
592         Emit #pragma system_header after the inclusion guard, not before.
593         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
594         guard that spans the entire file, not before. This enables an
595         optimization in GCC's preprocessor.
596         * lib/ctype.in.h: Likewise.
597         * lib/dirent.in.h: Likewise.
598         * lib/errno.in.h: Likewise.
599         * lib/float.in.h: Likewise.
600         * lib/getopt.in.h: Likewise.
601         * lib/iconv.in.h: Likewise.
602         * lib/langinfo.in.h: Likewise.
603         * lib/locale.in.h: Likewise.
604         * lib/math.in.h: Likewise.
605         * lib/netdb.in.h: Likewise.
606         * lib/netinet_in.in.h: Likewise.
607         * lib/pty.in.h: Likewise.
608         * lib/sched.in.h: Likewise.
609         * lib/se-selinux.in.h: Likewise.
610         * lib/search.in.h: Likewise.
611         * lib/spawn.in.h: Likewise.
612         * lib/stdarg.in.h: Likewise.
613         * lib/stdint.in.h: Likewise.
614         * lib/string.in.h: Likewise.
615         * lib/strings.in.h: Likewise.
616         * lib/sys_file.in.h: Likewise.
617         * lib/sys_ioctl.in.h: Likewise.
618         * lib/sys_time.in.h: Likewise.
619         * lib/sys_times.in.h: Likewise.
620         * lib/sys_utsname.in.h: Likewise.
621         * lib/sys_wait.in.h: Likewise.
622         * lib/sysexits.in.h: Likewise.
623         * lib/wctype.in.h: Likewise.
624
625 2010-03-28  James Youngman  <jay@gnu.org>
626
627         save-cwd: don't leak a file descriptor when the caller execs.
628         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
629         saved file descriptor.
630         * modules/save-cwd (Depends-on): Depend on cloexec.
631
632 2010-03-29  Bruno Haible  <bruno@clisp.org>
633
634         Remove vestiges of fts-lgpl module.
635         * lib/fts_.h: Assume GNULIB_FTS is 1.
636         * lib/fts.c: Likewise.
637         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
638
639 2010-03-28  Bruno Haible  <bruno@clisp.org>
640
641         Fix definition of tests witness macro.
642         * gnulib-tool (func_import): Fix definition of witness macro.
643
644 2010-03-28  Bruno Haible  <bruno@clisp.org>
645
646         Fix ioctl's protoype on glibc systems.
647         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
648         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
649         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
650         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
651         signature. If not, arrange to replace the ioctl function.
652         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
653         REPLACE_IOCTL.
654         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
655         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
656         Reported by Ludovic Courtès <ludo@gnu.org>.
657
658 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
659
660         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
661         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
662         made it so grep -r --include=GLOB* ... did not work.
663
664 2010-03-26  Jim Meyering  <meyering@redhat.com>
665             Eric Blake  <eblake@redhat.com>
666
667         maint.mk: prohibit use of test's -o and -a operators
668         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
669
670 2010-03-28  Bruno Haible  <bruno@clisp.org>
671
672         Remove unused GNULIB_XYZ macro definitions.
673         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
674         invocation.
675
676 2010-03-28  Bruno Haible  <bruno@clisp.org>
677
678         Mark privileged tests modules.
679         * modules/idpriv-drop-tests (Status): New section.
680         * modules/idpriv-droptemp-tests (Status): New section.
681
682 2010-03-28  Bruno Haible  <bruno@clisp.org>
683
684         Split C++ tests into separate tests modules.
685         * modules/dirent-c++-tests: New file, extracted from
686         modules/dirent-tests.
687         * modules/dirent-tests: Depend on it.
688         * modules/fcntl-h-c++-tests: New file, extracted from
689         modules/fcntl-h-tests.
690         * modules/fcntl-h-tests: Depend on it.
691         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
692         * modules/glob-tests: Depend on it.
693         * modules/iconv-h-c++-tests: New file, extracted from
694         modules/iconv-h-tests.
695         * modules/iconv-h-tests: Depend on it.
696         * modules/langinfo-c++-tests: New file, extracted from
697         modules/langinfo-tests.
698         * modules/langinfo-tests: Depend on it.
699         * modules/locale-c++-tests: New file, extracted from
700         modules/locale-tests.
701         * modules/locale-tests: Depend on it.
702         * modules/math-c++-tests: New file, extracted from modules/math-tests.
703         * modules/math-tests: Depend on it.
704         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
705         * modules/pty-tests: Depend on it.
706         * modules/search-c++-tests: New file, extracted from
707         modules/search-tests.
708         * modules/search-tests: Depend on it.
709         * modules/signal-c++-tests: New file, extracted from
710         modules/signal-tests.
711         * modules/signal-tests: Depend on it.
712         * modules/spawn-c++-tests: New file, extracted from
713         modules/spawn-tests.
714         * modules/spawn-tests: Depend on it.
715         * modules/stdio-c++-tests: New file, extracted from
716         modules/stdio-tests.
717         * modules/stdio-tests: Depend on it.
718         * modules/stdlib-c++-tests: New file, extracted from
719         modules/stdlib-tests.
720         * modules/stdlib-tests: Depend on it.
721         * modules/string-c++-tests: New file, extracted from
722         modules/string-tests.
723         * modules/string-tests: Depend on it.
724         * modules/sys_ioctl-c++-tests: New file, extracted from
725         modules/sys_ioctl-tests.
726         * modules/sys_ioctl-tests: Depend on it.
727         * modules/sys_select-c++-tests: New file, extracted from
728         modules/sys_select-tests.
729         * modules/sys_select-tests: Depend on it.
730         * modules/sys_socket-c++-tests: New file, extracted from
731         modules/sys_socket-tests.
732         * modules/sys_socket-tests: Depend on it.
733         * modules/sys_stat-c++-tests: New file, extracted from
734         modules/sys_stat-tests.
735         * modules/sys_stat-tests: Depend on it.
736         * modules/sys_time-c++-tests: New file, extracted from
737         modules/sys_time-tests.
738         * modules/sys_time-tests: Depend on it.
739         * modules/time-c++-tests: New file, extracted from modules/time-tests.
740         * modules/time-tests: Depend on it.
741         * modules/unistd-c++-tests: New file, extracted from
742         modules/unistd-tests.
743         * modules/unistd-tests: Depend on it.
744         * modules/wchar-c++-tests: New file, extracted from
745         modules/wchar-tests.
746         * modules/wchar-tests: Depend on it.
747         * modules/wctype-c++-tests: New file, extracted from
748         modules/wctype-tests.
749         * modules/wctype-tests: Depend on it.
750         Reported by Simon Josefsson.
751
752 2010-03-28  Bruno Haible  <bruno@clisp.org>
753
754         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
755         * gnulib-tool (func_exists_module): New function, extracted from
756         func_verify_module.
757         (func_verify_module): Use it.
758         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
759         'foo' only if 'foo' exists.
760         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
761         module.
762
763 2010-03-28  Bruno Haible  <bruno@clisp.org>
764
765         gnulib-tool: Add support for special categories of tests.
766         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
767         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
768         (func_usage): Document them.
769         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
770         inc_unportable_tests, inc_all_tests): New variables.
771         (func_acceptable): Consider these variables.
772         (func_modules_transitive_closure): Make it work when the 'Status' field
773         consists of multiple words.
774         (func_import): Store and restore the values of inc_cxx_tests,
775         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
776         inc_all_tests in gnulib-comp.m4.
777         (func_create_testdir): Set inc_all_tests to true.
778         * doc/gnulib.texi (Extra tests modules): New section.
779         Suggested by Jim Meyering.
780
781 2010-03-28  Bruno Haible  <bruno@clisp.org>
782
783         ansi-c++-opt: Allow turning off the C++ build by default.
784         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
785         gl_CXX_CHOICE_DEFAULT_NO is defined.
786         Requested by Eric Blake.
787
788 2010-03-28  Bruno Haible  <bruno@clisp.org>
789
790         unistd: Avoid #define replacements in C++ mode.
791         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
792         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
793         setsockopt, shutdown, select): In C++, attach a warning to the function
794         if possible, rather than #defining the symbol to a dysfunctional alias.
795         Reported by John W. Eaton <jwe@gnu.org>.
796
797 2010-03-28  Bruno Haible  <bruno@clisp.org>
798
799         Fix link errors on mingw.
800         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
801         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
802         $(LIBSOCKET).
803         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
804         $(LIBSOCKET).
805
806 2010-03-28  Bruno Haible  <bruno@clisp.org>
807             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
808
809         lib-ignore: Determine different options for different compilers.
810         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
811         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
812         Add comments.
813         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
814         * NEWS: Mention the change.
815
816 2010-03-27  Bruno Haible  <bruno@clisp.org>
817
818         Remove unused GNULIB_XYZ macro definitions.
819         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
820         * modules/fseek (configure.ac): Likewise.
821         * modules/ioctl (configure.ac): Likewise.
822         * modules/open (configure.ac): Likewise.
823         * modules/stdlib-safer (configure.ac): Likewise.
824
825 2010-03-27  Bruno Haible  <bruno@clisp.org>
826
827         Add a remark about certain modules.
828         * modules/malloc (Comment): New section.
829         * modules/realloc (Comment): Likewise.
830         * modules/sigpipe (Comment): Likewise.
831
832 2010-03-27  Bruno Haible  <bruno@clisp.org>
833
834         Resolve conflict between the two kinds of module indicators.
835         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
836         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
837         * modules/canonicalize (configure.ac): Invoke
838         gl_MODULE_INDICATOR_FOR_TESTS.
839         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
840         GNULIB_XYZ.
841         * tests/test-dirent-c++.cc: Likewise.
842         * tests/test-dirent-safer.c: Likewise.
843         * tests/test-dup2.c: Likewise.
844         * tests/test-fchdir.c: Likewise.
845         * tests/test-fcntl-h-c++.cc: Likewise.
846         * tests/test-getopt.c: Likewise.
847         * tests/test-getopt.h: Likewise.
848         * tests/test-langinfo-c++.cc: Likewise.
849         * tests/test-locale-c++.cc: Likewise.
850         * tests/test-math-c++.cc: Likewise.
851         * tests/test-pty-c++.cc: Likewise.
852         * tests/test-search-c++.cc: Likewise.
853         * tests/test-signal-c++.cc: Likewise.
854         * tests/test-spawn-c++.cc: Likewise.
855         * tests/test-stdio-c++.cc: Likewise.
856         * tests/test-stdlib-c++.cc: Likewise.
857         * tests/test-string-c++.cc: Likewise.
858         * tests/test-sys_ioctl-c++.cc: Likewise.
859         * tests/test-sys_select-c++.cc: Likewise.
860         * tests/test-sys_socket-c++.cc: Likewise.
861         * tests/test-sys_stat-c++.cc: Likewise.
862         * tests/test-sys_time-c++.cc: Likewise.
863         * tests/test-time-c++.cc: Likewise.
864         * tests/test-unistd-c++.cc: Likewise.
865         * tests/test-wchar-c++.cc: Likewise.
866         * tests/uninorm/test-u8-nfc.c: Likewise.
867         * tests/uninorm/test-u8-nfd.c: Likewise.
868         * tests/uninorm/test-u8-nfkc.c: Likewise.
869         * tests/uninorm/test-u8-nfkd.c: Likewise.
870         * tests/uninorm/test-u16-nfc.c: Likewise.
871         * tests/uninorm/test-u16-nfd.c: Likewise.
872         * tests/uninorm/test-u16-nfkc.c: Likewise.
873         * tests/uninorm/test-u16-nfkd.c: Likewise.
874         * tests/uninorm/test-u32-nfc.c: Likewise.
875         * tests/uninorm/test-u32-nfc-big.c: Likewise.
876         * tests/uninorm/test-u32-nfd.c: Likewise.
877         * tests/uninorm/test-u32-nfd-big.c: Likewise.
878         * tests/uninorm/test-u32-nfkc.c: Likewise.
879         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
880         * tests/uninorm/test-u32-nfkd.c: Likewise.
881         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
882         * tests/uninorm/test-u32-normalize-big.c: Likewise.
883
884 2010-03-27  Bruno Haible  <bruno@clisp.org>
885
886         Distinguish two kinds of module indicators.
887         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
888         gl_MODULE_INDICATOR.
889         (gl_MODULE_INDICATOR): New macro.
890         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
891         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
892         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
893         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
894         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
895         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
896         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
897         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
898         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
899         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
900         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
901         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
902         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
903         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
904         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
905         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
906         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
907         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
908         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
909         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
910         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
911         * modules/cloexec (configure.ac): Likewise.
912         * modules/getopt-gnu (configure.ac): Likewise.
913         * modules/uninorm/u8-normalize (configure.ac): Likewise.
914         * modules/uninorm/u16-normalize (configure.ac): Likewise.
915         * modules/uninorm/u32-normalize (configure.ac): Likewise.
916         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
917
918 2010-03-27  Bruno Haible  <bruno@clisp.org>
919
920         New module description field 'Comment'.
921         * gnulib-tool: New option --extract-comment.
922         (func_usage): Document it.
923         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
924         (func_get_comment): New function.
925         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
926
927 2010-03-27  Bruno Haible  <bruno@clisp.org>
928
929         Addendum to 2010-02-07 commit.
930         * gnulib-tool (func_usage): Document --extract-applicability option.
931
932 2010-03-27  Bruno Haible  <bruno@clisp.org>
933
934         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
935         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
936         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
937         rather than link errors.
938
939 2010-03-27  Bruno Haible  <bruno@clisp.org>
940
941         Avoid side effects from tests-related modules on the compilation of lib.
942         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
943         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
944         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
945         parameter. Emit into AM_CPPFLAGS a definition of the designated C
946         macro.
947         (func_import): Define a witness macro. Assign it a value that depends
948         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
949         tests-related modules.
950         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
951         Reported by Jim Meyering.
952
953 2010-03-27  Bruno Haible  <bruno@clisp.org>
954
955         Factorize common .m4 code.
956         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
957         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
958         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
959         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
960         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
961         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
962         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
963         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
964         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
965         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
966         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
967         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
968         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
969         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
970         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
971         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
972         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
973         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
975         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
976         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
977         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
978         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
979         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
980         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
981         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
982         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
983         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
984         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
985         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
986         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
987         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
988
989 2010-03-27  Bruno Haible  <bruno@clisp.org>
990
991         Fix a compilation error on Cygwin with g++ >= 4.3.
992         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
993         if it is undefined or if we alias it to chmod.
994         (lstat): Don't warn about the use of this function if it is undefined
995         or if we alias it to stat.
996         Reported by Simon Josefsson.
997
998 2010-03-27  Bruno Haible  <bruno@clisp.org>
999
1000         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
1001         * modules/getlogin (configure.ac): Update.
1002
1003         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
1004         * modules/getlogin_r (configure.ac): Update.
1005
1006         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
1007         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
1008         * modules/inet_ntop (configure.ac): Update.
1009
1010         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1011         * modules/inet_pton (configure.ac): Update.
1012
1013         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1014         * modules/mbslen (configure.ac): Update.
1015
1016         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1017         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1018         * modules/forkpty (configure.ac): Update.
1019         * modules/openpty (configure.ac): Update.
1020
1021 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1022
1023         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1024         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1025
1026 2010-03-25  Eric Blake  <eblake@redhat.com>
1027
1028         maint: use pragma consistently across replacement headers
1029         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1030         * lib/dirent.in.h (system_header): Likewise.
1031         * lib/errno.in.h (system_header): Likewise.
1032         * lib/float.in.h (system_header): Likewise.
1033         * lib/getopt.in.h (system_header): Likewise.
1034         * lib/iconv.in.h (system_header): Likewise.
1035         * lib/inttypes.in.h (system_header): Likewise.
1036         * lib/langinfo.in.h (system_header): Likewise.
1037         * lib/locale.in.h (system_header): Likewise.
1038         * lib/math.in.h (system_header): Likewise.
1039         * lib/netdb.in.h (system_header): Likewise.
1040         * lib/netinet_in.in.h (system_header): Likewise.
1041         * lib/pty.in.h (system_header): Likewise.
1042         * lib/sched.in.h (system_header): Likewise.
1043         * lib/se-selinux.in.h (system_header): Likewise.
1044         * lib/search.in.h (system_header): Likewise.
1045         * lib/spawn.in.h (system_header): Likewise.
1046         * lib/stdarg.in.h (system_header): Likewise.
1047         * lib/stdint.in.h (system_header): Likewise.
1048         * lib/string.in.h (system_header): Likewise.
1049         * lib/strings.in.h (system_header): Likewise.
1050         * lib/sys_file.in.h (system_header): Likewise.
1051         * lib/sys_ioctl.in.h (system_header): Likewise.
1052         * lib/sys_socket.in.h (system_header): Likewise.
1053         * lib/sys_times.in.h (system_header): Likewise.
1054         * lib/sys_utsname.in.h (system_header): Likewise.
1055         * lib/sys_wait.in.h (system_header): Likewise.
1056         * lib/sysexits.in.h (system_header): Likewise.
1057         * lib/unistd.in.h (system_header): Likewise.
1058         * lib/wctype.in.h (system_header): Likewise.
1059
1060         arpa/inet: fix mingw compilation warning
1061         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1062         Reported by Matthew Bolte.
1063
1064 2010-03-25  Bruno Haible  <bruno@clisp.org>
1065
1066         Avoid collision between gnulib wrapper and libintl wrapper.
1067         * lib/printf.c (printf): Don't define if a printf wrapper is already
1068         defined in intl/printf.c.
1069         Reported by Michel Boaventura <michel@michelboaventura.com>.
1070
1071 2010-03-25  Bruno Haible  <bruno@clisp.org>
1072
1073         Use ANSI C.
1074         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1075
1076 2010-03-25  Bruno Haible  <bruno@clisp.org>
1077
1078         Minor formatting changes.
1079         * lib/acosl.c: Insert space before function argument list.
1080         * lib/argz.c: Likewise.
1081         * lib/asinl.c: Likewise.
1082         * lib/expl.c: Likewise.
1083         * lib/gen-uni-tables.c: Likewise.
1084         * lib/gettext.h: Likewise.
1085         * lib/glthread/lock.h: Likewise.
1086         * lib/tanl.c: Likewise.
1087         * lib/uniname/uniname.c: Likewise.
1088         * tests/test-idpriv-drop.c: Likewise.
1089         * tests/test-idpriv-droptemp.c: Likewise.
1090         * tests/test-lock.c: Likewise.
1091         * tests/test-tls.c: Likewise.
1092         * lib/argp-help.c: Insert space before function-like macro argument
1093         list.
1094         * lib/memcmp.c: Likewise.
1095         * tests/test-base64.c: Likewise.
1096         * lib/localename.c: Insert space before sizeof's argument list.
1097         * lib/safe-alloc.h: Likewise.
1098         * lib/file-set.h: Insert space before macro argument list.
1099         * tests/test-argp.c: Likewise.
1100         * lib/argp-namefrob.h: Insert space before function parameter list.
1101         * lib/getaddrinfo.c: Likewise.
1102         * lib/netdb.in.h: Likewise.
1103         * lib/parse-duration.h: Likewise.
1104         * lib/parse-duration.c: Likewise.
1105         * lib/poll.c: Likewise.
1106         * lib/select.c: Likewise.
1107         * lib/trim.h: Likewise.
1108         * tests/test-usleep.c: Likewise.
1109         * lib/ldexpl.c: Insert space before function parameter list and before
1110         function argument list.
1111         * lib/logl.c: Likewise.
1112         * lib/sqrtl.c: Likewise.
1113         * lib/trim.c: Likewise.
1114         * lib/cosl.c: Use GNU style indentation. Insert space before function
1115         argument list.
1116         * lib/sinl.c: Likewise.
1117         * lib/tsearch.c: Insert space after 'for'.
1118         Reported by Jim Meyering.
1119
1120 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1121
1122         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1123         config header before grepping, as it's not present before
1124         autoreconf/configure are run.  Reported by Simon Josefsson.
1125
1126 2010-03-23  Bruno Haible  <bruno@clisp.org>
1127
1128         pt_chown: Make it work with automake < 1.11.
1129         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1130         Reported by Simon Josefsson.
1131
1132 2010-03-23  Bruno Haible  <bruno@clisp.org>
1133
1134         pt_chown: Don't depend on GPLed modules.
1135         * lib/pt_chown.c: Don't include idpriv.h.
1136         (main): Don't drop privileges.
1137         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1138         Reported by Simon Josefsson.
1139
1140 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1141
1142         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1143         suggestions from karl@freefriends.org (Karl Berry).
1144
1145 2010-03-22  Eric Blake  <eblake@redhat.com>
1146
1147         gethostname: further tweaks
1148         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1149         are overriding gethostname.
1150         Suggested by Bruno Haible.
1151
1152 2010-03-21  Bruno Haible  <bruno@clisp.org>
1153
1154         Fix comments.
1155         * lib/forkpty.c (rpl_forkpty): Fix comment.
1156         * lib/openpty.c (rpl_openpty): Likewise.
1157         Reported by Eric Blake.
1158
1159 2010-03-22  Eric Blake  <eblake@redhat.com>
1160
1161         gethostname: fix build on mingw
1162         * lib/unistd.in.h (includes): Work around fact that mingw
1163         <winsock2.h> re-includes <unistd.h>, by avoiding any
1164         redeclarations if we are being included by <winsock2.h>.
1165         Reported by Matthias Bolte.
1166
1167 2010-03-21  Bruno Haible  <bruno@clisp.org>
1168
1169         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1170         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1171         modifications.
1172         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1173         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1174         provide the replacement.
1175         * modules/forkpty (Depends-on): Add openpty, login_tty.
1176         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1177         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1178         * doc/glibc-functions/forkpty.texi: More supported platforms.
1179         * config/srclist.txt: Add forkpty.c (commented).
1180
1181 2010-03-21  Bruno Haible  <bruno@clisp.org>
1182
1183         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1184         (Makefile.am): Verify that PTY_LIB is defined.
1185
1186         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1187
1188 2010-03-21  Bruno Haible  <bruno@clisp.org>
1189
1190         Tests for module 'login_tty'.
1191         * modules/login_tty-tests: New file.
1192         * tests/test-login_tty.c: New file.
1193
1194         New module 'login_tty'.
1195         * lib/login_tty.c: New file.
1196         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1197         * modules/login_tty: New file.
1198         * doc/glibc-functions/login_tty.texi: Mention the new module.
1199
1200 2010-03-21  Bruno Haible  <bruno@clisp.org>
1201
1202         login_tty: Documentation.
1203         * doc/glibc-functions/login_tty.texi: New file.
1204         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1205
1206 2010-03-21  Bruno Haible  <bruno@clisp.org>
1207
1208         pty: Consistent macro naming.
1209         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1210         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1211         * modules/pty (configure.ac): Update.
1212
1213 2010-03-21  Bruno Haible  <bruno@clisp.org>
1214
1215         Tests for openpty: Make stricter.
1216         * tests/test-openpty.c (main): Add test of canonical processing and
1217         erase.
1218         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1219
1220         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1221         * lib/openpty.c (openpty): New replacement function.
1222         * lib/pty.in.h: Include <termios.h>.
1223         (openpty): Update declaration. Add comments.
1224         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1225         is not declared, arrange to provide the replacement. Check for _getpty
1226         and posix_openpt.
1227         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1228         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1229         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1230         * modules/pty-tests (test_pty_c___LDADD): New variable.
1231         * doc/glibc-functions/openpty.texi: More supported platforms.
1232
1233 2010-03-21  Bruno Haible  <bruno@clisp.org>
1234
1235         setenv: Tweaks.
1236         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1237         the test program.
1238         * doc/posix-functions/setenv.texi: Update platforms list.
1239
1240 2010-03-21  Bruno Haible  <bruno@clisp.org>
1241
1242         New module 'unlockpt'.
1243         * lib/unlockpt.c: New file, from glibc with modifications.
1244         * m4/unlockpt.m4: New file.
1245         * modules/unlockpt: New file.
1246         * lib/stdlib.in.h (unlockpt): New declaration.
1247         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1248         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1249         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1250         HAVE_UNLOCKPT.
1251         * doc/posix-functions/unlockpt.texi: Mention the new module.
1252         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1253         * config/srclist.txt: Add unlockpt.c (commented).
1254
1255 2010-03-21  Jim Meyering  <meyering@redhat.com>
1256
1257         maint.mk: prohibit inclusion of "intprops.h" without use
1258         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1259
1260 2010-03-21  Bruno Haible  <bruno@clisp.org>
1261
1262         New module 'grantpt'.
1263         * lib/grantpt.c: New file, from glibc with modifications.
1264         * m4/grantpt.m4: New file.
1265         * modules/grantpt: New file.
1266         * lib/stdlib.in.h (grantpt): New declaration.
1267         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1268         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1269         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1270         HAVE_GRANTPT.
1271         * doc/posix-functions/grantpt.texi: Mention the new module.
1272         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1273         * config/srclist.txt: Add grantpt.c (commented).
1274
1275 2010-03-21  Bruno Haible  <bruno@clisp.org>
1276
1277         New module 'pt_chown'.
1278         * lib/pt_chown.c: New file, from glibc with modifications.
1279         * lib/pty-private.h: New file, from glibc with modifications.
1280         * modules/pt_chown: New file.
1281         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1282
1283 2010-03-21  Bruno Haible  <bruno@clisp.org>
1284
1285         Tests for module 'ptsname'.
1286         * modules/ptsname-tests: New file.
1287         * tests/test-ptsname.c: New file.
1288
1289         New module 'ptsname'.
1290         * lib/ptsname.c: New file, from glibc with modifications.
1291         * m4/ptsname.m4: New file.
1292         * modules/ptsname: New file.
1293         * lib/stdlib.in.h (ptsname): New declaration.
1294         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1295         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1296         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1297         HAVE_PTSNAME.
1298         * doc/posix-functions/ptsname.texi: Mention the new module.
1299         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1300         * config/srclist.txt: Add ptsname.c (commented).
1301
1302 2010-03-21  Bruno Haible  <bruno@clisp.org>
1303
1304         Tests for module 'ttyname_r'.
1305         * modules/ttyname_r-tests: New file.
1306         * tests/test-ttyname_r.c: New file.
1307
1308         New module 'ttyname_r'.
1309         * lib/ttyname_r.c: New file.
1310         * m4/ttyname_r.m4: New file.
1311         * modules/ttyname_r: New file.
1312         * lib/unistd.in.h (ttyname_r): New declaration.
1313         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1314         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1315         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1316         HAVE_TTYNAME_R.
1317         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1318         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1319
1320 2010-03-20  Bruno Haible  <bruno@clisp.org>
1321
1322         signal: Undefine macro definitions in C++ mode.
1323         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1324         sigfillset): Undefine macro definitions from the system header in C++
1325         mode.
1326         Reported by John W. Eaton <jwe@gnu.org>.
1327
1328 2010-03-20  Bruno Haible  <bruno@clisp.org>
1329
1330         Ensure no #include statements inside extern "C" { ... }.
1331         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1332         contain #include statements.
1333         * lib/time.in.h: Likewise.
1334
1335 2010-03-20  Bruno Haible  <bruno@clisp.org>
1336
1337         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1338         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1339         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1340         Reported by John W. Eaton <jwe@gnu.org>.
1341
1342 2010-03-20  Bruno Haible  <bruno@clisp.org>
1343
1344         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1345         Reported by Jim Meyering.
1346
1347 2010-03-20  Bruno Haible  <bruno@clisp.org>
1348
1349         pipe: Set errno upon failure.
1350         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1351         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1352         errno value in error message.
1353
1354 2010-03-20  Bruno Haible  <bruno@clisp.org>
1355             Jim Meyering  <meyering@redhat.com>
1356
1357         lchown: Avoid "unused variable" warning.
1358         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1359
1360 2010-03-20  Bruno Haible  <bruno@clisp.org>
1361
1362         Work around unlink() bug on MacOS X 10.5.6.
1363         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1364         attempting to unlink a parent directory.
1365         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1366         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1367         activate for the replacement function.
1368         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1369
1370 2010-03-20  Bruno Haible  <bruno@clisp.org>
1371
1372         Fix link errors on Solaris 8.
1373         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1374         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1375
1376 2010-03-19  Jim Meyering  <meyering@redhat.com>
1377
1378         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1379         The _LIBC implementation of build_range_exp correctly honors the
1380         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1381         However, the non-_LIBC implementation would ignore that syntax-bit
1382         flag and return REG_ERANGE unconditionally.
1383         This change makes it honor that flag.
1384         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1385         Make two pointer parameters "const".
1386         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1387         (parse_bracket_exp): Update caller.
1388
1389         regex.m4: correct the reversed range endpoint ([b-a]) test
1390         * m4/regex.m4: When requiring that [b-a] evoke failure,
1391         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1392         test pass once again for x86-based systems.
1393
1394 2010-03-19  Bruno Haible  <bruno@clisp.org>
1395
1396         scandir: Fix link error on Solaris 8.
1397         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1398         macros.
1399
1400 2010-03-19  Bruno Haible  <bruno@clisp.org>
1401
1402         getusershell: Fix documentation.
1403         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1404         module.
1405         * doc/glibc-functions/setusershell.texi: Likewise.
1406
1407         getusershell: Provide declaration, missing on Solaris 9.
1408         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1409         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1410         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1411         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1413         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1414         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1415         HAVE_GETUSERSHELL.
1416         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1417
1418 2010-03-19  Bruno Haible  <bruno@clisp.org>
1419
1420         wctype: Provide iswblank function.
1421         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1422         exists and is fine.
1423         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1424         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1425         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1426         * doc/posix-functions/iswblank.texi: Update.
1427
1428 2010-03-19  Bruno Haible  <bruno@clisp.org>
1429
1430         Tests of module 'pty' in C++ mode.
1431         * modules/pty-tests: New file.
1432         * tests/test-pty-c++.cc: New file.
1433         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1434
1435 2010-03-19  Eric Blake  <eblake@redhat.com>
1436
1437         logb: fix documentation
1438         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1439         1.5 declaration bug.
1440
1441         forkpty, openpty: prefer glibc's const-safe prototype
1442         * lib/forkpty.c (rpl_forkpty): New file.
1443         * lib/openpty.c (rpl_openpty): Likewise.
1444         * modules/forkpty (Files): Distribute it.
1445         * modules/openpty (Files): Likewise.
1446         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1447         check...
1448         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1449         replacement for for non-const BSD signature.
1450         * modules/pty (Makefile.am): Substitute witnesses.
1451         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1452         * tests/test-forkpty.c: Update signature check.
1453         * tests/test-openpty.c: Likewise.
1454         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1455         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1456
1457         forkpty, openpty: split functions into new modules
1458         * modules/pty (Makefile.am): Substitute new witnesses.
1459         (Libraries): Move library detection...
1460         * modules/forkpty: ...into new module.
1461         * modules/openpty: Another new module.
1462         * modules/pty-tests: Rename and split...
1463         * modules/forkpty-tests: ...to this...
1464         * modules/openpty-tests: ...and this.
1465         * tests/test-pty.c: Rename and split...
1466         * tests/test-forkpty.c: ...to this...
1467         * tests/test-openpty.c: ...and this.
1468         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1469         (gl_PTY): Split library searching...
1470         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1471         (gl_FORKPTY, gl_OPENPTY): New macros.
1472         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1473         * NEWS: Mention the split.
1474         * MODULES.html.sh (Misc): Document the modules.
1475         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1476         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1477
1478         pty: improve replacement header
1479         * lib/pty.in.h: New file.
1480         * modules/pty (Files): Ship it.
1481         (Makefile.am): Always build replacement.
1482         * m4/pty.m4: Rename...
1483         * m4/pty_h.m4: ...to this.
1484         (gl_PTY): Modernize setting of witness macros; update check of
1485         forkpty to take proper advantage of cache.
1486         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1487
1488         getopt: avoid compiler warning
1489         * lib/getopt.c (attribute_hidden): Remove unused macro.
1490
1491 2010-03-18  Bruno Haible  <bruno@clisp.org>
1492
1493         Fix link errors on Solaris 8.
1494         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1495         * modules/search-tests (test_search_c___LDADD): Likewise.
1496         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1497         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1498         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1499         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1500         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1501         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1502         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1503
1504 2010-03-18  Bruno Haible  <bruno@clisp.org>
1505
1506         Fix bug introduced on 2010-03-14.
1507         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1508         (gl_SPAWN_H): Require it.
1509         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1510         Reported by Simon Josefsson.
1511
1512 2010-03-18  Bruno Haible  <bruno@clisp.org>
1513
1514         Fix typo introduced on 2009-12-31.
1515         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1516         posix_spawn_file_actions_adddup2.
1517
1518 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1519         and Eric Blake  <eblake@redhat.com>
1520
1521         test-vc-list-files-git: make more robust
1522         * tests/test-vc-list-files-git.sh: Unset problematic environment
1523         variables.  Chain commands together.
1524
1525 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1526
1527         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1528         `AC_CHECK_DECL' invocation.
1529
1530 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1531
1532         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1533         appears before executable statements. Suggested by Petr Sumbera
1534         <Petr.Sumbera@Sun.COM>.
1535
1536 2010-03-14  Bruno Haible  <bruno@clisp.org>
1537
1538         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1539         portability problems. Instead use a simpler test.
1540         (main): Check that invalid arguments are rejected only on Linux.
1541
1542 2010-03-14  Bruno Haible  <bruno@clisp.org>
1543
1544         Fix bug introduced on 2009-12-31.
1545         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1546         gl_PREREQ_SYS_H_WINSOCK2 always.
1547         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1548         SYS_SOCKET_H variable.
1549         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1550         Update comments.
1551         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1552         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1553         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1554         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1555         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1556
1557 2010-03-14  Bruno Haible  <bruno@clisp.org>
1558
1559         Fix values returned by sinl, cosl.
1560         * lib/trigl.h: Add specification comments.
1561         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1562         that combines the values from the precomputed table with the values of
1563         the Chebyshev polynomials.
1564
1565 2010-03-14  Bruno Haible  <bruno@clisp.org>
1566
1567         Fix compilation error when modules 'posix_spawn[p]' are not used.
1568         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1569         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1570
1571 2010-03-14  Bruno Haible  <bruno@clisp.org>
1572
1573         Fix compilation error on mingw when module 'time_r' is not used.
1574         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1575         is 1.
1576         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1577         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1578         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1579         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1580
1581 2010-03-14  Bruno Haible  <bruno@clisp.org>
1582
1583         Fix compilation error with Sun C.
1584         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1585         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1586         instead of GCC specific ULONG_LONG_MAX.
1587         * lib/xstrtoll.c: Likewise.
1588         * lib/xstrtoull.c: Likewise.
1589
1590 2010-03-13  Bruno Haible  <bruno@clisp.org>
1591
1592         Allow the user to disable C++ code and tests.
1593         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1594         (gl_PROG_ANSI_CXX): Require it.
1595
1596 2010-03-13  Bruno Haible  <bruno@clisp.org>
1597
1598         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1599         cases.
1600
1601 2010-03-13  Bruno Haible  <bruno@clisp.org>
1602
1603         Test that gnulib does not break the standard C++ headers.
1604         * tests/test-locale-c++2.cc: New file.
1605         * modules/locale-tests (Files): Add it.
1606         (Makefile.am): Compile it for test-locale-c++.
1607         * tests/test-math-c++2.cc: New file.
1608         * modules/math-tests (Files): Add it.
1609         (Makefile.am): Compile it for test-math-c++.
1610         * tests/test-signal-c++2.cc: New file.
1611         * modules/signal-tests (Files): Add it.
1612         (Makefile.am): Compile it for test-signal-c++.
1613         * tests/test-stdio-c++2.cc: New file.
1614         * modules/stdio-tests (Files): Add it.
1615         (Makefile.am): Compile it for test-stdio-c++.
1616         * tests/test-stdlib-c++2.cc: New file.
1617         * modules/stdlib-tests (Files): Add it.
1618         (Makefile.am): Compile it for test-stdlib-c++.
1619         * tests/test-string-c++2.cc: New file.
1620         * modules/string-tests (Files): Add it.
1621         (Makefile.am): Compile it for test-string-c++.
1622         * tests/test-time-c++2.cc: New file.
1623         * modules/time-tests (Files): Add it.
1624         (Makefile.am): Compile it for test-time-c++.
1625         Reported by John W. Eaton <jwe@gnu.org>.
1626
1627 2010-03-13  Bruno Haible  <bruno@clisp.org>
1628
1629         * gnulib-tool (func_usage): Clarify which options are available for
1630         --create-testdir and --create-megatestdir.
1631
1632 2010-03-13  Bruno Haible  <bruno@clisp.org>
1633
1634         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1635         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1636         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1637         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1638         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1639         when appropriate.
1640         Reported by Jim Meyering.
1641
1642 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1643
1644         * gnulib-tool (func_import): Explain origin of code.
1645
1646 2010-03-12  Bruno Haible  <bruno@clisp.org>
1647
1648         Fix problem with automake's definition of CXXLINK.
1649         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1650         Reported by Simon Josefsson and Ludovic Courtès.
1651
1652 2010-03-12  Bruno Haible  <bruno@clisp.org>
1653
1654         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1655         stable releases.
1656
1657 2010-03-11  Bruno Haible  <bruno@clisp.org>
1658
1659         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1660         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1661         whether the system provides one variant or multiple variants of the
1662         function.
1663         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1664         C++ compilers.
1665         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1666         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1667         Reported by Jim Meyering.
1668
1669 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1670
1671         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1672
1673 2010-03-08  Bruno Haible  <bruno@clisp.org>
1674
1675         gnulib-tool: Add support for --libtool in --create-testdir.
1676         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1677         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1678
1679 2010-03-08  Eric Blake  <eblake@redhat.com>
1680
1681         gnulib-tool.texi: mention possibility of git submodule
1682         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1683         submodules.
1684         * doc/.gitignore: Ignore another generated file.
1685
1686 2010-03-08  Karl Berry  <karl@gnu.org>
1687
1688         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1689         of committing gnulib files while skipping others.
1690
1691 2010-03-07  Bruno Haible  <bruno@clisp.org>
1692
1693         Tests of module 'wctype' in C++ mode.
1694         * tests/test-wctype-c++.cc: New file.
1695         * modules/wctype-tests (Files): Add it and tests/signature.h.
1696         (Depends-on): Add ansi-c++-opt.
1697         (Makefile.am): Arrange to compile and run test-wctype-c++.
1698
1699         Tests of module 'wchar' in C++ mode.
1700         * tests/test-wchar-c++.cc: New file.
1701         * modules/wchar-tests (Files): Add it and tests/signature.h.
1702         (Depends-on): Add ansi-c++-opt.
1703         (Makefile.am): Arrange to compile and run test-wchar-c++.
1704         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1705         gl_MODULE_INDICATOR.
1706
1707         Tests of module 'unistd' in C++ mode.
1708         * tests/test-unistd-c++.cc: New file.
1709         * modules/unistd-tests (Files): Add it and tests/signature.h.
1710         (Depends-on): Add ansi-c++-opt.
1711         (Makefile.am): Arrange to compile and run test-unistd-c++.
1712         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1713         gl_MODULE_INDICATOR.
1714
1715         Tests of module 'time' in C++ mode.
1716         * tests/test-time-c++.cc: New file.
1717         * modules/time-tests (Files): Add it and tests/signature.h.
1718         (Depends-on): Add ansi-c++-opt.
1719         (Makefile.am): Arrange to compile and run test-time-c++.
1720         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1721
1722         Tests of module 'sys_time' in C++ mode.
1723         * tests/test-sys_time-c++.cc: New file.
1724         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1725         (Depends-on): Add ansi-c++-opt.
1726         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1727         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1728         gl_MODULE_INDICATOR.
1729
1730         Tests of module 'sys_stat' in C++ mode.
1731         * tests/test-sys_stat-c++.cc: New file.
1732         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1733         (Depends-on): Add ansi-c++-opt.
1734         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1735         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1736         gl_MODULE_INDICATOR.
1737
1738         Tests of module 'sys_socket' in C++ mode.
1739         * tests/test-sys_socket-c++.cc: New file.
1740         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1741         (Depends-on): Add ansi-c++-opt.
1742         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1743         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1744         gl_MODULE_INDICATOR.
1745
1746         Tests of module 'sys_select' in C++ mode.
1747         * tests/test-sys_select-c++.cc: New file.
1748         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1749         (Depends-on): Add ansi-c++-opt.
1750         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1751         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1752         gl_MODULE_INDICATOR.
1753
1754         Tests of module 'sys_ioctl' in C++ mode.
1755         * tests/test-sys_ioctl-c++.cc: New file.
1756         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1757         (Depends-on): Add ansi-c++-opt.
1758         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1759         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1760         gl_MODULE_INDICATOR.
1761
1762         Tests of module 'string' in C++ mode.
1763         * tests/test-string-c++.cc: New file.
1764         * modules/string-tests (Files): Add it and tests/signature.h.
1765         (Depends-on): Add ansi-c++-opt.
1766         (Makefile.am): Arrange to compile and run test-string-c++.
1767         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1768         gl_MODULE_INDICATOR.
1769
1770         Tests of module 'stdlib' in C++ mode.
1771         * tests/test-stdlib-c++.cc: New file.
1772         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1773         (Depends-on): Add ansi-c++-opt.
1774         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1775         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1776         gl_MODULE_INDICATOR.
1777
1778         Tests of module 'stdio' in C++ mode.
1779         * tests/test-stdio-c++.cc: New file.
1780         * modules/stdio-tests (Files): Add it and tests/signature.h.
1781         (Depends-on): Add ansi-c++-opt.
1782         (Makefile.am): Arrange to compile and run test-stdio-c++.
1783         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1784         gl_MODULE_INDICATOR.
1785
1786         Tests of module 'spawn' in C++ mode.
1787         * tests/test-spawn-c++.cc: New file.
1788         * modules/spawn-tests (Files): Add it and tests/signature.h.
1789         (Depends-on): Add ansi-c++-opt.
1790         (Makefile.am): Arrange to compile and run test-spawn-c++.
1791         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1792         gl_MODULE_INDICATOR.
1793
1794         Tests of module 'signal' in C++ mode.
1795         * tests/test-signal-c++.cc: New file.
1796         * modules/signal-tests (Files): Add it and tests/signature.h.
1797         (Depends-on): Add ansi-c++-opt.
1798         (Makefile.am): Arrange to compile and run test-signal-c++.
1799         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1800         gl_MODULE_INDICATOR.
1801
1802         Tests of module 'search' in C++ mode.
1803         * tests/test-search-c++.cc: New file.
1804         * modules/search-tests (Files): Add it and tests/signature.h.
1805         (Depends-on): Add ansi-c++-opt.
1806         (Makefile.am): Arrange to compile and run test-search-c++.
1807         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1808         gl_MODULE_INDICATOR.
1809
1810         Tests of module 'math' in C++ mode.
1811         * tests/test-math-c++.cc: New file.
1812         * modules/math-tests (Files): Add it and tests/signature.h.
1813         (Depends-on): Add ansi-c++-opt.
1814         (Makefile.am): Arrange to compile and run test-math-c++.
1815         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1816
1817         Tests of module 'locale' in C++ mode.
1818         * tests/test-locale-c++.cc: New file.
1819         * modules/locale-tests (Files): Add it and tests/signature.h.
1820         (Depends-on): Add ansi-c++-opt.
1821         (Makefile.am): Arrange to compile and run test-locale-c++.
1822         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1823         gl_MODULE_INDICATOR.
1824
1825         Tests of module 'langinfo' in C++ mode.
1826         * tests/test-langinfo-c++.cc: New file.
1827         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1828         (Depends-on): Add ansi-c++-opt.
1829         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1830         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1831         gl_MODULE_INDICATOR.
1832
1833         Tests of module 'iconv-h' in C++ mode.
1834         * tests/test-iconv-h-c++.cc: New file.
1835         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1836         (Depends-on): Add ansi-c++-opt.
1837         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1838
1839         Tests of module 'glob' in C++ mode.
1840         * tests/test-glob-c++.cc: New file.
1841         * modules/glob-tests (Files): Add it.
1842         (Depends-on): Add ansi-c++-opt.
1843         (Makefile.am): Arrange to compile and run test-glob-c++.
1844
1845         Tests of module 'fcntl-h' in C++ mode.
1846         * tests/test-fcntl-h-c++.cc: New file.
1847         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1848         (Depends-on): Add ansi-c++-opt.
1849         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1850         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1851         gl_MODULE_INDICATOR.
1852
1853         Tests of module 'dirent' in C++ mode.
1854         * tests/test-dirent-c++.cc: New file.
1855         * modules/dirent-tests (Files): Add it and tests/signature.h.
1856         (Depends-on): Add ansi-c++-opt.
1857         (Makefile.am): Arrange to compile and run test-dirent-c++.
1858         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1859         gl_MODULE_INDICATOR.
1860
1861         New module 'ansi-c++-opt'.
1862         * modules/ansi-c++-opt: New file.
1863         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1864
1865         Document C++ namespace mode.
1866         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1867
1868         wctype: Avoid #define replacements in C++ mode.
1869         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1870         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1871         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1872         In C++, define a namespaced alias symbol.
1873         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1874         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1875         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1876         rule.
1877
1878         wchar: Avoid #define replacements in C++ mode.
1879         * lib/wchar.in.h: Include c++defs.h.
1880         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1881         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1882         symbol.
1883         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1884         * modules/wchar (Depends-on): Add c++defs.
1885         (Makefile.am): Update wchar.h rule.
1886
1887         unistd: Avoid #define replacements in C++ mode.
1888         * lib/unistd.in.h: Include c++defs.h.
1889         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1890         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1891         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1892         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1893         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1894         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1895         symbol.
1896         (environ): Update.
1897         * modules/unistd (Depends-on): Add c++defs.
1898         (Makefile.am): Update unistd.h rule.
1899
1900         time: Avoid #define replacements in C++ mode.
1901         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1902         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1903         define a namespaced alias symbol.
1904         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1905         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1906         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1907         * modules/time (Depends-on): Add c++defs, warn-on-use.
1908         (Makefile.am): Update time.h rule.
1909         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1910         * modules/nanosleep (configure.ac): Likewise.
1911         * modules/strptime (configure.ac): Likewise.
1912         * modules/timegm (configure.ac): Likewise.
1913
1914         sys_time: Avoid #define replacements in C++ mode.
1915         * lib/sys_time.in.h: Include c++defs.h.
1916         (gettimeofday): In C++, define a namespaced alias symbol.
1917         * modules/sys_time (Depends-on): Add c++defs.
1918         (Makefile.am): Update sys/time.h rule.
1919
1920         sys_stat: Avoid #define replacements in C++ mode.
1921         * lib/sys_stat.in.h: Include c++defs.h.
1922         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1923         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1924         namespaced alias symbol.
1925         In C++, define a namespaced alias symbol.
1926         * modules/sys_stat (Depends-on): Add c++defs.
1927         (Makefile.am): Update sys/stat.h rule.
1928
1929         sys_socket: Avoid #define replacements in C++ mode.
1930         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1931         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1932         definitions also when the system has a <sys/socket.h>.
1933         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1934         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1935         In C++, define a namespaced alias symbol.
1936         * modules/sys_socket (Depends-on): Add c++defs.
1937         (Makefile.am): Update sys/socket.h rule.
1938
1939         sys_select: Avoid #define replacements in C++ mode.
1940         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1941         definitions also when the system has a <sys/select.h>.
1942         (select): In C++, define a namespaced alias symbol.
1943         * modules/sys_select (Depends-on): Add c++defs.
1944         (Makefile.am): Update sys/select.h rule.
1945
1946         sys_ioctl: Avoid #define replacements in C++ mode.
1947         * lib/sys_ioctl.in.h: Include c++defs.h.
1948         (ioctl): In C++, define a namespaced alias symbol.
1949         * modules/sys_ioctl (Depends-on): Add c++defs.
1950         (Makefile.am): Update sys/ioctl.h rule.
1951
1952         string: Avoid #define replacements in C++ mode.
1953         * lib/string.in.h: Include c++defs.h.
1954         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1955         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1956         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1957         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1958         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1959         * modules/string (Depends-on): Add c++defs.
1960         (Makefile.am): Update string.h rule.
1961
1962         stdlib: Avoid #define replacements in C++ mode.
1963         * lib/stdlib.in.h: Include c++defs.h.
1964         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1965         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1966         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1967         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1968         symbol.
1969         * modules/stdlib (Depends-on): Add c++defs.
1970         (Makefile.am): Update stdlib.h rule.
1971
1972         stdio: Avoid #define replacements in C++ mode.
1973         * lib/stdio.in.h: Include c++defs.h.
1974         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1975         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1976         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1977         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1978         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1979         namespaced alias symbol.
1980         * modules/stdio (Depends-on): Add c++defs.
1981         (Makefile.am): Update stdio.h rule.
1982
1983         spawn: Avoid #define replacements in C++ mode.
1984         * lib/spawn.in.h: Include c++defs.h.
1985         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1986         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1987         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1988         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1989         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1990         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1991         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1992         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1993         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1994         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1995         In C++, define a namespaced alias symbol.
1996         * modules/spawn (Depends-on): Add c++defs.
1997         (Makefile.am): Update spawn.h rule.
1998
1999         signal: Avoid #define replacements in C++ mode.
2000         * lib/signal.in.h: Include c++defs.h.
2001         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2002         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
2003         namespaced alias symbol.
2004         * modules/signal (Depends-on): Add c++defs.
2005         (Makefile.am): Update signal.h rule.
2006
2007         search: Avoid #define replacements in C++ mode.
2008         * lib/search.in.h: Include c++defs.h.
2009         (_gl_search_compar_fn, _gl_search_action_fn): New types.
2010         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2011         symbol.
2012         * modules/search (Depends-on): Add c++defs.
2013         (Makefile.am): Update search.h rule.
2014
2015         math: Avoid #define replacements in C++ mode.
2016         * lib/math.in.h: Include c++defs.h.
2017         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2018         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2019         trunc, truncl): In C++, define a namespaced alias symbol.
2020         * modules/math (Depends-on): Add c++defs.
2021         (Makefile.am): Update math.h rule.
2022
2023         locale: Avoid #define replacements in C++ mode.
2024         * lib/locale.in.h: Include c++defs.h.
2025         (duplocale): In C++, define a namespaced alias symbol.
2026         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2027         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2028         * modules/locale (Depends-on): Add c++defs.
2029         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2030
2031         langinfo: Avoid #define replacements in C++ mode.
2032         * lib/langinfo.in.h: Include c++defs.h.
2033         (nl_langinfo): In C++, define a namespaced alias symbol.
2034         * modules/langinfo (Depends-on): Add c++defs.
2035         (Makefile.am): Update langinfo.h rule.
2036
2037         iconv-h: Avoid #define replacements in C++ mode.
2038         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2039         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2040         symbol.
2041         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2042         whenever iconv is present.
2043         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2044         (Makefile.am): Update iconv.h rule.
2045
2046         glob: Avoid #define replacements in C++ mode.
2047         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2048         (_gl_glob_errfunc_fn): New type.
2049         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2050         symbol.
2051         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2052         (Makefile.am): Update glob.h rule.
2053
2054         fcntl-h: Avoid #define replacements in C++ mode.
2055         * lib/fcntl.in.h: Include c++defs.h.
2056         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2057         * modules/fcntl-h (Depends-on): Add c++defs.
2058         (Makefile.am): Update fcntl.h rule.
2059
2060         dirent: Avoid #define replacements in C++ mode.
2061         * lib/dirent.in.h: Include c++defs.h.
2062         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2063         namespaced alias symbol.
2064         (dirfd): Update declaration.
2065         * modules/dirent (Depends-on): Add c++defs.
2066         (Makefile.am): Update dirent.h rule.
2067
2068         ctype: Make it usable in C++ code.
2069         * lib/ctype.in.h: Include c++defs.h.
2070         (isblank): Declare as extern "C".
2071         * modules/ctype (Depends-on): Add c++defs.
2072         (Makefile.am): Update ctype.h rule.
2073
2074         New module 'c++defs'.
2075         * modules/c++defs: New file.
2076         * build-aux/c++defs.h: New file.
2077         Reported by John W. Eaton <jwe@gnu.org>.
2078
2079 2010-03-07  Bruno Haible  <bruno@clisp.org>
2080
2081         logb: Provide missing declaration for Cygwin.
2082         * lib/math.in.h (logb): New declaration.
2083         * m4/logb.m4: New file.
2084         * modules/logb (Files): Add m4/logb.m4.
2085         (Depends-on): Add math.
2086         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2087         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2088         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2089         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2090         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2091
2092 2010-03-07  Bruno Haible  <bruno@clisp.org>
2093
2094         Fix test-cond link error.
2095         * tests/test-cond.c: Include <stdio.h>.
2096
2097 2010-03-07  Bruno Haible  <bruno@clisp.org>
2098
2099         Fix test-dirent-safer link error.
2100         * modules/dirent-safer-tests (Makefile.am): Define
2101         test_dirent_safer_LDADD.
2102
2103 2010-03-07  Bruno Haible  <bruno@clisp.org>
2104
2105         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2106         among default module list.
2107
2108 2010-03-07  Bruno Haible  <bruno@clisp.org>
2109
2110         Fix link error on platforms with GNU libiconv.
2111         * modules/unistr/u8-strcoll-tests (Makefile): Define
2112         test_u8_strcoll_LDADD.
2113         * modules/unistr/u16-strcoll-tests (Makefile): Define
2114         test_u16_strcoll_LDADD.
2115         * modules/unistr/u32-strcoll-tests (Makefile): Define
2116         test_u32_strcoll_LDADD.
2117
2118 2010-03-07  Bruno Haible  <bruno@clisp.org>
2119
2120         Use POSIX declarations for socket functions.
2121         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2122         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2123         rpl_sendto): Change declaration to match POSIX.
2124         * lib/connect.c (rpl_connect): Likewise.
2125         * lib/accept.c (rpl_accept): Likewise.
2126         * lib/bind.c (rpl_bind): Likewise.
2127         * lib/getpeername.c (rpl_getpeername): Likewise.
2128         * lib/getsockname.c (rpl_getsockname): Likewise.
2129         * lib/recv.c (rpl_recv): Likewise.
2130         * lib/send.c (rpl_send): Likewise.
2131         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2132         * lib/sendto.c (rpl_sendto): Likewise.
2133
2134 2010-03-06  Bruno Haible  <bruno@clisp.org>
2135
2136         Clarify access, euidaccess, faccessat.
2137         * doc/posix-functions/faccessat.texi: Mention security problem under
2138         "Other problems", not "Portability problems".
2139         * doc/posix-functions/access.texi: Likewise. Mention a related security
2140         problem.
2141         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2142         * lib/euidaccess.c: Add comments about platforms.
2143         * lib/unistd.in.h (access, euidaccess): Add warnings.
2144
2145 2010-03-07  Bruno Haible  <bruno@clisp.org>
2146
2147         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2148         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2149         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2150         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2151         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2152         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2153         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2154         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2155         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2156         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2157         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2158         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2159         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2160         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2161         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2162         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2163         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2164         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2165         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2166         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2167         Likewise.
2168         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2169         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2170         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2171         Likewise.
2172         * tests/test-spawn.c (main): Make it work when
2173         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2174
2175 2010-03-07  Bruno Haible  <bruno@clisp.org>
2176
2177         Fix incorrect Makefile.am generation in German locale.
2178         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2179         Execute sed command with character range in C locale.
2180
2181 2010-03-06  Bruno Haible  <bruno@clisp.org>
2182
2183         Tests for module 'iconv-h'.
2184         * modules/iconv-h-tests: New file.
2185         * tests/test-iconv-h.c: New file.
2186
2187         New module 'iconv-h'.
2188         * modules/iconv-h: New file.
2189         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2190         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2191         (configure.ac): Remove gl_ICONV_H.
2192         (Makefile.am): Remove rule for iconv.h.
2193
2194 2010-03-06  Bruno Haible  <bruno@clisp.org>
2195
2196         More consistent naming of *.m4 files.
2197         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2198         * modules/wctype (Files): Update.
2199
2200         More consistent naming of *.m4 files.
2201         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2202         * modules/wchar (Files): Update.
2203
2204 2010-03-06  Jim Meyering  <meyering@redhat.com>
2205
2206         euidaccess: relax license to LGPLv2+
2207         * modules/euidaccess (License): Relax to LGPLv2+.
2208
2209 2010-03-06  Bruno Haible  <bruno@clisp.org>
2210
2211         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2212         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2213         (Makefile.am): Augment lib_SOURCES instead.
2214
2215 2010-03-04  Jim Meyering  <meyering@redhat.com>
2216
2217         utime: remove obsolete module
2218         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2219         unnecessary for years, and has been marked as obsolete for 10 months.
2220         * modules/utime: Remove file.
2221         * lib/utime.c: Remove file.
2222         * m4/utime.m4: Remove file.
2223         * m4/utimes-null.m4: Remove file.
2224         * doc/posix-functions/utime.texi (utime): Remove reference to
2225         the module.  Move the sole "fixed by gnulib" item into the
2226         "problems not fixed by Gnulib" list.
2227         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2228
2229 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2230
2231         * modules/exit (License): Relax license to LGPLv2+.
2232         (Status): Mark as obsolete.
2233         * NEWS: Mention deprecated 'exit' module.
2234         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2235         of now obsolete 'exit'.
2236
2237 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2238
2239         fts-lgpl: remove unused module
2240         * modules/fts-lgpl: Remove.
2241         * MODULES.html.sh (func_all_modules): Adjust.
2242         * check-module (find_included_lib_files): Adjust.
2243         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2244
2245 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2246
2247         copy-acl: enhance Solaris ACL error handling
2248         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2249         * lib/set-mode-acl.c (qset_acl): Likewise.
2250
2251 2010-03-02  Bruno Haible  <bruno@clisp.org>
2252
2253         spawn: Don't override the system defined values on FreeBSD 8.
2254         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2255         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2256         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2257         if HAVE_POSIX_SPAWN is 1.
2258         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2259
2260 2010-03-01  Bruno Haible  <bruno@clisp.org>
2261
2262         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2263         regarding Automake.
2264
2265 2010-02-25  Bruno Haible  <bruno@clisp.org>
2266
2267         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2268         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2269         setting, not afterwards.
2270         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2271
2272 2010-02-24  Eric Blake  <eblake@redhat.com>
2273
2274         bootstrap, git-version-gen: use timestamp
2275         * build-aux/git-version-gen (scriptversion): Force UTC.
2276         * build-aux/bootstrap (scriptversion): New variable.
2277
2278         bootstrap: allow older git
2279         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2280         older than 1.6.4.  Requested by the libvirt project.
2281
2282 2010-02-23  Eric Blake  <eblake@redhat.com>
2283
2284         warn-on-use: work with old autoconf
2285         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2286         AS_VAR semantics of autoconf 2.60.
2287         Reported by Bruno Haible.
2288
2289         bootstrap: improve some comments
2290         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2291         clarification comments.
2292
2293         gettimeofday: provide correct function
2294         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2295         when replacement is declared, otherwise provide gettimeofday.
2296         Reported by Michael Goffioul.
2297
2298 2010-02-23  Jim Meyering  <meyering@redhat.com>
2299
2300         lib-ignore: relax license to "unlimited", not LGPLv2+
2301         * modules/lib-ignore (License): Relax to "unlimited".
2302
2303 2010-02-23  Jim Meyering  <meyering@redhat.com>
2304
2305         lib-ignore: relax license to LGPLv2+
2306         * modules/lib-ignore (License): Relax to LGPLv2+.
2307
2308 2010-02-22  Eric Blake  <eblake@redhat.com>
2309
2310         lseek: avoid bash 3.2 broken pipe bug
2311         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2312         warning from bash 3.2.
2313         Reported by Ben Pfaff, with analysis from Bruno Haible.
2314
2315         bootstrap: support non-FSF copyright holder
2316         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2317         bootstrap.conf override of COPYRIGHT_HOLDER.
2318         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2319
2320         bootstrap: interoperate with gettext 0.14.1
2321         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2322
2323         bootstrap: allow for alternate submodule location
2324         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2325         hardcoding submodule location.
2326         (gnulib_mk): Allow direct use of Makefile.am.
2327
2328         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2329         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2330         rather than reconfiguring where the submodule points.
2331
2332         gettimeofday: restore support for platforms that lack function
2333         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2334         replacement if function is missing.
2335         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2336         * modules/sys_time (Makefile.am): Substitute it.
2337         * lib/sys_time.in.h (gettimeofday): Check it.
2338         Reported by Michael Goffioul.
2339
2340 2010-02-21  Bruno Haible  <bruno@clisp.org>
2341
2342         * lib/stdio.in.h (obstack_printf): Fix typo.
2343
2344 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2345
2346         vc-list-files: use bzr ls's -R option
2347         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2348         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2349
2350 2010-02-21  Jim Meyering  <meyering@redhat.com>
2351
2352         init.sh: fix EXEEXT shims to work also for names like test-prog
2353         * tests/init.sh: Re-exec a better shell, when needed.
2354         If the current shell lacks support for posix $(...), an init.sh-using
2355         test will now try to find a shell that supports that.  If EXEEXT is
2356         nonempty, we also require support for hyphen-in-alias-name and shell
2357         substitutions like ${var#glob}.  Failure to find such a shell results
2358         in a skipped test.
2359
2360 2010-02-21  Bruno Haible  <bruno@clisp.org>
2361
2362         Really work around around "broken pipe" error message from bash 3.2.
2363         * gnulib-tool (func_reset_sigpipe): Remove function.
2364         (echo): In bash 3.2, define to a function that uses printf.
2365         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2366
2367 2010-02-20  Bruno Haible  <bruno@clisp.org>
2368
2369         Restore support for automake 1.9.6 with autoconf 2.61.
2370         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2371         Reported by James Youngman <jay@gnu.org>.
2372
2373 2010-02-20  Bruno Haible  <bruno@clisp.org>
2374
2375         Improve *printf warning condition.
2376         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2377         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2378         and the function is overridden due to SIGPIPE emulation.
2379
2380 2010-02-20  Bruno Haible  <bruno@clisp.org>
2381
2382         * lib/stdio.in.h: Tweak comments.
2383
2384 2010-02-19  Bruno Haible  <bruno@clisp.org>
2385
2386         Make it easier to find modules. New gnulib-tool option '--find'.
2387         * gnulib-tool: New option --find.
2388         (func_usage): Document it.
2389         (func_sanitize_modulelist): New function, extracted from
2390         func_all_modules.
2391         (func_all_modules): Invoke it.
2392         * doc/gnulib-tool.texi (Which modules?): New node.
2393
2394 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2395
2396         * lib/sys_select.in.h: Provide select replacement even if
2397         sys/select.h exists on a system, for Interix.
2398
2399 2010-02-18  Jim Meyering  <meyering@redhat.com>
2400
2401         init.sh: don't use $(...) just yet
2402         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2403         to accommodate e.g., Solaris' /bin/sh.
2404
2405 2010-02-17  Bruno Haible  <bruno@clisp.org>
2406
2407         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2408         Reported by Ludovic Courtès <ludo@gnu.org>.
2409
2410 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2411
2412         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2413         linking with -lintl.
2414
2415 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2416
2417         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2418         if not provided by the system's netdb.h.  Reported by
2419         ludo@gnu.org (Ludovic Courtès).
2420
2421 2010-02-15  Jim Meyering  <meyering@redhat.com>
2422
2423         init.sh: improve portability and efficiency
2424         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2425         "dummy" in a for loop.
2426         Use '!', not '^' to select the complement of a character set used
2427         in a "case" statement.
2428         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2429         Suggestions from Eric Blake.
2430
2431         init.sh: automatically accommodate programs with the .exe suffix
2432         Automatically arrange for an invocation of "prog" to execute the
2433         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2434         may use the simpler "prog", yet still work when built on a system
2435         that requires specifying the added suffix.
2436         Do this by constructing a function named "prog" that invokes
2437         "prog.exe" for each .exe file in selected directories.
2438         * tests/init.sh (find_exe_basenames_): New function.
2439         (create_exe_shim_functions_): New function.
2440         (path_prepend_): Use it.
2441
2442         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2443         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2444         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2445
2446 2010-02-14  Jim Meyering  <meyering@redhat.com>
2447
2448         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2449         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2450         (sc_prohibit_hash_pjw_without_use): New rule.
2451
2452         maint.mk: allow the default upload destination dir to be overridden
2453         * top/maint.mk (upload_dest_dir_): Define with a default that
2454         preserves the status quo.
2455         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2456         Reported by Peter Simons.
2457
2458         maint.mk: prohibit inclusion of "hash.h" without_use
2459         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2460
2461 2010-02-10  Jim Meyering  <meyering@redhat.com>
2462
2463         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2464         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2465
2466 2010-02-09  Eric Blake  <ebb9@byu.net>
2467         and Bruno Haible  <bruno@clisp.org>
2468
2469         obstack-printf-posix: ensure declaration
2470         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2471         extracted from gl_FUNC_OBSTACK_PRINTF.
2472         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2473         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2474         Likewise.
2475         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2476         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2477         0.
2478
2479 2010-02-08  Bruno Haible  <bruno@clisp.org>
2480
2481         gnulib-tool: Fix typo in 2010-02-07 commit.
2482         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2483         Reported by Eric Blake.
2484
2485 2010-02-07  Bruno Haible  <bruno@clisp.org>
2486
2487         gnulib-tool: Fix up caching patches.
2488         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2489         option --no-cache. Use associative arrays when supported by the shell.
2490         (sed_comments): New variable.
2491         (modcache): Renamed from do_cache.
2492         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2493         abbreviate unnecessarily.
2494         (have_associative): New variable.
2495         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2496         way also for ksh and zsh.
2497         (func_init_sed_convert_to_cache_statements): New function, extracted
2498         from func_cache_lookup_module. Add support for associative arrays.
2499         Don't set the c_MODULE_cached variable here. Ignore all lines before
2500         the first field header. Remove only the final newline, not all trailing
2501         newlines. Support empty fields correctly. Limit the use of 'eval' to
2502         assignments.
2503         (func_get_description, func_get_status, func_get_notice,
2504         func_get_applicability, func_get_filelist, func_get_dependencies,
2505         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2506         func_get_automake_snippet, func_get_include_directive,
2507         func_get_link_directive, func_get_license, func_get_maintainer):
2508         Update documentation. List the unoptimized code first. Add support for
2509         associative arrays. Limit the use of 'eval' to assignments.
2510         (func_get_applicability): Undo stylistic pessimisations.
2511         (func_get_automake_snippet, func_get_include_directive): Reduce code
2512         duplication.
2513         (func_modules_transitive_closure, func_modules_add_dummy,
2514         func_modules_notice, func_modules_to_filelist, func_add_file,
2515         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2516         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2517         func_create_testdir, func_create_megatestdir): Update documentation.
2518
2519 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2520
2521         * gnulib-tool (func_cache_lookup_module): Store the module name
2522         belonging to the cache variable; error out if two different
2523         module names map to the same cache variable name.
2524
2525 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2526
2527         gnulib-tool: Make caching optional.
2528         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2529         Update matching short versions of --no-changelog.
2530         (func_usage): Update.
2531         (sed_extract_cache_prog): Renamed from ...
2532         (sed_extract_prog): ... this; revert to old extraction script.
2533         (func_get_description, func_get_status)
2534         (func_get_notice, func_get_applicability, func_get_filelist)
2535         (func_get_dependencies, func_get_autoconf_early_snippet)
2536         (func_get_autoconf_snippet, func_get_automake_snippet)
2537         (func_get_include_directive, func_get_link_directive)
2538         (func_get_license, func_get_maintainer): If $do_cache is false,
2539         use old, non-caching extraction scripts.
2540         Suggestion by Bruno Haible.
2541
2542 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2543
2544         gnulib-tool: cache module metainformation.
2545         * gnulib-tool (sed_extract_prog): Match newline before each
2546         header, and rewrite header to a shell variable suffix.
2547         (func_cache_var, func_cache_lookup_module): New functions,
2548         to turn a module name into a cache variable prefix, and to
2549         look up and cache module metainformation.
2550         (func_get_description, func_get_status)
2551         (func_get_notice, func_get_applicability, func_get_filelist)
2552         (func_get_dependencies, func_get_autoconf_early_snippet)
2553         (func_get_autoconf_snippet, func_get_automake_snippet)
2554         (func_get_include_directive, func_get_link_directive)
2555         (func_get_license, func_get_maintainer): Use
2556         func_cache_lookup_module.
2557
2558 2010-02-07  Bruno Haible  <bruno@clisp.org>
2559
2560         fnctl: Fix missing dependency.
2561         * modules/fcntl (Depends-on): Add getdtablesize.
2562         Reported by John W. Eaton <jwe@gnu.org>.
2563
2564 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2565
2566         Argp: fix recognition of short alias options.
2567
2568         * lib/argp-parse.c (convert_options): Fix improper use of
2569         `|' between character values.
2570         * tests/test-argp.c (group1_option): New alias option
2571         --read (-r).
2572         (group1_parser): Special handling for 'r'.
2573         (test15): New test case.
2574         (test_fun): Add test15.
2575         * tests/test-argp-2.sh: Update expected --help and --usage
2576         outputs.
2577
2578 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2579
2580         * tests/test-argp.c: Fix indentation.
2581
2582 2010-02-04  Eric Blake  <ebb9@byu.net>
2583
2584         gettimeofday: expose type of second argument
2585         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2586         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2587         * tests/test-gettimeofday.c: Use it to silence warning.
2588         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2589         the issue.
2590
2591 2010-02-03  Jim Meyering  <meyering@redhat.com>
2592
2593         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2594         * lib/regcomp.c (TYPE_SIGNED): Define.
2595         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2596
2597         regcomp.c: avoid a new -Wshadow warning
2598         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2599
2600 2010-02-01  Jim Meyering  <meyering@redhat.com>
2601
2602         removing useless parentheses in cpp #define directives
2603         For motivation, see commit c0221df4, "define STREQ(a,b)
2604         consistently, removing useless parentheses"
2605         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2606         * lib/mountlist.c (MNT_IGNORE): Likewise.
2607         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2608
2609 2010-02-01  Eric Blake  <ebb9@byu.net>
2610
2611         sys_time: use link-warning
2612         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2613         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2614         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2615         * modules/sys_time (Depends-on): Add warn-on-use.
2616         (Makefile.am): Always build replacement.
2617         (configure.ac): Update substitutions.
2618         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2619         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2620         bother with SYS_TIME_H.
2621         * modules/gettimeofday (configure.ac): Declare indicator.
2622         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2623         in use.
2624
2625         closein-tests: silence compiler warning
2626         * tests/test-closein.c (main): Ignore fread result.
2627         * modules/closein-tests (Depends-on): Add ignore-value.
2628
2629         tests: silence warning about system return
2630         * tests/test-areadlink-with-size.c (main): Ignore system result.
2631         * tests/test-areadlink.c (main): Likewise.
2632         * tests/test-areadlinkat-with-size.c (main): Likewise.
2633         * tests/test-areadlinkat.c (main): Likewise.
2634         * tests/test-canonicalize-lgpl.c (main): Likewise.
2635         * tests/test-canonicalize.c (main): Likewise.
2636         * tests/test-chown.c (main): Likewise.
2637         * tests/test-fchownat.c (main): Likewise.
2638         * tests/test-fdutimensat.c (main): Likewise.
2639         * tests/test-fstatat.c (main): Likewise.
2640         * tests/test-futimens.c (main): Likewise.
2641         * tests/test-lchown.c (main): Likewise.
2642         * tests/test-link.c (main): Likewise.
2643         * tests/test-linkat.c (main): Likewise.
2644         * tests/test-lstat.c (main): Likewise.
2645         * tests/test-mkdir.c (main): Likewise.
2646         * tests/test-mkdirat.c (main): Likewise.
2647         * tests/test-mkfifo.c (main): Likewise.
2648         * tests/test-mkfifoat.c (main): Likewise.
2649         * tests/test-mknod.c (main): Likewise.
2650         * tests/test-readlink.c (main): Likewise.
2651         * tests/test-remove.c (main): Likewise.
2652         * tests/test-rename.c (main): Likewise.
2653         * tests/test-renameat.c (main): Likewise.
2654         * tests/test-rmdir.c (main): Likewise.
2655         * tests/test-symlink.c (main): Likewise.
2656         * tests/test-symlinkat.c (main): Likewise.
2657         * tests/test-unlink.c (main): Likewise.
2658         * tests/test-unlinkat.c (main): Likewise.
2659         * tests/test-utimens.c (main): Likewise.
2660         * tests/test-utimensat.c (main): Likewise.
2661         * modules/areadlink-tests (Depends-on): Add ignore-value.
2662         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2663         * modules/areadlinkat-tests (Depends-on): Likewise.
2664         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2665         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2666         * modules/canonicalize-tests (Depends-on): Likewise.
2667         * modules/chown-tests (Depends-on): Likewise.
2668         * modules/fdutimensat-tests (Depends-on): Likewise.
2669         * modules/futimens-tests (Depends-on): Likewise.
2670         * modules/lchown-tests (Depends-on): Likewise.
2671         * modules/link-tests (Depends-on): Likewise.
2672         * modules/linkat-tests (Depends-on): Likewise.
2673         * modules/lstat-tests (Depends-on): Likewise.
2674         * modules/mkdir-tests (Depends-on): Likewise.
2675         * modules/mkfifo-tests (Depends-on): Likewise.
2676         * modules/mkfifoat-tests (Depends-on): Likewise.
2677         * modules/mknod-tests (Depends-on): Likewise.
2678         * modules/openat-tests (Depends-on): Likewise.
2679         * modules/readlink-tests (Depends-on): Likewise.
2680         * modules/remove-tests (Depends-on): Likewise.
2681         * modules/rename-tests (Depends-on): Likewise.
2682         * modules/renameat-tests (Depends-on): Likewise.
2683         * modules/rmdir-tests (Depends-on): Likewise.
2684         * modules/symlink-tests (Depends-on): Likewise.
2685         * modules/symlinkat-tests (Depends-on): Likewise.
2686         * modules/unlink-tests (Depends-on): Likewise.
2687         * modules/utimens-tests (Depends-on): Likewise.
2688         * modules/utimensat-tests (Depends-on): Likewise.
2689
2690 2010-01-31  Bruno Haible  <bruno@clisp.org>
2691
2692         Perform the same test for many <math.h> functions.
2693         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2694         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2695         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2696         of gl_MATHFUNC.
2697         * modules/acos (configure.ac): Likewise.
2698         * modules/asin (configure.ac): Likewise.
2699         * modules/atan (configure.ac): Likewise.
2700         * modules/atan2 (configure.ac): Likewise.
2701         * modules/cbrt (configure.ac): Likewise.
2702         * modules/copysign (configure.ac): Likewise.
2703         * modules/cos (configure.ac): Likewise.
2704         * modules/cosh (configure.ac): Likewise.
2705         * modules/erf (configure.ac): Likewise.
2706         * modules/erfc (configure.ac): Likewise.
2707         * modules/exp (configure.ac): Likewise.
2708         * modules/fmod (configure.ac): Likewise.
2709         * modules/hypot (configure.ac): Likewise.
2710         * modules/j0 (configure.ac): Likewise.
2711         * modules/j1 (configure.ac): Likewise.
2712         * modules/jn (configure.ac): Likewise.
2713         * modules/lgamma (configure.ac): Likewise.
2714         * modules/log (configure.ac): Likewise.
2715         * modules/log10 (configure.ac): Likewise.
2716         * modules/log1p (configure.ac): Likewise.
2717         * modules/pow (configure.ac): Likewise.
2718         * modules/remainder (configure.ac): Likewise.
2719         * modules/sin (configure.ac): Likewise.
2720         * modules/sinh (configure.ac): Likewise.
2721         * modules/tan (configure.ac): Likewise.
2722         * modules/tanh (configure.ac): Likewise.
2723         * modules/y0 (configure.ac): Likewise.
2724         * modules/y1 (configure.ac): Likewise.
2725         * modules/yn (configure.ac): Likewise.
2726         Suggested by Paolo Bonzini.
2727
2728 2010-01-31  Bruno Haible  <bruno@clisp.org>
2729
2730         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2731
2732 2010-01-31  Bruno Haible  <bruno@clisp.org>
2733
2734         Work around getdelim() bug on FreeBSD 8.0.
2735         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2736         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2737         not work.
2738         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2739         is 1.
2740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2741         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2742         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2743         a non-zero size.
2744         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2745
2746 2010-01-31  Bruno Haible  <bruno@clisp.org>
2747
2748         Work around getline() bug on FreeBSD 8.0.
2749         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2750         and a non-zero size.
2751         * tests/test-getline.c (main): Likewise.
2752         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2753         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2754
2755 2010-01-28  Eric Blake  <ebb9@byu.net>
2756
2757         regex: fix build failure
2758         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2759         platforms.
2760
2761 2010-01-28  Jim Meyering  <meyering@redhat.com>
2762
2763         regex: do not ignore memory allocation failure
2764         * lib/regex_internal.c (create_cd_newstate): Detect
2765         re_node_set_init_copy failure.   Extracted from glibc commit
2766         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2767
2768         regex: sync more white-space changes from libc
2769         * lib/regex_internal.c: White-space only changes.
2770         * lib/regexec.c: Likewise.
2771
2772         regex: add many uses of __attribute_warn_unused_result__
2773         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2774         * lib/regexec.c: Likewise.
2775         Extracted from a messy glibc commit.
2776
2777         regcomp.c: spelling and merge-artifact from glibc
2778         * lib/regcomp.c: Merge remainder of glibc's
2779         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2780
2781         regcomp.c: sync white-space changes from glibc
2782         * lib/regcomp.c: Merge to accommodate white space
2783         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2784
2785         regcomp.c: do not ignore internal return values
2786         * lib/regcomp.c: Do not ignore internal return values.
2787         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2788         but without its white-space changes and spelling fixes.
2789
2790         regex_internal.h: define __attribute_warn_unused_result__
2791         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2792
2793         maint: add a syntax-check rule to check for vulnerable Makefile.in
2794         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2795
2796 2010-01-27  Jim Meyering  <meyering@redhat.com>
2797
2798         ncftpput-ftp: clean up spaces
2799         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2800         Remove trailing blanks.
2801
2802 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2803
2804         * build-aux/git-version-gen: Fix copyright statement.
2805         * build-aux/gnupload: Likewise.
2806         * tests/test-arcfour.c: Likewise.
2807         * tests/test-arctwo.c: Likewise.
2808         * tests/test-count-one-bits.c: Likewise.
2809         * tests/test-crc.c: Likewise.
2810         * tests/test-des.c: Likewise.
2811         * tests/test-gc-arcfour.c: Likewise.
2812         * tests/test-gc-arctwo.c: Likewise.
2813         * tests/test-gc-des.c: Likewise.
2814         * tests/test-gc-hmac-md5.c: Likewise.
2815         * tests/test-gc-hmac-sha1.c: Likewise.
2816         * tests/test-gc-md2.c: Likewise.
2817         * tests/test-gc-md4.c: Likewise.
2818         * tests/test-gc-md5.c: Likewise.
2819         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2820         * tests/test-gc-rijndael.c: Likewise.
2821         * tests/test-gc-sha1.c: Likewise.
2822         * tests/test-gc.c: Likewise.
2823         * tests/test-gethostname.c: Likewise.
2824         * tests/test-gettimeofday.c: Likewise.
2825         * tests/test-hash.c: Likewise.
2826         * tests/test-hmac-md5.c: Likewise.
2827         * tests/test-hmac-sha1.c: Likewise.
2828         * tests/test-md2.c: Likewise.
2829         * tests/test-md4.c: Likewise.
2830         * tests/test-md5.c: Likewise.
2831         * tests/test-memchr.c: Likewise.
2832         * tests/test-memchr2.c: Likewise.
2833         * tests/test-memcmp.c: Likewise.
2834         * tests/test-memmem.c: Likewise.
2835         * tests/test-memrchr.c: Likewise.
2836         * tests/test-rawmemchr.c: Likewise.
2837         * tests/test-read-file.c: Likewise.
2838         * tests/test-rijndael.c: Likewise.
2839         * tests/test-sockets.c: Likewise.
2840         * tests/test-strchrnul.c: Likewise.
2841         * tests/test-strstr.c: Likewise.
2842         * tests/test-strtod.c: Likewise.
2843         * build-aux/ncftpput-ftp: Likewise.
2844
2845 2010-01-26  Eric Blake  <ebb9@byu.net>
2846
2847         ignore-value: update recommended header name
2848         * modules/ignore-value (Include): Only use <> for headers that
2849         exist in glibc.
2850
2851 2010-01-26  Jim Meyering  <meyering@redhat.com>
2852
2853         test-userspec.c: avoid compiler warnings
2854         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2855         and "initialization discards qualifiers..." warnings.
2856         Put the first "uid" in its own scope, and make char* members "const".
2857
2858 2010-01-25  Bruno Haible  <bruno@clisp.org>
2859
2860         gnulib-tool: Make warning diagnostics consistent.
2861         * gnulib-tool (func_warning): New function.
2862         Use it everywhere where gnulib-tool produces output to stderr and it is
2863         not a fatal error.
2864
2865 2010-01-25  Bruno Haible  <bruno@clisp.org>
2866
2867         Fix test dependencies.
2868         * modules/xstrtol-tests (Depends-on): Add inttypes.
2869         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2870
2871 2010-01-25 Pádraig Brady <P@draigBrady.com>
2872
2873         syntax-check: detect incorrect boolean macro values in config.h
2874         * modules/maintainer-makefile (configure.ac): Parameterize the location
2875         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2876         The logic is from Eric Blake and the location indicated by Jim Meyering.
2877         Note the more natural CONFIG_HEADER name is prohibited by automake
2878         for backwards compatibility reasons.
2879         * top/maint.mk (sc_Wundef_boolean): New rule.
2880
2881 2010-01-25  Jim Meyering  <meyering@redhat.com>
2882
2883         bootstrap: detect MacOS 10.6's shasum, too
2884         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2885         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2886
2887 2010-01-23  Jim Meyering  <meyering@redhat.com>
2888
2889         xstrtoll: new module
2890         * modules/xstrtoll: New file.
2891         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2892         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2893         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2894         ./configure fails if you use this module and lack "long long".
2895         * modules/xstrtoll-tests: New module.
2896         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2897         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2898         new init.sh-based test framework.
2899
2900 2010-01-24  Bruno Haible  <bruno@clisp.org>
2901
2902         Tests for module 'yn'.
2903         * modules/yn-tests: New file.
2904         * tests/test-yn.c: New file.
2905
2906         Tests for module 'y1'.
2907         * modules/y1-tests: New file.
2908         * tests/test-y1.c: New file.
2909
2910         Tests for module 'y0'.
2911         * modules/y0-tests: New file.
2912         * tests/test-y0.c: New file.
2913
2914         Tests for module 'tanh'.
2915         * modules/tanh-tests: New file.
2916         * tests/test-tanh.c: New file.
2917
2918         Tests for module 'tan'.
2919         * modules/tan-tests: New file.
2920         * tests/test-tan.c: New file.
2921
2922         Tests for module 'sqrt'.
2923         * modules/sqrt-tests: New file.
2924         * tests/test-sqrt.c: New file.
2925
2926         Tests for module 'sinh'.
2927         * modules/sinh-tests: New file.
2928         * tests/test-sinh.c: New file.
2929
2930         Tests for module 'sin'.
2931         * modules/sin-tests: New file.
2932         * tests/test-sin.c: New file.
2933
2934         Tests for module 'rint'.
2935         * modules/rint-tests: New file.
2936         * tests/test-rint.c: New file.
2937
2938         Tests for module 'remainder'.
2939         * modules/remainder-tests: New file.
2940         * tests/test-remainder.c: New file.
2941
2942         Tests for module 'pow'.
2943         * modules/pow-tests: New file.
2944         * tests/test-pow.c: New file.
2945
2946         Tests for module 'nextafter'.
2947         * modules/nextafter-tests: New file.
2948         * tests/test-nextafter.c: New file.
2949
2950         Tests for module 'modf'.
2951         * modules/modf-tests: New file.
2952         * tests/test-modf.c: New file.
2953
2954         Tests for module 'logb'.
2955         * modules/logb-tests: New file.
2956         * tests/test-logb.c: New file.
2957
2958         Tests for module 'log1p'.
2959         * modules/log1p-tests: New file.
2960         * tests/test-log1p.c: New file.
2961
2962         Tests for module 'log10'.
2963         * modules/log10-tests: New file.
2964         * tests/test-log10.c: New file.
2965
2966         Tests for module 'log'.
2967         * modules/log-tests: New file.
2968         * tests/test-log.c: New file.
2969
2970         Tests for module 'lgamma'.
2971         * modules/lgamma-tests: New file.
2972         * tests/test-lgamma.c: New file.
2973
2974         Tests for module 'ldexp'.
2975         * modules/ldexp-tests: New file.
2976         * tests/test-ldexp.c: New file.
2977
2978         Tests for module 'jn'.
2979         * modules/jn-tests: New file.
2980         * tests/test-jn.c: New file.
2981
2982         Tests for module 'j1'.
2983         * modules/j1-tests: New file.
2984         * tests/test-j1.c: New file.
2985
2986         Tests for module 'j0'.
2987         * modules/j0-tests: New file.
2988         * tests/test-j0.c: New file.
2989
2990         Tests for module 'hypot'.
2991         * modules/hypot-tests: New file.
2992         * tests/test-hypot.c: New file.
2993
2994         Tests for module 'fmod'.
2995         * modules/fmod-tests: New file.
2996         * tests/test-fmod.c: New file.
2997
2998         Tests for module 'fabs'.
2999         * modules/fabs-tests: New file.
3000         * tests/test-fabs.c: New file.
3001
3002         Tests for module 'exp'.
3003         * modules/exp-tests: New file.
3004         * tests/test-exp.c: New file.
3005
3006         Tests for module 'erfc'.
3007         * modules/erfc-tests: New file.
3008         * tests/test-erfc.c: New file.
3009
3010         Tests for module 'erf'.
3011         * modules/erf-tests: New file.
3012         * tests/test-erf.c: New file.
3013
3014         Tests for module 'cosh'.
3015         * modules/cosh-tests: New file.
3016         * tests/test-cosh.c: New file.
3017
3018         Tests for module 'cos'.
3019         * modules/cos-tests: New file.
3020         * tests/test-cos.c: New file.
3021
3022         Tests for module 'copysign'.
3023         * modules/copysign-tests: New file.
3024         * tests/test-copysign.c: New file.
3025
3026         Tests for module 'cbrt'.
3027         * modules/cbrt-tests: New file.
3028         * tests/test-cbrt.c: New file.
3029
3030         Tests for module 'atan2'.
3031         * modules/atan2-tests: New file.
3032         * tests/test-atan2.c: New file.
3033
3034         Tests for module 'atan'.
3035         * modules/atan-tests: New file.
3036         * tests/test-atan.c: New file.
3037
3038         Tests for module 'asin'.
3039         * modules/asin-tests: New file.
3040         * tests/test-asin.c: New file.
3041
3042         Tests for module 'acos'.
3043         * modules/acos-tests: New file.
3044         * tests/test-acos.c: New file.
3045
3046 2010-01-24  Bruno Haible  <bruno@clisp.org>
3047
3048         Fix tests for common <math.h> functions.
3049         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3050         code snippet that references the function pointer, rather than merely
3051         calling the function. Substitute the FUNC_LIBM variable.
3052         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3053         * modules/acos (configure.ac): Likewise.
3054         * modules/asin (configure.ac): Likewise.
3055         * modules/atan (configure.ac): Likewise.
3056         * modules/atan2 (configure.ac): Likewise.
3057         * modules/cbrt (configure.ac): Likewise.
3058         * modules/copysign (configure.ac): Likewise.
3059         * modules/cos (configure.ac): Likewise.
3060         * modules/cosh (configure.ac): Likewise.
3061         * modules/erf (configure.ac): Likewise.
3062         * modules/erfc (configure.ac): Likewise.
3063         * modules/exp (configure.ac): Likewise.
3064         * modules/fabs (configure.ac): Likewise.
3065         * modules/fmod (configure.ac): Likewise.
3066         * modules/hypot (configure.ac): Likewise.
3067         * modules/j0 (configure.ac): Likewise.
3068         * modules/j1 (configure.ac): Likewise.
3069         * modules/jn (configure.ac): Likewise.
3070         * modules/ldexp (configure.ac): Likewise.
3071         * modules/lgamma (configure.ac): Likewise.
3072         * modules/log (configure.ac): Likewise.
3073         * modules/log10 (configure.ac): Likewise.
3074         * modules/log1p (configure.ac): Likewise.
3075         * modules/logb (configure.ac): Likewise.
3076         * modules/modf (configure.ac): Likewise.
3077         * modules/nextafter (configure.ac): Likewise.
3078         * modules/pow (configure.ac): Likewise.
3079         * modules/remainder (configure.ac): Likewise.
3080         * modules/rint (configure.ac): Likewise.
3081         * modules/sin (configure.ac): Likewise.
3082         * modules/sinh (configure.ac): Likewise.
3083         * modules/tan (configure.ac): Likewise.
3084         * modules/tanh (configure.ac): Likewise.
3085         * modules/y0 (configure.ac): Likewise.
3086         * modules/y1 (configure.ac): Likewise.
3087         * modules/yn (configure.ac): Likewise.
3088
3089 2010-01-24  Bruno Haible  <bruno@clisp.org>
3090
3091         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3092         * tests/test-acosl.c (x): New variable.
3093         (main): Store argument in x and fetch it from x.
3094         * tests/test-asinl.c (x): New variable.
3095         (main): Store argument in x and fetch it from x.
3096         * tests/test-atanl.c (x): New variable.
3097         (main): Store argument in x and fetch it from x.
3098         * tests/test-cosl.c (x): New variable.
3099         (main): Store argument in x and fetch it from x.
3100         * tests/test-expl.c (x): New variable.
3101         (main): Store argument in x and fetch it from x.
3102         * tests/test-logl.c (x): New variable.
3103         (main): Store argument in x and fetch it from x.
3104         * tests/test-sinl.c (x): New variable.
3105         (main): Store argument in x and fetch it from x.
3106         * tests/test-sqrtl.c (x): New variable.
3107         (main): Store argument in x and fetch it from x.
3108         * tests/test-tanl.c (x): New variable.
3109         (main): Store argument in x and fetch it from x.
3110
3111 2010-01-24  Bruno Haible  <bruno@clisp.org>
3112
3113         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3114         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3115         assignments to the initial TESTS_ENVIRONMENT.
3116         * doc/gnulib.texi (Unit test modules): Document it.
3117         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3118         TESTS_ENVIRONMENT.
3119         * modules/btowc-tests (Makefile.am): Likewise.
3120         * modules/c-stack-tests (Makefile.am): Likewise.
3121         * modules/c-strcase-tests (Makefile.am): Likewise.
3122         * modules/copy-file-tests (Makefile.am): Likewise.
3123         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3124         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3125         * modules/mbrtowc-tests (Makefile.am): Likewise.
3126         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3127         * modules/mbscasestr-tests (Makefile.am): Likewise.
3128         * modules/mbschr-tests (Makefile.am): Likewise.
3129         * modules/mbscspn-tests (Makefile.am): Likewise.
3130         * modules/mbsinit-tests (Makefile.am): Likewise.
3131         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3132         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3133         * modules/mbspbrk-tests (Makefile.am): Likewise.
3134         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3135         * modules/mbsrchr-tests (Makefile.am): Likewise.
3136         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3137         * modules/mbsspn-tests (Makefile.am): Likewise.
3138         * modules/mbsstr-tests (Makefile.am): Likewise.
3139         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3140         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3141         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3142         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3143         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3144         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3145         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3146         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3147         * modules/wcrtomb-tests (Makefile.am): Likewise.
3148         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3149         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3150         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3151         assignments from TESTS_ENVIRONMENT.
3152         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3153         augmentation.
3154         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3155         * modules/atexit-tests (Makefile.am): Likewise.
3156         * modules/binary-io-tests (Makefile.am): Likewise.
3157         * modules/closein-tests (Makefile.am): Likewise.
3158         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3159         * modules/exclude-tests (Makefile.am): Likewise.
3160         * modules/fflush-tests (Makefile.am): Likewise.
3161         * modules/fpending-tests (Makefile.am): Likewise.
3162         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3163         * modules/freadahead-tests (Makefile.am): Likewise.
3164         * modules/freadptr-tests (Makefile.am): Likewise.
3165         * modules/freadseek-tests (Makefile.am): Likewise.
3166         * modules/fseek-tests (Makefile.am): Likewise.
3167         * modules/fseeko-tests (Makefile.am): Likewise.
3168         * modules/ftell-tests (Makefile.am): Likewise.
3169         * modules/ftello-tests (Makefile.am): Likewise.
3170         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3171         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3172         * modules/lseek-tests (Makefile.am): Likewise.
3173         * modules/parse-duration-tests (Makefile.am): Likewise.
3174         * modules/perror-tests (Makefile.am): Likewise.
3175         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3176         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3177         * modules/pipe-tests (Makefile.am): Likewise.
3178         * modules/pread-tests (Makefile.am): Likewise.
3179         * modules/printf-posix-tests (Makefile.am): Likewise.
3180         * modules/select-tests (Makefile.am): Likewise.
3181         * modules/sigpipe-tests (Makefile.am): Likewise.
3182         * modules/tsearch-tests (Makefile.am): Likewise.
3183         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3184         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3185         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3186         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3187         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3188         * modules/version-etc-tests (Makefile.am): Likewise.
3189         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3190         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3191         * modules/xalloc-die-tests (Makefile.am): Likewise.
3192         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3193         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3194         * modules/xstrtol-tests (Makefile.am): Likewise.
3195         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3196         * modules/yesno-tests (Makefile.am): Likewise.
3197         Suggested by Jim Meyering.
3198
3199 2010-01-24  Bruno Haible  <bruno@clisp.org>
3200
3201         More documentation.
3202         * doc/gnulib.texi (Writing modules): New chapter.
3203         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3204         the new chapter.
3205
3206 2010-01-24  Jim Meyering  <meyering@redhat.com>
3207
3208         maint.mk: do not prepend "./" after filtering
3209         * top/maint.mk (_prepend_srcdir_prefix): New variable
3210         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3211         "./" when $(srcdir) is ".".
3212
3213         define STREQ(a,b) consistently, removing useless parentheses
3214         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3215         since the only risk is that "a" or "b" contains an unparenthesized
3216         comma, but if either did that, STREQ would have 3 or more arguments.
3217         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3218         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3219         * lib/hash-triple.c (STREQ): Likewise.
3220         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3221         * lib/getugroups.c (STREQ): Likewise.
3222
3223 2010-01-23  Jim Meyering  <meyering@redhat.com>
3224
3225         maint.mk: fix syntax-check in a non-srcdir build directory
3226         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3227         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3228
3229 2010-01-22  Jim Meyering  <meyering@redhat.com>
3230
3231         userspec: add unit tests
3232         * tests/test-userspec.c: New file.
3233         * modules/userspec-tests: Likewise.
3234
3235 2010-01-21  Jim Meyering  <meyering@redhat.com>
3236
3237         maint.mk: handle source file names containing "." robustly
3238         * top/maint.mk (_dot_escaped_srcdir): Define.
3239         (VC_LIST): Use it in LHS of sed substitution.
3240
3241 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3242
3243         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3244         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3245         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3246         from a non-srcdir build.
3247
3248 2010-01-20  Eric Blake  <ebb9@byu.net>
3249
3250         warn-on-use: use instead of link-warning
3251         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3252         * modules/unistd (Depends-on, Makefile.am): Likewise.
3253         * modules/arpa_inet (Depends-on): Replace link-warning with
3254         warn-on-use.
3255         (Makefile.am): Update rules accordingly.
3256         * modules/ctype (Depends-on, Makefile.am): Likewise.
3257         * modules/dirent (Depends-on, Makefile.am): Likewise.
3258         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3259         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3260         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3261         * modules/locale (Depends-on, Makefile.am): Likewise.
3262         * modules/math (Depends-on, Makefile.am): Likewise.
3263         * modules/search (Depends-on, Makefile.am): Likewise.
3264         * modules/signal (Depends-on, Makefile.am): Likewise.
3265         * modules/spawn (Depends-on, Makefile.am): Likewise.
3266         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3267         * modules/string (Depends-on, Makefile.am): Likewise.
3268         * modules/strings (Depends-on, Makefile.am): Likewise.
3269         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3270         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3271         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3272         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3273         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3274         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3275         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3276         * modules/wchar (Depends-on, Makefile.am): Likewise.
3277         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3278         should be poisoned.
3279         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3280         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3281         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3282         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3283         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3284         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3285         * m4/math_h.m4 (gl_MATH_H): Likewise.
3286         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3287         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3288         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3289         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3290         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3291         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3292         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3293         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3294         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3295         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3296         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3297         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3298         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3299         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3300         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3301         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3302         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3303         GL_LINK_WARNING.
3304         * lib/ctype.in.h: Likewise.
3305         * lib/dirent.in.h: Likewise.
3306         * lib/fcntl.in.h: Likewise.
3307         * lib/inttypes.in.h: Likewise.
3308         * lib/langinfo.in.h: Likewise.
3309         * lib/locale.in.h: Likewise.
3310         * lib/math.in.h: Likewise.
3311         * lib/search.in.h: Likewise.
3312         * lib/signal.in.h: Likewise.
3313         * lib/spawn.in.h: Likewise.
3314         * lib/stdio.in.h: Likewise.
3315         * lib/stdlib.in.h: Likewise.
3316         * lib/string.in.h: Likewise.
3317         * lib/strings.in.h: Likewise.
3318         * lib/sys_file.in.h: Likewise.
3319         * lib/sys_ioctl.in.h: Likewise.
3320         * lib/sys_select.in.h: Likewise.
3321         * lib/sys_socket.in.h: Likewise.
3322         * lib/sys_stat.in.h: Likewise.
3323         * lib/sys_times.in.h: Likewise.
3324         * lib/sys_utsname.in.h: Likewise.
3325         * lib/unistd.in.h: Likewise.
3326         * lib/wchar.in.h: Likewise.
3327
3328 2010-01-20  Bruno Haible  <bruno@clisp.org>
3329
3330         Avoid duplicate -lm.
3331         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3332         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3333         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3334         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3335         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3336         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3337         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3338         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3339         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3340         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3341         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3342         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3343         Reported by Paolo Bonzini.
3344
3345 2010-01-19  Bruno Haible  <bruno@clisp.org>
3346
3347         langinfo, nl_langinfo: Relicense under LGPLv2+.
3348         * modules/langinfo (License): Change to LGPLv2+.
3349         * modules/nl_langinfo (License): Likewise.
3350         Patch by David Lutterkort <lutter@redhat.com>.
3351
3352 2010-01-19  Bruno Haible  <bruno@clisp.org>
3353
3354         Avoid compilation error with cc on OSF/1 5.1.
3355         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3356         statement, not before.
3357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3358
3359 2010-01-18  Bruno Haible  <bruno@clisp.org>
3360
3361         Avoid a link error due to the __printf__ symbol.
3362         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3363         and 2.6.x.
3364         (__format__, __printf__): Remove definitions.
3365         * lib/argp-fmtstream.h: Likewise.
3366         * lib/argp.h: Likewise.
3367         * lib/error.h: Likewise.
3368         * lib/vasnprintf.h: Likewise.
3369         * lib/xprintf.h: Likewise.
3370         * lib/xvasprintf.h: Likewise.
3371         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3372
3373 2010-01-18  Bruno Haible  <bruno@clisp.org>
3374
3375         Tests for module 'tanl'.
3376         * modules/tanl-tests: New file.
3377         * tests/test-tanl.c: New file.
3378
3379         Tests for module 'sqrtl'.
3380         * modules/sqrtl-tests: New file.
3381         * tests/test-sqrtl.c: New file.
3382
3383         Tests for module 'sinl'.
3384         * modules/sinl-tests: New file.
3385         * tests/test-sinl.c: New file.
3386
3387         Tests for module 'logl'.
3388         * modules/logl-tests: New file.
3389         * tests/test-logl.c: New file.
3390
3391         Tests for module 'expl'.
3392         * modules/expl-tests: New file.
3393         * tests/test-expl.c: New file.
3394
3395         Tests for module 'cosl'.
3396         * modules/cosl-tests: New file.
3397         * tests/test-cosl.c: New file.
3398
3399         Tests for module 'atanl'.
3400         * modules/atanl-tests: New file.
3401         * tests/test-atanl.c: New file.
3402
3403         Tests for module 'asinl'.
3404         * modules/asinl-tests: New file.
3405         * tests/test-asinl.c: New file.
3406
3407         Tests for module 'acosl'.
3408         * modules/acosl-tests: New file.
3409         * tests/test-acosl.c: New file.
3410
3411         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3412         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3413         tanl): Use the standard gnulib idiom.
3414         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3415         * lib/sinl.c: Likewise.
3416         * lib/tanl.c: Don't include trigl.c.
3417         (kernel_tanl): Make static.
3418         * lib/sincosl.c: Include trigl.h first.
3419         * lib/trigl.c: Likewise.
3420         * m4/acosl.m4: New file.
3421         * m4/asinl.m4: New file.
3422         * m4/atanl.m4: New file.
3423         * m4/cosl.m4: New file.
3424         * m4/expl.m4: New file.
3425         * m4/logl.m4: New file.
3426         * m4/sinl.m4: New file.
3427         * m4/sqrtl.m4: New file.
3428         * m4/tanl.m4: New file.
3429         * m4/mathl.m4: Remove file.
3430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3431         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3432         Don't initialize GNULIB_MATHL.
3433         * modules/acosl: New file.
3434         * modules/asinl: New file.
3435         * modules/atanl: New file.
3436         * modules/cosl: New file.
3437         * modules/expl: New file.
3438         * modules/logl: New file.
3439         * modules/sinl: New file.
3440         * modules/sqrtl: New file.
3441         * modules/tanl: New file.
3442         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3443         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3444         substitute GNULIB_MATHL.
3445         * modules/mathl: Rewritten.
3446         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3447         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3448         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3449         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3450         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3451         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3452         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3453         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3454         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3455
3456 2010-01-18  Bruno Haible  <bruno@clisp.org>
3457
3458         sqrt: Make gl_FUNC_SQRT requirable.
3459         * m4/sqrt.m4: New file.
3460         * modules/sqrt (Files): Add it.
3461         (configure.ac): Invoke gl_FUNC_SQRT.
3462
3463 2010-01-18  Bruno Haible  <bruno@clisp.org>
3464
3465         New modules for common <math.h> functions.
3466         * m4/mathfunc.m4: New file.
3467         * modules/acos: New file.
3468         * modules/asin: New file.
3469         * modules/atan: New file.
3470         * modules/atan2: New file.
3471         * modules/cbrt: New file.
3472         * modules/copysign: New file.
3473         * modules/cos: New file.
3474         * modules/cosh: New file.
3475         * modules/erf: New file.
3476         * modules/erfc: New file.
3477         * modules/exp: New file.
3478         * modules/fabs: New file.
3479         * modules/fmod: New file.
3480         * modules/hypot: New file.
3481         * modules/j0: New file.
3482         * modules/j1: New file.
3483         * modules/jn: New file.
3484         * modules/ldexp: New file.
3485         * modules/lgamma: New file.
3486         * modules/log: New file.
3487         * modules/log10: New file.
3488         * modules/log1p: New file.
3489         * modules/logb: New file.
3490         * modules/modf: New file.
3491         * modules/nextafter: New file.
3492         * modules/pow: New file.
3493         * modules/remainder: New file.
3494         * modules/rint: New file.
3495         * modules/sin: New file.
3496         * modules/sinh: New file.
3497         * modules/sqrt: New file.
3498         * modules/tan: New file.
3499         * modules/tanh: New file.
3500         * modules/y0: New file.
3501         * modules/y1: New file.
3502         * modules/yn: New file.
3503         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3504         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3505         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3506         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3507         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3508         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3509         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3510         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3511         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3512         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3513         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3514         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3515         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3516         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3517         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3518         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3519         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3520         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3521         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3522         * doc/posix-functions/log.texi: Mention the 'log' module.
3523         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3524         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3525         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3526         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3527         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3528         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3529         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3530         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3531         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3532         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3533         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3534         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3535         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3536         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3537         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3538         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3539
3540 2010-01-18  Jim Meyering  <meyering@redhat.com>
3541
3542         ignore-value: relax license to LGPLv2+
3543         * modules/ignore-value (License): Relax to LGPLv2+.
3544
3545         getdate: don't leak when TZ contains two or more '"'s
3546         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3547         double quote in TZ after the first one.
3548
3549         readtokens: do not leak internal token_lengths buffer
3550         * lib/readtokens.c (readtokens): Free the local, lengths,
3551         when the supplied "token_lengths" parameter is NULL.
3552
3553 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3554
3555         Fix a couple of missing LIBTHREAD link failures on AIX.
3556         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3557         $(LIBTHREAD).
3558         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3559
3560         Link test-poll against INET_PTON_LIB.
3561         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3562         for inet_pton on Solaris 10.
3563
3564 2010-01-17  Bruno Haible  <bruno@clisp.org>
3565
3566         unistdio/*-sprintf: Fix typo in module description.
3567         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3568         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3569         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3570         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3571         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3572         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3573         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3574         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3575
3576 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3577
3578         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3579         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3580         variables in shell case patterns, for AIX and HP-UX ksh.
3581
3582         Split large sed scripts, for HP-UX sed.
3583         * modules/stdio: Split sed scripts around 50 sed commands,
3584         to avoid HP-UX limit of 99 commands, in the near future.
3585         * modules/string: Likewise.
3586         * modules/unistd: Likewise.
3587
3588         gnulib-tool: avoid writing in the current directory.
3589         * gnulib-tool (func_emit_lib_Makefile_am)
3590         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3591         not in the current directory, so concurrent gnulib-tool
3592         instances do not interfere.
3593
3594 2010-01-16  Jim Meyering  <meyering@redhat.com>
3595
3596         doc: update users.txt
3597         * users.txt: Add grep.
3598         (diffutils, gzip): Update URLs.
3599
3600 2010-01-12  Bruno Haible  <bruno@clisp.org>
3601
3602         posix_spawn: Avoid test failure on Cygwin.
3603         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3604         characters.
3605         Reported by Simon Josefsson.
3606
3607 2010-01-12  Bruno Haible  <bruno@clisp.org>
3608
3609         * tests/test-cond.c (main): When skipping the test, show the reason.
3610
3611 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3612
3613         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3614
3615 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3616
3617         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3618         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3619
3620 2010-01-12  Eric Blake  <ebb9@byu.net>
3621
3622         build: guarantee AS_VAR_IF
3623         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3624         (gl_AS_VAR_IF): Move...
3625         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3626         Reported by Simon Josefsson.
3627
3628 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3629
3630         * lib/stdio.in.h: Fix typo.
3631
3632 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3633
3634         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3635         libgpg-error.
3636
3637 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3638
3639         * tests/test-xalloc-die.sh: Use $EXEEXT.
3640
3641 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3642             Bruno Haible  <bruno@clisp.org>
3643
3644         getlogin, getlogin_r: Avoid test failure.
3645         * tests/test-getlogin.c: Include <stdio.h>.
3646         (main): Skip the test when the function fails because stdin is not a
3647         tty.
3648         * tests/test-getlogin_r.c: Include <stdio.h>.
3649         (main): Skip the test when the function fails because stdin is not a
3650         tty.
3651
3652 2010-01-11  Eric Blake  <ebb9@byu.net>
3653
3654         tests: avoid more large file warnings
3655         * tests/test-fflush.c: Avoid warning about ftell use.
3656         * tests/test-fseek.c: Avoid warning about fseek use.
3657
3658 2010-01-10  Bruno Haible  <bruno@clisp.org>
3659
3660         nproc: Work better on Linux when /proc and /sys are not mounted.
3661         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3662         as lower bound when, on glibc/Linux systems,
3663         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3664         Suggested by Pádraig Brady <P@draigbrady.com>.
3665         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3666
3667         nproc: Refactor.
3668         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3669         extracted from num_processors.
3670         (num_processors): Call it.
3671
3672 2010-01-11  Jim Meyering  <meyering@redhat.com>
3673
3674         utimecmp: avoid new warning from upcoming gcc-4.5.0
3675         * lib/utimecmp.c (BILLION): Define using #define rather than an
3676         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3677
3678 2010-01-11  Eric Blake  <ebb9@byu.net>
3679
3680         math: add portability warnings for classification macros
3681         * modules/math (Depends-on): Add warn-on-use.
3682         (Makefile.am): Provide new substitutions.
3683         * m4/math_h.m4 (gl_MATH_H): Require inline.
3684         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3685         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3686         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3687         implement warnings.
3688
3689         unistd: warn on use of environ without module
3690         * modules/unistd (Depends-on): Add warn-on-use.
3691         (Makefile.am): Provide new substitutions.
3692         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3693         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3694
3695         stdio: warn on suspicious uses
3696         * modules/stdio (Depends-on): Add warn-on-use.
3697         (Makefile.am): Provide new substitutions.
3698         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3699         fseeko.
3700         * lib/stdio.in.h (gets): Always warn on use.
3701         (fseek, ftell): Adjust when warnings are issued, and honor
3702         _GL_NO_LARGE_FILES as a way to silence the warning.
3703         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3704         any warning about large file offsets.
3705         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3706         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3707         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3708         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3709         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3710         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3711         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3712         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3713
3714         warn-on-use: new module
3715         * modules/warn-on-use: New file.
3716         * build-aux/warn-on-use.h: Likewise.
3717         * m4/warn-on-use.m4: Likewise.
3718         * MODULES.html.sh (Support for building): Mention it.
3719
3720 2010-01-10  Bruno Haible  <bruno@clisp.org>
3721
3722         Tests for module 'unistr/u32-strdup'.
3723         * modules/unistr/u32-strdup-tests: New file.
3724         * tests/unistr/test-u32-strdup.c: New file.
3725
3726         Tests for module 'unistr/u16-strdup'.
3727         * modules/unistr/u16-strdup-tests: New file.
3728         * tests/unistr/test-u16-strdup.c: New file.
3729
3730         Tests for module 'unistr/u8-strdup'.
3731         * modules/unistr/u8-strdup-tests: New file.
3732         * tests/unistr/test-u8-strdup.c: New file.
3733         * tests/unistr/test-strdup.h: New file.
3734
3735         Tests for module 'unistr/u32-strncmp'.
3736         * modules/unistr/u32-strncmp-tests: New file.
3737         * tests/unistr/test-u32-strncmp.c: New file.
3738
3739         Tests for module 'unistr/u16-strncmp'.
3740         * modules/unistr/u16-strncmp-tests: New file.
3741         * tests/unistr/test-u16-strncmp.c: New file.
3742
3743         Tests for module 'unistr/u8-strncmp'.
3744         * modules/unistr/u8-strncmp-tests: New file.
3745         * tests/unistr/test-u8-strncmp.c: New file.
3746         * tests/unistr/test-strncmp.h: New file.
3747
3748         Tests for module 'unistr/u32-strcoll'.
3749         * modules/unistr/u32-strcoll-tests: New file.
3750         * tests/unistr/test-u32-strcoll.c: New file.
3751
3752         Tests for module 'unistr/u16-strcoll'.
3753         * modules/unistr/u16-strcoll-tests: New file.
3754         * tests/unistr/test-u16-strcoll.c: New file.
3755
3756         Tests for module 'unistr/u8-strcoll'.
3757         * modules/unistr/u8-strcoll-tests: New file.
3758         * tests/unistr/test-u8-strcoll.c: New file.
3759
3760         Tests for module 'unistr/u32-strcmp'.
3761         * modules/unistr/u32-strcmp-tests: New file.
3762         * tests/unistr/test-u32-strcmp.c: New file.
3763         * tests/unistr/test-u32-strcmp.h: New file.
3764
3765         Tests for module 'unistr/u16-strcmp'.
3766         * modules/unistr/u16-strcmp-tests: New file.
3767         * tests/unistr/test-u16-strcmp.c: New file.
3768         * tests/unistr/test-u16-strcmp.h: New file.
3769
3770         Tests for module 'unistr/u8-strcmp'.
3771         * modules/unistr/u8-strcmp-tests: New file.
3772         * tests/unistr/test-u8-strcmp.c: New file.
3773         * tests/unistr/test-u8-strcmp.h: New file.
3774         * tests/unistr/test-strcmp.h: New file.
3775
3776         Tests for module 'unistr/u32-strncat'.
3777         * modules/unistr/u32-strncat-tests: New file.
3778         * tests/unistr/test-u32-strncat.c: New file.
3779
3780         Tests for module 'unistr/u16-strncat'.
3781         * modules/unistr/u16-strncat-tests: New file.
3782         * tests/unistr/test-u16-strncat.c: New file.
3783
3784         Tests for module 'unistr/u8-strncat'.
3785         * modules/unistr/u8-strncat-tests: New file.
3786         * tests/unistr/test-u8-strncat.c: New file.
3787         * tests/unistr/test-strncat.h: New file.
3788
3789         Tests for module 'unistr/u32-strcat'.
3790         * modules/unistr/u32-strcat-tests: New file.
3791         * tests/unistr/test-u32-strcat.c: New file.
3792
3793         Tests for module 'unistr/u16-strcat'.
3794         * modules/unistr/u16-strcat-tests: New file.
3795         * tests/unistr/test-u16-strcat.c: New file.
3796
3797         Tests for module 'unistr/u8-strcat'.
3798         * modules/unistr/u8-strcat-tests: New file.
3799         * tests/unistr/test-u8-strcat.c: New file.
3800         * tests/unistr/test-strcat.h: New file.
3801
3802         Tests for module 'unistr/u32-stpncpy'.
3803         * modules/unistr/u32-stpncpy-tests: New file.
3804         * tests/unistr/test-u32-stpncpy.c: New file.
3805
3806         Tests for module 'unistr/u16-stpncpy'.
3807         * modules/unistr/u16-stpncpy-tests: New file.
3808         * tests/unistr/test-u16-stpncpy.c: New file.
3809
3810         Tests for module 'unistr/u8-stpncpy'.
3811         * modules/unistr/u8-stpncpy-tests: New file.
3812         * tests/unistr/test-u8-stpncpy.c: New file.
3813         * tests/unistr/test-stpncpy.h: New file.
3814
3815         Tests for module 'unistr/u32-strncpy'.
3816         * modules/unistr/u32-strncpy-tests: New file.
3817         * tests/unistr/test-u32-strncpy.c: New file.
3818
3819         Tests for module 'unistr/u16-strncpy'.
3820         * modules/unistr/u16-strncpy-tests: New file.
3821         * tests/unistr/test-u16-strncpy.c: New file.
3822
3823         Tests for module 'unistr/u8-strncpy'.
3824         * modules/unistr/u8-strncpy-tests: New file.
3825         * tests/unistr/test-u8-strncpy.c: New file.
3826         * tests/unistr/test-strncpy.h: New file.
3827
3828         Tests for module 'unistr/u32-stpcpy'.
3829         * modules/unistr/u32-stpcpy-tests: New file.
3830         * tests/unistr/test-u32-stpcpy.c: New file.
3831
3832         Tests for module 'unistr/u16-stpcpy'.
3833         * modules/unistr/u16-stpcpy-tests: New file.
3834         * tests/unistr/test-u16-stpcpy.c: New file.
3835
3836         Tests for module 'unistr/u8-stpcpy'.
3837         * modules/unistr/u8-stpcpy-tests: New file.
3838         * tests/unistr/test-u8-stpcpy.c: New file.
3839         * tests/unistr/test-stpcpy.h: New file.
3840
3841         Tests for module 'unistr/u32-strcpy'.
3842         * modules/unistr/u32-strcpy-tests: New file.
3843         * tests/unistr/test-u32-strcpy.c: New file.
3844
3845         Tests for module 'unistr/u16-strcpy'.
3846         * modules/unistr/u16-strcpy-tests: New file.
3847         * tests/unistr/test-u16-strcpy.c: New file.
3848
3849         Tests for module 'unistr/u8-strcpy'.
3850         * modules/unistr/u8-strcpy-tests: New file.
3851         * tests/unistr/test-u8-strcpy.c: New file.
3852         * tests/unistr/test-strcpy.h: New file.
3853
3854         Tests for module 'unistr/u32-strnlen'.
3855         * modules/unistr/u32-strnlen-tests: New file.
3856         * tests/unistr/test-u32-strnlen.c: New file.
3857
3858         Tests for module 'unistr/u16-strnlen'.
3859         * modules/unistr/u16-strnlen-tests: New file.
3860         * tests/unistr/test-u16-strnlen.c: New file.
3861
3862         Tests for module 'unistr/u8-strnlen'.
3863         * modules/unistr/u8-strnlen-tests: New file.
3864         * tests/unistr/test-u8-strnlen.c: New file.
3865         * tests/unistr/test-strnlen.h: New file.
3866
3867         Tests for module 'unistr/u32-strlen'.
3868         * modules/unistr/u32-strlen-tests: New file.
3869         * tests/unistr/test-u32-strlen.c: New file.
3870
3871         Tests for module 'unistr/u16-strlen'.
3872         * modules/unistr/u16-strlen-tests: New file.
3873         * tests/unistr/test-u16-strlen.c: New file.
3874
3875         Tests for module 'unistr/u8-strlen'.
3876         * modules/unistr/u8-strlen-tests: New file.
3877         * tests/unistr/test-u8-strlen.c: New file.
3878
3879         Tests for module 'unistr/u32-prev'.
3880         * modules/unistr/u32-prev-tests: New file.
3881         * tests/unistr/test-u32-prev.c: New file.
3882
3883         Tests for module 'unistr/u16-prev'.
3884         * modules/unistr/u16-prev-tests: New file.
3885         * tests/unistr/test-u16-prev.c: New file.
3886
3887         Tests for module 'unistr/u8-prev'.
3888         * modules/unistr/u8-prev-tests: New file.
3889         * tests/unistr/test-u8-prev.c: New file.
3890
3891         Tests for module 'unistr/u32-next'.
3892         * modules/unistr/u32-next-tests: New file.
3893         * tests/unistr/test-u32-next.c: New file.
3894
3895         Tests for module 'unistr/u16-next'.
3896         * modules/unistr/u16-next-tests: New file.
3897         * tests/unistr/test-u16-next.c: New file.
3898
3899         Tests for module 'unistr/u8-next'.
3900         * modules/unistr/u8-next-tests: New file.
3901         * tests/unistr/test-u8-next.c: New file.
3902
3903         Tests for module 'unistr/u32-strmbtouc'.
3904         * modules/unistr/u32-strmbtouc-tests: New file.
3905         * tests/unistr/test-u32-strmbtouc.c: New file.
3906
3907         Tests for module 'unistr/u16-strmbtouc'.
3908         * modules/unistr/u16-strmbtouc-tests: New file.
3909         * tests/unistr/test-u16-strmbtouc.c: New file.
3910
3911         Tests for module 'unistr/u8-strmbtouc'.
3912         * modules/unistr/u8-strmbtouc-tests: New file.
3913         * tests/unistr/test-u8-strmbtouc.c: New file.
3914
3915         Tests for module 'unistr/u32-strmblen'.
3916         * modules/unistr/u32-strmblen-tests: New file.
3917         * tests/unistr/test-u32-strmblen.c: New file.
3918
3919         Tests for module 'unistr/u16-strmblen'.
3920         * modules/unistr/u16-strmblen-tests: New file.
3921         * tests/unistr/test-u16-strmblen.c: New file.
3922
3923         Tests for module 'unistr/u8-strmblen'.
3924         * modules/unistr/u8-strmblen-tests: New file.
3925         * tests/unistr/test-u8-strmblen.c: New file.
3926
3927         Tests for module 'unistr/u32-cpy-alloc'.
3928         * modules/unistr/u32-cpy-alloc-tests: New file.
3929         * tests/unistr/test-u32-cpy-alloc.c: New file.
3930
3931         Tests for module 'unistr/u16-cpy-alloc'.
3932         * modules/unistr/u16-cpy-alloc-tests: New file.
3933         * tests/unistr/test-u16-cpy-alloc.c: New file.
3934
3935         Tests for module 'unistr/u8-cpy-alloc'.
3936         * modules/unistr/u8-cpy-alloc-tests: New file.
3937         * tests/unistr/test-u8-cpy-alloc.c: New file.
3938         * tests/unistr/test-cpy-alloc.h: New file.
3939
3940         Tests for module 'unistr/u32-mbsnlen'.
3941         * modules/unistr/u32-mbsnlen-tests: New file.
3942         * tests/unistr/test-u32-mbsnlen.c: New file.
3943
3944         Tests for module 'unistr/u16-mbsnlen'.
3945         * modules/unistr/u16-mbsnlen-tests: New file.
3946         * tests/unistr/test-u16-mbsnlen.c: New file.
3947
3948         Tests for module 'unistr/u8-mbsnlen'.
3949         * modules/unistr/u8-mbsnlen-tests: New file.
3950         * tests/unistr/test-u8-mbsnlen.c: New file.
3951
3952         Tests for module 'unistr/u32-chr'.
3953         * modules/unistr/u32-chr-tests: New file.
3954         * tests/unistr/test-u32-chr.c: New file.
3955
3956         Tests for module 'unistr/u16-chr'.
3957         * modules/unistr/u16-chr-tests: New file.
3958         * tests/unistr/test-u16-chr.c: New file.
3959
3960         Tests for module 'unistr/u8-chr'.
3961         * modules/unistr/u8-chr-tests: New file.
3962         * tests/unistr/test-u8-chr.c: New file.
3963         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3964
3965         Tests for module 'unistr/u32-cmp2'.
3966         * modules/unistr/u32-cmp2-tests: New file.
3967         * tests/unistr/test-u32-cmp2.c: New file.
3968
3969         Tests for module 'unistr/u16-cmp2'.
3970         * modules/unistr/u16-cmp2-tests: New file.
3971         * tests/unistr/test-u16-cmp2.c: New file.
3972
3973         Tests for module 'unistr/u8-cmp2'.
3974         * modules/unistr/u8-cmp2-tests: New file.
3975         * tests/unistr/test-u8-cmp2.c: New file.
3976         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3977
3978         Tests for module 'unistr/u32-cmp'.
3979         * modules/unistr/u32-cmp-tests: New file.
3980         * tests/unistr/test-u32-cmp.c: New file.
3981
3982         Tests for module 'unistr/u16-cmp'.
3983         * modules/unistr/u16-cmp-tests: New file.
3984         * tests/unistr/test-u16-cmp.c: New file.
3985
3986         Tests for module 'unistr/u8-cmp'.
3987         * modules/unistr/u8-cmp-tests: New file.
3988         * tests/unistr/test-u8-cmp.c: New file.
3989         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3990
3991         Tests for module 'unistr/u32-set'.
3992         * modules/unistr/u32-set-tests: New file.
3993         * tests/unistr/test-u32-set.c: New file.
3994
3995         Tests for module 'unistr/u16-set'.
3996         * modules/unistr/u16-set-tests: New file.
3997         * tests/unistr/test-u16-set.c: New file.
3998
3999         Tests for module 'unistr/u8-set'.
4000         * modules/unistr/u8-set-tests: New file.
4001         * tests/unistr/test-u8-set.c: New file.
4002         * tests/unistr/test-set.h: New file.
4003
4004         Tests for module 'unistr/u32-move'.
4005         * modules/unistr/u32-move-tests: New file.
4006         * tests/unistr/test-u32-move.c: New file.
4007
4008         Tests for module 'unistr/u16-move'.
4009         * modules/unistr/u16-move-tests: New file.
4010         * tests/unistr/test-u16-move.c: New file.
4011
4012         Tests for module 'unistr/u8-move'.
4013         * modules/unistr/u8-move-tests: New file.
4014         * tests/unistr/test-u8-move.c: New file.
4015         * tests/unistr/test-move.h: New file.
4016
4017         Tests for module 'unistr/u32-cpy'.
4018         * modules/unistr/u32-cpy-tests: New file.
4019         * tests/unistr/test-u32-cpy.c: New file.
4020
4021         Tests for module 'unistr/u16-cpy'.
4022         * modules/unistr/u16-cpy-tests: New file.
4023         * tests/unistr/test-u16-cpy.c: New file.
4024
4025         Tests for module 'unistr/u8-cpy'.
4026         * modules/unistr/u8-cpy-tests: New file.
4027         * tests/unistr/test-u8-cpy.c: New file.
4028         * tests/unistr/test-cpy.h: New file.
4029
4030 2010-01-09  Bruno Haible  <bruno@clisp.org>
4031
4032         Tests for module 'unistr/u32-uctomb'.
4033         * modules/unistr/u32-uctomb-tests: New file.
4034         * tests/unistr/test-u32-uctomb.c: New file.
4035
4036         Tests for module 'unistr/u16-uctomb'.
4037         * modules/unistr/u16-uctomb-tests: New file.
4038         * tests/unistr/test-u16-uctomb.c: New file.
4039
4040         Tests for module 'unistr/u8-uctomb'.
4041         * modules/unistr/u8-uctomb-tests: New file.
4042         * tests/unistr/test-u8-uctomb.c: New file.
4043
4044         Tests for module 'unistr/u32-mbtoucr'.
4045         * modules/unistr/u32-mbtoucr-tests: New file.
4046         * tests/unistr/test-u32-mbtoucr.c: New file.
4047
4048         Tests for module 'unistr/u16-mbtoucr'.
4049         * modules/unistr/u16-mbtoucr-tests: New file.
4050         * tests/unistr/test-u16-mbtoucr.c: New file.
4051
4052         Tests for module 'unistr/u8-mbtoucr'.
4053         * modules/unistr/u8-mbtoucr-tests: New file.
4054         * tests/unistr/test-u8-mbtoucr.c: New file.
4055
4056         Tests for module 'unistr/u32-mbtouc'.
4057         * modules/unistr/u32-mbtouc-tests: New file.
4058         * tests/unistr/test-u32-mbtouc.c: New file.
4059
4060         Tests for module 'unistr/u16-mbtouc'.
4061         * modules/unistr/u16-mbtouc-tests: New file.
4062         * tests/unistr/test-u16-mbtouc.c: New file.
4063
4064         Tests for module 'unistr/u8-mbtouc'.
4065         * modules/unistr/u8-mbtouc-tests: New file.
4066         * tests/unistr/test-u8-mbtouc.c: New file.
4067
4068         Tests for module 'unistr/u32-mbtouc-unsafe'.
4069         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4070         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4071         * tests/unistr/test-u32-mbtouc.h: New file.
4072
4073         Tests for module 'unistr/u16-mbtouc-unsafe'.
4074         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4075         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4076         * tests/unistr/test-u16-mbtouc.h: New file.
4077
4078         Tests for module 'unistr/u8-mbtouc-unsafe'.
4079         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4080         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4081         * tests/unistr/test-u8-mbtouc.h: New file.
4082
4083         Tests for module 'unistr/u32-mblen'.
4084         * modules/unistr/u32-mblen-tests: New file.
4085         * tests/unistr/test-u32-mblen.c: New file.
4086
4087         Tests for module 'unistr/u16-mblen'.
4088         * modules/unistr/u16-mblen-tests: New file.
4089         * tests/unistr/test-u16-mblen.c: New file.
4090
4091         Tests for module 'unistr/u8-mblen'.
4092         * modules/unistr/u8-mblen-tests: New file.
4093         * tests/unistr/test-u8-mblen.c: New file.
4094
4095         Tests for module 'unistr/u32-to-u16'.
4096         * modules/unistr/u32-to-u16-tests: New file.
4097         * tests/unistr/test-u32-to-u16.c: New file.
4098
4099         Tests for module 'unistr/u32-to-u8'.
4100         * modules/unistr/u32-to-u8-tests: New file.
4101         * tests/unistr/test-u32-to-u8.c: New file.
4102
4103         Tests for module 'unistr/u16-to-u32'.
4104         * modules/unistr/u16-to-u32-tests: New file.
4105         * tests/unistr/test-u16-to-u32.c: New file.
4106
4107         Tests for module 'unistr/u16-to-u8'.
4108         * modules/unistr/u16-to-u8-tests: New file.
4109         * tests/unistr/test-u16-to-u8.c: New file.
4110
4111         Tests for module 'unistr/u8-to-u32'.
4112         * modules/unistr/u8-to-u32-tests: New file.
4113         * tests/unistr/test-u8-to-u32.c: New file.
4114
4115         Tests for module 'unistr/u8-to-u16'.
4116         * modules/unistr/u8-to-u16-tests: New file.
4117         * tests/unistr/test-u8-to-u16.c: New file.
4118
4119         Tests for module 'unistr/u32-check'.
4120         * modules/unistr/u32-check-tests: New file.
4121         * tests/unistr/test-u32-check.c: New file.
4122
4123         Tests for module 'unistr/u16-check'.
4124         * modules/unistr/u16-check-tests: New file.
4125         * tests/unistr/test-u16-check.c: New file.
4126
4127         Tests for module 'unistr/u8-check'.
4128         * modules/unistr/u8-check-tests: New file.
4129         * tests/unistr/test-u8-check.c: New file.
4130
4131         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4132         (category_equals): New function.
4133         (main): Add more tests.
4134         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4135
4136         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4137
4138 2010-01-10  Bruno Haible  <bruno@clisp.org>
4139
4140         unistr/u*-strcoll: Try harder to distinguish different strings.
4141         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4142         compare s1 and s2 to see if they are different.
4143
4144 2010-01-10  Bruno Haible  <bruno@clisp.org>
4145
4146         unistr/u*-stpncpy: Fix the return value.
4147         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4148         description of the return value consistent with stpncpy in glibc.
4149         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4150         written non-NUL unit.
4151
4152 2010-01-10  Bruno Haible  <bruno@clisp.org>
4153
4154         unistr/u*-next: Add missing dependencies.
4155         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4156         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4157         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4158
4159 2010-01-10  Bruno Haible  <bruno@clisp.org>
4160
4161         unistr/u8-mbsnlen: Fix return value for incomplete character.
4162         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4163         u8_mblen.
4164         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4165         Remove unistr/u8-mblen.
4166         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4167         u16_mblen.
4168         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4169         Remove unistr/u16-mblen.
4170
4171 2010-01-10  Bruno Haible  <bruno@clisp.org>
4172
4173         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4174         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4175         Reported by Brian Gough <bjg@gnu.org> and
4176         Chris Clayton <chris2553@googlemail.com> via
4177         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4178
4179 2010-01-09  Bruno Haible  <bruno@clisp.org>
4180
4181         unistr/u16-to-u32: Reject invalid input.
4182         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4183         u16_mbtouc.
4184         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4185         Remove unistr/u16-mbtouc.
4186
4187         unistr/u16-to-u8: Reject invalid input.
4188         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4189         u16_mbtouc.
4190         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4191         Remove unistr/u16-mbtouc.
4192
4193         unistr/u8-to-u32: Reject invalid input.
4194         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4195         u8_mbtouc.
4196         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4197         Remove unistr/u8-mbtouc.
4198
4199         unistr/u8-to-u16: Reject invalid input.
4200         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4201         u8_mbtouc.
4202         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4203         Remove unistr/u8-mbtouc.
4204
4205 2010-01-09  Bruno Haible  <bruno@clisp.org>
4206
4207         Tests for module 'getlogin'.
4208         * modules/getlogin-tests: New file.
4209         * tests/test-getlogin.c: New file.
4210
4211         New module 'getlogin'.
4212         * lib/unistd.in.h (getlogin): New declaration.
4213         * lib/getlogin.c: New file.
4214         * m4/getlogin.m4: New file.
4215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4216         HAVE_GETLOGIN.
4217         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4218         HAVE_GETLOGIN.
4219         * modules/getlogin: New file.
4220         * doc/posix-functions/getlogin.texi: Mention the new module.
4221         Reported by John W. Eaton <jwe@gnu.org>.
4222
4223 2010-01-09  Bruno Haible  <bruno@clisp.org>
4224
4225         getlogin_r: Support for native Windows.
4226         * lib/getlogin_r.c: Include <windows.h>
4227         (getlogin_r): Implement for native Windows.
4228         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4229         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4230         via John W. Eaton <jwe@gnu.org>.
4231
4232 2010-01-09  Bruno Haible  <bruno@clisp.org>
4233
4234         getlogin_r: Small fixes.
4235         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4236         succeeds.
4237         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4238         before testing whether getlogin_r is declared. No need to set
4239         HAVE_DECL_GETLOGIN_R to 1.
4240         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4241
4242 2010-01-09  Bruno Haible  <bruno@clisp.org>
4243
4244         * lib/unistd.in.h (getlogin_r): Add comment.
4245
4246 2010-01-09  Bruno Haible  <bruno@clisp.org>
4247
4248         Tests for module 'getlogin_r'.
4249         * modules/getlogin_r-tests: New file.
4250         * tests/test-getlogin_r.c: New file.
4251
4252 2010-01-09  Jim Meyering  <meyering@redhat.com>
4253
4254         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4255         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4256         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4257
4258 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4259
4260         * lib/dup2.c (rpl_dup2): Improve comment.
4261
4262 2010-01-08  Eric Blake  <ebb9@byu.net>
4263
4264         maint.mk: allow packages to add makefile @@ exceptions
4265         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4266         (sc_makefile_check): Rename...
4267         (sc_makefile_at_at_check): ...to this, and use hook.
4268
4269         dup2: work around mingw bug
4270         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4271         Reported by Simon Josefsson.
4272
4273 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4274
4275         glob: Fix C++ compilation.
4276         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4277         C++.
4278
4279 2010-01-07  Bruno Haible  <bruno@clisp.org>
4280
4281         Fix indentation of wctype.in.h, broken since 2007-01-06.
4282         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4283
4284 2010-01-07  Bruno Haible  <bruno@clisp.org>
4285
4286         mbslen: Avoid collision with system function.
4287         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4288         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4289         * m4/mbslen.m4: New file.
4290         * modules/mbslen (Files): Add it.
4291         (configure.ac): Invoke gl_MBSLEN.
4292         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4293         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4294         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4295         via Ian Beckwith <ianb@erislabs.net>.
4296
4297 2010-01-07  Bruno Haible  <bruno@clisp.org>
4298
4299         dirent: Document the last fix.
4300         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4301
4302 2010-01-07  Bruno Haible  <bruno@clisp.org>
4303
4304         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4305         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4306         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4307         va_list are defined.
4308         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4309         Reported by Eric Blake.
4310
4311 2010-01-07  Bruno Haible  <bruno@clisp.org>
4312
4313         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4314         * modules/xlist (Depends-on): Add 'list',
4315         * modules/xoset (Depends-on): Add 'oset'.
4316         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4317
4318 2010-01-07  Bruno Haible  <bruno@clisp.org>
4319
4320         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4321         * doc/posix-functions/strncasecmp.texi: Likewise.
4322
4323 2010-01-07  Bruno Haible  <bruno@clisp.org>
4324
4325         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4326
4327 2010-01-07  John W. Eaton  <jwe@octave.org>
4328
4329         wctype: allow C++ use
4330         * lib/wctype.in.h: Add extern "C" block for C++.
4331
4332 2010-01-06  Eric Blake  <ebb9@byu.net>
4333
4334         maint.mk: detect incorrect GFDL usage
4335         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4336
4337 2010-01-06  Jim Meyering  <meyering@redhat.com>
4338         and Eric Blake  <ebb9@byu.net>
4339
4340         maint.mk: ignore multi-line copyright in NEWS
4341         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4342
4343 2010-01-06  Eric Blake  <ebb9@byu.net>
4344
4345         select: add missing dependency
4346         * modules/select-tests (Depends-on): Move sockets dependency...
4347         * modules/select (Depends-on): ...here.
4348         Reported by Ian Beckwith.
4349
4350         doc: regenerate INSTALL
4351         * doc/INSTALL: Reflect recent autoconf update.
4352         * doc/INSTALL.ISO: Likewise.
4353         * doc/INSTALL.UTF-8: Likewise.
4354
4355         pread: fix compilation on glibc
4356         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4357         Reported by Ralf Wildenhues.
4358
4359         dirent: fix test failure
4360         * lib/dirent.in.h (includes): Guarantee ino_t.
4361         Reported by Ralf Wildenhues.
4362
4363 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4364
4365         linkat, renameat: avoid bad free
4366         * lib/at-func2.c (at_func2): Fix typo.
4367         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4368
4369 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4370
4371         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4372         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4373         to avoid failure of symlink test later.
4374
4375 2010-01-06  Eric Blake  <ebb9@byu.net>
4376
4377         stdio, unistd: guarantee ssize_t
4378         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4379         2008 are exposed when needed.
4380         * lib/stdio.in.h (includes): Likewise.
4381         Reported by Ralf Wildenhues.
4382
4383 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4384
4385         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4386         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4387         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4388
4389 2010-01-06  Jim Meyering  <meyering@redhat.com>
4390
4391         readtokens: this module *does* require xalloc.h
4392         It uses only functions that were omitted by the old syntax-check rule.
4393         * lib/readtokens.c: Include "xalloc.h" once again.
4394         * modules/readtokens (Depends-on): Add xalloc.
4395         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4396
4397 2010-01-05  Eric Blake  <ebb9@byu.net>
4398
4399         maint: support 'make announcement' from a VPATH build
4400         * top/maint.mk (announcement): Look for correct NEWS file.
4401
4402 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4403
4404         utimens (fdutimens): ignore a negative FD, per contract
4405         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4406         when we have a valid file descriptor.  Otherwise, using a brand
4407         new glibc (with just-patched futimens that now fails with EBADF)
4408         would cause this function to fail with ENOSYS.
4409         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4410         See also http://bugzilla.redhat.com/552320.
4411
4412 2010-01-05  Eric Blake  <ebb9@byu.net>
4413
4414         strcase: document what it provides
4415         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4416         gnulib module.
4417         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4418         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4419
4420 2010-01-05  Jim Meyering  <meyering@redhat.com>
4421
4422         maint: remove useless inclusions of "xalloc.h"
4423         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4424         * lib/readtokens.c: Likewise.
4425         * lib/same.c: Likewise.
4426         * modules/getloadavg (Depends-on): Remove xalloc.
4427         * modules/readtokens: Likewise.
4428         * modules/same: Likewise.
4429
4430         maint.mk: include 4 more function names in alloca.h-checking regexp
4431         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4432         regexp.  Before, we would give a false-positive (saying alloca.h
4433         is included unnecessarily) when the only uses involved omitted symbols.
4434
4435         xalloc.h: use consistent formatting
4436         * lib/xalloc.h: Move declarations to start in the first column.
4437
4438 2010-01-05  Eric Blake  <ebb9@byu.net>
4439
4440         mkdir: avoid xalloc
4441         * lib/mkdir.c (includes): Drop unused header.
4442         Reported by John W. Eaton.
4443
4444 2010-01-04  Jim Meyering  <meyering@redhat.com>
4445
4446         nl_langinfo: avoid configure-time syntax error
4447         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4448         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4449         the empty string.  Don't let that provoke a shell syntax error.
4450
4451         regcomp, regexec, fnmatch: avoid array bounds read error
4452         * lib/regcomp.c (build_equiv_class): From glibc:
4453         Use only the low 24 bits of a findidx return value as an index
4454         into the weights array.  Patch by Ulrich Drepper:
4455         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4456         * lib/regexec.c (check_node_accept_bytes): Likewise.
4457         * lib/fnmatch_loop.c (FCT): Likewise.
4458
4459         regcomp: skip collseq lookup when there are no rules
4460         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4461         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4462
4463         regcomp: recognize ill-formed { } expressions
4464         * lib/regcomp.c (parse_dup_op): From glibc:
4465         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4466
4467         regcomp: fix typo in comment
4468         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4469         s/satisfy/satisfies/.
4470
4471         regcomp: sync from glibc: remove dead store
4472         * lib/regcomp.c (duplicate_node_closure): Remove useless
4473         search_duplicated_node call and dead store.
4474
4475         regcomp: sync from glibc; always use nl_langinfo
4476         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4477         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4478         * modules/regex (Depends-on): Add nl_langinfo.
4479
4480 2010-01-04  Eric Blake  <ebb9@byu.net>
4481
4482         fdopendir: fix configure test
4483         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4484
4485 2010-01-01  Bruno Haible  <bruno@clisp.org>
4486
4487         wchar: Remove unused configure check.
4488         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4489
4490 2010-01-01  Eric Blake  <ebb9@byu.net>
4491
4492         headers: make check of system header explicit
4493         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4494         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4495         ourselves.
4496         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4497         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4498         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4499         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4500         internals.
4501         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4502         missing.
4503         Suggested by Bruno Haible.
4504
4505 2010-01-01  Jim Meyering  <meyering@redhat.com>
4506
4507         ChangeLog: tweak to eliminate unnecessary copyright line
4508         * ChangeLog: Remove a copyright line that was mistakenly updated
4509         by today's update-copyright run.  Reported by Eric Blake.
4510
4511         test-update-copyright: don't let envvar setting cause test failure
4512         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4513
4514 2010-01-01  Bruno Haible  <bruno@clisp.org>
4515
4516         localename: Avoid gcc warning.
4517         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4518         function if it is not used.
4519
4520 2010-01-01  Jim Meyering  <meyering@redhat.com>
4521
4522         update nearly all FSF copyright year lists to include 2010
4523         Use the same procedure as for 2009, outlined in
4524         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4525
4526         version-etc: set COPYRIGHT_YEAR to 2010
4527         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4528
4529 2009-12-31  Eric Blake  <ebb9@byu.net>
4530
4531         doc: correct availability of cygwin 1.5.x getopt
4532         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4533         variables.
4534         * doc/posix-functions/opterr.texi (opterr): Likewise.
4535         * doc/posix-functions/optind.texi (optind): Likewise.
4536         * doc/posix-functions/optopt.texi (optopt): Likewise.
4537         * doc/posix-functions/tzname.texi (tzname): Likewise.
4538
4539         openat: update maintainer
4540         * modules/openat (Maintainer): Add myself.
4541
4542         utimens: avoid shadowing warning
4543         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4544         buffers into one, to avoid shadowing, as well as avoiding a
4545         redundant stat.
4546         Reported by Jim Meyering.
4547
4548         test-dup2: avoid compiler warning
4549         * tests/test-dup2.c (is_inheritable): Only define if used.
4550
4551 2010-01-01  Bruno Haible  <bruno@clisp.org>
4552
4553         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4554         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4555         defined, use wctomb instead of wcrtomb.
4556
4557 2010-01-01  Bruno Haible  <bruno@clisp.org>
4558
4559         iconv: Reject native Solaris iconv.
4560         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4561         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4562
4563 2009-12-31  Bruno Haible  <bruno@clisp.org>
4564
4565         * tests/test-signal.c (main): Remove test of 'SIG'.
4566
4567 2009-12-31  Bruno Haible  <bruno@clisp.org>
4568
4569         spawn: Fix incomplete fix.
4570         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4571         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4572         warnings for GNULIB_POSIXCHECK again.
4573         Reported by Eric Blake.
4574
4575 2009-12-31  Bruno Haible  <bruno@clisp.org>
4576
4577         Avoid namespace pollution on glibc systems.
4578         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4579         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4580         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4581         glibc systems.
4582
4583 2009-12-31  Bruno Haible  <bruno@clisp.org>
4584
4585         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4586         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4587         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4588         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4589         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4590         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4591         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4592
4593 2009-12-31  Bruno Haible  <bruno@clisp.org>
4594
4595         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4596         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4597         afterwards.
4598
4599 2009-12-31  Bruno Haible  <bruno@clisp.org>
4600
4601         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4602         SYS_UTSNAME_H.
4603
4604 2009-12-31  Bruno Haible  <bruno@clisp.org>
4605
4606         spawn: Fix misapplied patch.
4607         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4608         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4609         warnings for GNULIB_POSIXCHECK.
4610
4611 2009-12-31  Bruno Haible  <bruno@clisp.org>
4612
4613         times: Update after sys_times changed.
4614         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4615         * modules/times (Files): Add it.
4616         (configure.ac): Invoke gl_FUNC_TIMES.
4617
4618 2009-12-31  Bruno Haible  <bruno@clisp.org>
4619
4620         Use AC_C_INLINE where necessary.
4621         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4622         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4623         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4624         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4625         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4626         * m4/mbiter.m4 (gl_MBITER): Likewise.
4627         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4628         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4629         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4630         * modules/u64 (configure.ac): Likewise.
4631
4632 2009-12-31  Bruno Haible  <bruno@clisp.org>
4633
4634         Use AC_C_INLINE instead of module 'inline' where possible.
4635         * modules/inline (Description): Clarify purpose.
4636         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4637         * modules/count-one-bits (Depends-on): Remove inline.
4638         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4639         * modules/openat (Depends-on): Remove inline.
4640         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4641         instead of depending on module 'inline'.
4642         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4643         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4644         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4645         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4646         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4647         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4648         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4649         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4650         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4651         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4652         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4653         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4654         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4655         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4656         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4657         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4658         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4659         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4660         Likewise.
4661         * modules/unictype/property-ascii-hex-digit (Depends-on,
4662         configure.ac): Likewise.
4663         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4664         configure.ac): Likewise.
4665         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4666         configure.ac): Likewise.
4667         * modules/unictype/property-bidi-block-separator (Depends-on,
4668         configure.ac): Likewise.
4669         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4670         configure.ac): Likewise.
4671         * modules/unictype/property-bidi-common-separator (Depends-on,
4672         configure.ac): Likewise.
4673         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4674         Likewise.
4675         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4676         configure.ac): Likewise.
4677         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4678         configure.ac): Likewise.
4679         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4680         configure.ac): Likewise.
4681         * modules/unictype/property-bidi-european-digit (Depends-on,
4682         configure.ac): Likewise.
4683         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4684         configure.ac): Likewise.
4685         * modules/unictype/property-bidi-left-to-right (Depends-on,
4686         configure.ac): Likewise.
4687         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4688         configure.ac): Likewise.
4689         * modules/unictype/property-bidi-other-neutral (Depends-on,
4690         configure.ac): Likewise.
4691         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4692         Likewise.
4693         * modules/unictype/property-bidi-segment-separator (Depends-on,
4694         configure.ac): Likewise.
4695         * modules/unictype/property-bidi-whitespace (Depends-on,
4696         configure.ac): Likewise.
4697         * modules/unictype/property-combining (Depends-on, configure.ac):
4698         Likewise.
4699         * modules/unictype/property-composite (Depends-on, configure.ac):
4700         Likewise.
4701         * modules/unictype/property-currency-symbol (Depends-on,
4702         configure.ac): Likewise.
4703         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4704         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4705         Likewise.
4706         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4707         configure.ac): Likewise.
4708         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4709         Likewise.
4710         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4711         Likewise.
4712         * modules/unictype/property-extender (Depends-on, configure.ac):
4713         Likewise.
4714         * modules/unictype/property-format-control (Depends-on, configure.ac):
4715         Likewise.
4716         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4717         Likewise.
4718         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4719         Likewise.
4720         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4721         Likewise.
4722         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4723         Likewise.
4724         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4725         Likewise.
4726         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4727         Likewise.
4728         * modules/unictype/property-id-start (Depends-on, configure.ac):
4729         Likewise.
4730         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4731         Likewise.
4732         * modules/unictype/property-ids-binary-operator (Depends-on,
4733         configure.ac): Likewise.
4734         * modules/unictype/property-ids-trinary-operator (Depends-on,
4735         configure.ac): Likewise.
4736         * modules/unictype/property-ignorable-control (Depends-on,
4737         configure.ac): Likewise.
4738         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4739         Likewise.
4740         * modules/unictype/property-join-control (Depends-on, configure.ac):
4741         Likewise.
4742         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4743         Likewise.
4744         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4745         Likewise.
4746         * modules/unictype/property-logical-order-exception (Depends-on,
4747         configure.ac): Likewise.
4748         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4749         Likewise.
4750         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4751         * modules/unictype/property-non-break (Depends-on, configure.ac):
4752         Likewise.
4753         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4754         Likewise.
4755         * modules/unictype/property-numeric (Depends-on, configure.ac):
4756         Likewise.
4757         * modules/unictype/property-other-alphabetic (Depends-on,
4758         configure.ac): Likewise.
4759         * modules/unictype/property-other-default-ignorable-code-point
4760         (Depends-on, configure.ac): Likewise.
4761         * modules/unictype/property-other-grapheme-extend (Depends-on,
4762         configure.ac): Likewise.
4763         * modules/unictype/property-other-id-continue (Depends-on,
4764         configure.ac): Likewise.
4765         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4766         Likewise.
4767         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4768         Likewise.
4769         * modules/unictype/property-other-math (Depends-on, configure.ac):
4770         Likewise.
4771         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4772         Likewise.
4773         * modules/unictype/property-paired-punctuation (Depends-on,
4774         configure.ac): Likewise.
4775         * modules/unictype/property-paragraph-separator (Depends-on,
4776         configure.ac): Likewise.
4777         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4778         Likewise.
4779         * modules/unictype/property-pattern-white-space (Depends-on,
4780         configure.ac): Likewise.
4781         * modules/unictype/property-private-use (Depends-on, configure.ac):
4782         Likewise.
4783         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4784         Likewise.
4785         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4786         Likewise.
4787         * modules/unictype/property-radical (Depends-on, configure.ac):
4788         Likewise.
4789         * modules/unictype/property-sentence-terminal (Depends-on,
4790         configure.ac): Likewise.
4791         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4792         Likewise.
4793         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4794         * modules/unictype/property-terminal-punctuation (Depends-on,
4795         configure.ac): Likewise.
4796         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4797         Likewise.
4798         * modules/unictype/property-unassigned-code-value (Depends-on,
4799         configure.ac): Likewise.
4800         * modules/unictype/property-unified-ideograph (Depends-on,
4801         configure.ac): Likewise.
4802         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4803         Likewise.
4804         * modules/unictype/property-variation-selector (Depends-on,
4805         configure.ac): Likewise.
4806         * modules/unictype/property-white-space (Depends-on, configure.ac):
4807         Likewise.
4808         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4809         Likewise.
4810         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4811         Likewise.
4812         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4813         Likewise.
4814         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4815         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4816         Likewise.
4817
4818 2009-12-31  Bruno Haible  <bruno@clisp.org>
4819
4820         Remove unnecessary AC_C_INLINE invocation.
4821         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4822         since 2009-08-21.
4823
4824 2009-12-31  Jim Meyering  <meyering@redhat.com>
4825
4826         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4827         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4828         With this change, we can all remove the gpg_key_ID = ... definition
4829         from our respective cfg.mk files.
4830
4831         maint.mk: create announcement template in ~/, not in /tmp
4832         * top/maint.mk (emit_upload_commands): Adjust.
4833         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4834         Remove temporary file, .ci-msg.
4835
4836 2009-12-31  Eric Blake  <ebb9@byu.net>
4837
4838         link-warning: always build headers with link warnings
4839         * modules/arpa_inet (Makefile.am): Always build replacement
4840         header.
4841         * modules/ctype (Makefile.am): Likewise.
4842         * modules/dirent (Makefile.am): Likewise.
4843         * modules/inttypes (Makefile.am): Likewise.
4844         * modules/langinfo (Makefile.am): Likewise.
4845         * modules/locale (Makefile.am): Likewise.
4846         * modules/spawn (Makefile.am): Likewise.
4847         * modules/sys_file (Makefile.am): Likewise.
4848         * modules/sys_ioctl (Makefile.am): Likewise.
4849         * modules/sys_select (Makefile.am): Likewise.
4850         * modules/sys_socket (Makefile.am): Likewise.
4851         * modules/sys_times (Makefile.am): Likewise.
4852         * modules/sys_utsname (Makefile.am): Likewise.
4853         * modules/sys_wait (Makefile.am): Likewise.
4854         * modules/wchar (Makefile.am): Likewise.
4855         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4856         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4857         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4858         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4859         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4860         Likewise.
4861         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4862         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4863         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4864         Likewise.
4865         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4866         Likewise.
4867         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4868         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4869         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4870         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4871         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4872         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4873         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4874         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4875         (gl_WCHAR_H_DEFAULTS): Likewise.
4876
4877 2009-12-31  Eric Blake  <ebb9@byu.net>
4878
4879         signal, spawn: use link warnings
4880         * lib/signal.in.h (sigset_t): Make unconditional.
4881         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4882         (sigpending, sigprocmask, sigaction): Add link warnings.
4883         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4884         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4885         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4886         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4887         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4888         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4889         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4890         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4891         (posix_spawn_file_actions_destroy)
4892         (posix_spawn_file_actions_addopen)
4893         (posix_spawn_file_actions_addclose)
4894         (posix_spawn_file_actions_adddup2): Likewise.
4895         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4896         * tests/test-signal.c (main): Enhance test.
4897
4898         spawn: improve wrapper support
4899         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4900         (gl_SPAWN_H_DEFAULTS): New defaults.
4901         * modules/spawn (Makefile.am): Substitute them.
4902         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4903         Only declare if missing or broken.
4904
4905         sys_times, sys_utsname: use include_next
4906         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4907         header.
4908         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4909         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4910         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4911         * modules/sys_times (Depends-on): Add include_next.
4912         (Makefile.am): Substitute additional values.
4913         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4914         * lib/sys_times.in.h (includes): Include native header, if
4915         available.
4916         * lib/sys_utsname.in.h (includes): Likewise.
4917         * tests/test-sys_times.c (main): Enhance test.
4918
4919         fdutimensat: revert prior patch
4920         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4921         utimens.h.
4922         Reported by Bruno Haible.
4923
4924 2009-12-30  Eric Blake  <ebb9@byu.net>
4925
4926         sys_wait: drop link-warning dependency
4927         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4928         link-warning efforts.
4929         * lib/sys_wait.in.h: Likewise.
4930
4931         fdutimensat: remove bogus dependency
4932         * modules/fdutimensat (Depends-on): Drop inline.
4933
4934         unistd: fix typo
4935         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4936
4937 2009-12-30  Bruno Haible  <bruno@clisp.org>
4938
4939         Fix compilation error with Solaris cc.
4940         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4941         * lib/unicase/u16-is-invariant.c: Likewise.
4942         * lib/unicase/u32-is-invariant.c: Likewise.
4943         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4944
4945 2009-12-30  Bruno Haible  <bruno@clisp.org>
4946
4947         Fix test crash.
4948         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4949         locales.
4950         Reported by Simon Josefsson <simon@josefsson.org>.
4951
4952 2009-12-30  Bruno Haible  <bruno@clisp.org>
4953
4954         Fix compilation error on most platforms.
4955         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4956         Reported by Simon Josefsson <simon@josefsson.org>
4957         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4958
4959 2009-12-30  Eric Blake  <ebb9@byu.net>
4960
4961         futimens, utimensat: work around ntfs-3g bug
4962         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4963         a ctime bug is present, and expand workaround to cover ntfs-3g.
4964         * lib/utimens.c (fdutimens, lutimens): Likewise.
4965         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4966         (validate_timespec): Adjust return value.
4967         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4968         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4969         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4970
4971 2009-12-29  Eric Blake  <ebb9@byu.net>
4972
4973         link-warning: make usage consistent
4974         * modules/ctype (Depends-on): Add link-warning.
4975         (Makefile.am): Update rules accordingly.
4976         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4977         * modules/locale (Depends-on, Makefile.am): Likewise.
4978         * modules/sys_file (Makefile.am): Likewise.
4979         * modules/getopt-posix (Makefile.am): Delete unused link warning
4980         efforts.
4981         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4982         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4983         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4984         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4985
4986         stdio: remove unused variables
4987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4988         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4989         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4990
4991         tests: test more substitute headers
4992         * modules/ctype-tests: New file.
4993         * modules/dirent-tests: Likewise.
4994         * modules/spawn-tests: Likewise.
4995         * modules/sys_file-tests: Likewise.
4996         * modules/sys_ioctl-tests: Likewise.
4997         * modules/sys_wait-tests: Likewise.
4998         * tests/test-ctype.c: Likewise.
4999         * tests/test-dirent.c: Likewise.
5000         * tests/test-spawn.c: Likewise.
5001         * tests/test-sys_file.c: Likewise.
5002         * tests/test-sys_ioctl.c: Likewise.
5003         * tests/test-sys_wait.c: Likewise.
5004         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
5005         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
5006         whether or not flock is in use.
5007
5008         tests: remove License section from module
5009         * modules/arpa_inet-tests: Remove unneeded section.
5010         * modules/byteswap-tests: Likewise.
5011         * modules/ceilf-tests: Likewise.
5012         * modules/ceill-tests: Likewise.
5013         * modules/crypto/des-tests: Likewise.
5014         * modules/crypto/gc-arcfour-tests: Likewise.
5015         * modules/crypto/gc-arctwo-tests: Likewise.
5016         * modules/crypto/gc-des-tests: Likewise.
5017         * modules/crypto/gc-hmac-md5-tests: Likewise.
5018         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5019         * modules/crypto/gc-md2-tests: Likewise.
5020         * modules/crypto/gc-md4-tests: Likewise.
5021         * modules/crypto/gc-md5-tests: Likewise.
5022         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5023         * modules/crypto/gc-rijndael-tests: Likewise.
5024         * modules/crypto/gc-sha1-tests: Likewise.
5025         * modules/crypto/gc-tests: Likewise.
5026         * modules/crypto/md2-tests: Likewise.
5027         * modules/crypto/md4-tests: Likewise.
5028         * modules/fcntl-h-tests: Likewise.
5029         * modules/floorf-tests: Likewise.
5030         * modules/floorl-tests: Likewise.
5031         * modules/frexp-nolibm-tests: Likewise.
5032         * modules/frexp-tests: Likewise.
5033         * modules/frexpl-nolibm-tests: Likewise.
5034         * modules/frexpl-tests: Likewise.
5035         * modules/getaddrinfo-tests: Likewise.
5036         * modules/inttypes-tests: Likewise.
5037         * modules/isfinite-tests: Likewise.
5038         * modules/isinf-tests: Likewise.
5039         * modules/ldexpl-tests: Likewise.
5040         * modules/locale-tests: Likewise.
5041         * modules/math-tests: Likewise.
5042         * modules/netdb-tests: Likewise.
5043         * modules/netinet_in-tests: Likewise.
5044         * modules/printf-frexp-tests: Likewise.
5045         * modules/printf-frexpl-tests: Likewise.
5046         * modules/priv-set-tests: Likewise.
5047         * modules/random_r-tests: Likewise.
5048         * modules/round-tests: Likewise.
5049         * modules/roundf-tests: Likewise.
5050         * modules/roundl-tests: Likewise.
5051         * modules/search-tests: Likewise.
5052         * modules/select-tests: Likewise.
5053         * modules/signal-tests: Likewise.
5054         * modules/stdbool-tests: Likewise.
5055         * modules/stddef-tests: Likewise.
5056         * modules/stdint-tests: Likewise.
5057         * modules/stdio-tests: Likewise.
5058         * modules/stdlib-tests: Likewise.
5059         * modules/string-tests: Likewise.
5060         * modules/strings-tests: Likewise.
5061         * modules/sys_select-tests: Likewise.
5062         * modules/sys_socket-tests: Likewise.
5063         * modules/sys_stat-tests: Likewise.
5064         * modules/sys_time-tests: Likewise.
5065         * modules/sys_utsname-tests: Likewise.
5066         * modules/sysexits-tests: Likewise.
5067         * modules/time-tests: Likewise.
5068         * modules/trunc-tests: Likewise.
5069         * modules/truncf-tests: Likewise.
5070         * modules/truncl-tests: Likewise.
5071         * modules/tsearch-tests: Likewise.
5072         * modules/unistd-tests: Likewise.
5073         * modules/wchar-tests: Likewise.
5074         * modules/wctype-tests: Likewise.
5075
5076         tests: fix license on several tests
5077         * tests/test-des.c: Update to GPLv3+.
5078         * tests/test-flock.c: Likewise.
5079         * tests/test-fsync.c: Likewise.
5080         * tests/test-futimens.h: Likewise.
5081         * tests/test-gc-arcfour.c: Likewise.
5082         * tests/test-gc-arctwo.c: Likewise.
5083         * tests/test-gc-des.c: Likewise.
5084         * tests/test-gc-hmac-md5.c: Likewise.
5085         * tests/test-gc-hmac-sha1.c: Likewise.
5086         * tests/test-gc-md2.c: Likewise.
5087         * tests/test-gc-md4.c: Likewise.
5088         * tests/test-gc-md5.c: Likewise.
5089         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5090         * tests/test-gc-rijndael.c: Likewise.
5091         * tests/test-gc-sha1.c: Likewise.
5092         * tests/test-gc.c: Likewise.
5093         * tests/test-getcwd.c: Likewise.
5094         * tests/test-link.c: Likewise.
5095         * tests/test-link.h: Likewise.
5096         * tests/test-lutimens.h: Likewise.
5097         * tests/test-md2.c: Likewise.
5098         * tests/test-md4.c: Likewise.
5099         * tests/test-mkdir.h: Likewise.
5100         * tests/test-rename.c: Likewise.
5101         * tests/test-rename.h: Likewise.
5102         * tests/test-safe-alloc.c: Likewise.
5103         * tests/test-utimens-common.h: Likewise.
5104         * tests/test-utimens.h: Likewise.
5105
5106         maint: sync license texts
5107         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5108         * doc/gpl-3.0.texi: Revert copyright year update.
5109         * doc/lgpl-3.0.texi: Likewise.
5110
5111 2009-12-29  Jim Meyering  <meyering@redhat.com>
5112
5113         update nearly all FSF copyright year lists to include 2009
5114         The files named by the following are exempted:
5115             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5116               test -f "$dst" && { echo "$dst"; continue; }
5117               test -d "$dst" || continue
5118               echo "$dst"/$(basename "$src")
5119             done > exempt
5120             git ls-files tests/unictype >> exempt
5121         In the remaining files, convert to all-interval notation if
5122         - there is already at least one year interval like 2000-2003
5123         - the file is maintained by me
5124         - the file is in lib/uni*/, where that style already prevails
5125         Otherwise, use update-copyright's default.
5126
5127 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5128         and Eric Blake  <ebb9@byu.net>
5129
5130         tests: don't require debug system() to pass
5131         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5132         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5133         * tests/test-unlink.h (test_unlink_func): Likewise.
5134         * tests/test-fstatat.c (main): ...into callers.
5135         * tests/test-lstat.c (main): Likewise.
5136         * tests/test-rmdir.c (main): Likewise.
5137         * tests/test-unlink.c (main): Likewise.
5138         * tests/test-unlinkat.c (main): Likewise.
5139         * tests/test-areadlink-with-size.c (main): Don't require a
5140         debug-only system call to pass, aiding cross-testing to mingw.
5141         * tests/test-areadlink.c (main): Likewise.
5142         * tests/test-areadlinkat-with-size.c (main): Likewise.
5143         * tests/test-areadlinkat.c (main): Likewise.
5144         * tests/test-canonicalize-lgpl.c (main): Likewise.
5145         * tests/test-canonicalize.c (main): Likewise.
5146         * tests/test-chown.c (main): Likewise.
5147         * tests/test-fchownat.c (main): Likewise.
5148         * tests/test-lchown.c (main): Likewise.
5149         * tests/test-fdutimensat.c (main): Likewise.
5150         * tests/test-futimens.c (main): Likewise.
5151         * tests/test-link.c (main): Likewise.
5152         * tests/test-linkat.c (main): Likewise.
5153         * tests/test-mkdir.c (main): Likewise.
5154         * tests/test-mkdirat.c (main): Likewise.
5155         * tests/test-mkfifo.c (main): Likewise.
5156         * tests/test-mkfifoat.c (main): Likewise.
5157         * tests/test-mknod.c (main): Likewise.
5158         * tests/test-readlink.c (main): Likewise.
5159         * tests/test-remove.c (main): Likewise.
5160         * tests/test-rename.c (main): Likewise.
5161         * tests/test-renameat.c (main): Likewise.
5162         * tests/test-symlink.c (main): Likewise.
5163         * tests/test-symlinkat.c (main): Likewise.
5164         * tests/test-utimens.c (main): Likewise.
5165         * tests/test-utimensat.c (main): Likewise.
5166
5167 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5168
5169         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5170         on $(UNUSED_PARAMETER_H) to avoid build failure.
5171
5172 2009-12-28  Jim Meyering  <meyering@redhat.com>
5173
5174         update-copyright: you may specify a max. line length other than 72
5175         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5176
5177         maint: use consistent FSF copyright line syntax
5178         * lib/posixtm.c: Add missing comma in FSF copyright line.
5179         * lib/posixtm.h: Likewise.
5180         * lib/getugroups.c: Add missing ", Inc.".
5181
5182         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5183         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5184         FSF copyright line.  Remove trailing blanks.
5185
5186 2009-12-28  Eric Blake  <ebb9@byu.net>
5187
5188         test-dup2: reduce dependencies
5189         * modules/cloexec (Configure.ac): Set witness.
5190         * modules/dup2-tests (Depends-on): Drop cloexec.
5191         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5192         not present.
5193         Suggested by Bruno Haible.
5194
5195 2009-12-26  Bruno Haible  <bruno@clisp.org>
5196
5197         Remove an unneeded dependency.
5198         * modules/fseterr (Depends-on): Remove dup2.
5199
5200 2009-12-26  Eric Blake  <ebb9@byu.net>
5201
5202         tests: use macros.h in more places
5203         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5204         (ASSERT_STREAM): Provide default of stderr.
5205         * tests/test-dirent-safer.c: Include macros.h, using alternate
5206         stream for assertions.
5207         * tests/test-dup-safer.c: Likewise.
5208         * tests/test-freopen-safer.c: Likewise.
5209         * tests/test-getopt.c: Likewise.
5210         * tests/test-openat-safer.c: Likewise.
5211         * tests/test-pipe.c: Likewise.
5212         * tests/test-popen-safer.c: Likewise.
5213         * modules/dirent-safer-tests (Files): Include macros.h.
5214         * modules/unistd-safer-tests (Files): Likewise.
5215         * modules/freopen-safer-tests (Files): Likewise.
5216         * modules/getopt-posix-tests (Files): Likewise.
5217         * modules/openat-safer-tests (Files): Likewise.
5218         * modules/pipe-tests (Files): Likewise.
5219
5220 2009-12-26  Bruno Haible  <bruno@clisp.org>
5221
5222         javacomp: Portability fix.
5223         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5224         that it also works on Solaris.
5225
5226 2009-12-26  Bruno Haible  <bruno@clisp.org>
5227
5228         localename: Fix storage allocation of gl_locale_name_thread's result.
5229         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5230         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5231         all platforms that have 'uselocale'.
5232         (gl_locale_name_thread_unsafe): New function, extracted from
5233         gl_locale_name_thread.
5234         (gl_locale_name_thread): Call struniq on all platforms that have
5235         'uselocale'.
5236         * tests/test-localename.c (test_locale_name_thread): Check that the
5237         resulting strings are permanently allocated.
5238         * modules/localename-tests (Depends-on): Add strdup.
5239
5240 2009-12-26  Bruno Haible  <bruno@clisp.org>
5241
5242         * tests/test-localename.c (categories): Fill in the strings.
5243
5244 2009-12-26  Jim Meyering  <meyering@redhat.com>
5245
5246         isdir: complete the removal of m4/isdir.m4
5247         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5248
5249         isdir: clean up, since at least grep still uses it
5250         * lib/isdir.c: Include "isdir.h".
5251         (S_ISDIR): Remove now-unneeded definition.
5252         * modules/isdir (Files): Add lib/isdir.h.
5253         * lib/isdir.h: New file, with declaration.
5254         * m4/isdir.m4: Remove file -- unneeded.
5255
5256 2009-12-25  Bruno Haible  <bruno@clisp.org>
5257
5258         selinux-h: Make generated .h files standalone.
5259         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5260         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5261         * lib/se-selinux.in.h: Likewise.
5262         * modules/selinux-h (Depends-on): Add unused-parameter.
5263         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5264         selinux/selinux.h and selinux/context.h.
5265         Suggested by Eric Blake.
5266
5267 2009-12-25  Bruno Haible  <bruno@clisp.org>
5268
5269         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5270         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5271         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5272         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5273         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5274
5275 2009-12-24  Bruno Haible  <bruno@clisp.org>
5276
5277         openat: Fix warning.
5278         * lib/openat-proc.c: Include <unistd.h>.
5279
5280 2009-12-24  Bruno Haible  <bruno@clisp.org>
5281
5282         New module 'unused-parameter'.
5283         * build-aux/unused-parameter.h: New file, extracted from earlier
5284         gnulib-common.m4.
5285         * modules/unused-parameter: New file.
5286         * lib/unistr.h: Include unused-parameter.h.
5287         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5288         _GL_UNUSED.
5289         * modules/unistr/base (Depends-on): Add unused-parameter.
5290
5291 2009-12-24  Bruno Haible  <bruno@clisp.org>
5292
5293         Add missing dependencies to 'extensions' module.
5294         * m4/extensions.m4: Add comment.
5295         * modules/accept4 (Depends-on): Add extensions.
5296         * modules/dup3 (Depends-on): Likewise.
5297         * modules/fcntl (Depends-on): Likewise.
5298         * modules/futimens (Depends-on): Likewise.
5299         * modules/mknod (Depends-on): Likewise.
5300         * modules/pipe2 (Depends-on): Likewise.
5301         * modules/stat-time (Depends-on): Likewise.
5302         * modules/strcasestr-simple (Depends-on): Likewise.
5303         * modules/strsignal (Depends-on): Likewise.
5304         * modules/utimensat (Depends-on): Likewise.
5305         * modules/localcharset (Depends-on): Likewise. Needed because of
5306         gl_FCNTL_O_FLAGS.
5307         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5308         AC_TYPE_MBSTATE_T.
5309         * modules/wcsnrtombs (Depends-on): Likewise.
5310         * modules/wcsrtombs (Depends-on): Likewise.
5311
5312 2009-12-24  Bruno Haible  <bruno@clisp.org>
5313
5314         binary-io: Avoid gcc warning due to SET_BINARY.
5315         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5316         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5317
5318 2009-12-24  Bruno Haible  <bruno@clisp.org>
5319
5320         Avoid future namespace pollution on glibc systems.
5321         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5322         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5323         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5324         glibc systems.
5325
5326 2009-12-24  Bruno Haible  <bruno@clisp.org>
5327
5328         Refactor common macros used in tests.
5329         * tests/macros.h: New file.
5330         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5331         and/or <stdlib.h>, if appropriate.
5332         (ASSERT, SIZEOF): Remove macros.
5333         * tests/test-areadlink-with-size.c: Likewise.
5334         * tests/test-areadlinkat.c: Likewise.
5335         * tests/test-areadlinkat-with-size.c: Likewise.
5336         * tests/test-argmatch.c: Likewise.
5337         * tests/test-argv-iter.c: Likewise.
5338         * tests/test-array-mergesort.c: Likewise.
5339         * tests/test-array_list.c: Likewise.
5340         * tests/test-array_oset.c: Likewise.
5341         * tests/test-avltree_list.c: Likewise.
5342         * tests/test-avltree_oset.c: Likewise.
5343         * tests/test-avltreehash_list.c: Likewise.
5344         * tests/test-base64.c: Likewise.
5345         * tests/test-binary-io.c: Likewise.
5346         * tests/test-bitrotate.c: Likewise.
5347         * tests/test-btowc.c: Likewise.
5348         * tests/test-byteswap.c: Likewise.
5349         * tests/test-c-ctype.c: Likewise.
5350         * tests/test-c-stack.c: Likewise.
5351         * tests/test-c-strcasecmp.c: Likewise.
5352         * tests/test-c-strcasestr.c: Likewise.
5353         * tests/test-c-strncasecmp.c: Likewise.
5354         * tests/test-c-strstr.c: Likewise.
5355         * tests/test-canonicalize-lgpl.c: Likewise.
5356         * tests/test-canonicalize.c: Likewise.
5357         * tests/test-carray_list.c: Likewise.
5358         * tests/test-ceilf1.c: Likewise.
5359         * tests/test-ceilf2.c: Likewise.
5360         * tests/test-ceill.c: Likewise.
5361         * tests/test-chown.c: Likewise.
5362         * tests/test-cloexec.c: Likewise.
5363         * tests/test-copy-acl.c: Likewise.
5364         * tests/test-copy-file.c: Likewise.
5365         * tests/test-count-one-bits.c: Likewise.
5366         * tests/test-dprintf-posix.c: Likewise.
5367         * tests/test-dup2.c: Likewise.
5368         * tests/test-dup3.c: Likewise.
5369         * tests/test-duplocale.c: Likewise.
5370         * tests/test-fbufmode.c: Likewise.
5371         * tests/test-fchdir.c: Likewise.
5372         * tests/test-fchownat.c: Likewise.
5373         * tests/test-fcntl-safer.c: Likewise.
5374         * tests/test-fcntl.c: Likewise.
5375         * tests/test-fdopendir.c: Likewise.
5376         * tests/test-fdutimensat.c: Likewise.
5377         * tests/test-fflush2.c: Likewise.
5378         * tests/test-file-has-acl.c: Likewise.
5379         * tests/test-filevercmp.c: Likewise.
5380         * tests/test-flock.c: Likewise.
5381         * tests/test-floorf1.c: Likewise.
5382         * tests/test-floorf2.c: Likewise.
5383         * tests/test-floorl.c: Likewise.
5384         * tests/test-fnmatch.c: Likewise.
5385         * tests/test-fopen.h: Likewise.
5386         * tests/test-fpending.c: Likewise.
5387         * tests/test-fprintf-posix.c: Likewise.
5388         * tests/test-fpurge.c: Likewise.
5389         * tests/test-freadable.c: Likewise.
5390         * tests/test-freadahead.c: Likewise.
5391         * tests/test-freading.c: Likewise.
5392         * tests/test-freadptr.c: Likewise.
5393         * tests/test-freadptr2.c: Likewise.
5394         * tests/test-freadseek.c: Likewise.
5395         * tests/test-freopen.c: Likewise.
5396         * tests/test-frexp.c: Likewise.
5397         * tests/test-frexpl.c: Likewise.
5398         * tests/test-fseek.c: Likewise.
5399         * tests/test-fseeko.c: Likewise.
5400         * tests/test-fstatat.c: Likewise.
5401         * tests/test-fstrcmp.c: Likewise.
5402         * tests/test-fsync.c: Likewise.
5403         * tests/test-ftell.c: Likewise.
5404         * tests/test-ftello.c: Likewise.
5405         * tests/test-func.c: Likewise.
5406         * tests/test-futimens.c: Likewise.
5407         * tests/test-fwritable.c: Likewise.
5408         * tests/test-fwriting.c: Likewise.
5409         * tests/test-getcwd.c: Likewise.
5410         * tests/test-getdate.c: Likewise.
5411         * tests/test-getdelim.c: Likewise.
5412         * tests/test-getdtablesize.c: Likewise.
5413         * tests/test-getgroups.c: Likewise.
5414         * tests/test-getline.c: Likewise.
5415         * tests/test-getndelim2.c: Likewise.
5416         * tests/test-glob.c: Likewise.
5417         * tests/test-hash.c: Likewise.
5418         * tests/test-i-ring.c: Likewise.
5419         * tests/test-iconv-utf.c: Likewise.
5420         * tests/test-iconv.c: Likewise.
5421         * tests/test-idpriv-drop.c: Likewise.
5422         * tests/test-idpriv-droptemp.c: Likewise.
5423         * tests/test-inet_ntop.c: Likewise.
5424         * tests/test-inet_pton.c: Likewise.
5425         * tests/test-isblank.c: Likewise.
5426         * tests/test-isfinite.c: Likewise.
5427         * tests/test-isinf.c: Likewise.
5428         * tests/test-isnan.c: Likewise.
5429         * tests/test-isnand.h: Likewise.
5430         * tests/test-isnanf.h: Likewise.
5431         * tests/test-isnanl.h: Likewise.
5432         * tests/test-lchown.c: Likewise.
5433         * tests/test-ldexpl.c: Likewise.
5434         * tests/test-link.c: Likewise.
5435         * tests/test-linkat.c: Likewise.
5436         * tests/test-linked_list.c: Likewise.
5437         * tests/test-linkedhash_list.c: Likewise.
5438         * tests/test-localename.c: Likewise.
5439         * tests/test-lseek.c: Likewise.
5440         * tests/test-lstat.c: Likewise.
5441         * tests/test-mbmemcasecmp.c: Likewise.
5442         * tests/test-mbmemcasecoll.c: Likewise.
5443         * tests/test-mbrtowc.c: Likewise.
5444         * tests/test-mbscasecmp.c: Likewise.
5445         * tests/test-mbscasestr1.c: Likewise.
5446         * tests/test-mbscasestr2.c: Likewise.
5447         * tests/test-mbscasestr3.c: Likewise.
5448         * tests/test-mbscasestr4.c: Likewise.
5449         * tests/test-mbschr.c: Likewise.
5450         * tests/test-mbscspn.c: Likewise.
5451         * tests/test-mbsinit.c: Likewise.
5452         * tests/test-mbsncasecmp.c: Likewise.
5453         * tests/test-mbsnrtowcs.c: Likewise.
5454         * tests/test-mbspbrk.c: Likewise.
5455         * tests/test-mbspcasecmp.c: Likewise.
5456         * tests/test-mbsrchr.c: Likewise.
5457         * tests/test-mbsrtowcs.c: Likewise.
5458         * tests/test-mbsspn.c: Likewise.
5459         * tests/test-mbsstr1.c: Likewise.
5460         * tests/test-mbsstr2.c: Likewise.
5461         * tests/test-mbsstr3.c: Likewise.
5462         * tests/test-memchr.c: Likewise.
5463         * tests/test-memchr2.c: Likewise.
5464         * tests/test-memcmp.c: Likewise.
5465         * tests/test-memmem.c: Likewise.
5466         * tests/test-memrchr.c: Likewise.
5467         * tests/test-mkdir.c: Likewise.
5468         * tests/test-mkdirat.c: Likewise.
5469         * tests/test-mkfifo.c: Likewise.
5470         * tests/test-mkfifoat.c: Likewise.
5471         * tests/test-mknod.c: Likewise.
5472         * tests/test-nanosleep.c: Likewise.
5473         * tests/test-nl_langinfo.c: Likewise.
5474         * tests/test-obstack-printf.c: Likewise.
5475         * tests/test-open.c: Likewise.
5476         * tests/test-openat.c: Likewise.
5477         * tests/test-pipe-filter-gi1.c: Likewise.
5478         * tests/test-pipe-filter-gi2-main.c: Likewise.
5479         * tests/test-pipe-filter-ii1.c: Likewise.
5480         * tests/test-pipe-filter-ii2-main.c: Likewise.
5481         * tests/test-pipe2.c: Likewise.
5482         * tests/test-popen.h: Likewise.
5483         * tests/test-posixtm.c: Likewise.
5484         * tests/test-pread.c: Likewise.
5485         * tests/test-printf-frexp.c: Likewise.
5486         * tests/test-printf-frexpl.c: Likewise.
5487         * tests/test-printf-posix.c: Likewise.
5488         * tests/test-priv-set.c: Likewise.
5489         * tests/test-quotearg.c: Likewise.
5490         * tests/test-random_r.c: Likewise.
5491         * tests/test-rawmemchr.c: Likewise.
5492         * tests/test-rbtree_list.c: Likewise.
5493         * tests/test-rbtree_oset.c: Likewise.
5494         * tests/test-rbtreehash_list.c: Likewise.
5495         * tests/test-readlink.c: Likewise.
5496         * tests/test-remove.c: Likewise.
5497         * tests/test-rename.c: Likewise.
5498         * tests/test-renameat.c: Likewise.
5499         * tests/test-rmdir.c: Likewise.
5500         * tests/test-round1.c: Likewise.
5501         * tests/test-roundf1.c: Likewise.
5502         * tests/test-roundl.c: Likewise.
5503         * tests/test-safe-alloc.c: Likewise.
5504         * tests/test-sameacls.c: Likewise.
5505         * tests/test-set-mode-acl.c: Likewise.
5506         * tests/test-setenv.c: Likewise.
5507         * tests/test-sigaction.c: Likewise.
5508         * tests/test-signbit.c: Likewise.
5509         * tests/test-sleep.c: Likewise.
5510         * tests/test-snprintf-posix.c: Likewise.
5511         * tests/test-snprintf.c: Likewise.
5512         * tests/test-sprintf-posix.c: Likewise.
5513         * tests/test-stat-time.c: Likewise.
5514         * tests/test-stat.c: Likewise.
5515         * tests/test-strcasestr.c: Likewise.
5516         * tests/test-strchrnul.c: Likewise.
5517         * tests/test-strerror.c: Likewise.
5518         * tests/test-striconv.c: Likewise.
5519         * tests/test-striconveh.c: Likewise.
5520         * tests/test-striconveha.c: Likewise.
5521         * tests/test-strsignal.c: Likewise.
5522         * tests/test-strstr.c: Likewise.
5523         * tests/test-strtod.c: Likewise.
5524         * tests/test-strverscmp.c: Likewise.
5525         * tests/test-symlink.c: Likewise.
5526         * tests/test-symlinkat.c: Likewise.
5527         * tests/test-trunc1.c: Likewise.
5528         * tests/test-trunc2.c: Likewise.
5529         * tests/test-truncf1.c: Likewise.
5530         * tests/test-truncf2.c: Likewise.
5531         * tests/test-truncl.c: Likewise.
5532         * tests/test-uname.c: Likewise.
5533         * tests/test-unlink.c: Likewise.
5534         * tests/test-unlinkat.c: Likewise.
5535         * tests/test-unsetenv.c: Likewise.
5536         * tests/test-usleep.c: Likewise.
5537         * tests/test-utimens.c: Likewise.
5538         * tests/test-utimensat.c: Likewise.
5539         * tests/test-vasnprintf-posix.c: Likewise.
5540         * tests/test-vasnprintf-posix2.c: Likewise.
5541         * tests/test-vasnprintf.c: Likewise.
5542         * tests/test-vasprintf-posix.c: Likewise.
5543         * tests/test-vasprintf.c: Likewise.
5544         * tests/test-vdprintf-posix.c: Likewise.
5545         * tests/test-vfprintf-posix.c: Likewise.
5546         * tests/test-vprintf-posix.c: Likewise.
5547         * tests/test-vsnprintf-posix.c: Likewise.
5548         * tests/test-vsnprintf.c: Likewise.
5549         * tests/test-vsprintf-posix.c: Likewise.
5550         * tests/test-wcrtomb.c: Likewise.
5551         * tests/test-wcsnrtombs.c: Likewise.
5552         * tests/test-wcsrtombs.c: Likewise.
5553         * tests/test-wctype.c: Likewise.
5554         * tests/test-wcwidth.c: Likewise.
5555         * tests/test-xfprintf-posix.c: Likewise.
5556         * tests/test-xmemdup0.c: Likewise.
5557         * tests/test-xprintf-posix.c: Likewise.
5558         * tests/test-xvasprintf.c: Likewise.
5559         * tests/unicase/test-locale-language.c: Likewise.
5560         * tests/unicase/test-mapping-part1.h: Likewise.
5561         * tests/unicase/test-predicate-part1.h: Likewise.
5562         * tests/unicase/test-u8-casecmp.c: Likewise.
5563         * tests/unicase/test-u8-casecoll.c: Likewise.
5564         * tests/unicase/test-u8-casefold.c: Likewise.
5565         * tests/unicase/test-u8-is-cased.c: Likewise.
5566         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5567         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5568         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5569         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5570         * tests/unicase/test-u8-tolower.c: Likewise.
5571         * tests/unicase/test-u8-totitle.c: Likewise.
5572         * tests/unicase/test-u8-toupper.c: Likewise.
5573         * tests/unicase/test-u16-casecmp.c: Likewise.
5574         * tests/unicase/test-u16-casecoll.c: Likewise.
5575         * tests/unicase/test-u16-casefold.c: Likewise.
5576         * tests/unicase/test-u16-is-cased.c: Likewise.
5577         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5578         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5579         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5580         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5581         * tests/unicase/test-u16-tolower.c: Likewise.
5582         * tests/unicase/test-u16-totitle.c: Likewise.
5583         * tests/unicase/test-u16-toupper.c: Likewise.
5584         * tests/unicase/test-u32-casecmp.c: Likewise.
5585         * tests/unicase/test-u32-casecoll.c: Likewise.
5586         * tests/unicase/test-u32-casefold.c: Likewise.
5587         * tests/unicase/test-u32-is-cased.c: Likewise.
5588         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5589         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5590         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5591         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5592         * tests/unicase/test-u32-tolower.c: Likewise.
5593         * tests/unicase/test-u32-totitle.c: Likewise.
5594         * tests/unicase/test-u32-toupper.c: Likewise.
5595         * tests/unicase/test-ulc-casecmp.c: Likewise.
5596         * tests/unicase/test-ulc-casecoll.c: Likewise.
5597         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5598         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5599         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5600         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5601         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5602         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5603         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5604         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5605         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5606         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5607         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5608         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5609         * tests/unictype/test-bidi_byname.c: Likewise.
5610         * tests/unictype/test-bidi_name.c: Likewise.
5611         * tests/unictype/test-bidi_of.c: Likewise.
5612         * tests/unictype/test-bidi_test.c: Likewise.
5613         * tests/unictype/test-block_list.c: Likewise.
5614         * tests/unictype/test-block_of.c: Likewise.
5615         * tests/unictype/test-block_test.c: Likewise.
5616         * tests/unictype/test-categ_and.c: Likewise.
5617         * tests/unictype/test-categ_and_not.c: Likewise.
5618         * tests/unictype/test-categ_byname.c: Likewise.
5619         * tests/unictype/test-categ_name.c: Likewise.
5620         * tests/unictype/test-categ_none.c: Likewise.
5621         * tests/unictype/test-categ_of.c: Likewise.
5622         * tests/unictype/test-categ_or.c: Likewise.
5623         * tests/unictype/test-categ_test_withtable.c: Likewise.
5624         * tests/unictype/test-combining.c: Likewise.
5625         * tests/unictype/test-decdigit.c: Likewise.
5626         * tests/unictype/test-digit.c: Likewise.
5627         * tests/unictype/test-mirror.c: Likewise.
5628         * tests/unictype/test-numeric.c: Likewise.
5629         * tests/unictype/test-pr_byname.c: Likewise.
5630         * tests/unictype/test-pr_test.c: Likewise.
5631         * tests/unictype/test-predicate-part1.h: Likewise.
5632         * tests/unictype/test-scripts.c: Likewise.
5633         * tests/unictype/test-sy_c_ident.c: Likewise.
5634         * tests/unictype/test-sy_java_ident.c: Likewise.
5635         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5636         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5637         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5638         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5639         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5640         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5641         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5642         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5643         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5644         * tests/uninorm/test-compat-decomposition.c: Likewise.
5645         * tests/uninorm/test-composition.c: Likewise.
5646         * tests/uninorm/test-decomposing-form.c: Likewise.
5647         * tests/uninorm/test-decomposition.c: Likewise.
5648         * tests/uninorm/test-u8-nfc.c: Likewise.
5649         * tests/uninorm/test-u8-nfd.c: Likewise.
5650         * tests/uninorm/test-u8-nfkc.c: Likewise.
5651         * tests/uninorm/test-u8-nfkd.c: Likewise.
5652         * tests/uninorm/test-u8-normcmp.c: Likewise.
5653         * tests/uninorm/test-u8-normcoll.c: Likewise.
5654         * tests/uninorm/test-u16-nfc.c: Likewise.
5655         * tests/uninorm/test-u16-nfd.c: Likewise.
5656         * tests/uninorm/test-u16-nfkc.c: Likewise.
5657         * tests/uninorm/test-u16-nfkd.c: Likewise.
5658         * tests/uninorm/test-u16-normcmp.c: Likewise.
5659         * tests/uninorm/test-u16-normcoll.c: Likewise.
5660         * tests/uninorm/test-u32-nfc.c: Likewise.
5661         * tests/uninorm/test-u32-nfd.c: Likewise.
5662         * tests/uninorm/test-u32-nfkc.c: Likewise.
5663         * tests/uninorm/test-u32-nfkd.c: Likewise.
5664         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5665         * tests/uninorm/test-u32-normcmp.c: Likewise.
5666         * tests/uninorm/test-u32-normcoll.c: Likewise.
5667         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5668         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5669         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5670         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5671         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5672         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5673         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5674         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5675         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5676         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5677         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5678         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5679         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5680         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5681         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5682         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5683         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5684         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5685         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5686         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5687         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5688         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5689         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5690         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5691         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5692         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5693         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5694         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5695         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5696         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5697         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5698         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5699         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5700         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5701         * tests/uniwidth/test-u8-width.c: Likewise.
5702         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5703         * tests/uniwidth/test-u16-width.c: Likewise.
5704         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5705         * tests/uniwidth/test-u32-width.c: Likewise.
5706         * tests/uniwidth/test-uc_width.c: Likewise.
5707         * tests/uniwidth/test-uc_width2.c: Likewise.
5708         * modules/acl-tests (Files): Add tests/macros.h.
5709         * modules/areadlink-tests (Files): Likewise.
5710         * modules/areadlink-with-size-tests (Files): Likewise.
5711         * modules/areadlinkat-tests (Files): Likewise.
5712         * modules/areadlinkat-with-size-tests (Files): Likewise.
5713         * modules/argmatch-tests (Files): Likewise.
5714         * modules/argv-iter-tests (Files): Likewise.
5715         * modules/array-list-tests (Files): Likewise.
5716         * modules/array-mergesort-tests (Files): Likewise.
5717         * modules/array-oset-tests (Files): Likewise.
5718         * modules/avltree-list-tests (Files): Likewise.
5719         * modules/avltree-oset-tests (Files): Likewise.
5720         * modules/avltreehash-list-tests (Files): Likewise.
5721         * modules/base64-tests (Files): Likewise.
5722         * modules/binary-io-tests (Files): Likewise.
5723         * modules/bitrotate-tests (Files): Likewise.
5724         * modules/btowc-tests (Files): Likewise.
5725         * modules/byteswap-tests (Files): Likewise.
5726         * modules/c-ctype-tests (Files): Likewise.
5727         * modules/c-stack-tests (Files): Likewise.
5728         * modules/c-strcase-tests (Files): Likewise.
5729         * modules/c-strcasestr-tests (Files): Likewise.
5730         * modules/c-strstr-tests (Files): Likewise.
5731         * modules/canonicalize-lgpl-tests (Files): Likewise.
5732         * modules/canonicalize-tests (Files): Likewise.
5733         * modules/carray-list-tests (Files): Likewise.
5734         * modules/ceilf-tests (Files): Likewise.
5735         * modules/ceill-tests (Files): Likewise.
5736         * modules/chown-tests (Files): Likewise.
5737         * modules/cloexec-tests (Files): Likewise.
5738         * modules/copy-file-tests (Files): Likewise.
5739         * modules/count-one-bits-tests (Files): Likewise.
5740         * modules/dprintf-posix-tests (Files): Likewise.
5741         * modules/dup2-tests (Files): Likewise.
5742         * modules/dup3-tests (Files): Likewise.
5743         * modules/duplocale-tests (Files): Likewise.
5744         * modules/fbufmode-tests (Files): Likewise.
5745         * modules/fchdir-tests (Files): Likewise.
5746         * modules/fcntl-safer-tests (Files): Likewise.
5747         * modules/fcntl-tests (Files): Likewise.
5748         * modules/fdopendir-tests (Files): Likewise.
5749         * modules/fdutimensat-tests (Files): Likewise.
5750         * modules/fflush-tests (Files): Likewise.
5751         * modules/filevercmp-tests (Files): Likewise.
5752         * modules/flock-tests (Files): Likewise.
5753         * modules/floorf-tests (Files): Likewise.
5754         * modules/floorl-tests (Files): Likewise.
5755         * modules/fnmatch-tests (Files): Likewise.
5756         * modules/fopen-safer-tests (Files): Likewise.
5757         * modules/fopen-tests (Files): Likewise.
5758         * modules/fpending-tests (Files): Likewise.
5759         * modules/fprintf-posix-tests (Files): Likewise.
5760         * modules/fpurge-tests (Files): Likewise.
5761         * modules/freadable-tests (Files): Likewise.
5762         * modules/freadahead-tests (Files): Likewise.
5763         * modules/freading-tests (Files): Likewise.
5764         * modules/freadptr-tests (Files): Likewise.
5765         * modules/freadseek-tests (Files): Likewise.
5766         * modules/freopen-tests (Files): Likewise.
5767         * modules/frexp-nolibm-tests (Files): Likewise.
5768         * modules/frexp-tests (Files): Likewise.
5769         * modules/frexpl-nolibm-tests (Files): Likewise.
5770         * modules/frexpl-tests (Files): Likewise.
5771         * modules/fseek-tests (Files): Likewise.
5772         * modules/fseeko-tests (Files): Likewise.
5773         * modules/fstrcmp-tests (Files): Likewise.
5774         * modules/fsync-tests (Files): Likewise.
5775         * modules/ftell-tests (Files): Likewise.
5776         * modules/ftello-tests (Files): Likewise.
5777         * modules/func-tests (Files): Likewise.
5778         * modules/futimens-tests (Files): Likewise.
5779         * modules/fwritable-tests (Files): Likewise.
5780         * modules/fwriting-tests (Files): Likewise.
5781         * modules/getcwd-tests (Files): Likewise.
5782         * modules/getdate-tests (Files): Likewise.
5783         * modules/getdelim-tests (Files): Likewise.
5784         * modules/getdtablesize-tests (Files): Likewise.
5785         * modules/getgroups-tests (Files): Likewise.
5786         * modules/getline-tests (Files): Likewise.
5787         * modules/getndelim2-tests (Files): Likewise.
5788         * modules/glob-tests (Files): Likewise.
5789         * modules/hash-tests (Files): Likewise.
5790         * modules/i-ring-tests (Files): Likewise.
5791         * modules/iconv-tests (Files): Likewise.
5792         * modules/iconv_open-utf-tests (Files): Likewise.
5793         * modules/idpriv-drop-tests (Files): Likewise.
5794         * modules/idpriv-droptemp-tests (Files): Likewise.
5795         * modules/inet_ntop-tests (Files): Likewise.
5796         * modules/inet_pton-tests (Files): Likewise.
5797         * modules/isblank-tests (Files): Likewise.
5798         * modules/isfinite-tests (Files): Likewise.
5799         * modules/isinf-tests (Files): Likewise.
5800         * modules/isnan-tests (Files): Likewise.
5801         * modules/isnand-nolibm-tests (Files): Likewise.
5802         * modules/isnand-tests (Files): Likewise.
5803         * modules/isnanf-nolibm-tests (Files): Likewise.
5804         * modules/isnanf-tests (Files): Likewise.
5805         * modules/isnanl-nolibm-tests (Files): Likewise.
5806         * modules/isnanl-tests (Files): Likewise.
5807         * modules/lchown-tests (Files): Likewise.
5808         * modules/ldexpl-tests (Files): Likewise.
5809         * modules/link-tests (Files): Likewise.
5810         * modules/linkat-tests (Files): Likewise.
5811         * modules/linked-list-tests (Files): Likewise.
5812         * modules/linkedhash-list-tests (Files): Likewise.
5813         * modules/localename-tests (Files): Likewise.
5814         * modules/lseek-tests (Files): Likewise.
5815         * modules/lstat-tests (Files): Likewise.
5816         * modules/mbmemcasecmp-tests (Files): Likewise.
5817         * modules/mbmemcasecoll-tests (Files): Likewise.
5818         * modules/mbrtowc-tests (Files): Likewise.
5819         * modules/mbscasecmp-tests (Files): Likewise.
5820         * modules/mbscasestr-tests (Files): Likewise.
5821         * modules/mbschr-tests (Files): Likewise.
5822         * modules/mbscspn-tests (Files): Likewise.
5823         * modules/mbsinit-tests (Files): Likewise.
5824         * modules/mbsncasecmp-tests (Files): Likewise.
5825         * modules/mbsnrtowcs-tests (Files): Likewise.
5826         * modules/mbspbrk-tests (Files): Likewise.
5827         * modules/mbspcasecmp-tests (Files): Likewise.
5828         * modules/mbsrchr-tests (Files): Likewise.
5829         * modules/mbsrtowcs-tests (Files): Likewise.
5830         * modules/mbsspn-tests (Files): Likewise.
5831         * modules/mbsstr-tests (Files): Likewise.
5832         * modules/memchr-tests (Files): Likewise.
5833         * modules/memchr2-tests (Files): Likewise.
5834         * modules/memcmp-tests (Files): Likewise.
5835         * modules/memmem-tests (Files): Likewise.
5836         * modules/memrchr-tests (Files): Likewise.
5837         * modules/mkdir-tests (Files): Likewise.
5838         * modules/mkfifo-tests (Files): Likewise.
5839         * modules/mkfifoat-tests (Files): Likewise.
5840         * modules/mknod-tests (Files): Likewise.
5841         * modules/nanosleep-tests (Files): Likewise.
5842         * modules/nl_langinfo-tests (Files): Likewise.
5843         * modules/obstack-printf-tests (Files): Likewise.
5844         * modules/open-tests (Files): Likewise.
5845         * modules/openat-tests (Files): Likewise.
5846         * modules/pipe-filter-gi-tests (Files): Likewise.
5847         * modules/pipe-filter-ii-tests (Files): Likewise.
5848         * modules/pipe2-tests (Files): Likewise.
5849         * modules/popen-safer-tests (Files): Likewise.
5850         * modules/popen-tests (Files): Likewise.
5851         * modules/posixtm-tests (Files): Likewise.
5852         * modules/pread-tests (Files): Likewise.
5853         * modules/printf-frexp-tests (Files): Likewise.
5854         * modules/printf-frexpl-tests (Files): Likewise.
5855         * modules/printf-posix-tests (Files): Likewise.
5856         * modules/priv-set-tests (Files): Likewise.
5857         * modules/quotearg-tests (Files): Likewise.
5858         * modules/random_r-tests (Files): Likewise.
5859         * modules/rawmemchr-tests (Files): Likewise.
5860         * modules/rbtree-list-tests (Files): Likewise.
5861         * modules/rbtree-oset-tests (Files): Likewise.
5862         * modules/rbtreehash-list-tests (Files): Likewise.
5863         * modules/readlink-tests (Files): Likewise.
5864         * modules/remove-tests (Files): Likewise.
5865         * modules/rename-tests (Files): Likewise.
5866         * modules/renameat-tests (Files): Likewise.
5867         * modules/rmdir-tests (Files): Likewise.
5868         * modules/round-tests (Files): Likewise.
5869         * modules/roundf-tests (Files): Likewise.
5870         * modules/roundl-tests (Files): Likewise.
5871         * modules/safe-alloc-tests (Files): Likewise.
5872         * modules/setenv-tests (Files): Likewise.
5873         * modules/sigaction-tests (Files): Likewise.
5874         * modules/signbit-tests (Files): Likewise.
5875         * modules/sleep-tests (Files): Likewise.
5876         * modules/snprintf-posix-tests (Files): Likewise.
5877         * modules/snprintf-tests (Files): Likewise.
5878         * modules/sprintf-posix-tests (Files): Likewise.
5879         * modules/stat-tests (Files): Likewise.
5880         * modules/stat-time-tests (Files): Likewise.
5881         * modules/strcasestr-tests (Files): Likewise.
5882         * modules/strchrnul-tests (Files): Likewise.
5883         * modules/strerror-tests (Files): Likewise.
5884         * modules/striconv-tests (Files): Likewise.
5885         * modules/striconveh-tests (Files): Likewise.
5886         * modules/striconveha-tests (Files): Likewise.
5887         * modules/strsignal-tests (Files): Likewise.
5888         * modules/strstr-tests (Files): Likewise.
5889         * modules/strtod-tests (Files): Likewise.
5890         * modules/strverscmp-tests (Files): Likewise.
5891         * modules/symlink-tests (Files): Likewise.
5892         * modules/symlinkat-tests (Files): Likewise.
5893         * modules/trunc-tests (Files): Likewise.
5894         * modules/truncf-tests (Files): Likewise.
5895         * modules/truncl-tests (Files): Likewise.
5896         * modules/uname-tests (Files): Likewise.
5897         * modules/unicase/cased-tests (Files): Likewise.
5898         * modules/unicase/ignorable-tests (Files): Likewise.
5899         * modules/unicase/locale-language-tests (Files): Likewise.
5900         * modules/unicase/tolower-tests (Files): Likewise.
5901         * modules/unicase/totitle-tests (Files): Likewise.
5902         * modules/unicase/toupper-tests (Files): Likewise.
5903         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5904         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5905         * modules/unicase/u8-casefold-tests (Files): Likewise.
5906         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5907         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5908         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5909         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5910         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5911         * modules/unicase/u8-tolower-tests (Files): Likewise.
5912         * modules/unicase/u8-totitle-tests (Files): Likewise.
5913         * modules/unicase/u8-toupper-tests (Files): Likewise.
5914         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5915         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5916         * modules/unicase/u16-casefold-tests (Files): Likewise.
5917         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5918         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5919         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5920         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5921         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5922         * modules/unicase/u16-tolower-tests (Files): Likewise.
5923         * modules/unicase/u16-totitle-tests (Files): Likewise.
5924         * modules/unicase/u16-toupper-tests (Files): Likewise.
5925         * modules/unicase/u32-casecmp-tests (Files): Likewise.
5926         * modules/unicase/u32-casecoll-tests (Files): Likewise.
5927         * modules/unicase/u32-casefold-tests (Files): Likewise.
5928         * modules/unicase/u32-is-cased-tests (Files): Likewise.
5929         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5930         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5931         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5932         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5933         * modules/unicase/u32-tolower-tests (Files): Likewise.
5934         * modules/unicase/u32-totitle-tests (Files): Likewise.
5935         * modules/unicase/u32-toupper-tests (Files): Likewise.
5936         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5937         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5938         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5939         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5940         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5941         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5942         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5943         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5944         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5945         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5946         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5947         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5948         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5949         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5950         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5951         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5952         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5953         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5954         * modules/unictype/block-list-tests (Files): Likewise.
5955         * modules/unictype/block-of-tests (Files): Likewise.
5956         * modules/unictype/block-test-tests (Files): Likewise.
5957         * modules/unictype/category-C-tests (Files): Likewise.
5958         * modules/unictype/category-Cc-tests (Files): Likewise.
5959         * modules/unictype/category-Cf-tests (Files): Likewise.
5960         * modules/unictype/category-Cn-tests (Files): Likewise.
5961         * modules/unictype/category-Co-tests (Files): Likewise.
5962         * modules/unictype/category-Cs-tests (Files): Likewise.
5963         * modules/unictype/category-L-tests (Files): Likewise.
5964         * modules/unictype/category-Ll-tests (Files): Likewise.
5965         * modules/unictype/category-Lm-tests (Files): Likewise.
5966         * modules/unictype/category-Lo-tests (Files): Likewise.
5967         * modules/unictype/category-Lt-tests (Files): Likewise.
5968         * modules/unictype/category-Lu-tests (Files): Likewise.
5969         * modules/unictype/category-M-tests (Files): Likewise.
5970         * modules/unictype/category-Mc-tests (Files): Likewise.
5971         * modules/unictype/category-Me-tests (Files): Likewise.
5972         * modules/unictype/category-Mn-tests (Files): Likewise.
5973         * modules/unictype/category-N-tests (Files): Likewise.
5974         * modules/unictype/category-Nd-tests (Files): Likewise.
5975         * modules/unictype/category-Nl-tests (Files): Likewise.
5976         * modules/unictype/category-No-tests (Files): Likewise.
5977         * modules/unictype/category-P-tests (Files): Likewise.
5978         * modules/unictype/category-Pc-tests (Files): Likewise.
5979         * modules/unictype/category-Pd-tests (Files): Likewise.
5980         * modules/unictype/category-Pe-tests (Files): Likewise.
5981         * modules/unictype/category-Pf-tests (Files): Likewise.
5982         * modules/unictype/category-Pi-tests (Files): Likewise.
5983         * modules/unictype/category-Po-tests (Files): Likewise.
5984         * modules/unictype/category-Ps-tests (Files): Likewise.
5985         * modules/unictype/category-S-tests (Files): Likewise.
5986         * modules/unictype/category-Sc-tests (Files): Likewise.
5987         * modules/unictype/category-Sk-tests (Files): Likewise.
5988         * modules/unictype/category-Sm-tests (Files): Likewise.
5989         * modules/unictype/category-So-tests (Files): Likewise.
5990         * modules/unictype/category-Z-tests (Files): Likewise.
5991         * modules/unictype/category-Zl-tests (Files): Likewise.
5992         * modules/unictype/category-Zp-tests (Files): Likewise.
5993         * modules/unictype/category-Zs-tests (Files): Likewise.
5994         * modules/unictype/category-and-not-tests (Files): Likewise.
5995         * modules/unictype/category-and-tests (Files): Likewise.
5996         * modules/unictype/category-byname-tests (Files): Likewise.
5997         * modules/unictype/category-name-tests (Files): Likewise.
5998         * modules/unictype/category-none-tests (Files): Likewise.
5999         * modules/unictype/category-of-tests (Files): Likewise.
6000         * modules/unictype/category-or-tests (Files): Likewise.
6001         * modules/unictype/category-test-withtable-tests (Files): Likewise.
6002         * modules/unictype/combining-class-tests (Files): Likewise.
6003         * modules/unictype/ctype-alnum-tests (Files): Likewise.
6004         * modules/unictype/ctype-alpha-tests (Files): Likewise.
6005         * modules/unictype/ctype-blank-tests (Files): Likewise.
6006         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
6007         * modules/unictype/ctype-digit-tests (Files): Likewise.
6008         * modules/unictype/ctype-graph-tests (Files): Likewise.
6009         * modules/unictype/ctype-lower-tests (Files): Likewise.
6010         * modules/unictype/ctype-print-tests (Files): Likewise.
6011         * modules/unictype/ctype-punct-tests (Files): Likewise.
6012         * modules/unictype/ctype-space-tests (Files): Likewise.
6013         * modules/unictype/ctype-upper-tests (Files): Likewise.
6014         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6015         * modules/unictype/decimal-digit-tests (Files): Likewise.
6016         * modules/unictype/digit-tests (Files): Likewise.
6017         * modules/unictype/mirror-tests (Files): Likewise.
6018         * modules/unictype/numeric-tests (Files): Likewise.
6019         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6020         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6021         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6022         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6023         Likewise.
6024         * modules/unictype/property-bidi-block-separator-tests (Files):
6025         Likewise.
6026         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6027         Likewise.
6028         * modules/unictype/property-bidi-common-separator-tests (Files):
6029         Likewise.
6030         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6031         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6032         Likewise.
6033         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6034         Likewise.
6035         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6036         Likewise.
6037         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6038         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6039         Likewise.
6040         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6041         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6042         Likewise.
6043         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6044         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6045         * modules/unictype/property-bidi-segment-separator-tests (Files):
6046         Likewise.
6047         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6048         * modules/unictype/property-byname-tests (Files): Likewise.
6049         * modules/unictype/property-combining-tests (Files): Likewise.
6050         * modules/unictype/property-composite-tests (Files): Likewise.
6051         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6052         * modules/unictype/property-dash-tests (Files): Likewise.
6053         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6054         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6055         Likewise.
6056         * modules/unictype/property-deprecated-tests (Files): Likewise.
6057         * modules/unictype/property-diacritic-tests (Files): Likewise.
6058         * modules/unictype/property-extender-tests (Files): Likewise.
6059         * modules/unictype/property-format-control-tests (Files): Likewise.
6060         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6061         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6062         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6063         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6064         * modules/unictype/property-hyphen-tests (Files): Likewise.
6065         * modules/unictype/property-id-continue-tests (Files): Likewise.
6066         * modules/unictype/property-id-start-tests (Files): Likewise.
6067         * modules/unictype/property-ideographic-tests (Files): Likewise.
6068         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6069         * modules/unictype/property-ids-trinary-operator-tests (Files):
6070         Likewise.
6071         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6072         * modules/unictype/property-iso-control-tests (Files): Likewise.
6073         * modules/unictype/property-join-control-tests (Files): Likewise.
6074         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6075         * modules/unictype/property-line-separator-tests (Files): Likewise.
6076         * modules/unictype/property-logical-order-exception-tests (Files):
6077         Likewise.
6078         * modules/unictype/property-lowercase-tests (Files): Likewise.
6079         * modules/unictype/property-math-tests (Files): Likewise.
6080         * modules/unictype/property-non-break-tests (Files): Likewise.
6081         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6082         * modules/unictype/property-numeric-tests (Files): Likewise.
6083         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6084         * modules/unictype/property-other-default-ignorable-code-point-tests
6085         (Files): Likewise.
6086         * modules/unictype/property-other-grapheme-extend-tests (Files):
6087         Likewise.
6088         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6089         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6090         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6091         * modules/unictype/property-other-math-tests (Files): Likewise.
6092         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6093         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6094         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6095         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6096         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6097         * modules/unictype/property-private-use-tests (Files): Likewise.
6098         * modules/unictype/property-punctuation-tests (Files): Likewise.
6099         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6100         * modules/unictype/property-radical-tests (Files): Likewise.
6101         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6102         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6103         * modules/unictype/property-space-tests (Files): Likewise.
6104         * modules/unictype/property-terminal-punctuation-tests (Files):
6105         Likewise.
6106         * modules/unictype/property-test-tests (Files): Likewise.
6107         * modules/unictype/property-titlecase-tests (Files): Likewise.
6108         * modules/unictype/property-unassigned-code-value-tests (Files):
6109         Likewise.
6110         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6111         * modules/unictype/property-uppercase-tests (Files): Likewise.
6112         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6113         * modules/unictype/property-white-space-tests (Files): Likewise.
6114         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6115         * modules/unictype/property-xid-start-tests (Files): Likewise.
6116         * modules/unictype/property-zero-width-tests (Files): Likewise.
6117         * modules/unictype/scripts-tests (Files): Likewise.
6118         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6119         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6120         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6121         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6122         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6123         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6124         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6125         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6126         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6127         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6128         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6129         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6130         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6131         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6132         * modules/uninorm/composition-tests (Files): Likewise.
6133         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6134         * modules/uninorm/decomposition-tests (Files): Likewise.
6135         * modules/uninorm/filter-tests (Files): Likewise.
6136         * modules/uninorm/nfc-tests (Files): Likewise.
6137         * modules/uninorm/nfd-tests (Files): Likewise.
6138         * modules/uninorm/nfkc-tests (Files): Likewise.
6139         * modules/uninorm/nfkd-tests (Files): Likewise.
6140         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6141         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6142         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6143         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6144         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6145         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6146         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6147         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6148         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6149         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6150         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6151         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6152         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6153         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6154         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6155         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6156         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6157         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6158         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6159         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6160         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6161         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6162         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6163         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6164         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6165         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6166         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6167         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6168         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6169         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6170         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6171         * modules/uniwidth/u8-width-tests (Files): Likewise.
6172         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6173         * modules/uniwidth/u16-width-tests (Files): Likewise.
6174         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6175         * modules/uniwidth/u32-width-tests (Files): Likewise.
6176         * modules/uniwidth/width-tests (Files): Likewise.
6177         * modules/unlink-tests (Files): Likewise.
6178         * modules/unsetenv-tests (Files): Likewise.
6179         * modules/usleep-tests (Files): Likewise.
6180         * modules/utimens-tests (Files): Likewise.
6181         * modules/utimensat-tests (Files): Likewise.
6182         * modules/vasnprintf-posix-tests (Files): Likewise.
6183         * modules/vasnprintf-tests (Files): Likewise.
6184         * modules/vasprintf-posix-tests (Files): Likewise.
6185         * modules/vasprintf-tests (Files): Likewise.
6186         * modules/vdprintf-posix-tests (Files): Likewise.
6187         * modules/vfprintf-posix-tests (Files): Likewise.
6188         * modules/vprintf-posix-tests (Files): Likewise.
6189         * modules/vsnprintf-posix-tests (Files): Likewise.
6190         * modules/vsnprintf-tests (Files): Likewise.
6191         * modules/vsprintf-posix-tests (Files): Likewise.
6192         * modules/wcrtomb-tests (Files): Likewise.
6193         * modules/wcsnrtombs-tests (Files): Likewise.
6194         * modules/wcsrtombs-tests (Files): Likewise.
6195         * modules/wctype-tests (Files): Likewise.
6196         * modules/wcwidth-tests (Files): Likewise.
6197         * modules/xmemdup0-tests (Files): Likewise.
6198         * modules/xprintf-posix-tests (Files): Likewise.
6199         * modules/xvasprintf-tests (Files): Likewise.
6200
6201 2009-12-24  Eric Blake  <ebb9@byu.net>
6202
6203         test-nanosleep: fix typo
6204         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6205         patch.
6206         Reported by Bruno Haible.
6207
6208 2009-12-24  Bruno Haible  <bruno@clisp.org>
6209
6210         Reduce namespace pollution on glibc systems.
6211         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6212         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6213         systems.
6214         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6215         <getopt.h> on glibc systems.
6216         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6217         systems.
6218         * lib/fcntl.c: Include <unistd.h> here instead.
6219
6220 2009-12-24  Bruno Haible  <bruno@clisp.org>
6221
6222         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6223
6224 2009-12-24  Eric Blake  <ebb9@byu.net>
6225
6226         tests: add signature checks
6227         * tests/signature.h (SIGNATURE_CHECK): New file.
6228         * modules/atexit-tests (Files): Use it.
6229         * modules/btowc-tests (Files): Likewise.
6230         * modules/canonicalize-lgpl-tests (Files): Likewise.
6231         * modules/ceilf-tests (Files): Likewise.
6232         * modules/ceill-tests (Files): Likewise.
6233         * modules/chown-tests (Files): Likewise.
6234         * modules/dprintf-posix-tests (Files): Likewise.
6235         * modules/dup2-tests (Files): Likewise.
6236         * modules/dup3-tests (Files): Likewise.
6237         * modules/duplocale-tests (Files): Likewise.
6238         * modules/fchdir-tests (Files): Likewise.
6239         * modules/fcntl-tests (Files): Likewise.
6240         * modules/fdopendir-tests (Files): Likewise.
6241         * modules/fflush-tests (Files): Likewise.
6242         * modules/flock-tests (Files): Likewise.
6243         * modules/floorf-tests (Files): Likewise.
6244         * modules/floorl-tests (Files): Likewise.
6245         * modules/fnmatch-tests (Files): Likewise.
6246         * modules/fopen-tests (Files): Likewise.
6247         * modules/fprintf-posix-tests (Files): Likewise.
6248         * modules/freopen-tests (Files): Likewise.
6249         * modules/frexp-nolibm-tests (Files): Likewise.
6250         * modules/frexp-tests (Files): Likewise.
6251         * modules/frexpl-nolibm-tests (Files): Likewise.
6252         * modules/frexpl-tests (Files): Likewise.
6253         * modules/fseek-tests (Files): Likewise.
6254         * modules/fseeko-tests (Files): Likewise.
6255         * modules/fsync-tests (Files): Likewise.
6256         * modules/ftell-tests (Files): Likewise.
6257         * modules/ftello-tests (Files): Likewise.
6258         * modules/futimens-tests (Files): Likewise.
6259         * modules/getaddrinfo-tests (Files): Likewise.
6260         * modules/getcwd-tests (Files): Likewise.
6261         * modules/getdelim-tests (Files): Likewise.
6262         * modules/getdtablesize-tests (Files): Likewise.
6263         * modules/getgroups-tests (Files): Likewise.
6264         * modules/gethostname-tests (Files): Likewise.
6265         * modules/getline-tests (Files): Likewise.
6266         * modules/getopt-posix-tests (Files): Likewise.
6267         * modules/gettimeofday-tests (Files): Likewise.
6268         * modules/glob-tests (Files): Likewise.
6269         * modules/iconv-tests (Files): Likewise.
6270         * modules/inet_ntop-tests (Files): Likewise.
6271         * modules/inet_pton-tests (Files): Likewise.
6272         * modules/isblank-tests (Files): Likewise.
6273         * modules/lchown-tests (Files): Likewise.
6274         * modules/ldexpl-tests (Files): Likewise.
6275         * modules/link-tests (Files): Likewise.
6276         * modules/linkat-tests (Files): Likewise.
6277         * modules/lseek-tests (Files): Likewise.
6278         * modules/lstat-tests (Files): Likewise.
6279         * modules/mbrtowc-tests (Files): Likewise.
6280         * modules/mbsinit-tests (Files): Likewise.
6281         * modules/mbsnrtowcs-tests (Files): Likewise.
6282         * modules/mbsrtowcs-tests (Files): Likewise.
6283         * modules/memchr-tests (Files): Likewise.
6284         * modules/memcmp-tests (Files): Likewise.
6285         * modules/memmem-tests (Files): Likewise.
6286         * modules/memrchr-tests (Files): Likewise.
6287         * modules/mkdir-tests (Files): Likewise.
6288         * modules/mkfifo-tests (Files): Likewise.
6289         * modules/mkfifoat-tests (Files): Likewise.
6290         * modules/mknod-tests (Files): Likewise.
6291         * modules/nanosleep-tests (Files): Likewise.
6292         * modules/nl_langinfo-tests (Files): Likewise.
6293         * modules/obstack-printf-tests (Files): Likewise.
6294         * modules/open-tests (Files): Likewise.
6295         * modules/openat-tests (Files): Likewise.
6296         * modules/perror-tests (Files): Likewise.
6297         * modules/pipe2-tests (Files): Likewise.
6298         * modules/poll-tests (Files): Likewise.
6299         * modules/popen-tests (Files): Likewise.
6300         * modules/posix_spawn-tests (Files): Likewise.
6301         * modules/posix_spawnp-tests (Files): Likewise.
6302         * modules/pread-tests (Files): Likewise.
6303         * modules/printf-posix-tests (Files): Likewise.
6304         * modules/pty-tests (Files): Likewise.
6305         * modules/random_r-tests (Files): Likewise.
6306         * modules/rawmemchr-tests (Files): Likewise.
6307         * modules/readlink-tests (Files): Likewise.
6308         * modules/remove-tests (Files): Likewise.
6309         * modules/rename-tests (Files): Likewise.
6310         * modules/renameat-tests (Files): Likewise.
6311         * modules/rmdir-tests (Files): Likewise.
6312         * modules/round-tests (Files): Likewise.
6313         * modules/roundf-tests (Files): Likewise.
6314         * modules/roundl-tests (Files): Likewise.
6315         * modules/select-tests (Files): Likewise.
6316         * modules/setenv-tests (Files): Likewise.
6317         * modules/sigaction-tests (Files): Likewise.
6318         * modules/sleep-tests (Files): Likewise.
6319         * modules/snprintf-posix-tests (Files): Likewise.
6320         * modules/snprintf-tests (Files): Likewise.
6321         * modules/sprintf-posix-tests (Files): Likewise.
6322         * modules/stat-tests (Files): Likewise.
6323         * modules/strcasestr-tests (Files): Likewise.
6324         * modules/strchrnul-tests (Files): Likewise.
6325         * modules/strerror-tests (Files): Likewise.
6326         * modules/strsignal-tests (Files): Likewise.
6327         * modules/strstr-tests (Files): Likewise.
6328         * modules/strtod-tests (Files): Likewise.
6329         * modules/strverscmp-tests (Files): Likewise.
6330         * modules/symlink-tests (Files): Likewise.
6331         * modules/symlinkat-tests (Files): Likewise.
6332         * modules/times-tests (Files): Likewise.
6333         * modules/trunc-tests (Files): Likewise.
6334         * modules/truncf-tests (Files): Likewise.
6335         * modules/truncl-tests (Files): Likewise.
6336         * modules/tsearch-tests (Files): Likewise.
6337         * modules/uname-tests (Files): Likewise.
6338         * modules/unlink-tests (Files): Likewise.
6339         * modules/unsetenv-tests (Files): Likewise.
6340         * modules/usleep-tests (Files): Likewise.
6341         * modules/utimensat-tests (Files): Likewise.
6342         * modules/vasprintf-tests (Files): Likewise.
6343         * modules/vdprintf-posix-tests (Files): Likewise.
6344         * modules/vfprintf-posix-tests (Files): Likewise.
6345         * modules/vprintf-posix-tests (Files): Likewise.
6346         * modules/vsnprintf-posix-tests (Files): Likewise.
6347         * modules/vsnprintf-tests (Files): Likewise.
6348         * modules/vsprintf-posix-tests (Files): Likewise.
6349         * modules/wcrtomb-tests (Files): Likewise.
6350         * modules/wcsnrtombs-tests (Files): Likewise.
6351         * modules/wcsrtombs-tests (Files): Likewise.
6352         * modules/wcwidth-tests (Files): Likewise.
6353         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6354         * tests/test-isinf.c (isinf): Likewise.
6355         * tests/test-isnan.c (isnan): Likewise.
6356         * tests/test-signbit.c (signbit): Likewise.
6357         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6358         declaration, either as macro or with correct signature.
6359         (select): Ensure function under test is declared with correct
6360         signature in correct header.
6361         * tests/test-atexit.c (atexit): Likewise.
6362         * tests/test-btowc.c (btowc): Likewise.
6363         * tests/test-canonicalize-lgpl.c (realpath)
6364         (canonicalize_file_name): Likewise.
6365         * tests/test-ceilf1.c (ceilf): Likewise.
6366         * tests/test-ceill.c (ceill): Likewise.
6367         * tests/test-chown.c (chown): Likewise.
6368         * tests/test-dprintf-posix.c (dprintf): Likewise.
6369         * tests/test-dup2.c (dup2): Likewise.
6370         * tests/test-dup3.c (dup3): Likewise.
6371         * tests/test-duplocale.c (duplocale): Likewise.
6372         * tests/test-fchdir.c (fchdir): Likewise.
6373         * tests/test-fchownat.c (fchownat): Likewise.
6374         * tests/test-fcntl.c (fcntl): Likewise.
6375         * tests/test-fdopendir.c (fdopendir): Likewise.
6376         * tests/test-fflush.c (fflush): Likewise.
6377         * tests/test-flock.c (flock): Likewise.
6378         * tests/test-floorf1.c (floorf): Likewise.
6379         * tests/test-floorl.c (floorl): Likewise.
6380         * tests/test-fnmatch.c (fnmatch): Likewise.
6381         * tests/test-fopen.c (fopen): Likewise.
6382         * tests/test-fprintf-posix.c (fprintf): Likewise.
6383         * tests/test-freopen.c (freopen): Likewise.
6384         * tests/test-frexp.c (frexp): Likewise.
6385         * tests/test-frexpl.c (frexpl): Likewise.
6386         * tests/test-fseek.c (fseek): Likewise.
6387         * tests/test-fseeko.c (fseeko): Likewise.
6388         * tests/test-fstatat.c (fstatat): Likewise.
6389         * tests/test-fsync.c (fsync): Likewise.
6390         * tests/test-ftell.c (ftell): Likewise.
6391         * tests/test-ftello.c (ftello): Likewise.
6392         * tests/test-futimens.c (futimens): Likewise.
6393         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6394         (gai_strerror): Likewise.
6395         * tests/test-getcwd.c (getcwd): Likewise.
6396         * tests/test-getdelim.c (getdelim): Likewise.
6397         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6398         * tests/test-getgroups.c (getgroups): Likewise.
6399         * tests/test-gethostname.c (gethostname): Likewise.
6400         * tests/test-getline.c (getline): Likewise.
6401         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6402         Likewise.
6403         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6404         * tests/test-glob.c (glob, globfree): Likewise.
6405         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6406         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6407         * tests/test-inet_pton.c (inet_pton): Likewise.
6408         * tests/test-isblank.c (isblank): Likewise.
6409         * tests/test-lchown.c (lchown): Likewise.
6410         * tests/test-ldexpl.c (ldexpl): Likewise.
6411         * tests/test-link.c (link): Likewise.
6412         * tests/test-linkat.c (linkat): Likewise.
6413         * tests/test-lseek.c (lseek): Likewise.
6414         * tests/test-lstat.c (lstat): Likewise.
6415         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6416         * tests/test-mbsinit.c (mbsinit): Likewise.
6417         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6418         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6419         * tests/test-memchr.c (memchr): Likewise.
6420         * tests/test-memcmp.c (memcmp): Likewise.
6421         * tests/test-memmem.c (memmem): Likewise.
6422         * tests/test-memrchr.c (memrchr): Likewise.
6423         * tests/test-mkdir.c (mkdir): Likewise.
6424         * tests/test-mkdirat.c (mkdirat): Likewise.
6425         * tests/test-mkfifo.c (mkfifo): Likewise.
6426         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6427         * tests/test-mknod.c (mknod): Likewise.
6428         * tests/test-nanosleep.c (nanosleep): Likewise.
6429         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6430         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6431         Likewise.
6432         * tests/test-open.c (open): Likewise.
6433         * tests/test-openat.c (openat): Likewise.
6434         * tests/test-perror.c (perror): Likewise.
6435         * tests/test-pipe2.c (pipe2): Likewise.
6436         * tests/test-poll.c (poll): Likewise.
6437         * tests/test-popen.c (popen, pclose): Likewise.
6438         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6439         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6440         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6441         (posix_spawn_file_actions_destroy)
6442         (posix_spawn_file_actions_addclose)
6443         (posix_spawn_file_actions_addopen)
6444         (posix_spawn_file_actions_adddup2): Likewise.
6445         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6446         * tests/test-pread.c (pread): Likewise.
6447         * tests/test-printf-posix.c (printf): Likewise.
6448         * tests/test-pty.c (openpty, forkpty): Likewise.
6449         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6450         (random_r): Likewise.
6451         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6452         * tests/test-readlink.c (readlink): Likewise.
6453         * tests/test-remove.c (remove): Likewise.
6454         * tests/test-rename.c (rename): Likewise.
6455         * tests/test-renameat.c (renameat): Likewise.
6456         * tests/test-rmdir.c (rmdir): Likewise.
6457         * tests/test-round1.c (round): Likewise.
6458         * tests/test-roundf1.c (roundf): Likewise.
6459         * tests/test-roundl.c (roundl): Likewise.
6460         * tests/test-setenv.c (setenv): Likewise.
6461         * tests/test-sigaction.c (sigaction): Likewise.
6462         * tests/test-sleep.c (sleep): Likewise.
6463         * tests/test-snprintf.c (snprintf): Likewise.
6464         * tests/test-sprintf-posix.c (sprintf): Likewise.
6465         * tests/test-stat.c (stat): Likewise.
6466         * tests/test-stpncpy.c (stpncpy): Likewise.
6467         * tests/test-strcasestr.c (strcasestr): Likewise.
6468         * tests/test-strchrnul.c (strchrnul): Likewise.
6469         * tests/test-strerror.c (strerror): Likewise.
6470         * tests/test-strsignal.c (strsignal): Likewise.
6471         * tests/test-strstr.c (strstr): Likewise.
6472         * tests/test-strtod.c (strtod): Likewise.
6473         * tests/test-strverscmp.c (strverscmp): Likewise.
6474         * tests/test-symlink.c (symlink): Likewise.
6475         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6476         * tests/test-times.c (times): Likewise.
6477         * tests/test-trunc1.c (trunc): Likewise.
6478         * tests/test-truncf1.c (truncf): Likewise.
6479         * tests/test-truncl.c (truncl): Likewise.
6480         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6481         Likewise.
6482         * tests/test-uname.c (uname): Likewise.
6483         * tests/test-unlink.c (unlink): Likewise.
6484         * tests/test-unlinkat.c (unlinkat): Likewise.
6485         * tests/test-unsetenv.c (unsetenv): Likewise.
6486         * tests/test-usleep.c (usleep): Likewise.
6487         * tests/test-utimensat.c (utimensat): Likewise.
6488         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6489         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6490         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6491         * tests/test-vprintf-posix.c (vprintf): Likewise.
6492         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6493         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6494         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6495         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6496         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6497         * tests/test-wcwidth.c (wcwidth): Likewise.
6498
6499         build: pull in conditional headers during GNULIB_POSIXCHECK
6500         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6501         definitions from any conditionally-included headers.
6502         * lib/stdlib.in.h (includes): Likewise.
6503         * lib/unistd.in.h (includes): Likewise.
6504
6505 2009-12-24  Bruno Haible  <bruno@clisp.org>
6506
6507         * tests/test-argv-iter.c: Include header file being tested immediately
6508         after config.h.
6509         * tests/test-base64.c: Likewise.
6510         * tests/test-flock.c: Likewise.
6511         * tests/test-fsync.c: Likewise.
6512         * tests/test-getdate.c: Likewise.
6513         * tests/test-getndelim2.c: Likewise.
6514         * tests/test-isfinite.c: Likewise.
6515         * tests/test-isinf.c: Likewise.
6516         * tests/test-strerror.c: Likewise.
6517         * tests/test-strsignal.c: Likewise.
6518
6519 2009-12-23  Eric Blake  <ebb9@byu.net>
6520
6521         unistd: work around cygwin bug
6522         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6523         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6524         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6525
6526 2009-12-23  Bruno Haible  <bruno@clisp.org>
6527
6528         localename: More tests.
6529         * tests/test-localename.c (SIZEOF): New macro.
6530         (categories): New variable.
6531         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6532         test_locale_name_default): Add test w.r.t. thread locale.
6533         (test_locale_name_thread): New function.
6534         (main): Invoke it.
6535
6536         localename: Make aware of thread locale.
6537         * lib/localename.h (gl_locale_name_thread): New declaration.
6538         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6539         behaviour with respect to thread locale.
6540         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6541         <langinfo.h>, glthread/lock.h.
6542         (SIZE_BITS): New macro.
6543         (string_hash): New function.
6544         (struct hash_node): New type.
6545         (HASH_TABLE_SIZE): New macro.
6546         (struniq_hash_table, struniq_lock): New variables.
6547         (struniq): New function.
6548         (gl_locale_name_thread): New function.
6549         (gl_locale_name): Invoke it.
6550         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6551         * modules/localename (Depends-on): Add lock.
6552         Reported by Mike Gran <spk121@yahoo.com>.
6553
6554 2009-12-23  Eric Blake  <ebb9@byu.net>
6555
6556         va-args: new module
6557         * modules/va-args: New file.
6558         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6559         * MODULES.html.sh (Core language properties): Mention it.
6560
6561         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6562         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6563         named alias for __attribute__((__unused__)).
6564         * lib/chown.c: Update client.
6565         * lib/fchmodat.c: Likewise.
6566         * lib/fts.c: Likewise.
6567         * lib/getdate.y: Likewise.
6568         * lib/getgroups.c: Likewise.
6569         * lib/getopt.c: Likewise.
6570         * lib/getugroups.c: Likewise.
6571         * lib/mkdir.c: Likewise.
6572         * lib/mkfifo.c: Likewise.
6573         * lib/mkfifoat.c: Likewise.
6574         * lib/mknod.c: Likewise.
6575         * lib/mknodat.c: Likewise.
6576         * lib/readlink.c: Likewise.
6577         * lib/se-context.in.h: Likewise.
6578         * lib/se-selinux.in.h: Likewise.
6579         * lib/sockets.c: Likewise.
6580         * lib/symlink.c: Likewise.
6581         * lib/symlinkat.c: Likewise.
6582         * lib/unicodeio.c: Likewise.
6583         * lib/unistr.h: Likewise.
6584         * tests/test-areadlink.c: Likewise.
6585         * tests/test-areadlinkat.c: Likewise.
6586         * tests/test-filenamecat.c: Likewise.
6587         * tests/test-fseeko.c: Likewise.
6588         * tests/test-ftello.c: Likewise.
6589         * tests/test-getdate.c: Likewise.
6590         * tests/test-getgroups.c: Likewise.
6591         * tests/test-gethostname.c: Likewise.
6592         * tests/test-quotearg.c: Likewise.
6593         * tests/test-version-etc.c: Likewise.
6594         * tests/test-xalloc-die.c: Likewise.
6595         * tests/test-xfprintf-posix.c: Likewise.
6596         * tests/test-xprintf-posix.c: Likewise.
6597         * tests/test-xvasprintf.c: Likewise.
6598
6599         tests: avoid compiler warnings
6600         * tests/test-fcntl.c (main): Delete unused parameters.
6601         * tests/test-freopen-safer.c (main): Likewise.
6602         * tests/test-xalloc-die.c (main): Mark unused parameters.
6603         * tests/test-fseeko.c (main): Likewise.
6604         * tests/test-ftello.c (main): Likewise.
6605         * tests/test-nanosleep.c (main): Avoid declaration warning.
6606         * tests/test-sleep.c (main): Likewise.
6607         * tests/test-unsetenv.c (main): Silence warning about string
6608         literal.
6609         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6610
6611 2009-12-23  Bruno Haible  <bruno@clisp.org>
6612
6613         * tests/test-localename.c (test_locale_name): New function, extracted
6614         from main. Also test mixed situations.
6615         (test_locale_name_posix, test_locale_name_environ,
6616         test_locale_name_default): New functions.
6617         (main): Invoke them all.
6618         * modules/localename-tests (configure.ac): Test for newlocale.
6619
6620 2009-12-23  Bruno Haible  <bruno@clisp.org>
6621
6622         unistd: Ensure getcwd gets declared before being overridden.
6623         * lib/unistd.in.h: Conditionally include <io.h>.
6624
6625 2009-12-22  Bruno Haible  <bruno@clisp.org>
6626
6627         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6628         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6629         (gl_WCHAR_H): Invoke it.
6630         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6631         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6632         Reported by Karl Berry <karl@freefriends.org>.
6633
6634 2009-12-22  Eric Blake  <ebb9@byu.net>
6635
6636         math, unistd: avoid redundant includes
6637         * lib/math.in.h (isnan): No need to re-include <math.h>.
6638         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6639
6640         getsubopt: work around cygwin bug
6641         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6642         avoid conflicting with system getsubopt.
6643         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6644         bug.
6645
6646         getopt: synchronize from glibc
6647         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6648         parameter order.  Adjust all callers.
6649         (_getopt_internal_r, main): Adjust quoting in error messages.
6650         Drop considerations for outdated POSIX 1003.2 error message.
6651         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6652         callers.
6653         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6654
6655         test-getopt: test stderr behavior
6656         * modules/getopt-posix-tests (Depends-on): Add dup2.
6657         * tests/test-getopt.c (ASSERT): Avoid stderr.
6658         (main): Move stderr to a temporary file.
6659         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6660         Instead, add parameter to inform caller if output occurred.
6661         (test_getopt): Adjust all existing tests to expect silence, and
6662         add new tests of leading ":".
6663         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6664         glibc shortcomings with leading "-:" or "+:" in optstring.
6665         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6666         Likewise.
6667         * doc/posix-functions/getopt.texi (getopt): Likewise.
6668
6669         test-getopt: enhance test
6670         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6671         supports optind=0.
6672         * tests/test-getopt.c (OPTIND_MIN): Move...
6673         * tests/test-getopt.h (OPTIND_MIN): ...here.
6674         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6675         Require that optind=0 works, since modern BSD supports it in
6676         addition to optreset, and since coreutils expects it.
6677         (test_getopt_long_only): New test.
6678         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6679         glibc shortcomings with 'W;', and enforcement of optind=0.
6680         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6681         Likewise.
6682
6683 2009-12-21  Bruno Haible  <bruno@clisp.org>
6684
6685         localename: Improvements for MacOS X and Cygwin.
6686         * lib/localename.h (gl_locale_name_environ): New declaration.
6687         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6688         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6689         (gl_locale_name_posix): Invoke it.
6690         (gl_locale_name_default): Add comments. Use Windows native API also on
6691         Cygwin.
6692
6693 2009-12-21  Bruno Haible  <bruno@clisp.org>
6694
6695         Update list of Win32 locale ids.
6696         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6697         (LANG_SAMI): Renamed from LANG_SAAMI.
6698         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6699         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6700         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6701         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6702         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6703         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6704         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6705         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6706         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6707         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6708         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6709         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6710         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6711         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6712         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6713         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6714         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6715         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6716         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6717         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6718         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6719         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6720         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6721         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6722         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6723         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6724         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6725         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6726         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6727         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6728         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6729         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6730         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6731         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6732         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6733         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6734         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6735         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6736         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6737         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6738         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6739         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6740         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6741         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6742         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6743         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6744         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6745         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6746         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6747         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6748         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6749         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6750         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6751         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6752         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6753         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6754         Add more languages and countries for Sami, Sorbian. Add more countries
6755         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6756         for Pashto. Change country for Syriac, Tswana.
6757
6758 2009-12-21  Eric Blake  <ebb9@byu.net>
6759
6760         test-utimens: avoid spurious failure
6761         * tests/test-chown.h (nap): Factor...
6762         * tests/nap.h: ...into new file.
6763         * tests/test-lchown.h (nap): Avoid duplication.
6764         * tests/test-utimens-common.h (nap): Use shared implementation,
6765         necessary on file systems with 1-second resolution.
6766         * modules/chown-tests (Files): Include new file.
6767         * modules/fdutimensat-tests (Files): Likewise.
6768         * modules/futimens-tests (Files): Likewise.
6769         * modules/lchown-tests (Files): Likewise.
6770         * modules/openat-tests (Files): Likewise.
6771         * modules/utimens-tests (Files): Likewise.
6772         * modules/utimensat-tests (Files): Likewise.
6773
6774 2009-12-19  Eric Blake  <ebb9@byu.net>
6775
6776         futimens, utimensat: work around Linux bug
6777         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6778         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6779         * lib/utimensat.c (rpl_utimensat): Work around it.
6780         * lib/futimens.c (rpl_futimens): Adjust comment.
6781
6782         utimens: work around Linux ctime bug
6783         * lib/utimens.c (detect_ctime_bug): New helper function.
6784         (update_timespec): Differentiate between workaround needed for
6785         this bug vs. what is needed for systems that lack utimensat.
6786         (fdutimens, lutimens): Work around bug.
6787
6788         utimens: check for ctime update
6789         * tests/test-utimens-common.h (check_ctime): Define.
6790         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6791         * tests/test-futimens.h (test_futimens): Likewise.
6792         * tests/test-lutimens.h (test_lutimens): Likewise.
6793         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6794         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6795
6796 2009-12-19  Bruno Haible  <bruno@clisp.org>
6797
6798         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6799         * tests/test-dprintf-posix2.sh: New file.
6800         * tests/test-dprintf-posix2.c: New file.
6801         * modules/dprintf-posix-tests (Files): Add them.
6802         (configure.ac): Check for getrlimit and setrlimit.
6803         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6804
6805 2009-12-19  Bruno Haible  <bruno@clisp.org>
6806
6807         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6808         * tests/test-fprintf-posix3.sh: New file.
6809         * tests/test-fprintf-posix3.c: New file.
6810         * modules/fprintf-posix-tests (Files): Add them.
6811         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6812
6813 2009-12-19  Eric Blake  <ebb9@byu.net>
6814
6815         dirfd: fix prototype
6816         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6817         * lib/dirfd.c (dirfd): Likewise.
6818
6819         canonicalize: reduce memory usage
6820         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6821         allocation to size.
6822         Reported by Solar Designer <solar@openwall.com>.
6823
6824 2009-12-19  Bruno Haible  <bruno@clisp.org>
6825
6826         New module attribute 'Applicability'.
6827         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6828         * gnulib-tool: New option --extract-applicability.
6829         (func_usage): Document it.
6830         (sed_extract_prog): Recognize it.
6831         (func_get_applicability): New function.
6832         (func_import): Generalize handling of 'link-warning' module.
6833         * modules/link-warning (Applicability): New section.
6834         * modules/arg-nonnull (Applicability): New section.
6835         Repoted by Simon Josefsson <simon@josefsson.org>.
6836
6837 2009-12-19  Bruno Haible  <bruno@clisp.org>
6838
6839         fflush: tweak
6840         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6841         * lib/fseeko.c (rpl_fseeko): Likewise.
6842
6843 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6844
6845         * lib/gl_list.h: Fix typo in comment.
6846
6847 2009-12-16  Eric Blake  <ebb9@byu.net>
6848
6849         fcntl: use to simplify other modules
6850         * modules/cloexec (Depends-on): Add fcntl.
6851         * modules/fchdir (Depends-on): Likewise.
6852         * modules/fd-safer-flag (Depends-on): Likewise.
6853         * modules/unistd-safer (Depends-on): Likewise.
6854         * modules/dup3 (configure.ac): Set module indicator.
6855         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6856         missing.
6857         * lib/fchdir.c (_gl_register_dup): Fix comment.
6858         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6859         * lib/dup-safer.c (dup_safer): Likewise.
6860         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6861         * lib/dup3.c (dup3): Likewise.
6862         * tests/test-fchdir.c (main): Enhance test.
6863         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
6864
6865         fcntl: port portions of fcntl to mingw
6866         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6867         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6868         replacement for mingw.
6869         * modules/fcntl (Description): Update.
6870         (Depends-on): Add dup2.
6871         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6872         * modules/fcntl-h (Makefile.am): Substitute it.
6873         * lib/fcntl.in.h (fcntl): Update declaration.
6874         (F_DUPFD, F_GETFD): New macros, when needed.
6875         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6876         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6877         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6878         we now guarantee.
6879
6880         fcntl: work around cygwin bug in F_DUPFD
6881         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6882         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6883         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6884         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6885         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6886
6887         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6888         * modules/fcntl (Files): List new files.
6889         (configure.ac): Run a test.
6890         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6891         * lib/fcntl.c (rpl_fcntl): Likewise.
6892         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6893         (gl_FCNTL_H): Always replace fcntl.h.
6894         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6895         * lib/fcntl.in.h (fcntl): Declare replacement.
6896         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6897         needed, plus a witness.
6898         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6899         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6900         * tests/test-fcntl.c: New file.
6901         * modules/fcntl-tests: Likewise.
6902
6903         binary-io: avoid potential compilation warning
6904         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6905         directives.
6906
6907         fflush: avoid compilation error on NetBSD
6908         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6909         between off_t and fpos_t, since the latter is sometimes a struct.
6910         * lib/fseeko.c (rpl_fseeko): Likewise.
6911         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6912
6913 2009-12-15  Eric Blake  <ebb9@byu.net>
6914
6915         fcntl-h, stdio, sys_ioctl: fix declarations
6916         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6917         function must not take arguments.
6918         * lib/sys_ioctl.in.h (ioctl): Likewise.
6919         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
6920         (open): Add a link warning.
6921
6922 2009-12-15  Jim Meyering  <meyering@redhat.com>
6923
6924         areadlink, areadlink-with-size: relax license to LGPLv2+
6925         * modules/areadlink (License): Relax to LGPLv2+.
6926         * modules/areadlink-with-size (License): Likewise.
6927
6928 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
6929             Bruno Haible  <bruno@clisp.org>
6930
6931         *printf: Fix memory leak.
6932         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6933         * lib/vfprintf.c (vfprintf): Likewise.
6934         * lib/dprintf.c (dprintf): Likewise.
6935         * lib/vdprintf.c (vdprintf): Likewise.
6936
6937 2009-12-14  Eric Blake  <ebb9@byu.net>
6938
6939         accept4: adjust module dependencies
6940         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6941
6942         utimens: one more try at avoiding compiler warning
6943         * lib/utimens.c (lutimens): Lower scope of result.
6944
6945 2009-12-13  Bruno Haible  <bruno@clisp.org>
6946
6947         Move the malloc checking from module 'list' to new module 'xlist'.
6948         * modules/xlist: New file.
6949         * lib/gl_xlist.h: New file.
6950         * lib/gl_xlist.c: New file.
6951         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6952         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6953         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6954         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6955         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6956         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6957         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6958         gl_sortedlist_nx_add): New declarations.
6959         (struct gl_list_implementation): Rename and change methods accordingly.
6960         (gl_list_nx_create_empty): Renamed from 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_list.c (gl_list_nx_create_empty): Renamed from
6971         gl_list_create_empty.
6972         (gl_list_nx_create): Renamed from gl_list_create.
6973         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6974         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6975         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6976         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6977         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6978         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6979         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6980         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6981         * lib/gl_array_list.c: Don't include xalloc.h.
6982         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6983         NULL upon out-of-memory.
6984         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6985         out-of-memory.
6986         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6987         Change return type to 'int'.
6988         (gl_array_nx_set_at): Renamed from gl_array_set_at.
6989         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6990         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6991         upon out-of-memory.
6992         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6993         upon out-of-memory.
6994         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6995         upon out-of-memory.
6996         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6997         upon out-of-memory.
6998         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6999         out-of-memory.
7000         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
7001         Update.
7002         (gl_array_list_implementation): Update.
7003         * lib/gl_carray_list.c: Don't include xalloc.h.
7004         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
7005         Return NULL upon out-of-memory.
7006         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
7007         out-of-memory.
7008         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
7009         Change return type to 'int'.
7010         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7011         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7012         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7013         upon out-of-memory.
7014         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7015         upon out-of-memory.
7016         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7017         out-of-memory.
7018         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7019         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7020         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7021         Update.
7022         (gl_carray_list_implementation): Update.
7023         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7024         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7025         gl_linked_create_empty. Return NULL upon out-of-memory.
7026         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7027         out-of-memory.
7028         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7029         Change return type to 'int'. Return -1 upon out-of-memory.
7030         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7031         out-of-memory.
7032         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7033         upon out-of-memory.
7034         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7035         upon out-of-memory.
7036         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7037         NULL upon out-of-memory.
7038         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7039         upon out-of-memory.
7040         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7041         out-of-memory.
7042         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7043         Update.
7044         * lib/gl_linked_list.c: Don't include xalloc.h.
7045         (gl_linked_list_implementation): Update.
7046         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7047         (add_to_bucket): Change return type to 'int'.
7048         (gl_linkedhash_list_implementation): Update.
7049         * lib/gl_anytree_list1.h (free_subtree): New function.
7050         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7051         gl_tree_create_empty. Return NULL upon out-of-memory.
7052         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7053         Change return type to 'int'. Return -1 upon out-of-memory.
7054         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7055         out-of-memory.
7056         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7057         (gl_tree_remove_node): New function, moved here from
7058         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7059         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7060         Update.
7061         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7062         malloc, not xmalloc. Return NULL upon out-of-memory.
7063         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7064         out-of-memory.
7065         (gl_tree_remove_node_from_tree): New function, extracted from
7066         gl_tree_remove_node.
7067         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7068         upon out-of-memory.
7069         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7070         out-of-memory.
7071         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7072         upon out-of-memory.
7073         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7074         upon out-of-memory.
7075         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7076         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7077         not xmalloc. Return NULL upon out-of-memory.
7078         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7079         out-of-memory.
7080         (gl_tree_remove_node_from_tree): New function, extracted from
7081         gl_tree_remove_node.
7082         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7083         upon out-of-memory.
7084         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7085         out-of-memory.
7086         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7087         upon out-of-memory.
7088         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7089         upon out-of-memory.
7090         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7091         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7092         gl_anytree_list1.h before gl_anyavltree_list2.h.
7093         (gl_avltree_list_implementation): Update.
7094         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7095         gl_anytree_list1.h before gl_anyavltree_list2.h.
7096         (gl_rbtree_list_implementation): Update.
7097         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7098         Change return type to 'int'. Return -1 upon out-of-memory. Use
7099         __builtin_expect.
7100         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7101         (gl_avltreehash_list_implementation): Update.
7102         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7103         (gl_rbtreehash_list_implementation): Update.
7104         * modules/array-list (Depends-on): Remove xalloc.
7105         * modules/carray-list (Depends-on): Likewise.
7106         * modules/linked-list (Depends-on): Likewise.
7107         * modules/linkedhash-list (Depends-on): Likewise.
7108         * modules/avltree-list (Depends-on): Likewise.
7109         * modules/rbtree-list (Depends-on): Likewise.
7110         * modules/avltreehash-list (Depends-on): Likewise.
7111         * modules/rbtreehash-list (Depends-on): Likewise.
7112
7113         * modules/xsublist: New file.
7114         * lib/gl_xsublist.h: New file.
7115         * lib/gl_xsublist.c: New file.
7116         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7117         (gl_sublist_nx_create): New declaration.
7118         * lib/gl_sublist.c: Don't include xalloc.h.
7119         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7120         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7121         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7122         Change return type to 'int'. Return -1 upon out-of-memory.
7123         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7124         upon out-of-memory.
7125         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7126         NULL upon out-of-memory.
7127         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7128         upon out-of-memory.
7129         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7130         NULL upon out-of-memory.
7131         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7132         NULL upon out-of-memory.
7133         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7134         upon out-of-memory.
7135         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7136         (gl_sublist_list_implementation): Update.
7137         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7138         upon out-of-memory.
7139         * modules/sublist (Depends-on): Remove xalloc.
7140
7141         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7142         * tests/test-carray_list.c: Likewise.
7143         * tests/test-linked_list.c: Likewise.
7144         * tests/test-linkedhash_list.c: Likewise.
7145         * tests/test-avltree_list.c: Likewise.
7146         * tests/test-rbtree_list.c: Likewise.
7147         * tests/test-avltreehash_list.c: Likewise.
7148         * tests/test-rbtreehash_list.c: Likewise.
7149         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7150         * modules/carray-list-tests (Makefile.am): Likewise.
7151         * modules/linked-list-tests (Makefile.am): Likewise.
7152         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7153         * modules/avltree-list-tests (Makefile.am): Likewise.
7154         * modules/rbtree-list-tests (Makefile.am): Likewise.
7155         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7156         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7157
7158         * NEWS: Mention the changes.
7159
7160         * lib/clean-temp.c: Include gl_xlist.h.
7161         * modules/clean-temp (Depends-on): Add xlist.
7162
7163         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7164         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7165
7166         * tests/test-array_oset.c: Include gl_xlist.h.
7167         * modules/array-oset-tests (Depends-on): Add xlist.
7168
7169         Reported by José E. Marchesi <jemarch@gnu.org>.
7170
7171 2009-12-13  Bruno Haible  <bruno@clisp.org>
7172
7173         Move the malloc checking from module 'oset' to new module 'xoset'.
7174         * modules/xoset: New file.
7175         * lib/gl_xoset.h: New file.
7176         * lib/gl_xoset.c: New file.
7177         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7178         declarations.
7179         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7180         (struct gl_oset_implementation): Rename and change methods accordingly.
7181         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7182         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7183         'int'. Mark as __warn_unused_result__.
7184         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7185         gl_oset_create_empty.
7186         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7187         'int'.
7188         * lib/gl_array_oset.c: Don't include xalloc.h.
7189         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7190         malloc, not xmalloc.
7191         (grow): Change return type to 'int'. Don't call xalloc_die.
7192         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7193         to 'int'.
7194         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7195         'int'.
7196         (gl_array_oset_implementation): Update.
7197         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7198         gl_tree_create_empty.
7199         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7200         'int'.
7201         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7202         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7203         xmalloc.
7204         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7205         not xmalloc.
7206         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7207         xmalloc.
7208         (gl_avltree_oset_implementation): Update.
7209         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7210         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7211         xmalloc.
7212         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7213         not xmalloc.
7214         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7215         xmalloc.
7216         (gl_rbtree_oset_implementation): Update.
7217         * modules/array-oset (Depends-on): Remove xalloc.
7218         * modules/avltree-oset (Depends-on): Likewise.
7219         * modules/rbtree-oset (Depends-on): Likewise.
7220         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7221         * tests/test-avltree_oset.c: Likewise.
7222         * tests/test-rbtree_oset.c: Likewise.
7223         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7224         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7225         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7226         * NEWS: Mention the change.
7227
7228 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7229
7230         maint.mk: allow a project to override release-prep commands
7231         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7232         commands into a new rule.
7233         (release-prep): New rule.
7234         (release-prep-hook): New overridable variable.
7235
7236 2009-12-13  Bruno Haible  <bruno@clisp.org>
7237
7238         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7239
7240 2009-12-13  Jim Meyering  <meyering@redhat.com>
7241
7242         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7243         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7244
7245 2009-12-12  Bruno Haible  <bruno@clisp.org>
7246
7247         duplocale: Tweak.
7248         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7249
7250 2009-12-12  Karl Berry  <karl@gnu.org>
7251
7252         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7253
7254 2009-12-12  Bruno Haible  <bruno@clisp.org>
7255
7256         * m4/po.m4: Undo incorrect untabification.
7257
7258 2009-12-12  Bruno Haible  <bruno@clisp.org>
7259
7260         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7261         * modules/c-strtod (Depends-on): Add locale.
7262         * modules/c-strtold (Depends-on): Likewise.
7263
7264 2009-12-12  Bruno Haible  <bruno@clisp.org>
7265
7266         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7267
7268 2009-12-11  Eric Blake  <ebb9@byu.net>
7269
7270         setenv: relax requirement in light of POSIX ruling
7271         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7272         not NULL.
7273         * tests/test-setenv.c (main): Relax test.
7274         * tests/test-unsetenv.c (main): Likewise.
7275         * doc/posix-functions/setenv.texi (setenv): Document this.
7276         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7277
7278 2009-12-11  Bruno Haible  <bruno@clisp.org>
7279
7280         New module 'fd-safer-flag'.
7281         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7282         * lib/dup-safer.c (dup_safer_flag): Remove function.
7283         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7284         * lib/fd-safer.c (fd_safer_flag): Remove function.
7285         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7286         * modules/cloexec (configure.ac): Drop indicator macro.
7287         * modules/fd-safer-flag: New file.
7288         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7289         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7290         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7291
7292 2009-12-11  Bruno Haible  <bruno@clisp.org>
7293
7294         Tests for module 'nl_langinfo'.
7295         * modules/nl_langinfo-tests: New file.
7296         * tests/test-nl_langinfo.sh: New file.
7297         * tests/test-nl_langinfo.c: New file.
7298
7299         New module 'nl_langinfo'.
7300         * lib/nl_langinfo.c: New file.
7301         * m4/nl_langinfo.m4: New file.
7302         * modules/nl_langinfo: New file.
7303         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7304
7305 2009-12-11  Bruno Haible  <bruno@clisp.org>
7306
7307         Tests for module 'langinfo'.
7308         * modules/langinfo-tests: New file.
7309         * tests/test-langinfo.c: New file.
7310
7311         New module 'langinfo'.
7312         * lib/langinfo.in.h: New file.
7313         * m4/langinfo_h.m4: New file.
7314         * modules/langinfo: New file.
7315         * doc/posix-headers/langinfo.texi: Mention the new module.
7316
7317 2009-12-11  Bruno Haible  <bruno@clisp.org>
7318
7319         * lib/config.charset: Untabify.
7320
7321 2009-12-11  Bruno Haible  <bruno@clisp.org>
7322
7323         * modules/unistd-safer (configure.ac): Drop indicator macro.
7324
7325 2009-12-11  Bruno Haible  <bruno@clisp.org>
7326
7327         Move pipe2-safer code to its own file.
7328         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7329         * lib/pipe-safer.c (pipe2_safer): Remove function.
7330         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7331         (Makefile.am): Add it to lib_SOURCES.
7332
7333 2009-12-10  Bruno Haible  <bruno@clisp.org>
7334
7335         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7336
7337 2009-12-10  Bruno Haible  <bruno@clisp.org>
7338
7339         Declare which arguments expect non-NULL values, for GCC and clang.
7340         * build-aux/arg-nonnull.h: New file.
7341         * modules/arg-nonnull: New file.
7342         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7343         (inet_ntop, inet_pton): Use it.
7344         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7345         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7346         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7347         (open, openat): Use it.
7348         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7349         (fnmatch): Use it.
7350         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7351         (getopt, getopt_long, getopt_long_only): Use it.
7352         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7353         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7354         Use it.
7355         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7356         (iconv_open): Use it.
7357         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7358         (strtoimax, strtoumax): Use it.
7359         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7360         (duplocale): Use it.
7361         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7362         (frexp, frexpl): Use it.
7363         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7364         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7365         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7366         (tsearch, tfind, tdelete, twalk): Use it.
7367         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7368         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7369         sigpending): Use it.
7370         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7371         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7372         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7373         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7374         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7375         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7376         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7377         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7378         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7379         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7380         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7381         Use it.
7382         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7383         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7384         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7385         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7386         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7387         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7388         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7389         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7390         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7391         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7392         strtoull, unsetenv): Use it.
7393         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7394         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7395         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7396         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7397         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7398         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7399         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7400         (strcasecmp, strncasecmp): Use it.
7401         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7402         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7403         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7404         rpl_setsockopt): Use it.
7405         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7406         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7407         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7408         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7409         (gettimeofday): Use it.
7410         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7411         (times): Use it.
7412         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7413         (uname): Use it.
7414         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7415         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7416         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7417         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7418         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7419         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7420         unlinkat, write): Use it.
7421         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7422         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7423         * lib/argv-iter.h: Include arg-nonnull.h.
7424         (_ATTRIBUTE_NONNULL_): Remove macro.
7425         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7426         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7427         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7428         optimization.
7429         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7430         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7431         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7432         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7433         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7434         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7435         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7436         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7437         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7438         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7439         * modules/dirent (Depends-on): Add arg-nonnull.
7440         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7441         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7442         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7443         * modules/fnmatch (Depends-on): Add arg-nonnull.
7444         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7445         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7446         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7447         * modules/glob (Depends-on): Add arg-nonnull.
7448         (Makefile.am): Insert arg-nonnull.h into glob.h.
7449         * modules/iconv_open (Depends-on): Add arg-nonnull.
7450         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7451         * modules/inttypes (Depends-on): Add arg-nonnull.
7452         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7453         * modules/locale (Depends-on): Add arg-nonnull.
7454         (Makefile.am): Insert arg-nonnull.h into locale.h.
7455         * modules/math (Depends-on): Add arg-nonnull.
7456         (Makefile.am): Insert arg-nonnull.h into math.h.
7457         * modules/netdb (Depends-on): Add arg-nonnull.
7458         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7459         * modules/search (Depends-on): Add arg-nonnull.
7460         (Makefile.am): Insert arg-nonnull.h into search.h.
7461         * modules/signal (Depends-on): Add arg-nonnull.
7462         (Makefile.am): Insert arg-nonnull.h into signal.h.
7463         * modules/spawn (Depends-on): Add arg-nonnull.
7464         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7465         * modules/stdio (Depends-on): Add arg-nonnull.
7466         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7467         * modules/stdlib (Depends-on): Add arg-nonnull.
7468         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7469         * modules/string (Depends-on): Add arg-nonnull.
7470         (Makefile.am): Insert arg-nonnull.h into string.h.
7471         * modules/strings (Depends-on): Add arg-nonnull.
7472         (Makefile.am): Insert arg-nonnull.h into strings.h.
7473         * modules/sys_socket (Depends-on): Add arg-nonnull.
7474         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7475         * modules/sys_stat (Depends-on): Add arg-nonnull.
7476         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7477         * modules/sys_time (Depends-on): Add arg-nonnull.
7478         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7479         * modules/sys_times (Depends-on): Add arg-nonnull.
7480         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7481         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7482         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7483         * modules/time (Depends-on): Add arg-nonnull.
7484         (Makefile.am): Insert arg-nonnull.h into time.h.
7485         * modules/unistd (Depends-on): Add arg-nonnull.
7486         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7487         * modules/wchar (Depends-on): Add arg-nonnull.
7488         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7489         * modules/argv-iter (Depends-on): Add arg-nonnull.
7490         * tests/test-canonicalize.c (null_ptr): New function.
7491         (main): Use it.
7492         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7493         (main): Use it.
7494         * tests/test-memmem.c (null_ptr): New function.
7495         (main): Use it.
7496         Reported by Jim Meyering.
7497
7498 2009-12-10  Bruno Haible  <bruno@clisp.org>
7499
7500         Use spaces for indentation, not tabs.
7501         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7502         * m4/*.m4: Untabify.
7503         * build-aux/*.h: Untabify.
7504         * tests/**/*.[hc]: Untabify.
7505         * README: New section "Indent with spaces, not TABs", based on
7506         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7507         * NEWS: Mention the change.
7508
7509 2009-12-10  Bruno Haible  <bruno@clisp.org>
7510
7511         pty test: Fix link error.
7512         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7513         test_pty_LDADD.
7514
7515 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7516
7517         * modules/pty: New file.
7518         * modules/pty-tests: New file.
7519         * m4/pty.m4: New file.
7520         * tests/test-pty.c: New file.
7521         * doc/glibc-headers/pty.texi: Modified.
7522         * doc/glibc-functions/forkpty.texi: Modified.
7523         * doc/glibc-functions/openpty.texi: Modified.
7524
7525 2009-12-10  Bruno Haible  <bruno@clisp.org>
7526
7527         Avoid syntax error in C++ mode.
7528         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7529
7530 2009-12-10  Bruno Haible  <bruno@clisp.org>
7531
7532         Use sed with option -e.
7533         * gnulib-tool (func_version, func_emit_copyright_notice,
7534         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7535         option -e to sed.
7536         * modules/link-warning (Makefile.am): Likewise.
7537
7538 2009-12-10  Jim Meyering  <meyering@redhat.com>
7539
7540         mgetgroups: do not write bytes beyond end of malloc'd buffer
7541         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7542         username, we call getgroups with a one-element-shorter buffer,
7543         but still told it the length was original, max_n_groups.
7544
7545 2009-12-09  Eric Blake  <ebb9@byu.net>
7546
7547         cloexec: relax license
7548         * modules/cloexec (Maintainer): Add myself.
7549         (License): Use LGPL, not GPL.
7550
7551         link-warning: optimize generation
7552         * modules/link-warning (Makefile.am): Reduce process usage.
7553
7554 2009-12-09  Bruno Haible  <bruno@clisp.org>
7555
7556         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7557         workaround was added on 2009-11-17.
7558
7559 2009-12-09  Jim Meyering  <meyering@redhat.com>
7560             Bruno Haible  <bruno@clisp.org>
7561
7562         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7563         * modules/link-warning (Makefile.am): Make the comment-removing sed
7564         command more robust in the face of bootstrap-prepended comment lines.
7565
7566 2009-12-09  Bruno Haible  <bruno@clisp.org>
7567
7568         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7569         most one group.
7570
7571 2009-12-09  Simon Josefsson <simon@josefsson.org>
7572             Bruno Haible  <bruno@clisp.org>
7573
7574         * build-aux/link-warning.h: Add copyright notice.
7575         * modules/link-warning (Makefile.am): Generate link-warning.h from
7576         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7577         * NEWS: Mention change in link-warning module.
7578         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7579         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7580         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7581         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7582         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7583         * modules/math (Makefile.am): Add dependency to math.h.
7584         * modules/search (Makefile.am): Add dependency to search.h.
7585         * modules/signal (Makefile.am): Add dependency to signal.h.
7586         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7587         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7588         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7589         * modules/string (Makefile.am): Add dependency to string.h.
7590         * modules/strings (Makefile.am): Add dependency to strings.h.
7591         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7592         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7593         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7594         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7595         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7596         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7597         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7598         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7599         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7600
7601 2009-12-09  Bruno Haible  <bruno@clisp.org>
7602
7603         fchdir: Optimize away rpl_fstat when possible.
7604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7605         REPLACE_OPEN_DIRECTORY.
7606         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7607
7608 2009-12-09  Bruno Haible  <bruno@clisp.org>
7609
7610         * lib/fchdir.c: Update comment.
7611
7612 2009-12-09  Bruno Haible  <bruno@clisp.org>
7613
7614         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7615
7616 2009-12-08  Eric Blake  <ebb9@byu.net>
7617
7618         fchdir: avoid memory leak on re-registration.
7619         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7620
7621 2009-12-08  Jim Meyering  <meyering@redhat.com>
7622
7623         init.sh: avoid Solaris 10 /bin/sh portability problem
7624         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7625         sourced script:
7626           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7627           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7628           bar
7629         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7630         and two tests used that idiom.
7631         * tests/init.sh: Update suggested usage comments.
7632         (path_prepend_): New function, to be used in place
7633         of the --src-path=DIR option.
7634         (setup_): Move PATH-prepending code into path_prepend_.
7635         * tests/test-pread.sh: Adapt to new usage.
7636         * tests/test-xalloc-die.sh: Likewise.
7637
7638 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7639
7640         * doc/gnulib.texi (Glibc pty.h): Add.
7641         * doc/glibc-functions/forkpty.texi: Add.
7642         * doc/glibc-functions/openpty.texi: Add.
7643         Suggested by Bruno Haible.
7644
7645 2009-12-08  Eric Blake  <ebb9@byu.net>
7646
7647         fchdir: fix logic bugs
7648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7649         * tests/test-fchdir.c (main): Enhance test.
7650         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7651         is in use.
7652
7653         dup2: fix logic bugs
7654         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7655         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7656         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7657         exists.
7658         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7659
7660 2009-12-07  Eric Blake  <ebb9@byu.net>
7661
7662         unlink: fix m4 detection
7663         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7664
7665         unistd-safer: add unit test
7666         * modules/unistd-safer-tests: New file.
7667         * tests/test-dup-safer.c: Likewise.
7668         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7669         * tests/test-dup2.c (setmode): Likewise.
7670         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7671
7672         cloexec: preserve text vs. binary across dup_cloexec
7673         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7674         mode.
7675         * modules/dup2-tests (Depends-on): Add binary-io.
7676         * modules/cloexec-tests (Depends-on): Likewise.
7677         * tests/test-dup2.c (setmode, is_mode): New helpers.
7678         (main): Add tests that translation mode is preserved.
7679         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7680         Reported by Bruno Haible.
7681
7682         mgetgroups: reduce duplicate listings
7683         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7684         resulting array.
7685         * tests/test-chown.h (test_chown): Simplify client.
7686         * tests/test-lchown.h (test_lchown): Likewise.
7687
7688 2009-12-06  Bruno Haible  <bruno@clisp.org>
7689
7690         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7691         value.
7692
7693 2009-12-06  Bruno Haible  <bruno@clisp.org>
7694
7695         * lib/progname.c: Include stdio.h, stdlib.h.
7696         (set_program_name): Reject a NULL argument.
7697
7698 2009-12-05  Eric Blake  <ebb9@byu.net>
7699
7700         pipe2-safer: new module
7701         * modules/pipe2-safer: New file.
7702         * lib/unistd-safer.h (pipe2_safer): New prototype.
7703         * lib/unistd--.h (pipe2): New wrapper.
7704         * lib/pipe-safer.c (pipe2_safer): New function.
7705         * modules/pipe (Depends-on): Add pipe2-safer.
7706         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7707
7708         stdlib-safer: preserve cloexec flag for mkostemp[s]
7709         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7710         fd_safer_flag.
7711
7712         unistd-safer: allow preservation of cloexec status via flag
7713         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7714         prototypes.
7715         * lib/dup-safer.c (dup_safer_flag): New function.
7716         * lib/fd-safer.c (fd_safer_flag): Likewise.
7717         * modules/cloexec (configure.ac): Set witness.
7718
7719         test-dup2: enhance test
7720         * modules/dup2-tests (Depends-on): Add cloexec.
7721         * tests/test-dup2.c (main): Enhance test.
7722
7723         cloexec: add dup_cloexec
7724         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7725         header and comments.
7726         * lib/cloexec.c (set_cloexec_flag): Add comments.
7727         (dup_cloexec): New function, with mingw implementation borrowed
7728         from...
7729         * lib/w32spawn.h (dup_noinherit): ...here.
7730         * modules/execute (Depends-on): Add cloexec.
7731         * modules/pipe (Depends-on): Likewise.
7732         * modules/cloexec (Depends-on): Add dup2.
7733         * modules/cloexec-tests (Files): New file.
7734         * tests/test-cloexec.c: Likewise.
7735
7736         test-xalloc-die: fix test for mingw
7737         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7738         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7739         directory and .exe suffix off argv[0] output.
7740
7741         test-fseeko: fix test for mingw
7742         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7743         than undefining fseek, so test will pass on mingw.
7744
7745 2009-12-05  Bruno Haible  <bruno@clisp.org>
7746
7747         * lib/progname.h (set_program_name): Clarify specification.
7748         * lib/progname.c (set_program_name): Likewise.
7749         Reported by Jim Meyering.
7750
7751 2009-12-05  Jim Meyering  <meyering@redhat.com>
7752
7753         maint.mk: backslash-escape parens in default regexp
7754         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7755         backslash-escape the literal parentheses.
7756
7757         maint.mk: news-date-check: use grep -E
7758         * top/maint.mk (today): Define a Make variable, not a...
7759         (news-date-check): ...shell variable.
7760         (news-date-regexp): Use the Make variable.
7761         Use grep's -E option.  Change the failing diagnostic to mention
7762         the variable, $(news-date-regexp).
7763
7764 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7765
7766         maintainer-makefile: allow customization of NEWS entry format
7767         * top/maint.mk (news-date-regexp): New overridable variable.
7768         (news-date-check): Use it.
7769
7770 2009-12-04  Eric Blake  <ebb9@byu.net>
7771
7772         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7773         * lib/mgetgroups.h (xgetgroups): New prototype.
7774         * lib/mgetgroups.c (xgetgroups): New wrapper.
7775         (mgetgroups): Handle ENOSYS.
7776         * modules/mgetgroups (Depends-on): Add realloc.
7777         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7778
7779         mgetgroups: avoid argument promotion issues with -1
7780         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7781         for invalid gid_t.
7782         * tests/test-chown.h (getegid, test_chown): Likewise.
7783         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7784
7785 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7786
7787         exclude: Fix header file problems.
7788         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7789
7790 2009-12-01  Jim Meyering  <meyering@redhat.com>
7791
7792         fts: fts_open: do not let an empty string cause immediate failure
7793         This is required in support of GNU rm, for which the command
7794         "rm A '' B" must process and remove both A and B, in spite of
7795         the empty string argument.
7796         * lib/fts.c (fts_open): Do not let the presence of an empty string
7797         cause fts_open to fail immediately.  Most fts-using tools must be
7798         able to process all arguments, in order, and can be expected to
7799         diagnose such arguments themselves.
7800
7801 2009-11-30  Eric Blake  <ebb9@byu.net>
7802
7803         utimens: fix compilation error
7804         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7805         Declare variable at right scope.
7806
7807 2009-11-29  Jim Meyering  <meyering@redhat.com>
7808
7809         bootstrap: handle perl-5.11's changed --version output
7810         * build-aux/bootstrap (get_version): Handle perl separately,
7811         since perl-5.11's --version output is different.
7812
7813 2009-11-28  Jim Meyering  <meyering@redhat.com>
7814
7815         userspec: depend on the inttostr module, too
7816         * modules/userspec (Depends-on): Add inttostr.
7817
7818         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7819         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7820         number of MAXUID when it evaluates to (uid_t) -1.
7821         Likewise for group ID.  Reported by Matt McCutchen in
7822         <http://savannah.gnu.org/bugs/?28113>
7823
7824         userspec: reformat to use spaces, not TABs
7825         * lib/userspec.c: Expand TABs to spaces.
7826         Add Emacs' "indent-tabs-mode: nil" hint.
7827
7828 2009-11-27  Eric Blake  <ebb9@byu.net>
7829
7830         getopt-gnu: flush out another BSD bug
7831         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7832         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7833         flush out BSD bug.
7834         * tests/test-getopt.h (test_getopt): End lists with NULL.
7835         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7836         (test_getopt_long_posix): Enhance test.
7837         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7838         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7839         getopt-gnu.
7840         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7841         Likewise.
7842
7843 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7844
7845         * modules/idpriv-droptemp-tests (Notice): Fix text.
7846
7847 2009-11-27  Jim Meyering  <meyering@redhat.com>
7848
7849         test-xalloc-die: avoid spurious failure due to libtool argv difference
7850         In a libtool-enabled project, this test would fail due to a difference
7851         in the emitted program name, e.g.,
7852         -test-xalloc-die: memory exhausted
7853         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7854         Use program to avoid that.
7855         * modules/xalloc-die-tests (Depends-on): Add progname.
7856         * tests/test-xalloc-die.c: Include progname.h".
7857         (program_name): Remove decl.
7858         (main): Call set_program_name.
7859         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7860
7861 2009-11-26  Richard Jones  <rjones@redhat.com>
7862
7863         w32sock: leave win32 error in place.
7864         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7865
7866 2009-11-26  Eric Blake  <ebb9@byu.net>
7867
7868         init.sh: suggest to use skip_ and fail_ functions in comments
7869         * tests/init.sh: Add a sentence.
7870
7871 2009-11-25  Bruno Haible  <bruno@clisp.org>
7872
7873         init.sh: add documentation in comments
7874         * tests/init.sh: Add some developer and user documentation.
7875
7876 2009-11-26  Jim Meyering  <meyering@redhat.com>
7877
7878         init.sh: accommodate even those who specify bogus srcdir manually
7879         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7880         configure-time tests to be sanitized, so that there is no need to
7881         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7882         (with no double quotes) suffices.  However, since tests may be
7883         invoked manually, and since you may explicitly set srcdir to the
7884         name of a directory containing spaces, do quote its uses here.
7885         * tests/test-pread.sh: Likewise.
7886         Suggested by Bruno Haible.
7887
7888         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7889         * tests/test-pread.sh: Write no data into the pipe, because
7890         test-pread actually reads none.  This avoids a diagnostic,
7891         "bash: echo: write error: Broken pipe", that arises in the unusual
7892         event something is ignoring SIGPIPE, and might be interpreted
7893         as some sort of failure.  Reported by Bruno Haible.
7894
7895 2009-11-25  Jim Meyering  <meyering@redhat.com>
7896
7897         test-pread: cover failure with ESPIPE and EINVAL
7898         * tests/test-pread.c (main): Test for failure, too.
7899         * tests/test-pread.sh: Invoke with stdin on a pipe.
7900         Suggested by Eric Blake.
7901
7902         pread: improvement and fix
7903         * modules/pread (Depends-on): Depend on lseek, for portability to
7904         e.g., mingw.  Suggested by Eric Blake.
7905         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7906
7907         unistd.in.h: correct declaration of pread
7908         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7909         Reported by Richard W.M. Jones.
7910
7911         test-pread.sh: distribute the test script
7912         * modules/pread-tests (Files): Include test-pread.sh.
7913
7914         test-pread.sh: clean up
7915         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7916         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7917         That is unnecessary, since it's always ".".
7918         Suggestion from Eric Blake.
7919
7920         test-pread.sh: make executable
7921         * tests/test-pread.sh: Set executable bit.
7922         Reported by Eric Blake.
7923
7924         correct typo in test-pread.sh
7925         * tests/test-pread.sh: Add #! line.
7926
7927         test pread
7928         * tests/test-pread.c: New file.
7929         * tests/test-pread.sh: Likewise.
7930         * modules/pread-tests: Likewise.
7931
7932         pread: new module
7933         * modules/pread: New file.
7934         * lib/unistd.in.h (pread): Define/declare.
7935         * lib/pread.c (pread): New file.
7936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7937         * modules/unistd (Makefile.am): Substitute witnesses.
7938         * doc/posix-functions/pread.texi (pread): Update.
7939         * MODULES.html.sh: Add pread.
7940
7941 2009-11-25  Jim Meyering  <meyering@redhat.com>
7942
7943         tests/init.sh: new file to be used via most *.sh tests
7944         * tests/init.sh: New file.
7945
7946 2009-11-25  Eric Blake  <ebb9@byu.net>
7947
7948         utimens: work around older Linux failure with symlinks
7949         * lib/utimens.c (lutimensat_works_really): New variable.
7950         (fdutimens, lutimens): Use it to manage kernels that support
7951         nanosecond times on files, but not on symlinks.
7952         Reported by OndÅ™ej Vašík.
7953
7954         utimes: fix configure grammar
7955         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7956
7957 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7958
7959         regex: Fix fastmap for multibyte character ranges.
7960         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7961         characters when a multibyte character range is included.
7962
7963 2009-11-22  Andy Wingo  <wingo@pobox.com>
7964
7965         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7966         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7967
7968 2009-11-24  Bruno Haible  <bruno@clisp.org>
7969
7970         doc: Most *_l functions exist in MacOS X 10.5.
7971         * doc/posix-functions/duplocale.texi: Update platforms list.
7972         * doc/posix-functions/freelocale.texi: Likewise.
7973         * doc/posix-functions/newlocale.texi: Likewise.
7974         * doc/posix-functions/uselocale.texi: Likewise.
7975         * doc/posix-functions/isalnum_l.texi: Likewise.
7976         * doc/posix-functions/isalpha_l.texi: Likewise.
7977         * doc/posix-functions/isblank_l.texi: Likewise.
7978         * doc/posix-functions/iscntrl_l.texi: Likewise.
7979         * doc/posix-functions/isdigit_l.texi: Likewise.
7980         * doc/posix-functions/isgraph_l.texi: Likewise.
7981         * doc/posix-functions/islower_l.texi: Likewise.
7982         * doc/posix-functions/isprint_l.texi: Likewise.
7983         * doc/posix-functions/ispunct_l.texi: Likewise.
7984         * doc/posix-functions/isspace_l.texi: Likewise.
7985         * doc/posix-functions/isupper_l.texi: Likewise.
7986         * doc/posix-functions/iswalnum_l.texi: Likewise.
7987         * doc/posix-functions/iswalpha_l.texi: Likewise.
7988         * doc/posix-functions/iswblank_l.texi: Likewise.
7989         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7990         * doc/posix-functions/iswctype_l.texi: Likewise.
7991         * doc/posix-functions/iswdigit_l.texi: Likewise.
7992         * doc/posix-functions/iswgraph_l.texi: Likewise.
7993         * doc/posix-functions/iswlower_l.texi: Likewise.
7994         * doc/posix-functions/iswprint_l.texi: Likewise.
7995         * doc/posix-functions/iswpunct_l.texi: Likewise.
7996         * doc/posix-functions/iswspace_l.texi: Likewise.
7997         * doc/posix-functions/iswupper_l.texi: Likewise.
7998         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7999         * doc/posix-functions/isxdigit_l.texi: Likewise.
8000         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
8001         * doc/posix-functions/strcasecmp_l.texi: Likewise.
8002         * doc/posix-functions/strcoll_l.texi: Likewise.
8003         * doc/posix-functions/strfmon_l.texi: Likewise.
8004         * doc/posix-functions/strftime_l.texi: Likewise.
8005         * doc/posix-functions/strncasecmp_l.texi: Likewise.
8006         * doc/posix-functions/strxfrm_l.texi: Likewise.
8007         * doc/posix-functions/tolower_l.texi: Likewise.
8008         * doc/posix-functions/toupper_l.texi: Likewise.
8009         * doc/posix-functions/towctrans_l.texi: Likewise.
8010         * doc/posix-functions/towlower_l.texi: Likewise.
8011         * doc/posix-functions/towupper_l.texi: Likewise.
8012         * doc/posix-functions/wcscoll_l.texi: Likewise.
8013         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8014         * doc/posix-functions/wctrans_l.texi: Likewise.
8015         * doc/posix-functions/wctype_l.texi: Likewise.
8016         * doc/glibc-functions/strptime_l.texi: Likewise.
8017         * doc/glibc-functions/strtod_l.texi: Likewise.
8018         * doc/glibc-functions/strtof_l.texi: Likewise.
8019         * doc/glibc-functions/strtol_l.texi: Likewise.
8020         * doc/glibc-functions/strtold_l.texi: Likewise.
8021         * doc/glibc-functions/strtoll_l.texi: Likewise.
8022         * doc/glibc-functions/strtoul_l.texi: Likewise.
8023         * doc/glibc-functions/strtoull_l.texi: Likewise.
8024         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8025         * doc/glibc-functions/wcstod_l.texi: Likewise.
8026         * doc/glibc-functions/wcstof_l.texi: Likewise.
8027         * doc/glibc-functions/wcstol_l.texi: Likewise.
8028         * doc/glibc-functions/wcstold_l.texi: Likewise.
8029         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8030         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8031         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8032
8033 2009-11-24  Bruno Haible  <bruno@clisp.org>
8034
8035         duplocale: Fix logic bug.
8036         * lib/duplocale.c: Don't include <langinfo.h>.
8037         (_NL_LOCALE_NAME): Remove macro.
8038         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8039         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8040
8041 2009-11-23  Jim Meyering  <meyering@redhat.com>
8042
8043         test-update-copyright: don't hard-code /usr/bin/perl
8044         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8045         perl to print the current year.  Gilles Espinasse reported that
8046         the replaced use of perl was hard-coded as /usr/bin/perl.
8047
8048 2009-11-23  Bruno Haible  <bruno@clisp.org>
8049
8050         duplocale: Add support for glibc 2.3.x.
8051         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8052
8053 2009-11-22  Bruno Haible  <bruno@clisp.org>
8054
8055         vasnprintf: Tiny optimization.
8056         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8057         MacOS X.
8058
8059 2009-11-22  Bruno Haible  <bruno@clisp.org>
8060
8061         Tests for module 'duplocale'.
8062         * modules/duplocale-tests: New file.
8063         * tests/test-duplocale.c: New file.
8064
8065         New module 'duplocale'.
8066         * m4/duplocale.m4: New file.
8067         * lib/locale.in.h (duplocale): New declaration.
8068         * lib/duplocale.c: New file.
8069         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8070         gl_LOCALE_H_DEFAULTS): New macros.
8071         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8072         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8073         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8074         REPLACE_DUPLOCALE.
8075         * modules/duplocale: New file.
8076         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8077
8078 2009-11-22  Bruno Haible  <bruno@clisp.org>
8079
8080         * modules/locale-tests (configure.ac): Test for newlocale function.
8081         * tests/test-locale.c: When the system has extended locale functions,
8082         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8083
8084         locale: Make locale_t available when possible.
8085         * lib/locale.in.h: Include <xlocale.h> when it exists.
8086         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8087         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8088         * modules/locale (Depends-on): Add extensions.
8089         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8090         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8091
8092 2009-11-22  Bruno Haible  <bruno@clisp.org>
8093
8094         Add comments.
8095         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8096         invocation.
8097         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8098         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8099         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8100
8101 2009-11-22  Bruno Haible  <bruno@clisp.org>
8102
8103         error: account for the possibility of freopen (stdout).
8104         * lib/error.c: Include <unistd.h>.
8105         (flush_stdout): New function, extracted from error and error_at_line.
8106         Determine stdout's fd dynamically.
8107         (error, error_at_line): Invoke flush_stdout.
8108         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8109         * modules/error (Depends-on): Add unistd.
8110
8111 2009-11-22  Bruno Haible  <bruno@clisp.org>
8112
8113         diffseq: Add comment.
8114         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8115
8116 2009-11-22  Jim Meyering  <meyering@redhat.com>
8117
8118         c-stack: avoid defining an unused static function
8119         * lib/c-stack.c (find_stack_direction): Do not define this function
8120         when it will not be used.
8121
8122         diffseq: avoid spurious gcc warnings
8123         * lib/diffseq.h (IF_LINT2): Define.
8124         (compareseq): Use it to initialize two members of "part".
8125         This avoids two used-uninitialized warnings.
8126
8127 2009-11-21  Jim Meyering  <meyering@redhat.com>
8128
8129         c-stack: avoid "ignoring return value of `write'" warning
8130         * lib/c-stack.c: Include "ignore-value.h".
8131         (die): Explicitly ignore each write return value.
8132         * modules/c-stack (Depends-on): Add ignore-value.
8133
8134 2009-11-21  Bruno Haible  <bruno@clisp.org>
8135
8136         diffseq: reduce scope of variable 'best'.
8137         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8138         variable, earlier used for two different purposes.
8139
8140 2009-11-21  Jim Meyering  <meyering@redhat.com>
8141
8142         diffseq: remove useless assignment to "best"
8143         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8144         assignment.  At that point "best" is already guaranteed to be zero.
8145
8146 2009-11-20  Eric Blake  <ebb9@byu.net>
8147
8148         build: mention ftp redirector in release announcements
8149         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8150         values that used to come from cfg.mk; mention FTP redirect URL.
8151         * build-aux/announce-gen: Mention the mirror list.
8152         Suggested by Karl Berry.
8153
8154         nanosleep: improve port to mingw
8155         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8156         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8157         LIB_NANOSLEEP, but only when needed.
8158         * modules/select (Link): Document LIBSOCKET.
8159         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8160         enough.
8161
8162         nanosleep: work around cygwin bug
8163         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8164         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8165         bug.
8166         (getnow): Delete, not needed.
8167         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8168         LIB_CLOCK_GETTIME.
8169         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8170         clock-time, gettime.
8171         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8172         bug.
8173         * modules/nanosleep-tests: New test.
8174         * tests/test-nanosleep.c: New file.
8175
8176         sleep: work around cygwin bug
8177         * lib/sleep.c (rpl_sleep): Work around the bug.
8178         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8179         (gl_PREREQ_SLEEP): Delete unused macro.
8180         * modules/sleep (Depends-on): Add verify.
8181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8182         * modules/unistd (Makefile.am): Substitute witness.
8183         * lib/unistd.in.h (sleep): Update prototype.
8184         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8185         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8186         * modules/sleep-tests (Depends-on): Check for alarm.
8187
8188 2009-11-20  Jim Meyering  <meyering@redhat.com>
8189
8190         maint.mk: improve sc_prohibit_magic_number_exit
8191         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8192         so it does not match uses like System.exit(1).
8193         Add comments showing how to correct all offenders.
8194
8195 2009-11-19  Eric Blake  <ebb9@byu.net>
8196
8197         xalloc-die-tests: add missing library
8198         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8199
8200         test-xvasprintf: silence compiler warnings
8201         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8202         empty string from gcc.
8203
8204 2009-11-19  Jim Meyering  <meyering@redhat.com>
8205
8206         xfreopen: new module, from coreutils
8207         * modules/xfreopen: New module.
8208         * lib/xfreopen.c: New file.
8209         * lib/xfreopen.h: New file.
8210         * MODULES.html.sh (File stream based Input/Output"): Add it.
8211
8212 2009-11-19  Eric Blake  <ebb9@byu.net>
8213
8214         manywarnings: depend on warnings
8215         * modules/manywarnings (Depends-on): Add warnings.
8216
8217         build: avoid compiler warnings
8218         * lib/select.c (rpl_select): Delete unused variable.
8219         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8220
8221 2009-11-18  Eric Blake  <ebb9@byu.net>
8222
8223         tests: avoid false negative with --with-packager
8224         * tests/test-version-etc.sh: Discard packager information.
8225         * tests/test-argp-version-etc-1.sh: Likewise.
8226         Reported by Mike Frysinger.
8227
8228         utimens: fix regression on Solaris
8229         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8230         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8231         can only change fd timestamps via futimesat.  Instead, use an
8232         additional witness macro to avoid BSD bug.
8233         Reported by Jim Meyering.
8234
8235 2009-11-17  Eric Blake  <ebb9@byu.net>
8236
8237         usleep: use it to simplify tests
8238         * modules/stat-time-tests (Depends-on): Add usleep.
8239         (configure.ac): Drop usleep check.
8240         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8241         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8242         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8243         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8244         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8245         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8246         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8247         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8248         Likewise.
8249         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8250         * tests/test-lchown.h (nap): Likewise.
8251         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8252         * tests/test-stat-time.c (nap): Likewise.
8253         * tests/test-utimens-common.h (nap): Update comments.
8254
8255         usleep: new module
8256         * modules/usleep: New file.
8257         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8258         * lib/usleep.c (usleep): Likewise.
8259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8260         * modules/unistd (Makefile.am): Substitute witnesses.
8261         * lib/unistd.in.h (usleep): Add declaration.
8262         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8263         * MODULES.html.sh (Date and time): Likewise.
8264         * modules/usleep-tests (Depends-on): New test.
8265         * tests/test-usleep.c: New file.
8266
8267         chown: work around OpenBSD bug
8268         * lib/chown.c (rpl_chown): Work around the bug.
8269         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8270         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8271         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8272         * modules/chown (Depends-on): Add stdbool.
8273         * modules/lchown (Depends-on): Likewise.
8274         * doc/posix-functions/chown.texi (chown): Document the bug.
8275         * doc/posix-functions/lchown.texi (lchown): Likewise.
8276         * tests/test-lchown.h (test_chown): Relax test.
8277
8278         mkstemp: avoid conflict with C++ keyword template
8279         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8280         * lib/mkostemp.c (mkostemp): Likewise.
8281         * lib/mkostemps.c (mkostemps): Likewise.
8282         * lib/mkstemp.c (mkstemp): Likewise.
8283         * lib/mkstemps.c (mkstemps): Likewise.
8284
8285         xalloc-die-tests: optimize
8286         * tests/test-xalloc-die.sh: Reduce number of processes.
8287
8288 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8289
8290         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8291         patch from ludo@gnu.org (Ludovic Courtès).
8292
8293 2009-11-17  Jim Meyering  <meyering@redhat.com>
8294
8295         version-etc: use proper license string
8296         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8297         * modules/version-etc-fsf: Likewise.
8298
8299 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8300
8301         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8302         printed to stdout.  Deal with EOL differences.
8303
8304 2009-11-17  Eric Blake  <ebb9@byu.net>
8305
8306         unsetenv: work around Solaris bug
8307         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8308         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8309         Reported by Jim Meyering.
8310
8311         vasnprintf: avoid compiler warnings
8312         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8313         variables.
8314         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8315
8316 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8317
8318         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8319         settings since xalloc-die is no longer the self test,
8320         xalloc-die.sh is.
8321
8322 2009-11-17  Jim Meyering  <meyering@redhat.com>
8323
8324         test-xalloc-die.sh: make the code agree with the commit log
8325         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8326         at the end, just in case you happen to have a test-xalloc-die
8327         program in some other PATH directory.
8328
8329         test-xalloc-die.sh: fix a portability bug
8330         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8331         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8332         Otherwise, argv[0] (as often seen in diagnostics) would be too
8333         system-dependent, sometimes with, and sometimes without the leading "./".
8334
8335         version-etc-fsf: relax license to LGPLv3+
8336         * modules/version-etc-fsf (License): Relax license.
8337
8338 2009-11-16  Eric Blake  <ebb9@byu.net>
8339
8340         xalloc-die-tests: avoid printing null pointer
8341         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8342         shell script.
8343         * tests/test-xalloc-die.c (program_name): Declare.
8344         * tests/test-xalloc-die.sh (tmpfiles): New file.
8345
8346         setenv, unsetenv: work around various bugs
8347         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8348         (setenv) [HAVE_SETENV]: Work around bugs.
8349         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8350         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8351         for bugs.
8352         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8353         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8355         * modules/stdlib (Makefile.am): Update substitutions.
8356         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8357         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8358         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8359         * modules/setenv-tests: New test.
8360         * modules/unsetenv-tests: Likewise.
8361         * tests/test-setenv.c: New file.
8362         * tests/test-unsetenv.c: Likewise.
8363
8364 2009-11-16  Jim Meyering  <meyering@redhat.com>
8365
8366         version-etc: relax license to LGPLv3+
8367         * modules/version-etc (License): Relax license.
8368
8369         better AC_REQUIRE expanded-before-required-warning avoidance
8370         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8371         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8372         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8373         which is no longer needed.
8374
8375 2009-11-16  Eric Blake  <ebb9@byu.net>
8376
8377         test-freading: clean up temporary file
8378         * tests/test-freading.c (main): Remove file on success, and use
8379         ASSERT more liberally.
8380         Reported by Jim Meyering.
8381
8382 2009-11-16  Jim Meyering  <meyering@redhat.com>
8383
8384         avoid new AC_REQUIRE expanded-before-required warnings
8385         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8386         merely using it.
8387         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8388         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8389
8390 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8391
8392         * tests/test-xalloc-die.c: New file.
8393         * modules/xalloc-die-tests: New file.
8394         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8395         XFAIL_TESTS so it can be appended by modules.
8396
8397 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8398
8399         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8400         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8401
8402 2009-11-14  Eric Blake  <ebb9@byu.net>
8403
8404         fnmatch: avoid compiler warning
8405         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8406         to silence compiler warning about mismatch signedness in ?:.
8407         Reported by Robert Millan.
8408
8409         intprops: add double-inclusion guard
8410         * lib/intprops.h: Allow idempotent includes.
8411         Suggested by Bruce Korb.
8412
8413         openat: detect Solaris fchownat bug
8414         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8415         penalizing glibc chownat when only lchownat is broken.
8416         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8417         trailing slash bugs.
8418         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8419         * modules/openat-tests (Files): Include more files.
8420         (Depends-on): Add mgetgroups, sleep, stat-time.
8421         (configure.ac): Add additional checks.
8422         (Makefile.am): Build new test.
8423         * tests/test-fchownat.c: New file.
8424
8425         lchown: detect Solaris and FreeBSD bug
8426         * lib/lchown.c (rpl_lchown): Work around bug.
8427         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8429         * modules/unistd (Makefile.am): Populate it.
8430         * lib/unistd.in.h (lchown): Update declaration.
8431         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8432         * modules/lchown-tests: New file.
8433         * tests/test-lchown.h (test_lchown): Likewise.
8434         * tests/test-lchown.c (main): Likewise.
8435
8436         chown: detect Solaris and FreeBSD bug
8437         * lib/chown.c (rpl_chown): Work around bug.
8438         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8439         (gl_PREREQ_CHOWN): Delete.
8440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8441         * modules/unistd (Makefile.am): Populate it.
8442         * lib/unistd.in.h (chown): Update declaration.
8443         * lib/lchown.c (chown): Update client.
8444         * modules/lchown (Depends-on): Add lstat.
8445         * doc/posix-functions/chown.texi (chown): Document the bug.
8446         * doc/posix-functions/getgroups.texi (getgroups): Document
8447         getgroups pitfall.
8448         * modules/chown-tests: New file.
8449         * tests/test-chown.h (test_chown): Likewise.
8450         * tests/test-chown.c (main): Likewise.
8451
8452 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8453
8454         gnulib-tool: correctly detect absence of m4 directories
8455         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8456
8457 2009-11-14  Jim Meyering  <meyering@redhat.com>
8458
8459         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8460         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8461
8462 2009-11-14  John W. Eaton  <jwe@gnu.org>
8463
8464         strftime.h: wrap funtion declaration in extern "C" block
8465         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8466
8467 2009-11-13  Eric Blake  <ebb9@byu.net>
8468
8469         getgroups: avoid compiler warning
8470         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8471
8472         getgroups: work around FreeBSD bug
8473         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8474         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8475         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8476         * tests/test-getgroups.c (main): Fix buffer overrun.
8477
8478         getgroups: avoid compilation failure
8479         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8480         * modules/getgroups (Depends-on): Add stdint.
8481
8482 2009-11-13  Jim Meyering  <meyering@redhat.com>
8483
8484         test-getgroups: avoid compilation failure
8485         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8486
8487 2009-11-13  Eric Blake  <ebb9@byu.net>
8488
8489         mgetgroups: new module, taken from coreutils
8490         * modules/mgetgroups: New file.
8491         * lib/mgetgroups.h: Likewise.
8492         * lib/mgetgroups.c (mgetgroups): Likewise.
8493         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8494         * MODULES.html.sh (Users and groups): Mention it.
8495
8496         getgroups: don't expose GETGROUPS_T to user
8497         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8498         an element at a time if GETGROUPS_T is wrong size.
8499         * lib/getugroups.h (getugroups): Change signature.
8500         * lib/unistd.in.h (getgroups): Likewise.
8501         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8502         signature needs fixing.
8503         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8504         AC_TYPE_GETGROUPS.
8505         * modules/group-member (Depends-on): Add getgroups.
8506         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8507         (group_member): Rely on getgroups replacement.
8508         * lib/getugroups.c (getugroups): Use gid_t.
8509         * tests/test-getgroups.c (main): Likewise.
8510         * NEWS: Mention the signature change.
8511         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8512         problem with signature.
8513         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8514         GETGROUPS_T is still useful for setgroups.
8515
8516         getgroups, getugroups: provide stubs for mingw
8517         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8518         * lib/getugroups.c (getugroups): Likewise.
8519         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8520         function.  Modernize replacement scheme.
8521         (gl_PREREQ_GETGROUPS): Delete.
8522         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8523         * modules/getgroups (configure.ac): Declare witness.
8524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8525         * modules/unistd (Depends-on): Substitute witness.
8526         * lib/unistd.in.h (getgroups): Declare replacement.
8527
8528         getgroups: avoid calling exit
8529         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8530         drop xalloc.
8531         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8532         dependencies.
8533         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8534         exiting, in the rare case of malloc failure.
8535
8536         getgroups: fix logic error
8537         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8538         has more than 20 groups.
8539         * modules/getgroups-tests: New test.
8540         * tests/test-getgroups.c: New file.
8541
8542 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8543
8544         * tests/test-base64.c: Improve.
8545
8546 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8547
8548         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8549         Blake <ebb9@byu.net>.
8550
8551 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8552
8553         * tests/test-xvasprintf.c: Add %s%s related checks.
8554
8555 2009-11-12  Eric Blake  <ebb9@byu.net>
8556
8557         version-etc: match standards.texi style
8558         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8559         and use <> only for URLs.
8560
8561 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8562
8563         fts: do not fail on a submount during traversal
8564         * lib/fts.c (fts_build): Read the stat info again after opening
8565         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8566         Original report at http://bugzilla.redhat.com/501848.
8567
8568 2009-11-12  Jim Meyering  <meyering@redhat.com>
8569
8570         bootstrap: sync from coreutils
8571         * build-aux/bootstrap (bootstrap_epilogue): New function.
8572         Use git_modules_config in one more place.  This make bootstrap's
8573         --gnulib-srcdir option more useful for testing.
8574
8575         bootstrap: generalize autoheader check
8576         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8577         AC_CONFIG_HEADERS.
8578
8579 2009-11-11  Eric Blake  <ebb9@byu.net>
8580
8581         mkfifoat: use new modules for Solaris and BSD bugs
8582         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8583         * lib/mkfifoat.c (mknodat): Split...
8584         * lib/mknodat.c (mknodat): ...into new file.
8585         * modules/mkfifoat (Files): Ship new file.
8586         (Depends-on): Add mkfifo, mknod.
8587         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8588         (Depends-on): Add symlink.
8589         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8590         redundant with test_mkfifo.h.
8591         (do_mkfifoat, do_mknodat): New helpers.
8592
8593         mknod: new module
8594         * modules/mknod: New file.
8595         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8596         * lib/mknod.c (mknod): Likewise.
8597         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8598         defaults.
8599         * modules/sys_stat (Makefile.am): Substitute them.
8600         * lib/sys_stat.in.h (mknod): Declare replacement.
8601         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8602         Document it.
8603         * doc/posix-functions/mknod.texi (mknod): Likewise.
8604         * modules/mknod-tests: New test.
8605         * tests/test-mknod.c: Likewise.
8606
8607         mkfifo: new module
8608         * modules/mkfifo: New file.
8609         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8610         * lib/mkfifo.c (mkfifo): Likewise.
8611         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8612         defaults.
8613         * modules/sys_stat (Makefile.am): Substitute them.
8614         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8615         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8616         Document it.
8617         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8618         * modules/mkfifo-tests: New test.
8619         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8620         from test-mkfifoat.c.
8621         * tests/test-mkfifo.c: New file.
8622
8623         readlink: detect FreeBSD bug
8624         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8625         slash on symlink.
8626         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8627         * tests/test-readlink.h (test_readlink): Enhance test.
8628
8629         symlink: detect FreeBSD bug
8630         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8631         slash on symlink.
8632         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8633         * tests/test-symlink.h (test_symlink): Enhance test.
8634
8635 2009-11-10  Eric Blake  <ebb9@byu.net>
8636
8637         link: detect FreeBSD bug
8638         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8639         symlink.
8640         * doc/posix-functions/link.texi (link): Document the bug.
8641         * tests/test-link.h (test_link): Enhance test.
8642         * tests/test-linkat.c (main): Update caller.
8643
8644         unlink, remove: detect FreeBSD bug
8645         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8646         slash on symlink.
8647         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8648         * doc/posix-functions/remove.texi (remove): Likewise.
8649         * tests/test-unlink.h (test_unlink): Enhance test.
8650         * tests/test-remove.c (main): Likewise.
8651
8652 2009-11-09  Eric Blake  <ebb9@byu.net>
8653
8654         rename: detect FreeBSD bug
8655         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8656         slash on symlink.
8657         * modules/renameat-tests (Depends-on): Add filenamecat.
8658         * tests/test-rename.h (test_rename): Allow one more errno.
8659         * tests/test-renameat.c (main): Likewise.
8660         * doc/posix-functions/rename.texi (rename): Document the bug.
8661
8662         open: detect FreeBSD bug
8663         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8664         symlink.
8665         * doc/posix-functions/open.texi (open): Document the bug.
8666         * doc/posix-functions/utimes.texi (utimes): Likewise.
8667         * tests/test-open.h (test_open): Add parameters, and test symlink
8668         handling.
8669         * tests/test-open.c (main): Adjust caller.
8670         * tests/test-fcntl-safer.c (main): Likewise.
8671         * modules/open-tests (Depends-on): Add stdbool, symlink.
8672         * modules/fcntl-safer-tests (Depends-on): Likewise.
8673         * tests/test-openat.c (main): Add test-open tests.
8674
8675         stat: detect FreeBSD bug
8676         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8677         symlink.
8678         * doc/posix-functions/stat.texi (stat): Document the bug.
8679         * tests/test-stat.h (test_stat_func): Add argument.
8680         * tests/test-stat.c (main): Adjust caller.
8681         * tests/test-fstatat.c (main): Likewise.
8682         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8683         Reported by Jim Meyering.
8684
8685 2009-11-09  James Youngman  <jay@gnu.org>
8686
8687         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8688         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8689
8690 2009-11-08  Jim Meyering  <meyering@redhat.com>
8691
8692         utimens: remove invalid futimesat call
8693         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8694         It used the file descriptor of the target file as the DIR_FD
8695         parameter and NULL as the file name.  That caused failure with
8696         errno == EFAULT on FreeBSD-8.0-rc2
8697
8698 2009-11-07  Eric Blake  <ebb9@byu.net>
8699
8700         fflush, freadseek: use fseeko, not fseek
8701         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8702         (clear_ungetc_buffer): Avoid potential problems on large files.
8703         * lib/freadseek.c (freadseek): Likewise.
8704         * modules/freadseek (Depends-on): Add fseeko.
8705         * modules/fseek (configure.ac): Set a witness.
8706         * tests/test-fflush.c (main): Use fseeko.
8707         * tests/test-fpurge.c (fseek): Disable link warning.
8708         * tests/test-freadable.c (fseek): Likewise.
8709         * tests/test-freading.c (fseek): Likewise.
8710         * tests/test-fseeko.c (fseek): Likewise.
8711         * tests/test-ftell.c (fseek): Likewise.
8712         * tests/test-ftello.c (fseek): Likewise.
8713         * tests/test-fwritable.c (fseek): Likewise.
8714         * tests/test-fwriting.c (fseek): Likewise.
8715
8716 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8717
8718         * modules/memchr (Depends-on): Drop getpagesize dependency.
8719
8720 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8721
8722         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8723         Reported by Ludovic Courtès.
8724         * build-aux/pmccabe2html: Improve example usage.
8725         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8726
8727 2009-11-06  Jim Meyering  <meyering@redhat.com>
8728
8729         do-release-commit-and-tag: New module.
8730         Automate the release-commit and tag process.
8731         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8732         * modules/do-release-commit-and-tag: New file.
8733         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8734
8735 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8736
8737         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8738         because test-select.c uses inet_pton.
8739
8740 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8741
8742         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8743         GETADDRINFO_LIB.  Bump serial number.
8744         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8745         Suggested by Eric Blake <ebb9@byu.net>.
8746
8747 2009-11-05  Eric Blake  <ebb9@byu.net>
8748
8749         strtod: detect darwin bug
8750         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8751         Reported by Leo Davis.
8752
8753         freopen-safer: new module
8754         * modules/freopen-safer: New module.
8755         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8756         * lib/freopen-safer.c (freopen_safer): New file.
8757         * lib/stdio-safer.h (freopen_safer): New declaration.
8758         * lib/stdio--.h (freopen): New override.
8759         * MODULES.html.sh (File stream based Input/Output): Mention it.
8760         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8761         freopen-safer module.
8762         * doc/posix-functions/stderr.texi (stderr): Likewise.
8763         * doc/posix-functions/stdin.texi (stdin): Likewise.
8764         * doc/posix-functions/stdout.texi (stdout): Likewise.
8765         * modules/freopen-safer-tests: New test.
8766         * tests/test-reopen-safer.c: New file.
8767
8768 2009-11-05  Jim Meyering  <meyering@redhat.com>
8769
8770         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8771         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8772
8773 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8774
8775         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8776
8777 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8778
8779         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8780
8781 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8782
8783         Fix link error.
8784         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8785         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8786
8787 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8788
8789         * tests/test-func.c: Also test value of __func__.
8790
8791 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8792
8793         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8794         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8795
8796 2009-11-05  Bruno Haible  <bruno@clisp.org>
8797
8798         Fix link error.
8799         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8800         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8801         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8802
8803 2009-11-05  Bruno Haible  <bruno@clisp.org>
8804
8805         Tests for module 'inet_pton'.
8806         * modules/inet_pton-tests: New file.
8807         * tests/test-inet_pton.c: New file.
8808
8809 2009-11-05  Bruno Haible  <bruno@clisp.org>
8810
8811         Tests for module 'inet_ntop'.
8812         * modules/inet_ntop-tests: New file.
8813         * tests/test-inet_ntop.c: New file.
8814
8815 2009-11-04  Eric Blake  <ebb9@byu.net>
8816
8817         stdlib-safer: wrap all mkstemp variants
8818         * modules/mkostemp (configure.ac): Set witness.
8819         * modules/mkostemps (configure.ac): Likewise.
8820         * modules/mkstemps (configure.ac): Likewise.
8821         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8822         (mkstemps_safer): Wrap more functions.
8823         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8824         wrapping.
8825         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8826         (mkstemps_safer): Implement the wrappers.
8827
8828         mkstemps, mkostemps: new modules
8829         * modules/mkostemps: New module.
8830         * modules/mkstemps: Likewise.
8831         * lib/mkostemps.c (mkostemps): New file.
8832         * lib/mkstemps.c (mkstemps): Likewise.
8833         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8834         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8836         * modules/stdlib (Makefile.am): Substitute them.
8837         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8838         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8839         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8840         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8841         * MODULES.html.sh (File system functions): Mention them.
8842
8843         tempname: resync from glibc
8844         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8845         same values for __GT_FILE as glibc.  Abort even when assertions
8846         are disabled.
8847         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8848         match its value otherwise.  Allow idempotent inclusion.
8849         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8850         * lib/mkostemp.c (mkostemp): Likewise.
8851         * lib/mkstemp.c (mkstemp): Likewise.
8852         * lib/tmpfile.c (tmpfile): Likewise.
8853         * NEWS: Document this.
8854
8855         utimens: fix use of futimens on older Linux
8856         * lib/utimens.c (fdutimens): Use updated, rather than original,
8857         timespec to avoid bug in older Linux kernel.
8858         Reported by Simon Josefsson.
8859
8860 2009-11-04  Bruno Haible  <bruno@clisp.org>
8861
8862         Make num_processors more flexible and consistent.
8863         * lib/nproc.h (enum nproc_query): New type.
8864         (num_processors): Add a 'query' argument.
8865         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8866         (num_processors): Add a 'query' argument. Test the value of the
8867         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8868         mingw, count the number of CPUs available for the current process.
8869         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8870         Check for sched_getaffinity and sched_getaffinity_np.
8871         * modules/nproc (Depends-on): Add c-ctype, extensions.
8872         * NEWS: Mention the change.
8873
8874 2009-11-03  Bruno Haible  <bruno@clisp.org>
8875
8876         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8877
8878 2009-11-03  Jim Meyering  <meyering@redhat.com>
8879
8880         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8881         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8882         if it is defined.
8883
8884 2009-11-02  Eric Blake  <ebb9@byu.net>
8885
8886         mktime, timegm: share common declaration
8887         * lib/mktime-internal.h: New file.
8888         * lib/mktime.c: Use it rather than open-coding a declaration.
8889         * lib/timegm.c: Likewise.
8890         * modules/mktime (Files): Ship it.
8891         * modules/timegm (Files): Likewise.
8892         Suggested by Bruno Haible.
8893
8894         test-update-copyright: update test to match script changes
8895         * tests/test-update-copyright.sh: Avoid hard-coding perl
8896         location.  Don't update *.bak created by earlier runs.
8897
8898 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8899             Simon Josefsson  <simon@josefsson.org>
8900             Bruno Haible  <bruno@clisp.org>
8901
8902         Fix link error on Solaris 8.
8903         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8904         also in libnsl. Define also INET_PTON_LIB.
8905         * modules/inet_pton (Link): New section.
8906
8907 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8908             Bruno Haible  <bruno@clisp.org>
8909
8910         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8911         * modules/inet_ntop (Link): New section.
8912         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8913
8914 2009-11-02  Eric Blake  <ebb9@byu.net>
8915
8916         maint: avoid compiler warnings in m4 macros
8917         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8918         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8919
8920 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8921
8922         * m4/pmccabe2html.m4: Remove file.
8923         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
8924         function.  Change maintainer.
8925         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8926         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
8927         Courtès).
8928
8929 2009-10-31  Eric Blake  <ebb9@byu.net>
8930
8931         fseeko: fix m4 regression
8932         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
8933         regression from 2009-10-27.
8934         Reported by Ralf Wildenhues.
8935
8936 2009-10-31  Jim Meyering  <meyering@redhat.com>
8937
8938         inttostr: aesthetics and improved (compile-time) safety
8939         Define inttype_is_signed rather than inttype_is_unsigned,
8940         since the sole use is via "#if inttype_is_signed".
8941         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8942         inttype_is_unsigned.
8943         * lib/offtostr.c (inttype_is_signed): Likewise.
8944         * lib/uinttostr.c (inttype_is_signed): Likewise.
8945         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8946         * lib/inttostr.c (inttostr): Use verify to cross-check the
8947         inttype_is_signed value and the signedness of the actual type.
8948         * modules/inttostr (Depends-on): Add verify.
8949
8950 2009-10-30  Eric Blake  <ebb9@byu.net>
8951
8952         build: avoid compiler warnings
8953         * lib/fchmodat.c (lchmod): Mark unused variables.
8954         * lib/getopt.c (_getopt_initialize): Likewise.
8955         * lib/mktime.c (__mktime_internal): Provide prototype.
8956         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8957         older gcc that do not understand #pragma GCC diagnostic.
8958         * lib/uinttostr.c (inttype_is_unsigned): Define.
8959         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8960
8961 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8962
8963         stat: fix compilation on AIX
8964         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8965         only see struct stat64.
8966
8967 2009-10-30  Eric Blake  <ebb9@byu.net>
8968
8969         exclude: make more robust
8970         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8971         rather than masking a coding bug.
8972         Suggested by Bruno Haible.
8973
8974 2009-10-30  Jim Meyering  <meyering@redhat.com>
8975
8976         perl scripts: remove #!/usr/bin/perl in favor of more portable...
8977         Rather than putting #!/usr/bin/perl on the first line,
8978         start with a variant of what's recommended by "man perlrun" that
8979         invokes the first "perl" program from your shell's search path.
8980         * build-aux/gitlog-to-changelog: Replace #!... as above.
8981         Add a "Local Variables" perl mode setting.
8982         Prompted by a patch from Ludovic Courtès.
8983         Improved by Eric Blake.
8984         * build-aux/useless-if-before-free: Likewise.
8985         * build-aux/announce-gen: Likewise.
8986         * build-aux/update-copyright: Likewise.
8987
8988 2009-10-29  Eric Blake  <ebb9@byu.net>
8989
8990         filenamecat-lgpl: adjust clients
8991         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8992         filenamecat.
8993         * modules/renameat (Depends-on): Likewise.
8994
8995         filenamecat: split into filenamecat-lgpl
8996         * modules/filenamecat-lgpl: New module.
8997         * modules/filenamecat (Files): Move library-safe files into
8998         filenamecat-lgpl.
8999         (Depends-on): Add filenamecat-lgpl.
9000         (configure.ac): Declare witness.
9001         * lib/filenamecat.h (file_name_concat): Only declare when using
9002         GPL module.
9003         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
9004         Move...
9005         * lib/filenamecat-lgpl.c: ...into new file.
9006         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
9007         (gl_FILE_NAME_CONCAT): Use it.
9008         * MODULES.html.sh (File system functions): Mention new module.
9009
9010         argp: avoid memory leak
9011         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9012         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9013         base_name, since the latter malloc()s and can call exit().
9014         Leak introduced 2006-07-03.
9015
9016         dirname-lgpl: adjust clients that don't need full dirname
9017         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9018         * modules/filenamecat (Depends-on): Likewise.
9019         * modules/linkat (Depends-on): Likewise.
9020         * modules/mkancesdirs (Depends-on): Likewise.
9021         * modules/mkdir (Depends-on): Likewise.
9022         * modules/openat (Depends-on): Likewise.
9023         * modules/savewd (Depends-on): Likewise.
9024         * modules/rename (Depends-on): Likewise.
9025         (License): Relax license.
9026         * modules/mkdir-tests (Depends-on): Drop progname.
9027         (Makefile.am): Delete unneeded LDADD.
9028         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9029
9030         dirname: split into dirname-lgpl
9031         * modules/dirname-lgpl: New module.
9032         * modules/dirname (Files): Move library-safe files into
9033         dirname-lgpl.
9034         (Depends-on): Add dirname-lgpl.
9035         (configure.ac): Declare witness.
9036         * modules/double-slash-root (License): Relax license.
9037         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9038         module.
9039         * lib/dirname.c (dir_len, mdir_name): Move...
9040         * lib/dirname-lgpl.c: ...into new file.
9041         * lib/basename.c (last_component, base_len): Move...
9042         * lib/basename-lgpl.c: ...into new file.
9043         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9044         (gl_DIRNAME): Use it.
9045         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9046         Mention new module.
9047         * modules/dirname-tests (Depends-on): Add progname.
9048         * tests/test-dirname.c (program_name): Delete.
9049
9050         mkdir: make safe for libraries
9051         * modules/mkdir (Depends-on): Drop xalloc.
9052         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9053         exit.
9054
9055         tests: avoid some compiler warnings
9056         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9057         literals.
9058         * tests/test-memchr.c (main): Avoid type mismatch.
9059         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9060         * tests/test-base64.c (main): Likewise.
9061         * tests/test-getdelim.c (main): Likewise.
9062         * tests/test-gethostname.c (main): Likewise.
9063         * tests/test-getline.c (main): Likewise.
9064         * tests/test-netinet_in.c (main): Likewise.
9065         * tests/test-select.c (open_server_socket, main): Likewise.
9066         * tests/test-select-stdin.c (main): Likewise.
9067         * tests/test-sockets.c (main): Likewise.
9068         * tests/test-strsignal.c (main): Likewise.
9069         * tests/test-sys_select.c (main): Likewise.
9070         * tests/test-sys_socket.c (main): Likewise.
9071         * tests/test-u64.c (main): Likewise.
9072         * tests/test-xfprintf-posix.c (main): Likewise.
9073         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9074
9075         sockets: avoid compiler warning
9076         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9077
9078         maint: detect usage(1) and other suspicious exits
9079         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9080
9081 2009-10-29  Jim Meyering  <meyering@redhat.com>
9082
9083         timespec: long-to-int truncation could make timespec_cmp malfunction
9084         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9085         a multiple of 2^32 nanoseconds as no difference.
9086
9087 2009-10-28  Jim Meyering  <meyering@redhat.com>
9088
9089         fprintftime: wrap macro code argument in "do {...} while(0)"
9090         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9091         cpy macro must be a statement that can be followed by a semicolon.
9092         Now that the else clause contains a comment and is hence longer
9093         than one line, I require curly braces.  That in turn requires
9094         that we wrap this code block in the standard do...while(0).
9095
9096         fprintftime: remove stray semicolon from previous change
9097         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9098
9099         fprintftime: avoid a warning about ignored fwrite return value
9100         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9101         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9102         that is unsafe.
9103         * modules/fprintftime (Depends-on): Add ignore-value.
9104
9105         exclude: avoid an unwarranted warning
9106         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9107
9108 2009-10-27  Eric Blake  <ebb9@byu.net>
9109
9110         fseek: avoid compilation failure when fflush is replaced
9111         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9112         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9113         module is in use.
9114         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9115         module is not in use; since REPLACE_FSEEK worked otherwise.
9116         (GNULIB_FTELLO): Likewise for ftell.
9117         Reported by Ian Beckwith and others.
9118
9119 2009-10-27  Bruno Haible  <bruno@clisp.org>
9120
9121         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9122         Reported by Jim Meyering.
9123
9124 2009-10-27  Jim Meyering  <jim@meyering.net>
9125             Bruno Haible  <bruno@clisp.org>
9126
9127         Avoid warning despite dropping the return value of fwrite.
9128         * lib/unicodeio.c: Include ignore-value.h.
9129         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9130         * modules/unicodeio (Depends-on): Add ignore-value.
9131
9132 2009-10-26  Eric Blake  <ebb9@byu.net>
9133
9134         areadlinkat: fix fallback path
9135         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9136         pointer and zero.
9137
9138 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9139
9140         Use a better IO block size for modern systems
9141         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9142         * lib/md2.c: Likewise.
9143         * lib/md4.c: Likewise.
9144         * lib/md5.c: Likewise.
9145         * lib/sha1.c: Likewise.
9146         * lib/sha256.c: Likewise.
9147         * lib/sha512.c: Likewise.
9148
9149 2009-10-22  Eric Blake  <ebb9@byu.net>
9150
9151         tests: avoid several compiler warnings
9152         * tests/test-getcwd.c (main): Avoid buffer underflow.
9153         * tests/test-getdate.c (main): String literals are not safe with
9154         putenv, so use setenv.  Declare unused argument.
9155         * modules/getdate-tests (Depends-on): Add setenv.
9156         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9157         problems with string literals in char *.
9158         * tests/test-hash.c (main): Avoid shadowing declaration.
9159         (insert_new): Treat string literals as char const *.
9160         * tests/test-getopt.h (test_getopt): Likewise.
9161         (getopt_loop): Alter types to minimize casting elsewhere.
9162         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9163         (test_getopt_long_posix): Likewise.
9164         (do_getopt_long): Add wrapper to minimize casting.
9165         * tests/test-atexit.c (clear_temp_file): Use void.
9166         * tests/test-areadlink-with-size.c (main): Declare unused
9167         arguments.
9168         * tests/test-areadlink.c (main): Likewise.
9169         * tests/test-areadlinkat-with-size.c (main): Likewise.
9170         * tests/test-areadlinkat.c (main): Likewise.
9171         * tests/test-canonicalize-lgpl.c (main): Likewise.
9172         * tests/test-canonicalize.c (main): Likewise.
9173         * tests/test-dirent-safer.c (main): Likewise.
9174         * tests/test-dirname.c (main): Likewise.
9175         * tests/test-dup2.c (main): Likewise.
9176         * tests/test-fchdir.c (main): Likewise.
9177         * tests/test-fcntl-h.c (main): Likewise.
9178         * tests/test-fcntl-safer.c (main): Likewise.
9179         * tests/test-fdopendir.c (main): Likewise.
9180         * tests/test-fdutimensat.c (main): Likewise.
9181         * tests/test-fflush.c (main): Likewise.
9182         * tests/test-filenamecat.c (main): Likewise.
9183         * tests/test-filevercmp.c (main): Likewise.
9184         * tests/test-fopen-safer.c (main): Likewise.
9185         * tests/test-fopen.c (main): Likewise.
9186         * tests/test-fpending.c (main): Likewise.
9187         * tests/test-fpurge.c (main): Likewise.
9188         * tests/test-freading.c (main): Likewise.
9189         * tests/test-fstatat.c (main): Likewise.
9190         * tests/test-fsync.c (main): Likewise.
9191         * tests/test-futimens.c (main): Likewise.
9192         * tests/test-getndelim2.c (main): Likewise.
9193         * tests/test-gettimeofday.c (main): Likewise.
9194         * tests/test-getopt.c (main): Likewise.
9195         * tests/test-i-ring.c (main): Likewise.
9196         * tests/test-inttypes.c (main): Likewise.
9197         * tests/test-link.c (main): Likewise.
9198         * tests/test-lstat.c (main): Likewise.
9199         * tests/test-math.c (main): Likewise.
9200         * tests/test-md5.c (main): Likewise.
9201         * tests/test-memchr2.c (main): Likewise.
9202         * tests/test-memrchr.c (main): Likewise.
9203         * tests/test-mkdir.c (main): Likewise.
9204         * tests/test-mkdirat.c (main): Likewise.
9205         * tests/test-mkfifoat.c (main): Likewise.
9206         * tests/test-open.c (main): Likewise.
9207         * tests/test-openat-safer.c (main): Likewise.
9208         * tests/test-openat.c (main): Likewise.
9209         * tests/test-quotearg.c (main): Likewise.
9210         * tests/test-rawmemchr.c (main): Likewise.
9211         * tests/test-readlink.c (main): Likewise.
9212         * tests/test-remove.c (main): Likewise.
9213         * tests/test-rename.c (main): Likewise.
9214         * tests/test-renameat.c (main): Likewise.
9215         * tests/test-rmdir.c (main): Likewise.
9216         * tests/test-sha1.c (main): Likewise.
9217         * tests/test-signal.c (main): Likewise.
9218         * tests/test-sigaction.c (main): Likewise.
9219         * tests/test-stat.c (main): Likewise.
9220         * tests/test-stat-time.c (main): Likewise.
9221         * tests/test-stddef.c (main): Likewise.
9222         * tests/test-stdint.c (main): Likewise.
9223         * tests/test-stdio.c (main): Likewise.
9224         * tests/test-stdlib.c (main): Likewise.
9225         * tests/test-strchrnul.c (main): Likewise.
9226         * tests/test-strerror.c (main): Likewise.
9227         * tests/test-string.c (main): Likewise.
9228         * tests/test-strtod.c (main): Likewise.
9229         * tests/test-strverscmp.c (main): Likewise.
9230         * tests/test-symlink.c (main): Likewise.
9231         * tests/test-symlinkat.c (main): Likewise.
9232         * tests/test-sys_stat.c (main): Likewise.
9233         * tests/test-sys_time.c (main): Likewise.
9234         * tests/test-time.c (main): Likewise.
9235         * tests/test-unistd.c (main): Likewise.
9236         * tests/test-unlink.c (main): Likewise.
9237         * tests/test-unlinkat.c (main): Likewise.
9238         * tests/test-utimens.c (main): Likewise.
9239         * tests/test-utimensat.c (main): Likewise.
9240         * tests/test-version-etc.c (main): Likewise.
9241         * tests/test-wchar.c (main): Likewise.
9242         * tests/test-wctype.c (main): Likewise.
9243         * tests/test-xprintf-posix.c (main): Likewise.
9244         * tests/test-posixtm.c (main): Likewise.
9245         (STREQ): Delete unused macro.
9246         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9247         shadowed variables.
9248         * tests/test-memchr.c (main): Likewise.
9249
9250 2009-10-21  Eric Blake  <ebb9@byu.net>
9251
9252         areadlinkat: avoid failure on older glibc
9253         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9254         rather than mis-comparing 0 against FUNC_RESULT of char*.
9255
9256 2009-10-21  Bruno Haible  <bruno@clisp.org>
9257
9258         * modules/stpncpy (License): Relicense under LGPLv2+.
9259         Reported by David Lutterkort <lutter@redhat.com>.
9260
9261 2009-10-20  Eric Blake  <ebb9@byu.net>
9262
9263         utimensat: work around Solaris 9 bug
9264         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9265         has trailing slash bugs.
9266         * tests/test-lutimens.h (test_lutimens): Enhance test.
9267         * tests/test-utimens.h (test_utimens): Likewise.
9268         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9269         * doc/posix-functions/utimes.texi (utimes): Likewise.
9270         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9271         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9272         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9273         * doc/posix-functions/futimens.texi (futimens): Likewise.
9274
9275         fdutimensat: new module
9276         * modules/fdutimensat: New file.
9277         * lib/fdutimensat.c (fdutimensat): Likewise.
9278         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9279         * MODULES.html.sh (File system functions): Mention module.
9280         * modules/fdutimensat-tests: New test.
9281         * tests/test-fdutimensat.c: Likewise.
9282
9283         doc: regenerate INSTALL
9284         * doc/INSTALL: Reflect recent autoconf update.
9285         * doc/INSTALL.ISO: Likewise.
9286         * doc/INSTALL.UTF-8: Likewise.
9287
9288 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9289
9290         acl: warn if ACL support is not detected
9291         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9292
9293 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9294
9295         * lib/nproc.h: Add extern "C" block for C++.
9296
9297 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9298             Bruno Haible  <bruno@clisp.org>
9299
9300         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9301         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9302         * doc/posix-functions/isalpha.texi: Likewise.
9303         * doc/posix-functions/isblank.texi: Likewise.
9304         * doc/posix-functions/iscntrl.texi: Likewise.
9305         * doc/posix-functions/isdigit.texi: Likewise.
9306         * doc/posix-functions/isgraph.texi: Likewise.
9307         * doc/posix-functions/islower.texi: Likewise.
9308         * doc/posix-functions/isprint.texi: Likewise.
9309         * doc/posix-functions/ispunct.texi: Likewise.
9310         * doc/posix-functions/isspace.texi: Likewise.
9311         * doc/posix-functions/isupper.texi: Likewise.
9312         * doc/posix-functions/isxdigit.texi: Likewise.
9313
9314 2009-10-18  Bruno Haible  <bruno@clisp.org>
9315
9316         Tests for module 'isblank'.
9317         * modules/isblank-tests: New file.
9318         * tests/test-isblank.c: New file.
9319
9320         New module 'isblank'.
9321         * lib/isblank.c: New file.
9322         * m4/isblank.m4: New file.
9323         * modules/isblank: New file.
9324         * doc/posix-functions/isblank.texi: Mention the new module.
9325
9326 2009-10-18  Bruno Haible  <bruno@clisp.org>
9327
9328         New module 'ctype'.
9329         * lib/ctype.in.h: New file.
9330         * m4/ctype.m4: New file.
9331         * modules/ctype: New file.
9332         * doc/posix-headers/ctype.texi: Mention the new module.
9333
9334 2009-10-18  Jim Meyering  <meyering@redhat.com>
9335
9336         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9337         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9338         right after its initialization, rather than farther down.
9339         Keeping these in close proximity makes it easier to ensure
9340         that each such variable is initialized.  E.g.,
9341
9342             LIB_CLOCK_GETTIME=
9343             AC_SUBST([LIB_CLOCK_GETTIME])
9344
9345         This change also increments these serial numbers.
9346         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9347         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9348         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9349
9350 2009-10-18  Bruno Haible  <bruno@clisp.org>
9351
9352         Don't let environment variables perturb build.
9353         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9354         (gl_PREREQ_GETHRXTIME): ... not here.
9355
9356 2009-10-18  Bruno Haible  <bruno@clisp.org>
9357
9358         Avoid symlink attack in localcharset module.
9359         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9360         (O_NOFOLLOW): Define fallback.
9361         (get_charset_aliases): Don't open the file if it is a symbolic link.
9362         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9363         gl_FCNTL_H.
9364         (gl_FCNTL_H): Require it.
9365         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9366         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9367         Reported by Fergal Glynn <fglynn@veracode.com>.
9368
9369 2009-10-18  Bruno Haible  <bruno@clisp.org>
9370
9371         Implement nproc for mingw.
9372         * lib/nproc.c: Include <windows.h>
9373         (num_processors): On native Windows platforms, try GetSystemInfo.
9374
9375 2009-10-18  Bruno Haible  <bruno@clisp.org>
9376
9377         Implement nproc for IRIX.
9378         * lib/nproc.c: Include <sys/sysmp.h>.
9379         (num_processors): On IRIX systems, try sysmp.
9380         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9381
9382 2009-10-18  Bruno Haible  <bruno@clisp.org>
9383
9384         Implement nproc for HP-UX.
9385         * lib/nproc.c: Include <sys/pstat.h>
9386         (num_processors): On HP-UX systems, try pstat_getdynamic.
9387         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9388         pstat_getdynamic.
9389
9390 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9391             Bruno Haible  <bruno@clisp.org>
9392
9393         Implement nproc for NetBSD, OpenBSD.
9394         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9395         (ARRAY_SIZE): New macro.
9396         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9397         * m4/nproc.m4: New file.
9398         * modules/nproc (Files): Add m4/nproc.m4.
9399         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9400         (Makefile.am): Instead, augment lib_SOURCES.
9401
9402 2009-10-18  Bruno Haible  <bruno@clisp.org>
9403
9404         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9405         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9406         sys/param.h.
9407
9408 2009-10-16  Eric Blake  <ebb9@byu.net>
9409
9410         utimensat: new module
9411         * modules/utimensat: New file.
9412         * lib/utimensat.c (utimensat): Likewise.
9413         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9414         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9415         so we can work around Linux bugs.
9416         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9417         * modules/sys_stat (Makefile.am): Substitute them.
9418         * lib/sys_stat.in.h (utimensat): Declare it.
9419         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9420         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9421         * modules/utimensat-tests: New test.
9422         * tests/test-utimensat.c: Likewise.
9423
9424         utimens: let lutimens work on non-symlinks
9425         * lib/utimens.c (lutimens): Fall back to utimens rather than
9426         failing with ENOSYS, when file is not a symlink.
9427         (utimens): Reduce redirection.
9428         * tests/test-lutimens.h (test_lutimens): Update test to cover
9429         non-symlinks.
9430         * tests/test-utimens.h (test_utimens): Update test to cover
9431         symlinks.
9432         * tests/test-utimens.c (main): Update caller.
9433
9434         utimens: cache whether utimensat syscall works
9435         * lib/utimens.c (utimensat_works_really): New cache variable.
9436         (fdutimens, lutimens): Use it to avoid failing syscall.
9437
9438         test-stat-time, test-utimens: improve portability
9439         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9440         ext4 on alpha, and for cygwin.
9441         * tests/test-utimens-common.h: New file.
9442         (nap): Factor delays into single function.
9443         * tests/test-lutimens.h (test_lutimens): Use new header.
9444         * tests/test-futimens.h (test_futimens): Likewise.
9445         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9446         timestamps to occur from same machine, as was done previously for
9447         test_utimens.
9448         * modules/utimens-tests (Files): Ship new file.
9449         * modules/futimens-tests (Files): Likewise.
9450         Reported in part by Jim Meyering.
9451
9452         sys_stat: sort replacement declarations
9453         * lib/sys_stat.in.h: Sort declarations.
9454         * lib/futimens.c (futimens): Fix typo.
9455
9456 2009-10-15  Jim Meyering  <meyering@redhat.com>
9457
9458         don't let environment settings perturb build
9459         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9460         could cause a configure-time and/or build-time malfunction.
9461         Typically, a configure-time function-in-library test is performed
9462         via code like this:
9463
9464           LIB_VAR=
9465           AC_SUBST([LIB_VAR])
9466           prefix_saved_LIBS=$LIBS
9467             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9468                        [test "$ac_cv_search_FUNC" = "none required" ||
9469                         LIB_VAR=$ac_cv_search_FUNC])
9470           LIBS=$prefix_saved_LIBS
9471
9472         However, in each of the files affected by this change, the LIB_VAR=
9473         initialization was omitted.  Thus, when set in the environment, its
9474         value would propagate into generated Makefiles when FUNC is not found
9475         in LIB_NAME.
9476         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9477         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9478         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9479
9480 2009-10-14  Eric Blake  <ebb9@byu.net>
9481
9482         fchdir: avoid infinite recursion in mingw
9483         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9484         recursing.
9485
9486         test-stat-time: port to mingw
9487         * tests/test-stat-time.c (force_unlink): Return a value.
9488         (test_ctime) [W32]: Fix compilation error.
9489         (nap): Don't call usleep with too large an argument.  Use
9490         force_unlink.
9491         * doc/pastposix-functions/usleep.texi (usleep): Document the
9492         portability issue.
9493
9494 2009-10-13  Jim Meyering  <meyering@redhat.com>
9495
9496         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9497         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9498         * modules/pipe-filter-ii: Likewise.
9499         * modules/sys_socket-tests: Likewise.
9500         * modules/tsearch-tests: Likewise.
9501         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9502         (check): Depend on it.
9503
9504 2009-10-12  Eric Blake  <ebb9@byu.net>
9505
9506         utimens-tests: port to NFS file systems
9507         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9508         comparisons to avoid spurious failures from timestamp drift
9509         between NFS machines.
9510
9511 2009-10-12  Eric Blake  <ebb9@byu.net>
9512
9513         stat-time-tests: minor cleanups
9514         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9515         * tests/test-stat-time.c (nap): Separate assignment from call.
9516         Suggested by Paolo Bonzini and Bruno Haible.
9517
9518         sys_stat: guarantee struct timespec
9519         * lib/sys_stat.in.h (includes): Always include <time.h>
9520         * modules/sys_stat (Depends-on): Add time.
9521         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9522         mode_t permission values.
9523         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9524         get at subsecond timestamps.
9525
9526 2009-10-10  Eric Blake  <ebb9@byu.net>
9527
9528         futimens: new module
9529         * modules/futimens: New file.
9530         * lib/futimens.c (futimens): Likewise.
9531         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9532         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9533         we can work around Linux bugs.
9534         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9535         * modules/sys_stat (Makefile.am): Substitute them.
9536         * lib/sys_stat.in.h (futimens): Declare it.
9537         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9538         * doc/posix-functions/futimens.texi (futimens): Likewise.
9539         * modules/futimens-tests: New test.
9540         * tests/test-futimens.c: Likewise.
9541
9542         utimens: introduce fdutimens
9543         * lib/utimens.h (fdutimens): New prototype.
9544         * lib/utimens.c (gl_futimens): Move guts...
9545         (fdutimens): ...to new interface.
9546         * tests/test-utimens.c (do_fdutimens): Use it.
9547
9548         utimens: add UTIME_NOW and UTIME_OMIT support
9549         * lib/utimens.c (validate_timespec, update_timespec): New helper
9550         functions.
9551         (gl_futimens, lutimens): Use them.
9552         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9553         stdbool, sys_stat.
9554         (Link): Mention resulting library dependency.
9555         * modules/utimecmp (Link): Likewise.
9556         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9557         (Makefile.am): Pick up library dependency.
9558         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9559         definition.
9560         * tests/test-sys_stat.c: Test the definitions.
9561         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9562         * NEWS: Document library dependency.
9563
9564         utimecmp: support symlink timestamps
9565         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9566         hashing when possible.  Use pathconf when available.
9567         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9568         * modules/utimecmp (Depends-on): Add lstat.
9569
9570         utimens: add lutimens interface
9571         * lib/utimens.c (lutimens): New function.
9572         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9573         * lib/utimens.h (lutimens): Declare new interface.
9574         * tests/test-utimens.c (main): Enhance test.
9575         * tests/test-lutimens.h (test_lutimens): New file.
9576         * modules/utimens-tests (Files): Distribute it.
9577         (Depends-on): Add symlink.
9578         (configure.ac): Check for usleep.
9579
9580         utimens: validate futimens usage
9581         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9582         fewer syscalls on failure later on.  Avoid compiler warning on
9583         mingw.
9584         * modules/utimens (Depends-on): Add dup2.
9585
9586         utimens: add test
9587         * modules/utimens-tests: New test.
9588         * tests/test-utimens.h: New file.
9589         * tests/test-futimens.h: Likewise.
9590         * tests/test-utimens.c: Likewise.
9591
9592         doc: mention timestamp portability issues
9593         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9594         instead.
9595         * doc/posix-functions/utime.texi (utime): Likewise.
9596         * doc/posix-functions/utimes.texi (utimes): Likewise.
9597         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9598         instead.
9599         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9600         module.
9601         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9602         Mention weakness with symlink timestamps.
9603         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9604         to utimensat/futimens instead.
9605         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9606
9607         test-dup2: enhance test
9608         * tests/test-dup2.c (main): Also check AT_FDCWD.
9609
9610         test-stat-time: avoid more spurious failures
9611         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9612         xfs; and avoid race if the two timestamps cross quantization edge.
9613
9614         relocatable: prefer 'file system' over 'filesystem'
9615         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9616         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9617         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9618         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9619         * lib/relocatable.c (compute_curr_prefix): Likewise.
9620
9621 2009-10-10  Jim Meyering  <meyering@redhat.com>
9622
9623         stat-time-tests: check for the usleep function
9624         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9625
9626 2009-10-10  Bruno Haible  <bruno@clisp.org>
9627
9628         * modules/xnanosleep: Put the Link section after the Include section.
9629
9630 2009-10-09  Eric Blake  <ebb9@byu.net>
9631
9632         dup2: work around FreeBSD 6.1 bug
9633         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9634         * doc/posix-functions/dup2.texi (dup2): Document it.
9635         Reported by Nelson H. F. Beebe and Jim Meyering.
9636
9637         test-stat-time: port to buggy NFS clients
9638         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9639         (test_ctime): Also skip test if mtime and ctime are skewed.
9640
9641         maint: prefer 'file system' over 'filesystem'
9642         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9643         * doc/posix-functions/lstat.texi (lstat): Likewise.
9644         * lib/file-has-acl.c (file_has_acl): Likewise.
9645         * lib/fwriteerror.c [TEST]: Likewise.
9646         * tests/test-areadlink.h (test_areadlink): Likewise.
9647         * tests/test-areadlinkat-with-size.c (main): Likewise.
9648         * tests/test-areadlinkat.c (main): Likewise.
9649         * tests/test-canonicalize-lgpl.c (main): Likewise.
9650         * tests/test-canonicalize.c (main): Likewise.
9651         * tests/test-fstatat.c (main): Likewise.
9652         * tests/test-linkat.c (main): Likewise.
9653         * tests/test-lstat.h (test_lstat_func): Likewise.
9654         * tests/test-mkdir.h (test_mkdir): Likewise.
9655         * tests/test-readlink.h (test_readlink): Likewise.
9656         * tests/test-remove.c (main): Likewise.
9657         * tests/test-rename.h (test_rename): Likewise.
9658         * tests/test-renameat.c (main): Likewise.
9659         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9660         * tests/test-symlink.h (test_symlink): Likewise.
9661         * tests/test-symlinkat.c (main): Likewise.
9662         * tests/test-unlink.h (test_unlink_func): Likewise.
9663         * tests/test-unlinkat.c (main): Likewise.
9664
9665         maint: make realtime library usage explicit
9666         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9667         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9668         * modules/settime (Link): Likewise.
9669         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9670
9671         test-stat-time: speed up execution
9672         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9673         warning on mingw.
9674         (nap): New helper function.
9675         (prepare_test): Use it to reduce sleep time.
9676         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9677         execution.
9678         * modules/stat-time-tests (configure.ac): Check for usleep.
9679
9680 2009-10-09  Jim Meyering  <meyering@redhat.com>
9681
9682         selinux-h: always use getfilecon wrappers
9683         * lib/getfilecon.c: New file.
9684         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9685         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9686         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9687         (fgetfilecon): Provide a stub.
9688         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9689         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9690         file unconditionally.
9691         When <selinux/selinux.h> is found, arrange to use wrappers.
9692         * modules/selinux-h (Files): Add getfilecon.c.
9693         (Makefile.am): Substitute include-next-related bits
9694         into the now-always-generated selinux/selinux.h file.
9695         * doc/glibc-functions/lgetfilecon.texi: New file.
9696         * doc/glibc-functions/fgetfilecon.texi: New file.
9697         * doc/glibc-functions/getfilecon.texi: New file.
9698         * doc/glibc-functions/getfilecon-desc.texi: New file.
9699         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9700         which to pull in the new files.
9701         * MODULES.html.sh (Misc): Add selinux-h.
9702
9703 2009-10-08  Jim Meyering  <meyering@redhat.com>
9704
9705         unistd: fix comment typo
9706         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9707
9708 2009-10-08  Eric Blake  <ebb9@byu.net>
9709
9710         areadlink: use SIZE_MAX consistently
9711         * modules/areadlink (Depends-on): Add stdint.
9712         * modules/areadlink-with-size (Depends-on): Likewise.
9713         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9714         gives NULL; drop sys/types, since unistd gives size_t; and add
9715         stdint for SIZE_MAX.
9716         (SIZE_MAX): Rely on headers.
9717         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9718         and add stdint.
9719         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9720         (SIZE_MAX): Likewise.
9721         (INITIAL_BUF_SIZE): Turn into enum.
9722         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9723
9724 2009-10-08  Jim Meyering  <meyering@redhat.com>
9725
9726         areadlinkat: avoid compilation failure
9727         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9728         Fix typo in comment.
9729
9730 2009-10-07  Eric Blake  <ebb9@byu.net>
9731
9732         areadlinkat-with-size: new module
9733         * modules/areadlinkat-with-size: New module.
9734         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9735         * lib/areadlink.h (areadlinkat): Declare it.
9736         * MODULES.html.sh (File system functions): Mention it.
9737         * modules/areadlinkat-with-size-tests: New test.
9738         * tests/test-areadlinkat-with-size.c: New file.
9739
9740         xreadlinkat: new module
9741         * modules/xreadlinkat: New module.
9742         * lib/xreadlinkat.c (xreadlinkat): New file.
9743         * lib/xreadlink.h (xreadlinkat): Declare it.
9744         * MODULES.html.sh (File system functions): Mention it.
9745
9746         areadlinkat: new module
9747         * lib/at-func.c (FUNC_FAIL): New define.
9748         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9749         * modules/areadlinkat: New module.
9750         * lib/linkat.c (areadlinkat): Move...
9751         * lib/areadlinkat.c (areadlinkat): ...to new file.
9752         * lib/areadlink.h (areadlinkat): Declare it.
9753         * modules/linkat (Depends-on): Add areadlinkat.
9754         * MODULES.html.sh (File system functions): Mention it.
9755         * modules/areadlinkat-tests: New test.
9756         * tests/test-areadlinkat.c: New file.
9757
9758         areadlink, areadlink-with-size: add tests
9759         * modules/areadlink-tests: New test.
9760         * modules/areadlink-with-size-tests: Likewise.
9761         * tests/test-areadlink.h: New file.
9762         * tests/test-areadlink.c: Likewise.
9763         * tests/test-areadlink-with-size.c: Likewise.
9764
9765         maint: minor cleanups
9766         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9767         _UNUSED_PARAMETER_ instead.
9768         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9769         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9770         * modules/linkat-tests (Files): Distribute test-link.h.
9771
9772         openat, utimens: whitespace cleanup
9773         * lib/openat.c: Prefer space throughout, rather than mix of 8
9774         spaces vs. tabs.
9775         * lib/at-func.c: Likewise.
9776         * lib/utimens.c: Likewise.
9777
9778         openat: avoid using wrong fd
9779         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9780         working directory chooses same fd.
9781         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9782
9783         mkdir, mkdirat: fix cygwin 1.5.x bug
9784         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9785         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9786         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9787         bug.
9788         (gl_PREREQ_MKDIR): Delete unused macro.
9789         * modules/mkdir (Files): Track file rename.
9790         (configure.ac): Update macro name.
9791         * modules/openat (Depends-on): Add mkdir.
9792         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9793
9794         mkdir, mkdirat: add tests
9795         * modules/mkdir-tests: New test.
9796         * tests/test-mkdir.h: New file.
9797         * tests/test-mkdir.c: Likewise.
9798         * tests/test-mkdirat.c: Likewise.
9799         * modules/openat-tests (Files): Add new files.
9800         (Makefile.am): Run new test.
9801
9802 2009-10-06  Eric Blake  <ebb9@byu.net>
9803
9804         doc: tweak *at function documentation
9805         * doc/posix-functions/faccessat.texi (faccessat): Mention
9806         known issue with replacement.
9807         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9808         * doc/posix-functions/linkat.texi (linkat): Likewise.
9809         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9810         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9811         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9812         * doc/posix-functions/renameat.texi (renameat): Likewise.
9813         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9814
9815         openat: fix GNU/Hurd bug in unlinkat
9816         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9817         broken.
9818         * doc/posix-functions/unlink.texi (unlink): Document this.
9819         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9820
9821         fdopendir: fix GNU/Hurd bug
9822         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9823         allowing non-directory fds.
9824         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9825         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9826         * modules/dirent (Makefile.am): Substitute it.
9827         * lib/dirent.in.h (fdopendir): Declare replacement.
9828         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9829         * tests/test-fdopendir.c (main): Test something other than
9830         /dev/null, since on Hurd that behaves like a directory.
9831
9832         test-symlink: port to GNU/Hurd
9833         * tests/test-symlink.h (test_symlink): Relax expected errno.
9834
9835         doc: tweak more cygwin information
9836         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9837         now compatible with glibc.
9838         * doc/posix-functions/getopt.texi (getopt): Likewise.
9839
9840         getopt-gnu: add another test
9841         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9842         guarantee behavior relied on by m4.
9843         * tests/test-getopt.c (main): Use it.
9844         * modules/getopt-posix-tests (Depends-on): Add setenv.
9845         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9846
9847         getopt: fix compilation on darwin
9848         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9849         include.
9850         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9851         Reported by Ludovic Courtès.
9852
9853 2009-10-06  Bruno Haible  <bruno@clisp.org>
9854
9855         * modules/size_max (Description): Discourage its use.
9856         Reported by Simon Josefsson.
9857
9858 2009-10-06  Jim Meyering  <meyering@redhat.com>
9859
9860         linkat: avoid compilation failure
9861         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9862
9863 2009-10-05  Eric Blake  <ebb9@byu.net>
9864
9865         linkat: support Linux 2.6.17
9866         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9867         linkat on Linux, but allow cache variable override.
9868         * lib/linkat.c (rpl_linkat): Define override.
9869         * modules/linkat (Depends-on): Add symlinkat.
9870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9871         * modules/unistd (Makefile.am): Substitute it.
9872         * lib/unistd.in.h (linkat): Declare replacement.
9873         Reported by Pádraig Brady.
9874
9875         quotearg: port test to systems with C.UTF-8 locale
9876         * tests/test-quotearg.c (struct result_strings): Add another
9877         member, differentiating between C.ASCII and C.UTF-8 handling.
9878         (compare_strings): Add parameter.
9879         (main): Adjust all callers.
9880
9881         getopt: avoid clash with FreeBSD _getopt_internal
9882         * lib/getopt.in.h (_getopt_internal): Override the name.
9883         * lib/getopt_int.h (includes): Pick up any overrides.
9884         Reported by Reuben Thomas.
9885
9886         hash: allow C89 compilation
9887         * lib/hash.c (check_tuning): Move declaration before statement.
9888         Reported by Reuben Thomas.
9889
9890 2009-10-05  Karl Berry  <karl@gnu.org>
9891
9892         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9893
9894 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9895             Bruno Haible  <bruno@clisp.org>
9896
9897         * lib/uname.c (uname): Use a table-driven algorithm to compute
9898         Windows NT versions.
9899
9900 2009-10-04  Bruno Haible  <bruno@clisp.org>
9901
9902         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9903         program_invocation_short_name.
9904         * modules/progname (configure.ac): Test for presence of
9905         program_invocation_short_name.
9906         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9907
9908 2009-10-04  Bruno Haible  <bruno@clisp.org>
9909
9910         * lib/progname.c (set_program_name): Fix comment.
9911         Reported by Jim Meyering.
9912
9913 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9914             Bruno Haible  <bruno@clisp.org>
9915
9916         * lib/uname.c: Include <string.h>.
9917         (uname): Do only one call to GetVersionEx in the common case.
9918
9919 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9920             Bruno Haible  <bruno@clisp.org>
9921
9922         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9923         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9924         (uname): Add support for Windows CE and various non-x86 CPU types.
9925
9926 2009-10-03  Bruno Haible  <bruno@clisp.org>
9927
9928         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9929         invocation to tests/configure.ac.
9930         Reported by Ian Beckwith <ianb@erislabs.net>.
9931
9932 2009-10-02  Eric Blake  <ebb9@byu.net>
9933
9934         fchdir: avoid compiler warning
9935         * lib/fchdir.c (canonicalize_file_name)
9936         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9937
9938         test-open: support mingw errno values
9939         * tests/test-open.h (test_open): Relax test.
9940         * tests/test-fopen.h (test_fopen): Likewise.
9941         * tests/test-openat-safer.c (main): Likewise.
9942
9943         open: fix opening directory on mingw
9944         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9945
9946         test-open: on GNU/Hurd, /dev/null is a directory
9947         * tests/test-fopen.h (main): Rename...
9948         (test_fopen): ...to this.  Use a guaranteed non-directory when
9949         confirming open behavior on trailing slash.
9950         * tests/test-openat-safer.c (main): Likewise.
9951         * tests/test-open.h (main): Likewise....
9952         (test_open): ...to this.
9953         * tests/test-fopen.c (main): Adjust caller.
9954         * tests/test-fopen-safer.c (main): Likewise.
9955         * tests/test-open.c (main): Likewise.
9956         * tests/test-fcntl-safer.c (main): Likewise.
9957         Reported by Samuel Thibault.
9958
9959         rename, fchdir: don't ignore chdir failure
9960         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9961         * lib/rename.c (rpl_rename) [W32]: Likewise.
9962         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9963         an empty destination directory if source cannot be renamed,
9964         although there is still possibility for failure.
9965         * doc/posix-functions/rename.texi (rename): Document the race.
9966         Reported by Jim Meyering.
9967
9968         maint: cleanup whitespace in recent commits
9969         * lib/rename.c (rpl_rename): Remove tabs.
9970         * tests/test-link.h (test_link): Likewise.
9971         * lib/fchdir.c (get_name): Likewise.
9972         Reported by Jim Meyering.
9973
9974 2009-10-02  Ben Pfaff  <blp@gnu.org>
9975
9976         relocatable-prog-wrapper: Add missing dependency on
9977         double-slash-root.
9978         * modules/relocatable-prog-wrapper: Add dependency.
9979         Reported by Ian Beckwith <ianb@erislabs.net>.
9980
9981 2009-10-02  Eric Blake  <ebb9@byu.net>
9982
9983         renameat: fix Solaris bugs
9984         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9985         needed fixing.
9986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9987         * modules/stdio (Makefile.am): Substitute it.
9988         * lib/stdio.in.h (renameat): Declare replacement.
9989         * lib/renameat.c (rpl_renameat): Implement fix.
9990
9991         renameat: new module
9992         * modules/renameat: New file.
9993         * lib/renameat.c (renameat): Likewise.
9994         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9996         * modules/stdio (Makefile.am): Substitute them.
9997         * lib/stdio.in.h (renameat): Declare it.
9998         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9999         * doc/posix-functions/renameat.texi (renameat): Likewise.
10000         * modules/renameat-tests: New test.
10001         * tests/test-renameat.c: Likewise.
10002
10003         rename: fix mingw bugs
10004         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
10005         directory overwrite bugs.
10006
10007         rename: fix another cygwin 1.5 bug
10008         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
10009         checks.
10010         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10011         unnecessary cygwin workarounds.  Also work around bug with moving
10012         full directory onto an empty one.
10013         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10014
10015         rename-dest-slash: merge into rename module
10016         * modules/rename-dest-slash (Status): Mark obsolete.
10017         (Depends-on): Add rename.
10018         (Files): Let rename do it all.
10019         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10020         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10021         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10022         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10023         * lib/rename.c (rpl_rename): Update comments.
10024
10025         rename: fix cygwin 1.5.x bugs
10026         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10027         * lib/rename.c (rpl_rename): Work around them.
10028         * modules/rename (Depends-on): Add same-inode.
10029
10030         rename: fix Solaris 10 bug
10031         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10032         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10033         was the only bug.
10034
10035         rename: fix Solaris 9 bug
10036         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10037         on non-directory.  Avoid calling exit.
10038         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10039         strdup.
10040         * modules/rename-tests (Depends-on): Drop lstat.
10041         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10042         (gl_PREREQ_RENAME): Delete unused macro.
10043
10044         rename-dest-slash: fix NetBSD bug
10045         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10046         links.
10047         * modules/rename-dest-slash (Depends-on): Add same-inode.
10048
10049         rename-tests: new test, exposes several platform bugs
10050         * modules/rename-tests: New file.
10051         * tests/test-rename.h: Likewise.
10052         * tests/test-rename.c: Likewise.
10053         * doc/posix-functions/rename.texi (rename): Improve documentation,
10054         including bugs that will eventually be fixed in gnulib.
10055
10056 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10057
10058         * lib/uname.c: Include <stdlib.h>
10059         (uname): Assume version info is available.
10060
10061 2009-10-02  Jim Meyering  <meyering@redhat.com>
10062
10063         gnu-web-doc-update: correct --help output
10064         * build-aux/gnu-web-doc-update: Make --help output relevant.
10065
10066         gnu-web-doc-update: add standard options
10067         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10068
10069         gnu-web-doc-update: New module.
10070         Use this script to automatically update the on-line web documentation
10071         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10072         * modules/gnu-web-doc-update: New file, from coreutils.
10073         * build-aux/gnu-web-doc-update: New script.
10074
10075 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10076
10077         link: LoadLibrary is not needed.
10078         * lib/link.c: Use GetModuleHandle.
10079
10080 2009-10-01  Eric Blake  <ebb9@byu.net>
10081
10082         getopt: bump serial number
10083         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10084         change.
10085
10086         tests: tighten link, rmdir, and remove tests
10087         * tests/test-link.h (includes): No need to use <config.h> here.
10088         Clean up if directory hard link was created, otherwise test for
10089         trailing '.'.
10090         * tests/test-linkat.c (main): Simplify.
10091         * tests/test-remove.c (main): Enhance test for trailing '.'.
10092         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10093
10094 2009-10-01  Jim Meyering  <meyering@redhat.com>
10095
10096         maint.mk: requiring "make major" was annoying, for a "minor" release.
10097         What is intended is "stable", to contrast with alpha and beta,
10098         so require "make stable", not "make major".
10099         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10100         (get_tool_versions): Likewise.
10101         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10102
10103 2009-09-30  Ben Pfaff  <blp@gnu.org>
10104
10105         Fix broken build of replacement for Windows tmpfile().
10106         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10107         flags argument added along with the 'mkostemp' module.
10108
10109 2009-09-28  Bruno Haible  <bruno@clisp.org>
10110
10111         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10112         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10113         to 'remove_elt'.
10114         (gl_list_remove): Update.
10115         * lib/gl_list.c (gl_list_remove): Update.
10116         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10117         to 'remove_elt'.
10118         (gl_oset_remove): Update.
10119         * lib/gl_list.c (gl_oset_remove): Update.
10120         Reported by Eric Blake.
10121
10122 2009-09-28  Eric Blake  <ebb9@byu.net>
10123
10124         doc: mention yet more cygwin 1.7 status
10125         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10126         cygwin.
10127         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10128         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10129
10130         argp: fix test failure
10131         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10132         that are not upper-case.  Pass correct range to tolower.
10133
10134 2009-09-27  Jim Meyering  <meyering@redhat.com>
10135
10136         test-yesno: work around sparc-dash here-document infelicity
10137         Without this change, the literal \177 byte in a here document
10138         would make dash 0.5.5.1-3 access uninitialized memory.
10139         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10140         Instead, use a marker, "@", and filter through tr to create the desired
10141         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10142
10143 2009-09-27  Bruno Haible  <bruno@clisp.org>
10144
10145         Disable untested support for new flavours of ACLs on AIX.
10146         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10147         progress.
10148         * lib/set-mode-acl.c (qset_acl): Likewise.
10149
10150 2008-12-07  Bruno Haible  <bruno@clisp.org>
10151
10152         Add support for new flavours of ACLs on AIX. (Untested.)
10153         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10154         (file_has_acl): Add support for newer AIX.
10155         * lib/set-mode-acl.c (qset_acl): Likewise.
10156         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10157         Rainer Tammer <tammer@tammer.net>.
10158
10159 2009-09-26  Eric Blake  <ebb9@byu.net>
10160
10161         argp: fix compilation of getopt
10162         * lib/getopt.in.h (includes): Use different guard than glibc.
10163         Reported by Sergey Poznyakoff.
10164
10165         doc: mention more cygwin 1.7 status
10166         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10167         bug.
10168         * doc/posix-functions/execl.texi (execl): Likewise.
10169         * doc/posix-functions/execle.texi (execle): Likewise.
10170         * doc/posix-functions/execlp.texi (execlp): Likewise.
10171         * doc/posix-functions/execv.texi (execv): Likewise.
10172         * doc/posix-functions/execve.texi (execve): Likewise.
10173         * doc/posix-functions/execvp.texi (execvp): Likewise.
10174         * doc/glibc-functions/canonicalize_file_name.texi
10175         (canonicalize_file_name): Cygwin 1.7 now provides this.
10176         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10177         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10178         on AT_SYMLINK_NOFOLLOW.
10179
10180 2009-09-24  Eric Blake  <ebb9@byu.net>
10181
10182         test-linkat: make test more robust
10183         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10184
10185         getopt: fix inclusion guards for cygwin
10186         * modules/getopt-posix (Depends-on): Add include-next.
10187         (Makefile.am): Substitute more items in replacement header.
10188         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10189         <getopt.h>.
10190         * lib/getopt.in.h (includes): Use split inclusion guard, and
10191         prefer <getopt.h> over include <unistd.h> when one is present.
10192         (option): Also override name of 'struct option'.
10193
10194         same-inode: revert prior change; it is not yet ready
10195         * NEWS: Undo mention of this change.
10196         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10197         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10198         * lib/cycle-check.c (cycle_check): Likewise.
10199         * lib/same.c (same_name): Likewise.
10200         * lib/at-func2.c (at_func2): Likewise.
10201
10202 2009-09-23  Eric Blake  <ebb9@byu.net>
10203
10204         linkat: new module
10205         * modules/linkat: New file.
10206         * lib/at-func2.c (at_func2): Likewise.
10207         * lib/linkat.c (linkat): Likewise.
10208         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10209         * lib/openat-priv.h (at_func2): Add declaration.
10210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10211         * modules/unistd (Makefile.am): Substitute them.
10212         * lib/unistd.in.h (linkat): Declare it.
10213         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10214         * doc/posix-functions/linkat.texi (linkat): Likewise.
10215         * doc/posix-functions/link.texi (link): Tweak wording.
10216         * tests/test-link.c (main): Move guts...
10217         * tests/test-link.h (test_link): ...into new file.
10218         * modules/linkat-tests: New test.
10219         * tests/test-linkat.c: Likewise.
10220         * modules/link-tests (Files): Ship new file.
10221         (Depends-on): Add stdbool.
10222
10223         dirname: add library-safe mdir_name
10224         * lib/dirname.h (mdir_name): New prototype.
10225         * lib/dirname.c (dir_name): Move guts...
10226         (mdir_name): ...to new function that avoids xalloc_die.
10227
10228         fchdir: another mingw fix
10229         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10230         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10231         on mingw (where it has not yet been ported), and make it optional
10232         elsewhere.
10233         (_gl_register_fd): Use it.
10234
10235         same-inode: make SAME_INODE tri-state, to port to mingw
10236         * NEWS: Mention this change.
10237         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10238         st_ino always being 0.
10239         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10240         * lib/cycle-check.c (cycle_check): Likewise.
10241         * lib/same.c (same_name): Likewise.
10242
10243         lstat: avoid mingw compilation error
10244         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10245         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10246         lstat ourselves.
10247         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10248         was adequate.
10249         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10250         the checks for lstat.
10251         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10252
10253         link: fix test failure on Solaris 9
10254         * lib/link.c (rpl_link): Don't assume link will catch bogus
10255         trailing slash on source.
10256
10257         test-symlinkat: enhance test
10258         * tests/test-readlink.c (main): Move guts...
10259         * tests/test-readlink.h (test_readlink): ...into new file.
10260         * tests/test-symlink.c (main): Move guts...
10261         * tests/test-symlink.h (test_symlink): ...into new file.
10262         * tests/test-symlinkat.c (main): Use new files for further
10263         coverage.
10264         (do_symlink, do_readlink): New helper functions.
10265         * modules/symlink-tests (Files): Ship new file.
10266         (Depends-on): Add stdbool.
10267         * modules/readlink-tests (Files): Ship new file.
10268         (Depends-on): Add stdbool.
10269         * modules/symlinkat-tests (Files): Use new files.
10270
10271 2009-09-23  Eric Blake  <ebb9@byu.net>
10272
10273         readlink: document portability issue with symlink length
10274         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10275         systems have bogus st_size on symlinks, and mention the
10276         areadlink-with-size module.
10277         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10278         * doc/posix-functions/readlink.texi (readlink): Mention the
10279         areadlink module, and ERANGE failure.
10280         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10281         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10282
10283         readlink: fix Solaris 9 bug with trailing slash
10284         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10285         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10286         * doc/posix-functions/readlink.texi (readlink): Document this.
10287         * modules/readlink-tests: New test.
10288         * tests/test-readlink.c: Likewise.
10289
10290         readlink: fix cygwin 1.5.x bug with return type
10291         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10292         * lib/unistd.in.h (readlink): Use ssize_t.
10293         * lib/readlink.c (readlink): Likewise.
10294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10295         * modules/unistd (Makefile.am): Substitute it.
10296         * lib/unistd.in.h (readlink): Declare replacement.
10297         * doc/posix-functions/readlink.texi (readlink): Document this.
10298
10299         symlink: use throughout gnulib
10300         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10301         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10302         symlink is not used.
10303         * modules/symlinkat (Depends-on): Add symlink.
10304         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10305         * modules/canonicalize-tests (Depends-on): Likewise.
10306         * modules/lstat-tests (Depends-on): Likewise.
10307         * modules/openat-tests (Depends-on): Likewise.
10308         * modules/remove-tests (Depends-on): Likewise.
10309         * modules/rmdir-tests (Depends-on): Likewise.
10310         * modules/unlink-tests (Depends-on): Likewise.
10311         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10312         * tests/test-canonicalize.c (symlink): Likewise.
10313         * tests/test-fstatat.c (symlink): Likewise.
10314         * tests/test-lstat.c (symlink): Likewise.
10315         * tests/test-remove.c (symlink): Likewise.
10316         * tests/test-rmdir.c (symlink): Likewise.
10317         * tests/test-unlink.c (symlink): Likewise.
10318         * tests/test-unlinkat.c (symlink): Likewise.
10319
10320         symlink: new module, for Solaris 9 bug
10321         * modules/symlink: New file.
10322         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10323         * lib/symlink.c: Likewise.
10324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10325         * modules/unistd (Makefile.am): Substitute them.
10326         * lib/unistd.in.h (symlink): Declare replacement.
10327         * MODULES.html.sh (File system functions): Mention it.
10328         * doc/posix-functions/symlink.texi (symlink): Likewise.
10329         * modules/symlink-tests: New test.
10330         * tests/test-symlink.c: Likewise.
10331
10332 2009-09-23  Bruno Haible  <bruno@clisp.org>
10333
10334         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10335         when needed.
10336         Test case: gnulib-tool --import --with-tests atexit inttypes.
10337         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10338
10339 2009-09-23  Bruno Haible  <bruno@clisp.org>
10340
10341         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10342         subcommand, not in a subshell.
10343
10344 2009-09-22  Eric Blake  <ebb9@byu.net>
10345
10346         unistd: sort replacement declarations
10347         * lib/unistd.in.h: Sort declarations.
10348
10349         open, openat: minor optimization
10350         * lib/open.c (open): If open succeeded, len is non-zero.
10351         * lib/openat.c (rpl_openat): Likewise.
10352
10353         link-follow: ensure correct result
10354         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10355         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10356         distinguish between possible failures.
10357
10358 2009-09-21  Eric Blake  <ebb9@byu.net>
10359
10360         fts: avoid compiler warning
10361         * lib/fts.c (dirent_inode_sort_may_be_useful)
10362         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10363
10364 2009-09-19  Bruno Haible  <bruno@clisp.org>
10365
10366         * lib/progreloc.c (canonicalize_file_name): New declaration.
10367
10368 2009-09-19  Eric Blake  <ebb9@byu.net>
10369
10370         link: fix quoting
10371         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10372
10373         openat: fix openat bugs on Solaris 9
10374         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10375         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10376         * modules/openat (Depends-on): Add open.
10377         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10378         * modules/fcntl-h (Makefile.am): Substitute it.
10379         * lib/fcntl.in.h (openat): Declare replacement.
10380         * doc/posix-functions/openat.texi (openat): Document this.
10381
10382         openat: move fstatat and unlinkat into correct files
10383         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10384         compiled.
10385         * lib/openat.c (fstatat, unlinkat): Move...
10386         * lib/fstatat.c (fstatat): ...into correct files.
10387         * lib/unlinkat.c (unlinkat): Likewise.
10388
10389         openat: fix unlinkat bugs on Solaris 9
10390         * lib/unlinkat.c (unlinkat): New file.
10391         * modules/openat (Depends-on): Add unlink.
10392         (Files): Distribute it.
10393         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10394         trailing slash behavior is broken.
10395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10396         * modules/unistd (Makefile.am): Substitute it.
10397         * lib/unistd.in.h (unlinkat): Declare replacement.
10398         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10399
10400         openat: fix fstatat bugs on Solaris 9
10401         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10402         stat.
10403         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10404
10405         test-unlinkat: enhance test, to expose Solaris 9 bug
10406         * tests/test-unlink.c (main): Factor guts...
10407         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10408         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10409         * tests/test-rmdir.c (main): Adjust caller.
10410         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10411         (unlinker): New helper function.
10412         (rmdirat): Enhance check.
10413         * modules/rmdir-tests (Depends-on): Add stdbool.
10414         * modules/unlink-tests (Depends-on): Likewise.
10415         (Files): Add test-unlink.h.
10416         * modules/openat-tests (Files): Likewise.
10417         (Depends-on): Add unlinkdir.
10418
10419         test-fstatat: new test, to expose Solaris 9 bugs
10420         * tests/test-stat.c (main): Factor guts...
10421         * tests/test-stat.h (test_stat_func): ...into new file.
10422         * tests/test-lstat.c (main): Factor guts...
10423         * tests/test-lstat.h (test_lstat_func): ...into new file.
10424         * tests/test-fstatat.c: New file.
10425         * modules/stat-tests (Files): Add test-stat.h.
10426         * modules/lstat-tests (Files): Add test-lstat.h.
10427         (Depends-on): Add stdbool.
10428         * modules/openat-tests (Depends-on): Add pathmax.
10429         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10430         (Makefile.am): Run new test.
10431
10432         remove: new module, for mingw and Solaris 9 bugs
10433         * modules/remove: New file.
10434         * lib/remove.c: Likewise.
10435         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10437         * modules/stdio (Makefile.am): Use them.
10438         * lib/stdio.in.h (remove): Declare replacement.
10439         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10440         * doc/posix-functions/remove.texi (remove): Likewise.
10441         * modules/remove-tests: New test.
10442         * tests/test-remove.c: Likewise.
10443
10444         unlink: new module, for Solaris 9 bug
10445         * modules/unlink: New file.
10446         * lib/unlink.c: Likewise.
10447         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10449         * modules/unistd (Makefile.am): Use them.
10450         * lib/unistd.in.h (stat): Declare replacement.
10451         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10452         * doc/posix-functions/unlink.texi (unlink): Likewise.
10453         * modules/unlink-tests: New test.
10454         * tests/test-unlink.c: Likewise.
10455
10456         lstat: fix Solaris 9 bug
10457         * lib/lstat.c (lstat): Also check for trailing slash on
10458         non-symlink, non-directories.  Use stat module to simplify logic.
10459         * doc/posix-functions/lstat.texi (lstat): Document it.
10460         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10461         (configure.ac): Check for symlink.
10462         * tests/test-lstat.c (main): Add more tests.
10463
10464         stat: add as dependency to other modules
10465         * modules/chown (Depends-on): Add stat.
10466         * modules/euidaccess (Depends-on): Likewise.
10467         * modules/fchdir (Depends-on): Likewise.
10468         * modules/isdir (Depends-on): Likewise.
10469         * modules/link (Depends-on): Likewise.
10470         * modules/lstat (Depends-on): Likewise.
10471         * modules/mkdir-p (Depends-on): Likewise.
10472         * modules/modechange (Depends-on): Likewise.
10473         * modules/open (Depends-on): Likewise.
10474         * modules/readlink (Depends-on): Likewise.
10475         * modules/same (Depends-on): Likewise.
10476
10477         stat: fix Solaris 9 bug
10478         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10479         slash.
10480         * lib/stat.c (rpl_stat): Work around it.
10481         * doc/posix-functions/stat.texi (stat): Update documentation.
10482
10483         stat: new module, for mingw bug
10484         * modules/stat: New file.
10485         * lib/stat.c: Likewise.
10486         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10487         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10488         * modules/sys_stat (Makefile.am): Use them.
10489         * lib/sys_stat.in.h (stat): Declare replacement.
10490         * lib/openat.c (fstatat): Deal with lstat and stat being function
10491         macros.
10492         * modules/openat (Depends-on): Add inline.
10493         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10494         * doc/posix-functions/stat.texi (stat): Likewise.
10495         * modules/stat-tests: New test.
10496         * tests/test-stat.c: Likewise.
10497
10498 2009-09-19  Jim Meyering  <meyering@redhat.com>
10499
10500         syntax-check: detect unnecessary inclusion of canonicalize.h
10501         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10502
10503 2009-09-19  Eric Blake  <ebb9@byu.net>
10504
10505         canonicalize-lgpl: adjust clients to use correct header
10506         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10507         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10508         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10509         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10510         * lib/progreloc.c (includes): Likewise.
10511
10512 2009-09-19  Jim Meyering  <meyering@redhat.com>
10513
10514         test-posixtm.c: correct a comment
10515         * tests/test-posixtm.c: Correct first-line comment.
10516         Spotted by Eric Blake.
10517
10518 2009-09-16  Jim Meyering  <meyering@redhat.com>
10519
10520         posixtm-tests: make T const-correct; add a test case
10521         * tests/test-posixtm.c (T): Declare const.
10522         Add a test for -(2^31+1).
10523         Remove useless can-succeed-only-in-2002 test.
10524
10525         posixtm-tests: adjust the sole failing test
10526         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10527         expected output matches what mktime now produces.  Cross-checked via
10528         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10529
10530         posixtm: move #ifdef'd tests into a new module
10531         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10532         * tests/test-posixtm.c: ... this new file.
10533         * modules/posixtm-tests: New module.
10534
10535 2009-09-19  Eric Blake  <ebb9@byu.net>
10536
10537         openat: simplify use of at-func.c
10538         * lib/at-func.c (includes): Include prerequisites here, to
10539         simplify requirements on client files.
10540         * lib/openat-priv.h: Add double-inclusion guard.
10541         * lib/faccessat.c (includes): Simplify.
10542         * lib/fchmodat.c (includes): Likewise.
10543         * lib/fchownat.c (includes): Likewise.
10544         * lib/mkdirat.c (includes): Likewise.
10545         * lib/mkfifoat.c (includes): Likewise.
10546         * lib/symlinkat.c (includes): Likewise.
10547
10548         openat: allow return of fd 0
10549         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10550         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10551         unistd-safer.
10552         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10553         <fcntl.h>; this module does not leak fds.
10554         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10555         must be allowed to return 0, leaving openat_safer to add the
10556         safety.
10557         (openat_permissive): Avoid writing to just-opened fd 2 if
10558         restoring the current directory fails.
10559         * lib/openat-die.c (openat_restore_fail): Add comment.
10560         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10561         (save_cwd): Guarantee safe fd, but without use of open_safer.
10562         * tests/test-openat.c: New test.
10563         * modules/openat-tests (Files, Makefile.am): Distribute and build
10564         new file.
10565
10566         relocatable-prog-wrapper: fix build
10567         * modules/relocatable-prog-wrapper (Files): Update name of
10568         canonicalize m4 file, broken on 2009-09-17.
10569         Reported by emad hajjar <aleppos@hotmail.com>.
10570
10571 2009-09-19  Bruno Haible  <bruno@clisp.org>
10572
10573         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10574         * lib/safe-alloc.c: Likewise.
10575         Reported by Ian Beckwith <ianb@erislabs.net>.
10576
10577 2009-09-18  Bruno Haible  <bruno@clisp.org>
10578
10579         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10580         Reported by <erobles@sensacd.com.mx>.
10581
10582 2009-09-17  Eric Blake  <ebb9@byu.net>
10583
10584         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10585         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10586         slashes when checking if last component is missing.
10587         * tests/test-canonicalize.c (main): Test this.
10588
10589         canonicalize, canonicalize-lgpl: honor // if distinct from /
10590         * modules/canonicalize (Files): Add double-slash-root.m4.
10591         * modules/canonicalize-lgpl (Files): Likewise.
10592         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10593         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10594         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10595         fallback definition.
10596         (canonicalize_filename_mode): Use it to protect //.
10597         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10598         (__realpath): Likewise.
10599         * tests/test-canonicalize.c (main): Test this.
10600         * tests/test-canonicalize-lgpl.c (main): Likewise.
10601         * modules/canonicalize-tests (Depends-on): Add same-inode.
10602         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10603
10604         canonicalize-lgpl: fix glibc bug with trailing slash
10605         * m4/canonicalize-lgpl.m4: Move contents...
10606         * m4/canonicalize.m4: ...here.
10607         (gl_CANONICALIZE_LGPL): Factor realpath check...
10608         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10609         glibc 2.3.5 bug, fixed 2005-04-27.
10610         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10611         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10612         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10613         * modules/canonicalize-lgpl (Files): Manage file rename.
10614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10615         * modules/stdlib (Makefile.am): Substitute witness.
10616         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10617         is needed.
10618         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10619         replacement is required.
10620         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10621         * doc/glibc-functions/canonicalize_file_name.texi
10622         (canonicalize_file_name): Document this.
10623         * doc/posix-functions/realpath.texi (realpath): Likewise.
10624
10625         canonicalize-lgpl: reject non-directory with trailing slash
10626         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10627         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10628         catches failures in glibc 2.3.5.
10629         * tests/test-canonicalize.c (main): Likewise.
10630
10631         canonicalize-lgpl: use native realpath if it works
10632         * lib/canonicalize-lgpl.c (realpath): Guard with
10633         FUNC_REALPATH_WORKS.
10634         * lib/stdlib.in.h (realpath): Make declaration optional based on
10635         HAVE_REALPATH.
10636         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10637         native realpath works.
10638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10639         * modules/stdlib (Makefile.am): Substitute witness.
10640
10641         canonicalize, canonicalize-lgpl: use <stdlib.h>
10642         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10643         (Include): Mention <stdlib.h>.
10644         (configure.ac): Mention functions we provide.
10645         * modules/canonicalize (configure.ac): Likewise.
10646         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10647         realpath if canonicalize_file_name is missing.
10648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10649         * modules/stdlib (Makefile.am): Substitute witnesses.
10650         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10651         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10652         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10653         * NEWS: Document this.
10654         * doc/glibc-functions/canonicalize_file_name.texi
10655         (canonicalize_file_name): Likewise.
10656         * doc/posix-functions/realpath.texi (realpath): Likewise.
10657         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10658
10659         test-canonicalize: consolidate into single C program
10660         * tests/test-canonicalize.sh: Delete; move setup into...
10661         * tests/test-canonicalize.c (main): ...the program, making it
10662         easier to run in debugger.  Add some tests.
10663         * modules/canonicalize-tests (Files): Remove unused file.
10664         (Depends-on): Add progname.
10665         (configure.ac, Makefile.am): Simplify.
10666
10667         test-canonicalize-lgpl: consolidate into single C program
10668         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10669         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10670         easier to run in debugger.  Add some tests.
10671         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10672         (configure.ac, Makefile.am): Simplify.
10673
10674         canonicalize: avoid resolvepath
10675         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10676         unnecessary checks.
10677         * lib/canonicalize.c (includes): Simplify.
10678         (canonicalize_file_name): Drop resolvepath implementation.
10679         * modules/canonicalize (Depends-on): Drop filenamecat.
10680
10681         canonicalize: don't lose errno
10682         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10683         over calls to free.
10684
10685         canonicalize: simplify errno handling
10686         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10687         assignment.
10688
10689         canonicalize, canonicalize-lgpl: update module dependencies
10690         * modules/canonicalize (Depends-on): Add extensions, lstat,
10691         pathmax, stdlib.
10692         (Files): Drop pathmax.h.
10693         (configure.ac): Adjust macro name.
10694         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10695         lstat, stdlib, sys_stat.
10696         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10697         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10698         extensions.
10699         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10700         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10701         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10702         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10703         declaration, if available.
10704         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10705         we can rely on the readlink module.
10706         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10707         (includes): Use <unistd.h> unconditionally.
10708
10709 2009-09-17  Eric Blake  <ebb9@byu.net>
10710
10711         maint: make Include sections of modules consistent
10712         * modules/alloca: Use only header name; no need to list #include.
10713         * modules/alloca-opt: Likewise.
10714         * modules/arpa_inet: Likewise.
10715         * modules/canon-host: Likewise.
10716         * modules/configmake: Likewise.
10717         * modules/dirent: Likewise.
10718         * modules/eealloc: Likewise.
10719         * modules/environ: Likewise.
10720         * modules/fchdir: Likewise.
10721         * modules/fcntl: Likewise.
10722         * modules/fcntl-h: Likewise.
10723         * modules/gethrxtime: Likewise.
10724         * modules/gettime: Likewise.
10725         * modules/ignore-value: Likewise.
10726         * modules/inet_ntop: Likewise.
10727         * modules/inet_pton: Likewise.
10728         * modules/inttypes: Likewise.
10729         * modules/isnand-nolibm: Likewise.
10730         * modules/isnanf-nolibm: Likewise.
10731         * modules/mbchar: Likewise.
10732         * modules/mbfile: Likewise.
10733         * modules/mbiter: Likewise.
10734         * modules/mbuiter: Likewise.
10735         * modules/netdb: Likewise.
10736         * modules/netinet_in: Likewise.
10737         * modules/nproc: Likewise.
10738         * modules/pagealign_alloc: Likewise.
10739         * modules/poll: Likewise.
10740         * modules/printf-frexp: Likewise.
10741         * modules/pthread: Likewise.
10742         * modules/putenv: Likewise.
10743         * modules/random_r: Likewise.
10744         * modules/relocatable-prog: Likewise.
10745         * modules/search: Likewise.
10746         * modules/select: Likewise.
10747         * modules/selinux-h: Likewise.
10748         * modules/settime: Likewise.
10749         * modules/signal: Likewise.
10750         * modules/size_max: Likewise.
10751         * modules/socklen: Likewise.
10752         * modules/ssize_t: Likewise.
10753         * modules/stdarg: Likewise.
10754         * modules/stdbool: Likewise.
10755         * modules/stddef: Likewise.
10756         * modules/stdint: Likewise.
10757         * modules/stdio: Likewise.
10758         * modules/stdlib: Likewise.
10759         * modules/string: Likewise.
10760         * modules/strings: Likewise.
10761         * modules/sys_file: Likewise.
10762         * modules/sys_ioctl: Likewise.
10763         * modules/sys_select: Likewise.
10764         * modules/sys_socket: Likewise.
10765         * modules/sys_stat: Likewise.
10766         * modules/sys_time: Likewise.
10767         * modules/sys_times: Likewise.
10768         * modules/sys_utsname: Likewise.
10769         * modules/sys_wait: Likewise.
10770         * modules/sysexits: Likewise.
10771         * modules/time: Likewise.
10772         * modules/times: Likewise.
10773         * modules/tmpfile: Likewise.
10774         * modules/trim: Likewise.
10775         * modules/unistd: Likewise.
10776         * modules/wchar: Likewise.
10777         * modules/wctype: Likewise.
10778
10779 2009-09-17  Bruno Haible  <bruno@clisp.org>
10780
10781         Make getdate.y compile on QNX and NetBSD 5 / i386.
10782         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10783         TIME_T_FITS_IN_LONG_INT.
10784         * lib/getdate.y (long_time_t): New type.
10785         (relative_time): Change type of 'seconds' field to long_time_t.
10786         (get_date): Update types of local variables. Check against overflow
10787         during conversion from long_time_t to time_t.
10788         Reported by Matt Kraai <kraai@ftbfs.org>
10789         and Hasso Tepper <hasso@netbsd.org>.
10790
10791 2009-09-17  Bruno Haible  <bruno@clisp.org>
10792
10793         * modules/COPYING: Update copyright years.
10794         * modules/README: Likeiwse.
10795         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10796         Reported by Ian Beckwith <ianb@erislabs.net>.
10797
10798 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10799
10800         * users.txt: Update references for gnuit package.
10801
10802 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10803
10804         * m4/getdelim.m4: Fix typo in copyright line.
10805
10806 2009-09-17  Bruno Haible  <bruno@clisp.org>
10807
10808         * lib/atoll.c: Use the standard header with GPL copyright.
10809         * lib/argz.in.h: Likewise.
10810         * lib/glob.c: Likewise.
10811         * lib/glob-libc.h: Likewise.
10812         * lib/random_r.c: Likewise.
10813         * lib/siglist.h: Likewise.
10814         * lib/strsignal.c: Likewise.
10815         Reported by Ian Beckwith <ianb@erislabs.net>.
10816
10817 2009-09-17  Eric Blake  <ebb9@byu.net>
10818
10819         rmdir: ensure correct dependency order
10820         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10821
10822 2009-09-17  Bruno Haible  <bruno@clisp.org>
10823
10824         Disable assertion that fails on NetBSD 5 / i386.
10825         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10826         Reported by Sam Steingold <sds@gnu.org>
10827         and Hasso Tepper <hasso@netbsd.org>.
10828
10829 2009-09-16  Eric Blake  <ebb9@byu.net>
10830
10831         unlinkdir: port to mingw
10832         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10833         on which no one can unlink a directory.
10834
10835         stdlib: sort witness names
10836         * modules/stdlib (Makefile.am): Sort replacements.
10837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10838         * lib/stdlib.in.h: Likewise.
10839
10840         parse-duration-tests: avoid link failure
10841         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10842         LIBINTL.
10843         Reported by Tom G. Christensen.
10844
10845         openat-tests: ensure unlinkat behaves like rmdir
10846         * tests/test-rmdir.c (main): Factor guts...
10847         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10848         * modules/rmdir-tests (Files): Ship new file.
10849         * modules/openat-tests: New test.
10850         * tests/test-unlinkat.c: Likewise.
10851
10852         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10853         * modules/rmdir-errno (Status, Notice): Now obsolete.
10854
10855         rmdir: work around cygwin 1.5.x and mingw bugs
10856         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10857         * lib/rmdir.c (rmdir): Work around it.
10858         * modules/rmdir (Status, Notice): No longer obsolete.
10859         (Files): Add dos.m4.
10860         (Depends-on): Add unistd.
10861         (configure.ac): Set witnesses.
10862         (License): Relax to LGPLv2+.
10863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10864         * modules/unistd (Makefile.am): Substitute witnesses.
10865         * lib/unistd.in.h (rmdir): Declare replacement.
10866         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10867         * modules/rmdir-tests: New tests.
10868         * tests/test-rmdir.c: Likewise.
10869
10870 2009-09-15  Eric Blake  <ebb9@byu.net>
10871
10872         fchdir: improve use of replacement functions
10873         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10874         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10875         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10876         REPLACE_CLOSEDIR.
10877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10878         * modules/sys_stat (Makefile.am): Substitute correct witness.
10879         * modules/dirent (Makefile.am): Likewise.
10880         * modules/unistd (Makefile.am): Likewise.
10881         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10882         * lib/unistd.in.h (dup): Likewise.
10883         * lib/sys_stat.in.h (fstat): Likewise.
10884
10885         maint: ignore gnulib-tool temp files
10886         * .gitignore: Ignore files created during gnulib-tool --test.
10887
10888 2009-09-13  Jim Meyering  <meyering@redhat.com>
10889
10890         posixtm: don't reject a time that specify "60" as the number of seconds
10891         * lib/posixtm.c (posixtime): The code to reject invalid dates
10892         would also reject a time specified with the .60 suffix.
10893         But POSIX allows that, in order to accommodate leap seconds.
10894         So don't reject it.
10895         (main): Adjust tests accordingly.
10896         * modules/posixtm (Depends-on): Add stpcpy.
10897
10898 2009-09-11  Jim Meyering  <meyering@redhat.com>
10899
10900         announce-gen: include [$release_type] in emitted Subject:
10901         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10902         e.g., [stable] in the emitted Subject: line.
10903
10904 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10905
10906         Remove obsolete macros from several modules.
10907         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10908         obsolete Autoconf macros with their modern counterparts.
10909         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10910         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10911         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10912         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10913         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10914         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10915         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10916         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10917         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10918         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10919         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10920         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10921         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10922         * m4/sockets.m4 (gl_SOCKETS): Likewise.
10923         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10924         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10925         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10926         * m4/time_r.m4 (gl_TIME_R): Likewise.
10927         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10928         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10929         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10930
10931         Fix copyright header in build-aux scripts.
10932         * build-aux/git-version-gen: Fix copyright header to match GPLv3
10933         recommendation.
10934         * build-aux/ncftpput-ftp: Likewise.
10935         * build-aux/update-copyright: Likewise.
10936
10937 2009-09-09  Eric Blake  <ebb9@byu.net>
10938
10939         test-link: allow Linux choice of errno
10940         * tests/test-link.c (main): Relax test for alternate error.
10941
10942         strndup: fix improper m4 caching
10943         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10944         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10945         (gl_PREREQ_STRNDUP): Delete.
10946         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10947         * modules/string (Makefile.am): Substitute it.
10948         * lib/string.in.h (strndup): Modernize prototype.
10949
10950         getcwd: port to mingw
10951         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10952         different from the POSIX assumptions made throughout the getcwd
10953         module; fortunately, the mingw getcwd does not need replacement.
10954         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10955         * modules/getcwd-tests: New test.
10956         * tests/test-getcwd.c: Likewise.
10957
10958         link: fix platform bugs
10959         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10960         * lib/link.c (link): Work around them.  Fix related mingw bug.
10961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10962         * modules/unistd (Makefile.am): Substitute it.
10963         * lib/unistd.in.h (link): Declare replacement.
10964         * doc/posix-functions/link.texi (link): Document this.
10965         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10966
10967         test-link: consolidate into single C program, test more cases
10968         * tests/test-link.sh: Delete.
10969         * tests/test-link.c: Test more error conditions.  Exposes bugs on
10970         at least Cygwin and Solaris.
10971         * modules/link-tests (Files): Remove unused file.
10972         (Depends-on): Add errno, sys_stat.
10973         (Makefile.am): Simplify.
10974
10975 2009-09-08  Bruno Haible  <bruno@clisp.org>
10976
10977         Work around towlower, towupper bug on mingw.
10978         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10979         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10980         * doc/posix-functions/towlower.texi: Mention the mingw bug.
10981         * doc/posix-functions/towupper.texi: Likewise.
10982         Reported by Eric Blake.
10983
10984 2009-09-08  Jim Meyering  <meyering@redhat.com>
10985
10986         build: don't try to run autoheader if we don't use it
10987         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10988         is not used in configure.ac.
10989
10990 2009-09-08  Eric Blake  <ebb9@byu.net>
10991
10992         euidaccess: fix compilation error
10993         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10994
10995         rawmemchr: relax license
10996         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10997         okay.
10998         Reported by Jim Meyering.
10999
11000         mkfifoat: new module
11001         * modules/mkfifoat: New file.
11002         * lib/mkfifoat.c: Likewise.
11003         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
11004         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11005         * modules/sys_stat (Makefile.am): Use them.
11006         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
11007         * MODULES.html.sh (File system functions): Mention module.
11008         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
11009         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
11010         * modules/mkfifoat-tests: New test.
11011         * tests/test-mkfifoat.c: Likewise.
11012
11013         strchrnul: relax license
11014         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11015         okay.
11016         Reported by Jim Meyering.
11017
11018 2009-09-08  Eric Blake  <ebb9@byu.net>
11019
11020         fstatat: fix compilation on Solaris
11021         * lib/fstatat.c (includes): Add fcntl.h.
11022         Reported by Pádraig Brady.
11023
11024 2009-09-07  Eric Blake  <ebb9@byu.net>
11025
11026         rename: modernize replacement
11027         * modules/rename (Depends-on): Add stdio.
11028         (configure.ac): Declare witness.
11029         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11030         stdio take care of replacement.
11031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11032         * modules/stdio (Makefile.am): Substitute them.
11033         * lib/stdio.in.h (rename): Declare replacement.
11034         * lib/rename.c (includes): Allow cross-compilation to non-windows
11035         machines.
11036         * doc/posix-functions/rename.texi (rename): Improve
11037         documentation.
11038
11039         stdio: sort witness names
11040         * modules/stdio (Makefile.am): Sort replacements.
11041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11042         * lib/stdio.in.h: Likewise.
11043
11044         getcwd: minor cleanups
11045         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11046         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11047
11048         openat: provide more convenience names
11049         * modules/faccessat (configure.ac): Add C witness.
11050         * lib/unistd.in.h (readlinkat): Fix typo.
11051         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11052         convenience wrappers.
11053         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11054         wrappers in syntax checks.
11055
11056 2009-09-06  Eric Blake  <ebb9@byu.net>
11057
11058         doc: fix comments in recent patches
11059         * lib/faccessat.c: Mention correct function.
11060         * lib/fchmodat.c: Likewise.
11061         * lib/fchownat.c: Likewise.
11062         * lib/symlinkat.c: Likewise.
11063         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11064         constants.
11065
11066         faccessat, symlinkat: continue cleanup of previous patch
11067         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11068         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11069         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11071         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11072         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11073         set.
11074
11075 2009-09-06  Bruno Haible  <bruno@clisp.org>
11076
11077         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11078         (fstatat): Declare if GNULIB_FSTATAT is set.
11079         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11080         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11081         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11082         * modules/fcntl-h (Files): Remove m4/openat.m4.
11083         * modules/sys_stat (Files): Remove m4/openat.m4.
11084         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11085         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11086         * modules/unistd (Files): Remove m4/openat.m4.
11087         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11088         GNULIB_OPENAT.
11089         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11090         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11091         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11092         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11093         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11094         gl_OPENAT_DEFAULTS.
11095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11096         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11097         Don't require gl_OPENAT_DEFAULTS.
11098         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11099         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11100         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11101         (gl_OPENAT_DEFAULTS): Remove macro.
11102
11103 2009-09-06  Bruno Haible  <bruno@clisp.org>
11104
11105         * modules/openat (configure.ac): Remove unneeded witness.
11106
11107 2009-09-06  Bruno Haible  <bruno@clisp.org>
11108
11109         Set errno to ENOSYS when a function is entirely unsupported.
11110         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11111         EOPNOTSUPP.
11112         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11113         * modules/chown (Depends-on): Remove errno.
11114
11115 2009-09-06  Bruno Haible  <bruno@clisp.org>
11116
11117         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11118
11119 2009-09-06  Bruno Haible  <bruno@clisp.org>
11120
11121         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11122
11123 2009-09-06  Ben Pfaff  <blp@gnu.org>
11124             Bruno Haible  <bruno@clisp.org>
11125
11126         Work around a glibc bug in strtok_r.
11127         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11128         Undefine if UNDEFINE_STRTOK_R is set.
11129         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11130         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11131         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11132         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11133         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11134         UNDEFINE_STRTOK_R.
11135         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11136
11137 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11138
11139         exclude: minor fix
11140         * lib/exclude.c: Include wctype.h
11141
11142 2009-09-06  Akim Demaille  <demaille@gostai.com>
11143
11144         bootstrap: improve error message
11145         * build-aux/bootstrap (find_tool): Upon failure, report the list
11146         of candidates.
11147         Honor the initial value of the envvar.
11148
11149 2009-09-05  Eric Blake  <ebb9@byu.net>
11150
11151         symlinkat: new module
11152         * modules/symlinkat: New file.
11153         * lib/symlinkat.c: Likewise.
11154         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11156         * modules/unistd (Makefile.am): Use them.
11157         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11158         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11159         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11160         * MODULES.html.sh (File system functions): Mention module.
11161         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11162         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11163         * modules/symlinkat-tests: New test.
11164         * tests/test-symlinkat.c: Likewise.
11165
11166         test-openat-safer: add more checks
11167         * tests/test-openat-safer.c (main): Check more code paths.
11168
11169 2009-09-05  Jim Meyering  <meyering@redhat.com>
11170
11171         syntax-check: detect unnecessary inclusion of openat.h
11172         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11173
11174 2009-09-05  Bruno Haible  <bruno@clisp.org>
11175
11176         Support towlower, towupper.
11177         * doc/posix-functions/towlower.texi: Mention module wctype.
11178         * doc/posix-functions/towupper.texi: Likewise.
11179         * lib/wctype.in.h (towlower, towupper): New functions.
11180         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11181         (ASSERT): New macro.
11182         (e): New variable.
11183         (main): Test also towlower, towupper. Test WEOF argument.
11184         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11185
11186 2009-09-05  Bruno Haible  <bruno@clisp.org>
11187
11188         Fix conversion behaviour when the input is invalid.
11189         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11190         mark occurring in first pass of indirect conversion.
11191         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11192         input.
11193         Found by clang's static analyzer.
11194
11195 2009-09-05  Bruno Haible  <bruno@clisp.org>
11196
11197         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11198         where direct conversion is possible.
11199
11200 2009-09-04  Eric Blake  <ebb9@byu.net>
11201
11202         openat: fail with ENOENT on empty name
11203         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11204         buffer.
11205
11206         link-follow: fix logic bug in prior patch
11207         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11208         reversed sense of yes and no in prior patch.  Avoid confusing
11209         compilation failure with desired semantics.
11210
11211         link-follow: accomodate mingw and cross-compilation
11212         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11213         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11214         cross-compilation results to -1, to make linkat easier to
11215         implement when cross-compiling.  Trivially support mingw.
11216         * modules/link-follow (configure.ac): Call new name.
11217         * NEWS: Mention this.
11218
11219 2009-09-03  Eric Blake  <ebb9@byu.net>
11220
11221         faccessat: compile replacement
11222         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11223         needed.
11224
11225         fts: fix compilation error
11226         * lib/fts.c (includes): Re-add "openat.h", for
11227         openat_needs_fchdir.
11228
11229         faccessat: new module
11230         * modules/faccessat: New file.
11231         * lib/faccessat.c: Likewise.
11232         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11234         * modules/unistd (Makefile.am): Use it.
11235         * lib/unistd.in.h (faccessat): Declare it.
11236         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11237         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11238         * MODULES.html.sh (File system functions): Mention it.
11239         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11240         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11241
11242         euidaccess: prefer POSIX over non-standard implementation
11243         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11244         * lib/euidaccess.c (euidaccess): Use it if available.
11245
11246         openat: make template easier to use
11247         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11248         AT_FUNC_F2 to be undefined.
11249         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11250         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11251         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11252         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11253         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11254         Likewise.
11255         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11256         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11257         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11258         Likewise.
11259
11260         openat: declare in POSIX headers
11261         * NEWS: Mention this.
11262         * modules/openat (configure.ac): Declare witnesses.
11263         (Depends-on): Add fcntl-h, sys_stat, unistd.
11264         (Include): Mention correct headers.
11265         * modules/fcntl-h (Depends-on): Add link-warning.
11266         (Files): Add openat.m4.
11267         (Makefile.am): Substitute witnesses.
11268         * modules/sys_stat (Files, Makefile.am): Likewise.
11269         * modules/unistd (Files, Makefile.am): Likewise.
11270         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11271         (gl_OPENAT_DEFAULTS): New macro.
11272         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11274         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11275         (SYS_STAT_H): Remove unused variable.
11276         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11277         * lib/fcntl--.h (includes): Remove unneeded header.
11278         * lib/openat-safer.c (includes): Likewise.
11279         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11280         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11281         appropriate headers.
11282         (__OPENAT_PREFIX): Delete.
11283         * lib/fcntl.in.h (openat): Provide declaration.
11284         (AT_FDCWD): Fix Solaris bug.
11285         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11286         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11287         * lib/fchmodat.c (includes):  Adjust to find declaration.
11288         * lib/fchownat.c (includes): Likewise.
11289         * lib/mkdirat.c (includes): Likewise.
11290         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11291         still visible.
11292
11293 2009-09-02  Eric Blake  <ebb9@byu.net>
11294
11295         errno: use consistently
11296         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11297         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11298         * lib/canonicalize.c (ELOOP): Likewise.
11299         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11300         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11301         * lib/lchown.c (EOPNOTSUPP): Likewise.
11302         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11303         * lib/savewd.c (ESTALE): Likewise.
11304         * lib/settime.c (ENOSYS): Likewise.
11305         * lib/utimens.c (ENOSYS): Likewise.
11306         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11307         * lib/chdir-safer.c (ELOOP): Likewise.
11308         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11309         * modules/c-stack (Depends-on): Add errno.
11310         * modules/canonicalize (Depends-on): Likewise.
11311         * modules/chdir-safer (Depends-on): Likewise.
11312         * modules/fdopendir (Depends-on): Likewise.
11313         * modules/inet_ntop (Depends-on): Likewise.
11314         * modules/inet_pton (Depends-on): Likewise.
11315         * modules/lchown (Depends-on): Likewise.
11316         * modules/openat (Depends-on): Likewise.
11317         * modules/savewd (Depends-on): Likewise.
11318         * modules/settime (Depends-on): Likewise.
11319         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11320
11321         fts: avoid leaking fds
11322         * modules/fts (Depends-on): Add cloexec.
11323         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11324         flag.
11325
11326         fts: make directory fds more robust
11327         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11328         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11329
11330         backupfile, chdir-long, fts, savedir: make safer
11331         * lib/backupfile.c (includes): Use "dirent--.h", since
11332         numbered_backup can write to stderr during readdir.
11333         * lib/savedir.c (includes): Likewise.
11334         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11335         emulation can write to stderr on failure.
11336         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11337         * lib/getcwd.c: Document why opendir_safer is unused.
11338         * lib/glob.c: Likewise.
11339         * lib/scandir.c: Likewise.
11340         * lib/openat-proc.c: Likewise, for open_safer.
11341         * modules/backupfile (Depends-on): Add dirent-safer.
11342         * modules/savedir (Depends-on): Likewise.
11343         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11344         * modules/chdir-long (Depends-on): Add openat-safer.
11345
11346         openat-safer: new module
11347         * modules/openat-safer: New file.
11348         * lib/openat-safer.c: Likewise.
11349         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11350         * lib/fcntl-safer.h (openat_safer): Declare.
11351         * lib/fcntl--.h (openat): Override.
11352         * MODULES.html.sh (File descriptor based I/O): Mention it.
11353         * lib/openat.h: Add double-inclusion guards.
11354         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11355         "fcntl--.h", so we can implement openat.
11356         * modules/openat-safer-tests: New test.
11357         * tests/test-openat-safer.c: New file.
11358
11359         dirent-safer: new module
11360         * modules/dirent-safer: New file.
11361         * lib/dirent--.h: Likewise.
11362         * lib/dirent-safer.h: Likewise.
11363         * lib/opendir-safer.c: Likewise.
11364         * m4/dirent-safer.m4: Likewise.
11365         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11366         * modules/dirent-safer-tests: New test.
11367         * tests/test-dirent-safer.c: New file.
11368         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11369
11370         fdopendir: optimize on mingw
11371         * lib/unistd.in.h (_gl_directory_name): New prototype.
11372         * lib/fchdir.c (_gl_directory_name): Implement it.
11373         (fchdir): Use it to simplify implementation.
11374         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11375         fchdir, when available, to avoid calling [f]chdir().
11376
11377         fdopendir: split into its own module
11378         * lib/openat.c (fdopendir): Move...
11379         * lib/fdopendir.c: ...into new file.
11380         * modules/fdopendir: New module.
11381         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11382         * modules/openat (Depends-on): Add fdopendir.
11383         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11384         fdopendir here.
11385         * modules/savedir (Depends-on): Only need fdopendir, not full
11386         openat.
11387         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11388         * lib/openat.h (fdopendir): Drop prototype.
11389         * lib/dirent.in.h (fdopendir): Provide prototype.
11390         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11391         * modules/dirent (Makefile.am): Substitute them.
11392         * MODULES.html.sh (File system functions): Mention it.
11393         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11394         * modules/fdopendir-tests: New file.
11395         * tests/test-fdopendir.c: Likewise.
11396
11397         fchdir: use more consistent macro convention
11398         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11399         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11400         REPLACE_FCHDIR, rather than relying on config.h macros.
11401         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11402         inside a single make-time REPLACE_FCHDIR block, rather than using
11403         the config.h FCHDIR_REPLACEMENT.
11404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11405         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11406         Manage fstat replacement.
11407         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11408         REPLACE_FCHDIR.
11409         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11410         (Makefile.am): Substitute REPLACE_FCHDIR.
11411         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11412         FCHDIR_REPLACEMENT.
11413         * lib/dup-safer.c (dup_safer): Likewise.
11414         * lib/dup2.c (rpl_dup2): Likewise.
11415         * lib/dup3.c (rpl_dup3): Likewise.
11416         * lib/open.c (rpl_open): Likewise.
11417
11418         fchdir: simplify error handling, and support dup3
11419         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11420         stdbool, malloc-posix, realloc-posix.
11421         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11422         (ensure_dirs_slot): Return false on allocation failure.
11423         (rpl_dup2): Delete.
11424         (_gl_register_dup): New function.
11425         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11426         (_gl_register_fd): Close fd on allocation failure.
11427         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11428         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11429         prototype.
11430         (rpl_dup2_fchdir): Delete prototype.
11431         * lib/open.c (open): Update caller.
11432         * lib/dup2.c (dup2): Track fchdir metadata.
11433         * lib/dup3.c (dup3): Likewise.
11434         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11435         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11436
11437 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11438
11439         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11440         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11441         don't pass arguments to AC_OUTPUT.
11442
11443 2009-09-02  Bruno Haible  <bruno@clisp.org>
11444
11445         * modules/mkdtemp (License): Relicense under LGPLv2+.
11446         Reported by Paolo Bonzini.
11447
11448 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11449
11450         Replace uses of obsolete autoconf macros in Jim's modules.
11451         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11452         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11453         can evoke a warning from autoconf when run with -Wobsolete
11454         enabled.  They were declared obsolete for good reasons (see
11455         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11456         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11457         should not continue using the deprecated macros.
11458         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11459         obsolete Autoconf macros with modern counterparts.
11460         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11461         * m4/dos.m4 (gl_AC_DOS): Likewise.
11462         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11463         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11464         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11465         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11466         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11467         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11468         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11469         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11470         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11471         Likewise.
11472         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11473         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11474         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11475         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11476         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11477         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11478
11479 2009-09-01  Eric Blake  <ebb9@byu.net>
11480
11481         fchdir: fix off-by-one bug in previous patch
11482         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11483         (_gl_unregister_fd): Delete useless if.
11484
11485 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11486
11487         maint.mk: sort the list of syntax-check rules
11488         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11489         easier to get a sense of progress when the rules are run sequentially
11490         and take a long time.
11491
11492 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11493
11494         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11495         * modules/netinet_in: Likewise.
11496         * modules/sys_file: Likewise.
11497         * modules/sys_ioctl: Likewise.
11498         * modules/sys_select: Likewise.
11499         * modules/sys_socket: Likewise.
11500         * modules/sys_stat: Likewise.
11501         * modules/sys_time: Likewise.
11502         * modules/sys_times: Likewise.
11503         * modules/sys_utsname: Likewise.
11504         * modules/sys_wait: Likewise.
11505
11506 2009-09-01  Jim Meyering  <meyering@redhat.com>
11507
11508         fts: help ensure that return values are not ignored
11509         * lib/fts_.h (__GNUC_PREREQ): Define.
11510         (__attribute_warn_unused_result__): Define.
11511         (fts_children, fts_close, fts_open, fts_read): Declare with
11512         __attribute_warn_unused_result__.
11513
11514         fts: fts_close now fails also when closing a dir file descriptor fails
11515         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11516         and propagate to caller, along with errno.
11517
11518         announce-gen: correct formatting in --help output
11519         * build-aux/announce-gen (usage): Move the one-line description in
11520         --help output "up", to where it belongs, just after Usage:.
11521
11522 2009-08-31  Eric Blake  <ebb9@byu.net>
11523
11524         fchdir: port to mingw
11525         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11526         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11527         opened, then use a substitute.
11528         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11529         replacement.
11530         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11531         (_gl_register_fd): No need to check stat if open already filters
11532         all directories.
11533         (fchdir): Fix error condition to match POSIX.
11534         * modules/fchdir (Depends-on): Add sys_stat.
11535         * doc/posix-functions/open.texi (open): Document the limitation.
11536         * modules/fchdir-tests: New file.
11537         * tests/test-fchdir.c: Likewise.
11538
11539         canonicalize: allow cross-testing from cygwin to mingw
11540         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11541         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11542         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11543         Likewise.
11544         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11545         target does not support symlinks.
11546         * tests/test-canonicalize-lgpl.sh: Likewise.
11547
11548         chown: avoid compilation warning on mingw
11549         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11550         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11551         mingw.
11552         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11553         * modules/chown (Depends-on): Add errno.
11554
11555 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11556
11557         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11558         command.
11559
11560 2009-08-31  Jim Meyering  <meyering@redhat.com>
11561
11562         canonicalize: remove useless initialization
11563         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11564         initialization of local, "end".
11565
11566 2009-08-30  Bruno Haible  <bruno@clisp.org>
11567
11568         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11569         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11570         ENOSYS.
11571
11572 2009-08-30  Bruno Haible  <bruno@clisp.org>
11573
11574         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11575         /usr/xpg4/bin/tr when it exists.
11576         * tests/test-pipe-filter-gi1.sh: Likewise.
11577
11578 2009-08-30  Bruno Haible  <bruno@clisp.org>
11579
11580         Work around deficient /usr/bin/id program on Solaris.
11581         * tests/test-file-has-acl.sh (ID): New variable.
11582         * tests/test-set-mode-acl.sh (ID): Likewise.
11583         * tests/test-copy-acl.sh (ID): Likewise.
11584         * tests/test-copy-file.sh (ID): Likewise.
11585
11586 2009-08-30  Bruno Haible  <bruno@clisp.org>
11587
11588         New module 'xstriconveh'.
11589         * lib/xstriconveh.h: New file.
11590         * lib/xstriconveh.c: New file.
11591         * modules/xstriconveh: New file.
11592
11593 2009-08-30  Bruno Haible  <bruno@clisp.org>
11594
11595         Make it easier to use mem_cd_iconveh.
11596         * lib/striconveh.h (iconveh_t): New type.
11597         (iconveh_open, iconveh_close): New declarations.
11598         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11599         with a single 'const iconveh_t *' argument.
11600         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11601         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11602         with a single 'const iconveh_t *' argument.
11603         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11604         * tests/test-striconveh.c (main): Update.
11605         * NEWS: Mention the change.
11606
11607 2009-08-30  Bruno Haible  <bruno@clisp.org>
11608
11609         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11610         problem.
11611
11612 2009-08-30  Bruno Haible  <bruno@clisp.org>
11613
11614         Work around iconv_open problem on Solaris.
11615         * lib/iconv_open-solaris.gperf: New file.
11616         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11617         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11618         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11619         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11620         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11621         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11622
11623 2009-08-29  Jim Meyering  <meyering@redhat.com>
11624
11625         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11626         * top/maint.mk (cvs-check): Remove target; it was just an alias
11627         to the better-named vc-diff-check.
11628         (maintainer-distcheck): Remove rule.  It was used only from
11629         the (alpha/beta/major) target, and all of its commands but one
11630         were coreutils-specific.
11631         (vc-dist): Remove rule.
11632         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11633         Run vc-diff-check, not vc-dist.
11634         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11635
11636 2009-08-27  Bruno Haible  <bruno@clisp.org>
11637
11638         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11639         of 0.
11640
11641 2009-08-27  Bruno Haible  <bruno@clisp.org>
11642
11643         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11644         compilers.
11645         * doc/func.texi: Document the SunPRO C bug.
11646
11647 2009-08-27  Bruno Haible  <bruno@clisp.org>
11648
11649         Fix link error on Solaris.
11650         * tests/test-parse-duration.c (xstrdup): Remove function.
11651
11652 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11653
11654         ignore-value: handle pointer types, too
11655         * lib/ignore-value.h (__attribute__): Remove definition.
11656         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11657         of a more concise and more-often effective "(void) i" statement.
11658         (ignore_ptr): New function to suppress warnings from functions that
11659         return pointers, and to make it explicit that one function doesn't
11660         handle all cases.
11661
11662 2009-08-25  Bruno Haible  <bruno@clisp.org>
11663
11664         dup2: work around a Linux bug.
11665         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11666         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11667         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11668         Reported by Simon Josefsson.
11669
11670 2009-08-25  Jim Meyering  <meyering@redhat.com>
11671
11672         libguestfs uses gnulib
11673         * users.txt: Add libguestfs.
11674
11675 2009-08-24  Eric Blake  <ebb9@byu.net>
11676
11677         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11678         * lib/pipe2.c (includes): Add binary-io.h.
11679         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11680
11681 2009-08-24  Bruno Haible  <bruno@clisp.org>
11682
11683         Tolerate declared but missing accept4 syscall.
11684         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11685         available.
11686         * lib/sys_socket.in.h (accept4): If the function is already present,
11687         override it.
11688         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11689         * modules/accept4 (Makefile.am): Compile accept4.c always.
11690         Reported by Paolo Bonzini and Eric Blake.
11691
11692 2009-08-23  Bruno Haible  <bruno@clisp.org>
11693
11694         New module 'accept4'.
11695         * lib/sys_socket.in.h (accept4): New declaration.
11696         * lib/accept4.c: New file.
11697         * m4/accept4.m4: New file.
11698         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11699         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11700         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11701         HAVE_ACCEPT4.
11702         * modules/accept4: New file.
11703         * doc/glibc-functions/accept4.texi: Mention the new module.
11704
11705 2009-08-24  Jim Meyering  <meyering@redhat.com>
11706
11707         progname: also set global program_invocation_name, when possible
11708         Before this change, a libtool-enabled program that calls glibc's
11709         error function would report the program name as
11710         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11711         * modules/progname (configure.ac): Check for a declaration of
11712         program_invocation_name.
11713         * lib/progname.c:  Include <errno.h>.
11714         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11715         Set program_invocation_name.
11716
11717 2009-08-23  Bruno Haible  <bruno@clisp.org>
11718
11719         * lib/dup3.c: Include <string.h>.
11720
11721 2009-08-23  Bruno Haible  <bruno@clisp.org>
11722
11723         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11724         * lib/pipe2.c (pipe2): Likewise.
11725         Suggested by Eric Blake.
11726
11727 2009-08-23  Bruno Haible  <bruno@clisp.org>
11728
11729         Tolerate declared but missing dup3 syscall.
11730         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11731         * lib/unistd.in.h (dup3): If the function is already present,
11732         override it.
11733         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11734         * modules/dup3 (Makefile.am): Compile dup3.c always.
11735         Reported by Paolo Bonzini.
11736
11737 2009-08-23  Bruno Haible  <bruno@clisp.org>
11738
11739         Tolerate declared but missing pipe2 syscall.
11740         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11741         available.
11742         * lib/unistd.in.h (pipe2): If the function is already present,
11743         override it.
11744         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11745         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11746         Reported by Paolo Bonzini.
11747
11748 2009-08-23  Bruno Haible  <bruno@clisp.org>
11749
11750         * lib/pipe2.c (pipe2): Move #ifs inside function.
11751
11752 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11753
11754         quotearg: document limitations of quote_these_too
11755         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11756         those limitations are created.
11757         * lib/quotearg.h (set_char_quoting): Document that digits and
11758         letters that are special after backslash are not permitted.
11759         (quotearg_char): Cross-reference set_char_quoting documentation.
11760
11761 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11762
11763         quotearg: implement custom_quoting_style
11764         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11765         right_quote fields.
11766         (set_custom_quoting): New public function.
11767         (quotearg_buffer_restyled): Add left_quote and right_quote
11768         arguments, handle them very much like locale quoting, and update
11769         all uses.
11770         (quotearg_n_custom): New public function.
11771         (quotearg_n_custom_mem): New public function.
11772         (quotearg_custom): New public function.
11773         (quotearg_custom_mem): New public function.
11774         * lib/quotearg.h: Prototype and document new public functions.
11775         (enum quoting_style): For escape_quoting_style and
11776         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11777         ignored even though they're otherwise like c_quoting_style.
11778         Add custom_quoting_style member and document with comparison to
11779         clocale_quoting_style.
11780         * tests/test-quotearg.c (custom_quotes): New array.
11781         (custom_results): New array.
11782         (main): Extend to test custom quoting.
11783
11784 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11785
11786         quotearg: fix right quote escaping when it's in quote_these_too
11787         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11788         quote, be sure to prepend only one backslash.
11789         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11790         (main): Test it.
11791
11792 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11793
11794         quotearg-tests: test escaping of embedded locale quotes
11795         * tests/test-quotearg.c (struct result_strings): Add member for
11796         new input.
11797         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11798         (inputs): Add new input.
11799         (results_g): Add expected results.
11800         (flag_results): Likewise.
11801         (locale_results): Likewise.
11802         (compare_strings): Check those.
11803
11804 2009-08-23  Bruno Haible  <bruno@clisp.org>
11805
11806         Tests for module 'dup3'.
11807         * modules/dup3-tests: New file.
11808         * tests/test-dup3.c: New file.
11809
11810         New module 'dup3'.
11811         * lib/unistd.in.h (dup3): New declaration.
11812         * lib/dup3.c: New file.
11813         * m4/dup3.m4: New file.
11814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11815         HAVE_DUP3.
11816         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11817         * modules/dup3: New file.
11818         * doc/glibc-functions/dup3.texi: Mention the new module.
11819
11820 2009-08-23  Bruno Haible  <bruno@clisp.org>
11821
11822         Tweak the dup2 test.
11823         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11824         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11825         the test file is still empty. Fix argument order of lseek.
11826
11827 2009-08-23  Bruno Haible  <bruno@clisp.org>
11828
11829         Avoid test link errors when the modules getopt-gnu, gettext are used.
11830         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11831         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11832
11833 2009-08-23  Bruno Haible  <bruno@clisp.org>
11834
11835         Fix getdtablesize() on mingw.
11836         * lib/getdtablesize.c (getdtablesize): Implement differently.
11837         * lib/unistd.in.h (getdtablesize): Improve comment.
11838
11839 2009-08-23  Bruno Haible  <bruno@clisp.org>
11840
11841         New module 'mkostemp'.
11842         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11843         * lib/stdlib.in.h (mksotemp): New declaration.
11844         * lib/mkostemp.c: New file, from glibc with modifications.
11845         * lib/tempname.h (GT_FILE): Remove outdated comment.
11846         (gen_tempname): Add flags argument.
11847         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11848         (__GT_FILE): Map to 1.
11849         (small_open, large_open): Remove macros.
11850         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11851         * lib/mkstemp.c (mkstemp): Update.
11852         * lib/mkdtemp.c (mkdtemp): Likewise.
11853         * m4/mkostemp.m4: New file.
11854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11855         HAVE_MKOSTEMP.
11856         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11857         HAVE_MKOSTEMP.
11858         * modules/mkostemp: New file, based on modules/mkstemp.
11859         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11860         * NEWS: Mention the change.
11861
11862 2009-08-23  Bruno Haible  <bruno@clisp.org>
11863
11864         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11865         Reported by Eric Blake.
11866
11867 2009-08-23  Bruno Haible  <bruno@clisp.org>
11868
11869         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11870         Reported by Eric Blake.
11871
11872 2009-08-23  Bruno Haible  <bruno@clisp.org>
11873
11874         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11875         * modules/pipe2 (Depends-on): Likewise.
11876
11877 2009-08-23  Eric Blake  <ebb9@byu.net>
11878
11879         fcntl-h: add O_TTY_INIT support
11880         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11881         * tests/test-fcntl-h.c (o): Test it.
11882         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11883
11884         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11885         * modules/fcntl: Move <fcntl.h> header replacement...
11886         * modules/fcntl-h: ...to new name, so as not to collide with
11887         like-named function.
11888         * tests/test-fcntl.c: Rename...
11889         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11890         * modules/fcntl-tests: Rename...
11891         * modules/fcntl-h-tests: ...to this.  Update test file name.
11892         * modules/chdir-long (Depends-on): Update clients.
11893         * modules/chdir-safer (Depends-on): Likewise.
11894         * modules/fcntl-safer (Depends-on): Likewise.
11895         * modules/fts (Depends-on): Likewise.
11896         * modules/mkancesdirs (Depends-on): Likewise.
11897         * modules/mkdir-p (Depends-on): Likewise.
11898         * modules/open (Depends-on): Likewise.
11899         * modules/savewd (Depends-on): Likewise.
11900         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11901         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11902
11903 2009-08-22  Bruno Haible  <bruno@clisp.org>
11904
11905         * modules/binary-io (License): Relicense under LGPL.
11906         * modules/pipe2 (License): Likewise.
11907
11908 2009-08-22  Bruno Haible  <bruno@clisp.org>
11909
11910         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11911         return value.
11912         * lib/pipe-filter-gi.c (filter_init): Likewise.
11913         Reported by Eric Blake.
11914
11915 2009-08-22  Bruno Haible  <bruno@clisp.org>
11916
11917         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11918         * modules/pipe (Depends-on): Add pipe2.
11919
11920 2009-08-22  Bruno Haible  <bruno@clisp.org>
11921
11922         Tests for module 'pipe2'.
11923         * modules/pipe2-tests: New file.
11924         * tests/test-pipe2.c: New file.
11925
11926         New module 'pipe2'.
11927         * lib/unistd.in.h (pipe2): New declaration.
11928         * lib/pipe2.c: New file.
11929         * m4/pipe2.m4: New file.
11930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11931         HAVE_PIPE2.
11932         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11933         * modules/pipe2: New file.
11934         * doc/glibc-functions/pipe2.texi: Mention the new module.
11935
11936 2009-08-22  Bruno Haible  <bruno@clisp.org>
11937
11938         Reference some new glibc functions.
11939         * doc/glibc-functions/accept4.texi: New file.
11940         * doc/glibc-functions/dup3.texi: New file.
11941         * doc/glibc-functions/mkostemp.texi: New file.
11942         * doc/glibc-functions/pipe2.texi: New file.
11943         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11944         (Glibc sys/socket.h): Refer to accept4.
11945         (Glibc unistd.h): Refer to dup3, pipe2.
11946         Reported by Eric Blake.
11947
11948 2009-08-22  Jim Meyering  <meyering@redhat.com>
11949             Bruno Haible  <bruno@clisp.org>
11950
11951         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11952         This makes it so packages using automake-1.11's silent-rules option
11953         can print e.g., a single "GEN    configmake.h" line, rather than
11954         the 30+ statements that perform the job.  If you want to see the
11955         actual commands, you can still run "make V=1".
11956         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11957         so that make output is abbreviated when those variables are defined
11958         appropriately.
11959         * modules/argz: Likewise.
11960         * modules/arpa_inet: Likewise.
11961         * modules/byteswap: Likewise.
11962         * modules/configmake: Likewise.
11963         * modules/dirent: Likewise.
11964         * modules/errno: Likewise.
11965         * modules/fcntl: Likewise.
11966         * modules/float: Likewise.
11967         * modules/fnmatch: Likewise.
11968         * modules/getopt-posix: Likewise.
11969         * modules/glob: Likewise.
11970         * modules/iconv_open: Likewise.
11971         * modules/inttypes: Likewise.
11972         * modules/localcharset: Likewise.
11973         * modules/locale: Likewise.
11974         * modules/math: Likewise.
11975         * modules/netdb: Likewise.
11976         * modules/netinet_in: Likewise.
11977         * modules/poll: Likewise.
11978         * modules/posix_spawnp-tests: Likewise.
11979         * modules/sched: Likewise.
11980         * modules/search: Likewise.
11981         * modules/selinux-h: Likewise.
11982         * modules/signal: Likewise.
11983         * modules/spawn: Likewise.
11984         * modules/stdarg: Likewise.
11985         * modules/stdbool: Likewise.
11986         * modules/stddef: Likewise.
11987         * modules/stdint: Likewise.
11988         * modules/stdio: Likewise.
11989         * modules/stdlib: Likewise.
11990         * modules/string: Likewise.
11991         * modules/strings: Likewise.
11992         * modules/sys_file: Likewise.
11993         * modules/sys_ioctl: Likewise.
11994         * modules/sys_select: Likewise.
11995         * modules/sys_socket: Likewise.
11996         * modules/sys_stat: Likewise.
11997         * modules/sys_time: Likewise.
11998         * modules/sys_times: Likewise.
11999         * modules/sys_utsname: Likewise.
12000         * modules/sys_wait: Likewise.
12001         * modules/sysexits: Likewise.
12002         * modules/time: Likewise.
12003         * modules/unistd: Likewise.
12004         * modules/wchar: Likewise.
12005         * modules/wctype: Likewise.
12006
12007 2009-08-22  Jim Meyering  <meyering@redhat.com>
12008
12009         announce-gen: detect write failure
12010         * build-aux/announce-gen: Add Coda at end.
12011         Remove equivalent-but-more-verbose block at top.
12012
12013 2009-08-19  Akim Demaille  <demaille@gostai.com>
12014
12015         bootstrap: --help to stdout.
12016         * bootstrap (usage): Don't send --help to stderr.
12017         Use a here doc instead of a long string.
12018
12019 2009-08-21  Eric Blake  <ebb9@byu.net>
12020
12021         test-popen-safer: split from test-popen
12022         * tests/test-popen.c (main): Move...
12023         * tests/test-popen.h: ...into new file.
12024         * tests/test-popen-safer2.c: New file.
12025         * modules/popen-tests (Files): Add test-popen.h.
12026         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12027         Suggested by Bruno Haible.
12028
12029         test-fcntl-safer: split from test-open
12030         * tests/test-open.c (main): Move...
12031         * tests/test-open.h: ...into new file.
12032         * tests/test-fcntl-safer.c: New file.
12033         * modules/open-tests (Files): Add test-open.h.
12034         * modules/fcntl-safer-tests: New file.
12035         Suggested by Bruno Haible.
12036
12037         test-fopen-safer: split from test-fopen
12038         * tests/test-fopen.c (main): Move...
12039         * tests/test-fopen.h: ...into new file.
12040         * tests/test-fopen-safer.c: New file.
12041         * modules/fopen-tests (Files): Add test-fopen.h.
12042         * modules/fopen-safer-tests: New file.
12043         Suggested by Bruno Haible.
12044
12045 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12046
12047         popen-safer: test O_CLOEXEC at run-time.
12048         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12049
12050 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12051
12052         fcntl: move more flags to the header
12053         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12054         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12055         * lib/fcntl.in.h: Do both things here.
12056
12057 2009-08-21  Jim Meyering  <meyering@redhat.com>
12058
12059         consistently remove $@-t before redirecting to it
12060         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12061         * modules/alloca-opt: Likewise.
12062         * modules/byteswap: Likewise.
12063         * modules/fnmatch: Likewise.
12064         * modules/getopt-posix: Likewise.
12065         * modules/glob: Likewise.
12066         * modules/poll: Likewise.
12067         * modules/posix_spawnp-tests: Likewise.
12068         * modules/sys_socket: Likewise.
12069         * modules/sysexits: Likewise.
12070
12071 2009-08-21  Eric Blake  <ebb9@byu.net>
12072
12073         popen: simplify access to original popen
12074         * lib/popen.c (rpl_popen): No need to worry about popen being a
12075         macro.
12076         Reported by Bruno Haible.
12077
12078 2009-08-20  Eric Blake  <ebb9@byu.net>
12079
12080         build: avoid some compiler warnings
12081         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12082         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12083         type.
12084         (new_exclude_segment, excluded_file_pattern_p)
12085         (excluded_file_name_p): Reduce scope.
12086         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12087         old-style declaration.
12088
12089 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12090
12091         * tests/test-exclude1.sh: Handle Windows EOL.
12092         * tests/test-exclude2.sh: Likewise.
12093         * tests/test-exclude3.sh: Likewise.
12094         * tests/test-exclude4.sh: Likewise.
12095         * tests/test-exclude5.sh: Likewise.
12096         * tests/test-exclude6.sh: Likewise.
12097         * tests/test-exclude7.sh: Likewise.
12098
12099 2009-08-19  Akim Demaille  <demaille@gostai.com>
12100
12101         bootstrap: find sha1sum when named gsha1sum.
12102         * bootstrap (find_tool): New.
12103         ($SHA1SUM): New.
12104         Use it.
12105
12106 2009-08-20  Jim Meyering  <meyering@redhat.com>
12107
12108         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12109         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12110         expression that converts "." in a file name to "\." in the resulting
12111         regexp.  Start with a dummy statement, so that prior shell variable
12112         definitions are expanded portably.  Reported by Simon Josefsson.
12113
12114 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12115
12116         Fix polling for writeability of a screen buffer.
12117         * lib/poll.c: Distinguish input and screen buffers for the
12118         Win32 implementation.
12119         * lib/select.c: Likewise.
12120
12121 2009-08-19  Eric Blake  <ebb9@byu.net>
12122
12123         popen-safer: prevent popen from clobbering std descriptors
12124         * modules/popen-safer: New file.
12125         * lib/popen-safer.c: Likewise.
12126         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12127         * lib/stdio--.h (popen): Provide override.
12128         * lib/stdio-safer.h (popen_safer): Provide declaration.
12129         * tests/test-popen.c (includes): Partially test this.
12130         * modules/popen-safer-tests: New file, for more tests.
12131         * tests/test-popen-safer.c: Likewise.
12132         * MODULES.html.sh (file stream based Input/Output): Mention it.
12133
12134         tests: test some of the *-safer modules
12135         * modules/fopen-safer (Depends-on): Add fopen.
12136         * modules/fcntl-safer (Depends-on): Add fcntl.
12137         * modules/stdlib-safer (Depends-on): Add stdlib.
12138         (configure.ac): Set indicator.
12139         * modules/unistd-safer (configure.ac): Likewise.
12140         * modules/tmpfile-safer (configure.ac): Likewise.
12141         (Depends-on): Add tmpfile.
12142         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12143         active.
12144         * tests/test-fopen.c (includes): Test safer versions when they are
12145         in use.
12146         * tests/test-open.c (includes): Likewise.
12147
12148         popen: fix cygwin 1.5 bug when stdin closed
12149         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12150         * modules/popen: New file.
12151         * modules/popen-tests: Likewise.
12152         * tests/test-popen.c: Likewise.
12153         * m4/popen.m4: Likewise.
12154         * lib/popen.c: Likewise.
12155         * lib/stdio.in.h (popen): New declaration.
12156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12157         * modules/stdio (Makefile.am): Likewise.
12158         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12159
12160 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12161
12162         maint.mk: give full control over update-copyright exclusions
12163         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12164         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12165         (update-copyright): Don't force inclusion of top-level
12166         ChangeLog.  Don't force exclusion of all COPYING files, but make
12167         them the default exclusion instead.
12168
12169 2009-08-16  Bruno Haible  <bruno@clisp.org>
12170
12171         Fix test failures on Solaris 10.
12172         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12173         tests when Solaris iconv() is used.
12174         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12175         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12176         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12177         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12178         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12179
12180 2009-08-16  Bruno Haible  <bruno@clisp.org>
12181
12182         Fix test failures on Solaris 10.
12183         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12184         'tr' program and pass it as first argument.
12185         * tests/test-pipe-filter-gi1.sh: Likewise.
12186         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12187         program as first argument.
12188         * tests/test-pipe-filter-gi1.c (main): Likewise.
12189
12190 2009-08-16  Eric Blake  <ebb9@byu.net>
12191
12192         fpurge: fix previous commits
12193         * modules/fpurge (Makefile.am): Make replacement conditional,
12194         partially reverting 2007-04-29 change; missed in previous
12195         attempt.
12196         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12197         is missing.
12198
12199 2009-08-16  Bruno Haible  <bruno@clisp.org>
12200
12201         Clarify fpurge's effect on the file position.
12202         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12203         * tests/test-fpurge.c (main): Make a second pass for checking the file
12204         position.
12205
12206 2009-08-16  Bruno Haible  <bruno@clisp.org>
12207
12208         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12209         declaration of fpurge is missing.
12210         * tests/test-fpurge.c (main): Check that the file has not more contents
12211         than expected. Close the file before removing it.
12212
12213 2009-08-15  Eric Blake  <ebb9@byu.net>
12214
12215         fpurge: don't wrap working cygwin implementation
12216         * lib/fpurge.c (fpurge): Fix comment typo.
12217         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12218         1.7 to avoid replacement.
12219         * tests/test-fpurge.c (main): Enhance test.
12220
12221 2009-08-15  Eric Blake  <ebb9@byu.net>
12222         and Jim Meyering  <meyering@redhat.com>
12223
12224         test-update-copyright: skip if perl is insufficient
12225         * tests/test-update-copyright.sh: Failure to run maintainer tool
12226         should not cause testsuite failure on cygwin 1.5.
12227
12228 2009-08-14  Eric Blake  <ebb9@byu.net>
12229
12230         doc: mention more functions added in cygwin 1.7.0
12231         * doc/posix-headers/limits.texi (limits.h): Update for recent
12232         cygwin additions.
12233         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12234         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12235         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12236         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12237         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12238
12239 2009-08-14  Eric Blake  <ebb9@byu.net>
12240
12241         maint.mk: simplify update-copyright rule
12242         * top/maint.mk (update-copyright-local): Delete, and document how
12243         to do it in cfg.mk instead.
12244         (update-copyright-exclude-regexp): Delete, and document how to do
12245         it in .x-update-copyright instead.
12246         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12247         exclude ChangeLog.
12248
12249 2009-08-14  Bruno Haible  <bruno@clisp.org>
12250
12251         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12252
12253 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12254
12255         maint.mk: support update-copyright-env
12256         * top/maint.mk (update-copyright-env): Define place-holder.
12257         (update-copyright): Expand $(update-copyright-env) before
12258         invoking update-copyright.
12259
12260 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12261
12262         update-copyright: implement forced reformatting
12263         * build-aux/update-copyright: Implement and document
12264         UPDATE_COPYRIGHT_FORCE.
12265         * tests/test-update-copyright.sh: Test it.
12266
12267 2009-08-14  Eric Blake  <ebb9@byu.net>
12268         and Bruno Haible  <bruno@clisp.org>
12269
12270         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12271         * tests/test-locale.c: Revert previous patch related to NULL.
12272         * tests/test-stdio.c: Likewise.
12273         * tests/test-stdlib.c: Likewise.
12274         * tests/test-string.c: Likewise.
12275         * tests/test-unistd.c: Likewise.
12276         * modules/time-tests (Depends-on): Add verify.
12277         * modules/wchar-tests (Depends-on): Likewise.
12278         * tests/test-time.c: Test for NULL compliance.
12279         * tests/test-wchar.c: Likewise.
12280         * modules/locale (Depends-on): Add stddef.
12281         * modules/stdio (Depends-on): Likewise.
12282         * modules/stdlib (Depends-on): Likewise.
12283         * modules/string (Depends-on): Likewise.
12284         * modules/time (Depends-on): Likewise.
12285         * modules/unistd (Depends-on): Likewise.
12286         * modules/wchar (Depends-on): Likewise.
12287         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12288         * lib/stdlib.in.h (includes): Likewise.
12289         * lib/string.in.h (includes): Likewise.
12290         * lib/time.in.h (includes): Likewise.
12291         * lib/unistd.in.h (includes): Likewise.
12292         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12293         replaced.
12294         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12295         * m4/stddef_h.m4: New file.
12296         * modules/stddef: Likewise.
12297         * lib/stddef.in.h: Likewise.
12298         * modules/stddef-tests: Likewise.
12299         * tests/test-stddef.c: Likewise.
12300         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12301         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12302         * doc/posix-headers/locale.texi (locale.h): Likewise.
12303         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12304         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12305         * doc/posix-headers/string.texi (string.h): Likewise.
12306         * doc/posix-headers/time.texi (time.h): Likewise.
12307         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12308         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12309
12310 2009-08-14  Eric Blake  <ebb9@byu.net>
12311
12312         doc: improve git diff of texinfo files
12313         * .gitattributes: Add rule for *.texi files, with hint on how to
12314         use it.
12315         Copied from m4, and based on a report by Bruno Haible.
12316
12317 2009-08-14  Bruno Haible  <bruno@clisp.org>
12318
12319         Disable multithread support by default on Cygwin 1.5.x for real.
12320         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12321
12322 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12323
12324         update-copyright: much ado about intervals
12325         * build-aux/update-copyright: Implement and document
12326         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12327         of copyright year intervals.
12328         Also, document UPDATE_COPYRIGHT_YEAR.
12329         * tests/test-update-copyright.sh: Test it.
12330
12331         update-copyright: convert 2-digit to 4-digit years
12332         * build-aux/update-copyright: Implement and document.
12333         * tests/test-update-copyright.sh: Update.
12334
12335 2009-08-14  Jim Meyering  <meyering@redhat.com>
12336
12337         test-exclude: avoid coreutils "make check" failure
12338         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12339         just as in test-argmatch.c.
12340
12341 2009-08-13  Eric Blake  <ebb9@byu.net>
12342
12343         test-dup2: fix bad assumption
12344         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12345         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12346
12347         test-version-etc: fix CRLF portability issue
12348         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12349         recognize \r.
12350         * tests/test-argp-version-etc-1.sh: Likewise.
12351
12352         getopt: update client modules
12353         * modules/argp (Depends-on): Use getopt-gnu.
12354         * modules/git-merge-changelog (Depends-on): Likewise.
12355         * modules/long-options (Depends-on): Likewise.
12356         * modules/xstrtol (Depends-on): Likewise.
12357
12358 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12359
12360         * tests/test-version-etc.sh: Don't fail on different
12361         project/version.  Don't fail on CRLF differences.  Rewrite to use
12362         multiple -e instead of multiple sed forks, suggested by Eric Blake
12363         <ebb9@byu.net>.
12364         * tests/test-argp-version-etc-1.sh: Likewise.
12365
12366 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12367
12368         * tests/test-version-etc.sh: Don't fail on different
12369         project/version.
12370
12371 2009-08-12  Bruno Haible  <bruno@clisp.org>
12372
12373         Tests for modules 'getopt-posix', 'getopt-gnu'.
12374         * modules/getopt-posix-tests: New file.
12375         * tests/test-getopt.c: New file.
12376         * tests/test-getopt.h: New file.
12377         * tests/test-getopt_long.h: New file.
12378
12379         New modules 'getopt-posix', 'getopt-gnu'.
12380         * modules/getopt-gnu: New file, renamed from modules/getopt.
12381         * modules/getopt-posix: New file.
12382         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12383         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12384         (gl_GETOPT): Remove macro.
12385         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12386         Disable the test against BSD systems that declare optreset. Test
12387         against mingw bug. Test against lack of support of optional arguments
12388         on many platforms.
12389         * doc/glibc-headers/getopt.texi: Update module name and list of
12390         relevant platforms.
12391         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12392         'getopt-gnu' and more portability problems.
12393         * NEWS: Mention the changes.
12394
12395 2009-08-12  Bruno Haible  <bruno@clisp.org>
12396
12397         Ensure that optarg etc. get declared by <unistd.h>.
12398         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12399         AC_USE_SYSTEM_EXTENSIONS.
12400         * modules/getopt (Depends-on): Add 'extensions'.
12401
12402 2009-08-12  Bruno Haible  <bruno@clisp.org>
12403
12404         Avoid test link errors.
12405         * modules/pipe-filter-ii-tests (Makefile.am): Define
12406         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12407         * modules/pipe-filter-gi-tests (Makefile.am): Define
12408         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12410
12411 2009-08-12  Bruno Haible  <bruno@clisp.org>
12412
12413         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12414         gl_GETOPT_SUBSTITUTE before.
12415         (gl_GETOPT): Use it.
12416         * m4/argp.m4 (gl_ARGP): Update.
12417         Reported by Sergey Poznyakoff.
12418
12419         * m4/getopt.m4: Reorder macros.
12420         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12421         (gl_GETOPT_SUBSTITUTE): Remove macro.
12422
12423 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12424
12425         Minor improvement in gitlog-to-changelog
12426
12427         * build-aux/gitlog-to-changelog: New option `--format' makes
12428         output format string configurable.
12429
12430 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12431
12432         Optimize exclude: use hash tables for non-wildcard patterns.
12433
12434         * lib/exclude.c: Include hash.h and mbuiter.h
12435         (struct exclude_pattern, exclude_segment): New data types.
12436         (struct exclude): Rewrite.
12437         (fnmatch_pattern_has_wildcards): New function.
12438         (new_exclude_segment, free_exclude_segment): New functions.
12439         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12440         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12441         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12442         * modules/exclude: Depend on hash and mbuiter.
12443
12444         * modules/exclude-tests: New file.
12445         * tests/test-exclude.c: New file.
12446         * tests/test-exclude1.sh: New file.
12447         * tests/test-exclude2.sh: New file.
12448         * tests/test-exclude3.sh: New file.
12449         * tests/test-exclude4.sh: New file.
12450         * tests/test-exclude5.sh: New file.
12451         * tests/test-exclude6.sh: New file.
12452         * tests/test-exclude7.sh: New file.
12453
12454 2009-08-12  Bruno Haible  <bruno@clisp.org>
12455
12456         Ensure that getopt() gets declared by <unistd.h>.
12457         * lib/unistd.in.h: Conditionally include getopt.h.
12458         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12459         Set GNULIB_UNISTD_H_GETOPT.
12460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12461         GNULIB_UNISTD_H_GETOPT.
12462         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12463
12464 2009-08-12  Bruno Haible  <bruno@clisp.org>
12465
12466         Clarify logic.
12467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12468         gl_replace_getopt instead of GETOPT_H.
12469
12470 2009-08-12  Bruno Haible  <bruno@clisp.org>
12471
12472         * m4/getopt.m4: Add comments.
12473
12474 2009-08-12  Bruno Haible  <bruno@clisp.org>
12475
12476         Disable multithread support by default on Cygwin 1.5.x.
12477         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12478         set gl_use_threads=no if not specified otherwise.
12479
12480 2009-08-11  Bruno Haible  <bruno@clisp.org>
12481
12482         Avoid compilation error on NetBSD 5.0.
12483         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12484         * tests/test-stdio.c: Likewise.
12485         * tests/test-stdlib.c: Likewise.
12486         * tests/test-string.c: Likewise.
12487         * tests/test-unistd.c: Likewise.
12488         Reported by Greg Troxel <gdt@ir.bbn.com>
12489         at <https://savannah.gnu.org/support/?106973>.
12490
12491 2009-08-11  Bruno Haible  <bruno@clisp.org>
12492
12493         * modules/dup2-tests (Depends-on): Remove close.
12494
12495         Undo 2009-07-19 commit.
12496         * modules/acl-tests (Depends-on): Remove close.
12497         * modules/binary-io-tests (Depends-on): Likewise.
12498         * modules/closein-tests (Depends-on): Likewise.
12499         * modules/flock-tests (Depends-on): Likewise.
12500         * modules/fsync-tests (Depends-on): Likewise.
12501         * modules/lseek-tests (Depends-on): Likewise.
12502         * modules/pipe-tests (Depends-on): Likewise.
12503         * modules/posix_spawn-tests (Depends-on): Likewise.
12504         * modules/posix_spawnp-tests (Depends-on): Likewise.
12505         * modules/stat-time-tests (Depends-on): Likewise.
12506         * modules/yesno-tests (Depends-on): Likewise.
12507
12508 2009-08-10  Bruno Haible  <bruno@clisp.org>
12509
12510         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12511
12512 2009-08-10  Bruno Haible  <bruno@clisp.org>
12513
12514         Fix a gcc warning.
12515         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12516
12517 2009-08-10  Bruno Haible  <bruno@clisp.org>
12518
12519         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12520         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12521         not only the first time.
12522         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12523         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12524         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12525         is 1, not only the the first time.
12526
12527 2009-08-10  Bruno Haible  <bruno@clisp.org>
12528
12529         Make it possible to use module 'gethostname' without module 'close'.
12530         * lib/unistd.in.h (close): Evoke a link error only if
12531         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12533         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12534         * modules/unistd (Makefile.am): Substitute
12535         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12536         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12537         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12538         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12539         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12540         * modules/sys_ioctl (Makefile.am): Substitute
12541         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12542         * modules/socket (configure.ac): On native Windows, set
12543         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12544         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12545         Reported by Sam Steingold <sds@gnu.org>.
12546
12547 2009-08-10  Bruno Haible  <bruno@clisp.org>
12548
12549         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12550         * modules/ioctl (configure.ac): Likewise.
12551
12552 2009-08-10  Bruno Haible  <bruno@clisp.org>
12553
12554         Avoid collision between gnulib wrapper and libintl wrapper.
12555         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12556         already defined in intl/printf.c.
12557         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12558         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12559
12560 2009-08-09  Bruno Haible  <bruno@clisp.org>
12561
12562         Make <sys/select.h> really self-contained, also on Solaris 10.
12563         * lib/sys_select.in.h: Include <string.h>.
12564         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12565         Solaris 10 problem.
12566         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12567         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12568         Reported by Jim Meyering.
12569
12570 2009-08-09  Bruno Haible  <bruno@clisp.org>
12571
12572         Avoid warnings from 'aclocal' that are due to a use of macro name
12573         AM_XGETTEXT_OPTION that is not defined in automake.
12574         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12575         automake.
12576         * modules/error (configure.ac): Likewise.
12577         * modules/propername (configure.ac): Likewise.
12578         * modules/vasprintf (configure.ac): Likewise.
12579         * modules/verror (configure.ac): Likewise.
12580         * modules/xprintf (configure.ac): Likewise.
12581         * modules/xvasprintf (configure.ac): Likewise.
12582
12583 2009-08-08  Bruno Haible  <bruno@clisp.org>
12584
12585         Avoid compilation error in C++ mode.
12586         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12587         Reported by Sam Steingold <sds@gnu.org>.
12588
12589 2009-08-08  Bruno Haible  <bruno@clisp.org>
12590
12591         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12592         for the various Unix platforms.
12593         * doc/posix-headers/limits.texi: Update platforms list regarding
12594         HOST_NAME_MAX.
12595         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12596
12597 2009-08-07  Jim Meyering  <meyering@redhat.com>
12598
12599         selinux-at: fix typo in a comment
12600         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12601         Spotted by Paolo Bonzini.
12602
12603         selinux-at: remove redundant m4 code, add documentation
12604         * modules/selinux-at (configure.ac): Remove redundant code.
12605         LIB_SELINUX is already set via the dependent module, selinux-h.
12606         (Include): Add quotes around selinux-at.h.
12607         * lib/selinux-at.h: Add documentation.
12608         Reported by Bruno Haible in
12609         http://marc.info/?l=gnulib-bug&m=124958988300749
12610
12611 2009-08-07  Bruno Haible  <bruno@clisp.org>
12612
12613         Avoid link error on MacOS X 10.3 and 10.4.
12614         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12615         on non-ELF systems.
12616         * lib/argp-pv.c (argp_program_version): Likewise.
12617         Reported by Simon Josefsson.
12618
12619 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12620
12621         * tests/test-version-etc.sh: Use $EXEEXT.
12622
12623 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12624
12625         update-copyright: update documentation to point to maint.mk
12626         * build-aux/update-copyright: Here.
12627
12628 2009-08-06  Jim Meyering  <meyering@redhat.com>
12629
12630         maint.mk: support update-copyright-local
12631         * top/maint.mk (update-copyright-local): Define place-holder.
12632         (update-copyright): Depend on $(update-copyright-local).
12633
12634 2009-08-06  Jim Meyering  <meyering@redhat.com>
12635
12636         selinux-at: new module
12637         Initially written for coreutils, this module will soon be
12638         used by findutils, too.
12639         * MODULES.html.sh [Misc]: Add selinux-at.
12640         * lib/selinux-at.h: New file, from coreutils.
12641         * lib/selinux-at.c: Likewise.
12642         * modules/selinux-at: Likewise.
12643         (License): Change from LGPL to GPL, since it depends
12644         on the GPL'd openat module.
12645
12646         doc: update README
12647         * README: Remove references to cogito.
12648         Remove cvs-repo-updating instructions from 2007.
12649         Don't imply that CVS is better if you have limited disk space.
12650
12651 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12652
12653         update-copyright: support C-style comments
12654         * build-aux/update-copyright: Implement and document.
12655         * tests/test-update-copyright.sh: Test.
12656
12657 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12658
12659         update-copyright: support omitted "(C)"
12660         * build-aux/update-copyright: Implement and document.  Also,
12661         allow variable whitespace before "(C)".
12662         * tests/test-update-copyright.sh: Test.
12663
12664 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12665
12666         update-copyright: don't trip on non-FSF copyright statements
12667         * build-aux/update-copyright: Fix so that the first correctly
12668         formatted FSF copyright statement is recognized no matter what
12669         appears before it.  Update documentation.
12670         * tests/test-update-copyright.sh: Test that.
12671
12672 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12673
12674         update-copyright: clean up code a little
12675         * build-aux/update-copyright: Append "_re" to the name of any
12676         variable holding a regular expression.
12677         Replace "old" and "new" with "stmt" in variable names.
12678         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12679         handled correctly.
12680         Format code more consistently.
12681
12682 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12683
12684         update-copyright-tests: improve portability
12685         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12686         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12687
12688 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12689
12690         update-copyright: support @copyright{} and &copy;
12691         * build-aux/update-copyright: Implement and document.
12692         * tests/test-update-copyright.sh: Test.
12693
12694 2009-08-04  Jim Meyering  <meyering@redhat.com>
12695
12696         update-copyright-tests: correctly test EOL=\r\n handling
12697         * tests/test-update-copyright.sh: Put \r at the end of some lines
12698         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12699
12700         maint.mk: make update-copyright exclusion list more configurable
12701         * top/maint.mk (update-copyright): Default to excluding COPYING,
12702         but allow an override, in case someone does want to update that file.
12703
12704         maint.mk: don't update copyright date in COPYING
12705         * top/maint.mk (update-copyright): Exclude COPYING.
12706
12707         maint.mk: add a copyright-updating rule
12708         * top/maint.mk (update-copyright): New rule.
12709         Derived from coreutils/Makefile.am.
12710
12711         update-copyright: rename some variables
12712         * build-aux/update-copyright: Rename a few variables for clarity.
12713         Tweak syntax.  List Joel E. Denny as coauthor.
12714
12715 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12716
12717         update-copyright: fix bug for 2-digit last year and add tests
12718         * build-aux/update-copyright: Fix bug.
12719         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12720         specified.
12721         * modules/update-copyright-tests: New
12722         * tests/test-update-copyright.sh: New.
12723
12724 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12725
12726         update-copyright: handle leading tabs in line prefix
12727         * build-aux/update-copyright: Count leading tabs as 8 spaces
12728         when computing margin.  This helps with the formatting of
12729         ChangeLogs, for example.
12730         Fix documentation a little.
12731
12732 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12733
12734         update-copyright: support EOL=\r\n
12735         * build-aux/update-copyright: Implement that.
12736
12737 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12738
12739         update-copyright: automatically format copyright statements
12740         * build-aux/update-copyright: Implement that.
12741         Also, be a little more predictable and safer by always failing
12742         when the full copyright format is not perfectly recognized as an
12743         unbroken whole.  Discussed at
12744         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12745         Rewrite documentation.
12746
12747 2009-08-03  Bruno Haible  <bruno@clisp.org>
12748
12749         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12750
12751 2009-08-02  Bruno Haible  <bruno@clisp.org>
12752
12753         Tests for module 'uname'.
12754         * modules/uname-tests: New file.
12755         * tests/test-uname.c: New file.
12756
12757         New module 'uname'.
12758         * lib/uname.c: New file.
12759         * m4/uname.m4: New file.
12760         * modules/uname: New file.
12761         * doc/posix-functions/uname.texi: Mention the new module.
12762
12763 2009-08-02  Bruno Haible  <bruno@clisp.org>
12764
12765         Tests for module 'sys_utsname'.
12766         * modules/sys_utsname-tests: New file.
12767         * tests/test-sys_utsname.c: New file.
12768
12769         New module 'sys_utsname'.
12770         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12771         * m4/sys_utsname_h.m4: New file.
12772         * modules/sys_utsname: New file.
12773         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12774
12775 2009-08-02  Bruno Haible  <bruno@clisp.org>
12776
12777         Implicitly initialize the sockets library.
12778         * lib/gethostname.c: Include sockets.h.
12779         (rpl_gethostname): Invoke gl_sockets_startup.
12780         * lib/socket.c: Include sockets.h.
12781         (rpl_socket): Invoke gl_sockets_startup.
12782         * modules/gethostname (Depends-on): Add sockets.
12783         * modules/socket (Depends-on): Likewise.
12784         * tests/test-poll.c: Don't include sockets.h.
12785         (main): Don't invoke gl_sockets_startup.
12786         * tests/test-select.c: Don't include sockets.h.
12787         (main): Don't invoke gl_sockets_startup.
12788
12789 2009-08-02  Bruno Haible  <bruno@clisp.org>
12790
12791         Allow multiple calls to gl_sockets_startup.
12792         * lib/sockets.c (initialized_sockets_version): New variable.
12793         (gl_sockets_startup): Do nothing if already called for this or a higher
12794         version.
12795         (gl_sockets_cleanup): Reset initialized_sockets_version.
12796
12797 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12798
12799         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12800         different project/version.
12801
12802 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12803             Bruno Haible  <bruno@clisp.org>
12804
12805         Tests for module 'pipe-filter-gi'.
12806         * modules/pipe-filter-gi-tests: New file.
12807         * tests/test-pipe-filter-gi1.sh: New file.
12808         * tests/test-pipe-filter-gi1.c: New file.
12809         * tests/test-pipe-filter-gi2.sh: New file.
12810         * tests/test-pipe-filter-gi2-main.c: New file.
12811         * tests/test-pipe-filter-gi2-child.c: New file.
12812
12813         New module 'pipe-filter-gi'.
12814         * lib/pipe-filter-gi.c: New file.
12815         * modules/pipe-filter-gi: New file.
12816
12817 2009-08-02  Bruno Haible  <bruno@clisp.org>
12818             Paolo Bonzini  <bonzini@gnu.org>
12819
12820         Tests for module 'pipe-filter-ii'.
12821         * modules/pipe-filter-ii-tests: New file.
12822         * tests/test-pipe-filter-ii1.sh: New file.
12823         * tests/test-pipe-filter-ii1.c: New file.
12824         * tests/test-pipe-filter-ii2.sh: New file.
12825         * tests/test-pipe-filter-ii2-main.c: New file.
12826         * tests/test-pipe-filter-ii2-child.c: New file.
12827
12828         New module 'pipe-filter-ii'.
12829         * lib/pipe-filter.h: New file.
12830         * lib/pipe-filter-ii.c: New file.
12831         * lib/pipe-filter-aux.h: New file.
12832         * modules/pipe-filter-ii: New file.
12833
12834 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12835
12836         * lib/gc-libgcrypt.c: Change copyright to FSF.
12837         * lib/gc-gnulib.c: Likewise.
12838
12839 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12840
12841         * lib/gethostname.c: Include limits.h.
12842
12843 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12844             Bruno Haible  <bruno@clisp.org>
12845
12846         Ensure HOST_NAME_MAX as part of the gethostname module.
12847         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12848         define also HOST_NAME_MAX.
12849         * tests/test-gethostname.c: Include <limits.h>.
12850         (main): Check also HOST_NAME_MAX.
12851         * doc/posix-headers/limits.texi: Document the mingw problem.
12852
12853 2009-08-02  Bruno Haible  <bruno@clisp.org>
12854
12855         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12856         Add comments.
12857
12858 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12859
12860         * lib/gethostname.c: Add Windows wrapper.
12861         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12862         * modules/gethostname: Depend on sys_socket & errno, for also
12863         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12864         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12865
12866 2009-07-31  Jim Meyering  <meyering@redhat.com>
12867
12868         getloadavg: fix symbol name in comment
12869         * lib/getloadavg.c: Correct a typo I introduced when adding
12870         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12871         Matt Kraai spotted the problem.
12872
12873 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12874
12875         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12876         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12877         code also if ! defined N_NAME_POINTER.
12878         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12879         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12880         but the n_name member is a 12-byte array.
12881
12882 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12883
12884         update-copyright: generalize comment handling
12885         * build-aux/update-copyright: Handle copyright statements
12886         within more comment styles.
12887         Document usage.
12888         Report any file with an external copyright holder or parse failure.
12889
12890 2009-07-29  Jim Meyering  <meyering@redhat.com>
12891
12892         mktime: correct setting of REPLACE_MKTIME
12893         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12894
12895         update-copyright: new module
12896         * modules/update-copyright: New file.
12897         * build-aux/update-copyright: New file.
12898         * MODULES.html.sh (maint+release support): Add update-copyright.
12899
12900 2009-07-27  Bruno Haible  <bruno@clisp.org>
12901
12902         Fix compilation error when <ctime> is used and mktime is replaced.
12903         * lib/time.in.h (mktime): New declaration.
12904         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12905         REPLACE_MKTIME instead of defining mktime in config.h.
12906         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12907         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12908         Reported by Ross McFarland <rwmcfa1@neces.com>.
12909
12910 2009-07-27  Bruno Haible  <bruno@clisp.org>
12911
12912         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12913         Reported by Matt Kraai <mkraai@beckman.com>.
12914
12915 2009-07-25  Jim Meyering  <meyering@redhat.com>
12916
12917         maint.mk: avoid warnings about missing files
12918         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12919         diagnostic when .prev-version does not exist.
12920         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12921         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12922         nonexistent cfg.mk.
12923         Suggestions from Simon Josefsson.
12924
12925 2009-07-25  Bruno Haible  <bruno@clisp.org>
12926
12927         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12928         defined as macros. Needed on QNX 6.4.1.
12929         Reported by Matt Kraai <mkraai@beckman.com>.
12930
12931 2009-07-23  Jim Meyering  <meyering@redhat.com>
12932
12933         maint.mk: invoke "make dist" with a working value of XZ_OPT
12934         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12935
12936 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
12937
12938         Make fseeko.c compile on QNX.
12939         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12940
12941 2009-07-22  Peter Simons  <simons@cryp.to>
12942
12943         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12944         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12945         * lib/md4.h: Likewise.
12946         * lib/md5.h: Likewise.
12947         * lib/sha1.h: Likewise.
12948         * lib/sha256.h: Likewise.
12949         * lib/sha512.h: Likewise.
12950
12951         tests-sha1: don't assign literal string to 'char *' variable
12952         * tests/test-sha1.c (main): Declare locals with "const" to match
12953         attributes of the right hand side.
12954
12955 2009-07-21  Eric Blake  <ebb9@byu.net>
12956
12957         dup2: fix more mingw problems
12958         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12959         fd to itself.
12960         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12961         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12962         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12963         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12964         care of mingw bugs.
12965
12966 2009-07-21  Jim Meyering  <meyering@redhat.com>
12967
12968         vc-list-files: avoid failure when /bin/sh is dash
12969         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12970         On some Debian based systems, /bin/sh is a symlink to dash, and running
12971         this command would omit the "/" following each 'tests' prefix:
12972           dash -x build-aux/vc-list-files -C . tests
12973         That is because bash and dash work differently:
12974           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12975           bash ok
12976           dash odd
12977
12978 2009-07-21  Eric Blake  <ebb9@byu.net>
12979
12980         dup2-tests: test previous patch
12981         * modules/dup2-tests: New file.
12982         * tests/test-dup2.c: Likewise.
12983         * tests/test-open.c (main): Avoid unspecified behavior.
12984         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12985         test.
12986
12987         dup2: work around mingw and cygwin 1.5 bug
12988         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12990         * modules/unistd (Makefile.am): Substitute it.
12991         * lib/unistd.in.h (dup2): Declare the replacement.
12992         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12993         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12994         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12995         * modules/execute (Depends-on): Add dup2.
12996         * modules/fseterr (Depends-on): Likewise.
12997         * modules/pipe (Depends-on): Likewise.
12998         * modules/posix_spawn-internal (Depends-on): Likewise.
12999
13000 2009-07-21  Bruno Haible  <bruno@clisp.org>
13001
13002         * modules/.gitattributes: New file.
13003
13004 2009-07-20  Bruno Haible  <bruno@clisp.org>
13005
13006         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
13007         (main): Use it.
13008
13009 2009-07-20  Eric Blake  <ebb9@byu.net>
13010
13011         test-pipe: make a bit more robust.
13012         * tests/test-pipe.c (myerr): Allow error messages regardless of
13013         what we do to stderr.
13014         (test_pipe): Rearrange to avoid deadlock.
13015         (child_main): Try a larger read, to ensure we avoided deadlock.
13016         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13017         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13018         if misused.
13019
13020 2009-07-19  Jim Meyering  <meyering@redhat.com>
13021
13022         fts: avoid false-positive cycle-detection
13023         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13024         for each new command line argument.
13025
13026 2009-07-19  Bruno Haible  <bruno@clisp.org>
13027
13028         Fix build error on mingw with the modules sys_select and unistd.
13029         * modules/acl-tests (Depends-on): Add close.
13030         * modules/binary-io-tests (Depends-on): Likewise.
13031         * modules/closein-tests (Depends-on): Likewise.
13032         * modules/flock-tests (Depends-on): Likewise.
13033         * modules/fsync-tests (Depends-on): Likewise.
13034         * modules/lseek-tests (Depends-on): Likewise.
13035         * modules/pipe-tests (Depends-on): Likewise.
13036         * modules/posix_spawn-tests (Depends-on): Likewise.
13037         * modules/posix_spawnp-tests (Depends-on): Likewise.
13038         * modules/stat-time-tests (Depends-on): Likewise.
13039         * modules/yesno-tests (Depends-on): Likewise.
13040
13041 2009-07-19  Bruno Haible  <bruno@clisp.org>
13042
13043         Unify conditionals.
13044         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13045         macros, not at the compiler macros.
13046         * lib/pipe.c: Likewise.
13047         * lib/execute.c: Likewise.
13048         * lib/spawni.c: Likewise.
13049
13050 2009-07-19  Bruno Haible  <bruno@clisp.org>
13051
13052         Fix handling of closed stdin/stdout/stderr on mingw.
13053         * lib/w32spawn.h: Include unistd.h.
13054         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13055         file descriptor with O_NOINHERIT flag.
13056         (fd_safer_noinherit): New function, based on fd-safer.c.
13057         (dup_safer_noinherit): New function, based on dup-safer.c.
13058         (undup_safer_noinherit): New function.
13059         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13060         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13061         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13062         instead of fd_safer.
13063         * tests/test-pipe.c: Include <windows.h>.
13064         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13065
13066         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13067         from main.
13068         (test_pipe): Pass an extra argument for disambiguation.
13069         (main): Invoke parent_main or child_main.
13070
13071         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13072         consistently.
13073
13074 2009-07-18  Eric Blake  <ebb9@byu.net>
13075
13076         test-pipe: fix mingw build
13077         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13078
13079 2009-07-18  Bruno Haible  <bruno@clisp.org>
13080
13081         * modules/pipe-tests (Makefile.am): Fix typo.
13082
13083 2009-07-18  Eric Blake  <ebb9@byu.net>
13084
13085         error: fix mingw build
13086         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13087         Reported by Bruno Haible.
13088
13089         error: avoid undefined use of stdout
13090         * lib/error.c (error, error_at_line): Check that fd 1 is open
13091         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13092         is handling faults and the close_stdout module wants to report the
13093         detection of closed stdout as an error.
13094
13095 2009-07-17  Eric Blake  <ebb9@byu.net>
13096
13097         pipe: be robust in face of closed fds
13098         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13099         should cause child to misbehave.
13100         * modules/pipe-tests: New module.
13101         * tests/test-pipe.c: New file.
13102         * tests/test-pipe.sh: New file.
13103         Reported by Akim Demaille.
13104
13105 2009-07-14  Bruno Haible  <bruno@clisp.org>
13106
13107         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13108         Reported by anonymous kc.
13109
13110 2009-07-07  Jim Meyering  <meyering@redhat.com>
13111
13112         maint.mk: don't look for translatable strings in *.m4 or *.mk
13113         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13114         when searching for translatable strings.
13115
13116 2009-07-05  Jim Meyering  <meyering@redhat.com>
13117
13118         remove superfluous parentheses in STREQ definition
13119         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13120         * lib/getugroups.c (STREQ): Likewise.
13121         * lib/fnmatch.c (STREQ): Likewise.
13122         Spotted by Bruno Haible.
13123
13124 2009-07-04  Jim Meyering  <meyering@redhat.com>
13125
13126         argv-iter: new module
13127         * MODULES.html.sh: Add argv-iter.
13128         * lib/argv-iter.c, lib/argv-iter.h: New files.
13129         * modules/argv-iter: New file.
13130         * modules/argv-iter-tests: New file.
13131         * tests/test-argv-iter.c: Test it.
13132
13133 2009-07-04  Bruno Haible  <bruno@clisp.org>
13134
13135         Fix assertion.
13136         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13137         contains more exact copies of a given entry than file2, leave the extra
13138         copies unpaired rather than aborting.
13139         Reported by Eric Blake.
13140
13141 2009-07-02  Bruno Haible  <bruno@clisp.org>
13142
13143         Speedup git-merge-changelog for git cherry-pick.
13144         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13145         (entries_mapping_get): New function, extracted from compute_mapping.
13146         (entries_mapping_reverse_get): New function.
13147         (compute_mapping): Add a 'full' argument. Return the result in a
13148         'struct entries_mapping'.
13149         (main): Update. Access the mappings through entries_mapping_get.
13150         Reported by Eric Blake.
13151
13152 2009-07-02  Bruno Haible  <bruno@clisp.org>
13153
13154         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13155         best_i.
13156
13157 2009-07-02  Bruno Haible  <bruno@clisp.org>
13158
13159         Speed up approximate search for matching ChangeLog entries.
13160         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13161         argument. Call fstrcmp_bounded instead of fstrcmp.
13162         (compute_mapping, try_split_merged_entry, main): Update callers.
13163
13164 2009-07-02  Bruno Haible  <bruno@clisp.org>
13165
13166         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13167
13168 2009-06-30  Bruno Haible  <bruno@clisp.org>
13169
13170         Reduce the number of uc_is_cased calls.
13171         * lib/unicase.h (casing_suffix_context_t): Add
13172         'first_char_except_ignorable' field.
13173         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13174         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13175         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13176         Update initializer.
13177         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13178         case-ignorable characters.
13179         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13180         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13181         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13182         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13183         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13184
13185 2009-06-30  Bruno Haible  <bruno@clisp.org>
13186
13187         Tests for module 'unicase/ignorable'.
13188         * modules/unicase/ignorable-tests: New file.
13189         * tests/unicase/test-ignorable.c: New file, generated by
13190         gen-uni-tables.
13191
13192         Tests for module 'unicase/cased'.
13193         * modules/unicase/cased-tests: New file.
13194         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13195         * tests/unicase/test-predicate-part1.h: New file, derived from
13196         tests/unictype/test-predicate-part1.h.
13197         * tests/unicase/test-predicate-part2.h: New file, same as
13198         tests/unictype/test-predicate-part2.h.
13199
13200         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13201         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13202         (output_casing_properties): New function.
13203         (main): Call it.
13204         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13205         * lib/unicase/cased.c: Include unictype/bitmap.h.
13206         (uc_is_cased): Define through a bitmap lookup.
13207         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13208         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13209         (uc_is_case_ignorable): Define through a bitmap lookup.
13210         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13211         lib/unictype/bitmap.h.
13212         (Depends-on): Add inline. Clean up.
13213         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13214         lib/unictype/bitmap.h.
13215         (Depends-on): Add inline. Clean up.
13216         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13217         recognition.
13218         * tests/unicase/test-u16-tolower.c (main): Likewise.
13219         * tests/unicase/test-u32-tolower.c (main): Likewise.
13220
13221 2009-06-30  Bruno Haible  <bruno@clisp.org>
13222
13223         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13224         * lib/unicase/u16-casemap.c: Likewise.
13225         * lib/unicase/u32-casemap.c: Likewise.
13226
13227 2009-06-29  Bruno Haible  <bruno@clisp.org>
13228
13229         Define u32_casefold as a wrapper around u32_ct_casefold.
13230         * lib/unicase/u32-casefold.c: Update.
13231         * modules/unicase/u32-casefold (Depends-on): Add
13232         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13233         unicase/empty-suffix-context. Clean up.
13234
13235         Define u16_casefold as a wrapper around u16_ct_casefold.
13236         * lib/unicase/u16-casefold.c: Update.
13237         * modules/unicase/u16-casefold (Depends-on): Add
13238         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13239         unicase/empty-suffix-context. Clean up.
13240
13241         Define u8_casefold as a wrapper around u8_ct_casefold.
13242         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13243         * lib/unicase/u8-casefold.c: Update.
13244         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13245         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13246
13247         Define u32_totitle as a wrapper around u32_ct_totitle.
13248         * lib/unicase/u32-totitle.c: Update.
13249         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13250         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13251
13252         Define u16_totitle as a wrapper around u16_ct_totitle.
13253         * lib/unicase/u16-totitle.c: Update.
13254         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13255         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13256
13257         Define u8_totitle as a wrapper around u8_ct_totitle.
13258         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13259         functions.
13260         (FUNC): Delegate to U_CT_TOTITLE.
13261         * lib/unicase/u8-totitle.c: Update.
13262         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13263         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13264
13265         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13266         invocation.
13267         * modules/unicase/u32-tolower (Depends-on): Add
13268         unicase/empty-prefix-context, unicase/empty-suffix-context.
13269
13270         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13271         invocation.
13272         * modules/unicase/u16-tolower (Depends-on): Add
13273         unicase/empty-prefix-context, unicase/empty-suffix-context.
13274
13275         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13276         * modules/unicase/u8-tolower (Depends-on): Add
13277         unicase/empty-prefix-context, unicase/empty-suffix-context.
13278
13279         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13280         invocation.
13281         * modules/unicase/u32-toupper (Depends-on): Add
13282         unicase/empty-prefix-context, unicase/empty-suffix-context.
13283
13284         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13285         invocation.
13286         * modules/unicase/u16-toupper (Depends-on): Add
13287         unicase/empty-prefix-context, unicase/empty-suffix-context.
13288
13289         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13290         * modules/unicase/u8-toupper (Depends-on): Add
13291         unicase/empty-prefix-context, unicase/empty-suffix-context.
13292
13293         New module 'unicase/u32-ct-casefold'.
13294         * lib/unicase/u32-ct-casefold.c: New file.
13295         * modules/unicase/u32-ct-casefold: New file.
13296
13297         New module 'unicase/u16-ct-casefold'.
13298         * lib/unicase/u16-ct-casefold.c: New file.
13299         * modules/unicase/u16-ct-casefold: New file.
13300
13301         New module 'unicase/u8-ct-casefold'.
13302         * lib/unicase/u8-ct-casefold.c: New file.
13303         * lib/unicase/u-ct-casefold.h: New file, derived from
13304         lib/unicase/u-casefold.h.
13305         * modules/unicase/u8-ct-casefold: New file.
13306
13307         New module 'unicase/u32-ct-totitle'.
13308         * lib/unicase/u32-ct-totitle.c: New file.
13309         * modules/unicase/u32-ct-totitle: New file.
13310
13311         New module 'unicase/u16-ct-totitle'.
13312         * lib/unicase/u16-ct-totitle.c: New file.
13313         * modules/unicase/u16-ct-totitle: New file.
13314
13315         New module 'unicase/u8-ct-totitle'.
13316         * lib/unicase/u8-ct-totitle.c: New file.
13317         * lib/unicase/u-ct-totitle.h: New file, derived from
13318         lib/unicase/u-totitle.h.
13319         * modules/unicase/u8-ct-totitle: New file.
13320
13321         New module 'unicase/u32-ct-tolower'.
13322         * lib/unicase/u32-ct-tolower.c: New file.
13323         * modules/unicase/u32-ct-tolower: New file.
13324
13325         New module 'unicase/u16-ct-tolower'.
13326         * lib/unicase/u16-ct-tolower.c: New file.
13327         * modules/unicase/u16-ct-tolower: New file.
13328
13329         New module 'unicase/u8-ct-tolower'.
13330         * lib/unicase/u8-ct-tolower.c: New file.
13331         * modules/unicase/u8-ct-tolower: New file.
13332
13333         New module 'unicase/u32-ct-toupper'.
13334         * lib/unicase/u32-ct-toupper.c: New file.
13335         * modules/unicase/u32-ct-toupper: New file.
13336
13337         New module 'unicase/u16-ct-toupper'.
13338         * lib/unicase/u16-ct-toupper.c: New file.
13339         * modules/unicase/u16-ct-toupper: New file.
13340
13341         New module 'unicase/u8-ct-toupper'.
13342         * lib/unicase/u8-ct-toupper.c: New file.
13343         * modules/unicase/u8-ct-toupper: New file.
13344
13345         Add context arguments to u*_casemap functions.
13346         * lib/unicase/unicasemap.h: Include unicase.h.
13347         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13348         suffix_context arguments.
13349         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13350         functions.
13351         (FUNC): Add prefix_context and suffix_context arguments. Use
13352         uc_is_cased and uc_is_case_ignorable.
13353         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13354         * lib/unicase/u16-casemap.c: Likewise.
13355         * lib/unicase/u32-casemap.c: Likewise.
13356         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13357         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13358         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13359         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13360         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13361         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13362
13363         New module 'unicase/u32-suffix-context'.
13364         * lib/unicase/u32-suffix-context.c: New file.
13365         * modules/unicase/u32-suffix-context: New file.
13366
13367         New module 'unicase/u16-suffix-context'.
13368         * lib/unicase/u16-suffix-context.c: New file.
13369         * modules/unicase/u16-suffix-context: New file.
13370
13371         New module 'unicase/u8-suffix-context'.
13372         * lib/unicase/u8-suffix-context.c: New file.
13373         * lib/unicase/u-suffix-context.h: New file.
13374         * modules/unicase/u8-suffix-context: New file.
13375
13376         New module 'unicase/empty-suffix-context'.
13377         * lib/unicase/empty-suffix-context.c: New file.
13378         * modules/unicase/empty-suffix-context: New file.
13379
13380         New module 'unicase/u32-prefix-context'.
13381         * lib/unicase/u32-prefix-context.c: New file.
13382         * modules/unicase/u32-prefix-context: New file.
13383
13384         New module 'unicase/u16-prefix-context'.
13385         * lib/unicase/u16-prefix-context.c: New file.
13386         * modules/unicase/u16-prefix-context: New file.
13387
13388         New module 'unicase/u8-prefix-context'.
13389         * lib/unicase/u8-prefix-context.c: New file.
13390         * lib/unicase/u-prefix-context.h: New file.
13391         * lib/unicase/context.h: New file.
13392         * modules/unicase/u8-prefix-context: New file.
13393
13394         New module 'unicase/empty-prefix-context'.
13395         * lib/unicase/empty-prefix-context.c: New file.
13396         * modules/unicase/empty-prefix-context: New file.
13397
13398         New module 'unicase/ignorable'.
13399         * lib/unicase/ignorable.c: New file.
13400         * modules/unicase/ignorable: New file.
13401
13402         New module 'unicase/cased'.
13403         * lib/unicase/caseprop.h: New file.
13404         * lib/unicase/cased.c: New file.
13405         * modules/unicase/cased: New file.
13406
13407         New functions for case mapping of substrings.
13408         * lib/unicase.h (casing_prefix_context_t): New type.
13409         (unicase_empty_prefix_context): New variable.
13410         (u8_casing_prefix_context, u16_casing_prefix_context,
13411         u32_casing_prefix_context, u8_casing_prefixes_context,
13412         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13413         declarations.
13414         (casing_suffix_context_t): New type.
13415         (unicase_empty_suffix_context): New variable.
13416         (u8_casing_suffix_context, u16_casing_suffix_context,
13417         u32_casing_suffix_context, u8_casing_suffixes_context,
13418         u16_casing_suffixes_context, u32_casing_suffixes_context,
13419         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13420         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13421         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13422         declarations.
13423
13424 2009-06-28  Jim Meyering  <meyering@redhat.com>
13425
13426         boostrap: indent only with spaces
13427         * build-aux/bootstrap: Indent only with spaces, never TABs.
13428
13429         bootstrap: split long lines
13430         * build-aux/bootstrap: Keep line length < 80.
13431
13432         bootstrap: sync from coreutils
13433         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13434         just as autoreconf does.  Verify a list of prerequisite
13435         package-name,version-number pairs if defined in bootstrap.conf.
13436         Refer to README-prereq, if prerequisites are not satisfied.
13437
13438 2009-06-27  Eric Blake  <ebb9@byu.net>
13439
13440         tests: add test for bogus NULL definition
13441         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13442         * tests/test-stdlib.c: Likewise.
13443         * tests/test-string.c: Likewise.
13444         * tests/test-locale.c: Likewise.
13445         * tests/test-unistd.c: Likewise.
13446         * modules/stdio-tests (Depends-on): Add verify.
13447         * modules/stdlib-tests (Depends-on): Likewise.
13448         * modules/string-tests (Depends-on): Likewise.
13449         * modules/locale-tests (Depends-on): Likewise.
13450         * modules/unistd-tests (Depends-on): Likewise.
13451
13452 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13453
13454         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13455         self-explaining comment.
13456         * m4/selinux-selinux-h: Update serial.
13457         (gl_LIBSELINUX): New macro, adding a warning for missing development
13458         packages to code extracted from...
13459         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13460         Add warning for missing development packages here, too.
13461
13462 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13463
13464         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13465
13466 2009-06-25  Eric Blake  <ebb9@byu.net>
13467
13468         version-etc: fix regression
13469         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13470         gcc.
13471         (version_etc): Use it, to catch bugs with trailing NULL.
13472         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13473         (version_etc_va): Fix logic bug.
13474         * modules/version-etc-tests: Add test.
13475         * tests/test-version-etc.c: New file.
13476         * tests/test-version-etc.sh: Likewise.
13477
13478 2009-06-25  Sam Steingold  <sds@gnu.org>
13479
13480         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13481         mbtowc declaration.
13482
13483 2009-06-25  Eric Blake  <ebb9@byu.net>
13484
13485         fpurge: migrate into <stdio.h>
13486         * lib/fpurge.h: Delete...
13487         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13488         * lib/fpurge.c (fpurge): Change declaring header.
13489         * modules/fpurge (Files): Drop deleted file.
13490         (Depends-on): Add stdio.
13491         (configure.ac): Set witness.
13492         * modules/stdio (Makefile.am): Support fpurge macros.
13493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13494         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13495         * lib/fflush.c: Update client.
13496         * tests/test-fpurge.c: Likewise.
13497         * NEWS: Mention the change.
13498
13499 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13500
13501         * lib/argp-version-etc.c (program_authors): Add const
13502         qualifier.
13503         * lib/version-etc.c: Fix typos in the comments.
13504         * modules/argp-version-etc: Depends on version-etc.
13505
13506 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13507
13508         argp-version-etc: new module.
13509
13510         * lib/argp-version-etc.c: New file.
13511         * lib/argp-version-etc.h: New file.
13512         * modules/argp-version-etc: New file.
13513         * modules/argp-version-etc-tests: New file.
13514         * tests/test-argp-version-etc.c: New test.
13515         * tests/test-argp-version-etc-1.sh: New test.
13516
13517 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13518
13519         Provide additional interfaces and documentation for version-etc
13520         module.
13521
13522         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13523         interfaces.
13524         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13525         prototypes.
13526
13527 2009-06-24  Bruno Haible  <bruno@clisp.org>
13528
13529         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13530         HAVE_LIB${NAME} macro.
13531         Reported by Sam Steingold <sds@gnu.org>.
13532
13533 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13534
13535         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13536         needed.
13537
13538 2009-06-21  Bruno Haible  <bruno@clisp.org>
13539
13540         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13541         work.
13542         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13543         together with LIB${NAME}, LTLIB${NAME}.
13544         Reported by Sam Steingold <sds@gnu.org>.
13545
13546 2009-06-20  Jim Meyering  <meyering@redhat.com>
13547
13548         tests: make sc_require_test_exit_idiom more generic
13549         * top/maint.mk (Exit_witness_file): New overridable variable.
13550         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13551         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13552
13553 2009-06-19  Jim Meyering  <meyering@redhat.com>
13554
13555         hash: reverse order of src/dst parameters in an internal interface
13556         * lib/hash.c (transfer_entries): Reverse order of parameters to
13557         put DST before SRC.  Adjust callers.
13558
13559         tests: test-hash: avoid wholesale duplication
13560         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13561         Instead, use a loop and add a single conditional.
13562
13563         tests: test-hash: allow seed selection via a command line argument
13564         * tests/test-hash.c (get_seed): New function.
13565         (main): Use it.
13566
13567 2009-06-19  Eric Blake  <ebb9@byu.net>
13568
13569         hash: avoid memory leak on allocation failure
13570         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13571         failure.  Factor repeated algorithm...
13572         (transfer_entries): ...into new helper routine.
13573         (hash_delete): React to hash_rehash return value.
13574
13575         hash: reduce memory pressure in hash_rehash no-op case
13576         * lib/hash.c (next_prime): Avoid overflow.
13577         (hash_initialize): Factor bucket size computation...
13578         (compute_bucket_size): ...into new helper function.
13579         (hash_rehash): Use new function and open coding to reduce memory
13580         pressure, and avoid a memory leak in USE_OBSTACK code.
13581         Reported by Jim Meyering.
13582
13583 2009-06-18  Eric Blake  <ebb9@byu.net>
13584
13585         hash: make rotation more obvious
13586         * modules/hash (Depends-on): Add bitrotate and stdint.
13587         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13588         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13589         (SIZE_MAX): Rely on headers for definition.
13590         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13591         (raw_hasher): Use rotr_sz.
13592         Suggested by Jim Meyering.
13593
13594         hash: fix memory leak in last patch
13595         * lib/hash.c (hash_rehash): Avoid memory leak.
13596
13597         hash: avoid no-op rehashing
13598         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13599
13600         hash: provide default callback functions
13601         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13602         (hash_initialize): Use them as defaults.
13603         * tests/test-hash.c (main): Test this.
13604
13605         hash: minor optimization
13606         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13607         when possible.
13608         (hash_initialize): Document this promise.
13609         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13610         * tests/test-hash.c (hash_compare_strings): Test this.
13611
13612 2009-06-18  Bruno Haible  <bruno@clisp.org>
13613
13614         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13615         going to be replaced anyway.
13616
13617 2009-06-18  Bruno Haible  <bruno@clisp.org>
13618
13619         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13620         in one place.
13621         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13622         be replaced anyway.
13623
13624 2009-06-18  Eric Blake  <ebb9@byu.net>
13625
13626         hash: check for resize before insertion
13627         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13628         threshold before insertion, so that a pathological hash_rehash
13629         that fills every bucket can still trigger another rehash.
13630
13631 2009-06-18  Jim Meyering  <meyering@redhat.com>
13632
13633         hash-tests: add a loop around the small tests
13634         * tests/test-hash.c (main): Repeat small tests with selected
13635         small initial table sizes.
13636
13637 2009-06-17  Eric Blake  <ebb9@byu.net>
13638
13639         hash: minor cleanups
13640         * lib/hash.h (hash_entry): Make opaque, by moving...
13641         * lib/hash.c (hash_entry): ...here.
13642         (hash_insert): Clarify restrictions on what can be inserted.
13643         (hash_get_next): Clarify when it is safe to remove an element
13644         during traversal.
13645         (check_tuning): Skip verification when tuning is known safe.
13646         (hash_initialize): Clarify restrictions on tuning.
13647
13648 2009-06-17  Jim Meyering  <jim@meyering.net>
13649         and Eric Blake  <ebb9@byu.net>
13650
13651         hash-tests: new module
13652         * modules/hash-tests: New file.
13653         * tests/test-hash.c: New file.
13654
13655 2009-06-17  Eric Blake  <ebb9@byu.net>
13656
13657         strstr-simple: document new module
13658         * MODULES.html.sh: Document new module.
13659
13660         strstr, strcasestr: replace on platforms with broken memchr
13661         * modules/strstr: Split into...
13662         * modules/strstr-simple: ...new module that does not care about
13663         performance, but does care about glibc bug.
13664         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13665         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13666         if platform memchr is broken, per Debian bug 521737.
13667         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13668         memchr.
13669         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13670         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13671         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13672         * modules/mountlist (Depends-on): Add strstr-simple.
13673         * modules/gen-uni-tables (Depends-on): Likewise.
13674         * modules/argz (Depends-on): Add strstr.
13675
13676 2009-06-17  Bruno Haible  <bruno@clisp.org>
13677
13678         * modules/posix_spawn-internal (Depends-on): Add errno.
13679
13680 2009-06-17  Bruno Haible  <bruno@clisp.org>
13681
13682         Define missing ESTALE on Interix 3.5.
13683         * lib/errno.in.h (ESTALE): Assign a value if missing.
13684         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13685         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13686         missing.
13687         * doc/posix-headers/errno.texi: Mention the Interix bug.
13688         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13689
13690 2009-06-15  Eric Blake  <ebb9@byu.net>
13691
13692         memchr, memchr2: add valgrind exception
13693         * lib/memchr.valgrind: New file.
13694         * lib/memchr2.valgrind: New file.
13695         * modules/memchr (Files): Distribute valgrind file.
13696         * modules/memchr2 (Files): Likewise.
13697
13698         docs: memchr is no longer obsolete
13699         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13700         * lib/string.in.h (memchr): Simplify logic.
13701
13702 2009-06-14  Jim Meyering  <meyering@redhat.com>
13703
13704         link-follow: fix the "checking..." message to not mention trailing slash
13705         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13706         never considered trailing slashes.
13707
13708 2009-06-14  Bruno Haible  <bruno@clisp.org>
13709
13710         * m4/memchr.m4: Mention also the bug on IA-64.
13711         * doc/posix-functions/memchr.texi: Likewise.
13712
13713 2009-06-12  Eric Blake  <ebb9@byu.net>
13714
13715         memchr: detect broken x86_64 and alpha implementations
13716         * modules/memchr-tests (Depends-on): Move mmap detection...
13717         * modules/memchr (Depends-on): ...here.
13718         (configure.ac): Set indicator.
13719         * lib/string.in.h (memchr): Declare replacement.
13720         * modules/string (Makefile.am): Trigger replacement.
13721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13722         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13723         bugs.
13724         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13725         * modules/getpagesize (License): Relax license.
13726
13727 2009-06-11  Bruno Haible  <bruno@clisp.org>
13728
13729         * lib/idpriv.h: Add more references.
13730
13731 2009-06-08  Bruno Haible  <bruno@clisp.org>
13732
13733         Tests for module 'idpriv-droptemp'.
13734         * modules/idpriv-droptemp-tests: New file.
13735         * tests/test-idpriv-droptemp.sh: New file.
13736         * tests/test-idpriv-droptemp.su.sh: New file.
13737         * tests/test-idpriv-droptemp.c: New file.
13738
13739         New module 'idpriv-droptemp'.
13740         * lib/idpriv-droptemp.c: New file.
13741         * modules/idpriv-droptemp: New file.
13742
13743 2009-06-08  Bruno Haible  <bruno@clisp.org>
13744
13745         Tests for module 'idpriv-drop'.
13746         * modules/idpriv-drop-tests: New file.
13747         * tests/test-idpriv-drop.sh: New file.
13748         * tests/test-idpriv-drop.su.sh: New file.
13749         * tests/test-idpriv-drop.c: New file.
13750
13751         New module 'idpriv-drop'.
13752         * lib/idpriv.h: New file.
13753         * lib-idpriv-drop.c: New file.
13754         * m4/idpriv.m4: New file.
13755         * modules/idpriv-drop: New file.
13756
13757 2009-06-08  Bruno Haible  <bruno@clisp.org>
13758
13759         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13760         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13761         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13762         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13763         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13764         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13765         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13766
13767 2009-06-08  Eric Blake  <ebb9@byu.net>
13768
13769         test-strstr: use memory fence, when possible
13770         * tests/test-strstr.c (main): Use memory fence, in order to be
13771         more likely to trigger Debian bug 521737.
13772         * modules/strstr-tests (Files): Pull in additional files.
13773
13774         memchr: no longer obsolete, for wider field testing
13775         * modules/memchr (Status, Notice): Delete, this module is no
13776         longer obsolete.
13777         * modules/vasnprintf (Depends-on): Add memchr.
13778
13779 2009-06-07  Jim Meyering  <meyering@redhat.com>
13780
13781         hash: declare some functions with the warn_unused_result attribute
13782         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13783
13784 2009-06-07  Bruno Haible  <bruno@clisp.org>
13785
13786         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13787         Reported by Eric Blake.
13788
13789 2009-06-06  Eric Blake  <ebb9@byu.net>
13790
13791         test-alignof: fix typo with long double
13792         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13793         compiler error.
13794
13795 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13796
13797         Escape non-texinfo { and }s.
13798         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13799         markup error.
13800
13801 2009-06-04  Jim Meyering  <meyering@redhat.com>
13802
13803         gitlog-to-changelog: don't infloop on an empty commit log
13804         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13805         Reported by Boris Petersen <transacid@centerim.org>.
13806
13807 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13808
13809         version-etc: extend for packagers
13810         Add three new configure options, intended for packagers:
13811           --with-packager="packager name"
13812           --with-packager-version="packager-specific version"
13813           --with-packager-bug-reports="packager bug reporting"
13814         An example with coreutils:
13815           $ ./configure \
13816             --with-packager=Gentoo \
13817             --with-packager-bug-report=http://bugs.gentoo.org/ \
13818             --with-packager-version="patchset 1.6"
13819           $ ./src/ls --version | head -n2
13820           ls (GNU coreutils) 7.1-dirty
13821           Packaged by Gentoo (patchset 1.6)
13822         Note that the bug reporting info via --help doesn't show up because
13823         coreutils uses its own custom emit_bug_reporting_address() implementation
13824         in src/system.h.  If it didn't, it'd look like:
13825           $ ./src/ls --help | tail -n4
13826           Report bugs to <bug-coreutils@gnu.org>.
13827           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13828           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13829           General help using GNU software: <http://www.gnu.org/gethelp/>.
13830         * lib/version-etc.c: Print new information, if provided.
13831         * m4/version-etc.m4: New file.
13832         * modules/version-etc (Files): Add m4/version-etc.m4.
13833         (configure.ac): Add gl_VERSION_ETC.
13834
13835 2009-05-31  Bruno Haible  <bruno@clisp.org>
13836
13837         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13838         and 'int64_t'.
13839         * modules/alignof-tests (Dependencies): Add stdint.
13840         Reported by Eric Blake.
13841
13842 2009-05-31  Bruno Haible  <bruno@clisp.org>
13843
13844         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13845         restriction due to compiler bugs.
13846         Reported by Eric Blake.
13847
13848 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13849             Bruno Haible  <bruno@clisp.org>
13850
13851         Fix test-alignof failure.
13852         * lib/alignof.h (alignof_slot): New macro.
13853         (alignof_type): New macro, with the same semantics as the previous
13854         'alignof'.
13855         (alignof): Alias to alignof_slot.
13856         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13857         check that the results are usable as constant expressions.
13858
13859 2009-05-31  Bruno Haible  <bruno@clisp.org>
13860
13861         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13862         * tests/test-memchr.c (main): Check that memchr does not read past the
13863         first occurrence of the byte.
13864         * tests/test-strstr.c (main): Update comment.
13865         Suggested by Eric Blake.
13866
13867 2009-05-30  Bruno Haible  <bruno@clisp.org>
13868
13869         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13870         detail how to use dumpbin.
13871         Reported by David Byron <dbyron@dbyron.com>.
13872
13873 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13874
13875         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13876
13877 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13878
13879         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13880
13881 2009-05-28  Bruno Haible  <bruno@clisp.org>
13882
13883         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13884         build-aux/ files.
13885
13886 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13887
13888         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13889
13890 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13891
13892         * gnulib-tool (sed_transform_main_lib_file)
13893         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13894         regexps.
13895
13896 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13897
13898         * tests/test-strstr.c: Add another self-test.
13899         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13900         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13901
13902 2009-05-23  Bruno Haible  <bruno@clisp.org>
13903
13904         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13905         change.
13906
13907 2009-05-21  Bruno Haible  <bruno@clisp.org>
13908
13909         Simplify use of mode_t varargs.
13910         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13911         uses 'mode_t' or 'int'.
13912         * lib/openat.c (openat): Likewise.
13913         * lib/open-safer.c (open_safer): Likewise.
13914         * m4/mode_t.m4: New file.
13915         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13916         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13917         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13918         * modules/open (Files): Add m4/mode_t.m4.
13919         * modules/openat (Files): Likewise.
13920         * modules/fcntl-safer (Files): Likewise.
13921         Suggested by Eric Blake.
13922
13923 2009-05-21  Pádraig Brady  <P@draigbrady.com>
13924
13925         * doc/glibc-functions/fallocate.texi: New file.
13926         * doc/gnulib.texi: Include it.
13927
13928 2009-05-21  Eric Blake  <ebb9@byu.net>
13929             Bruno Haible  <bruno@clisp.org>
13930
13931         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13932         invocations.
13933         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13934
13935 2009-05-21  Eric Blake  <ebb9@byu.net>
13936             Bruno Haible  <bruno@clisp.org>
13937
13938         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13939         include_next. Fix of 2008-11-20 commit.
13940         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13941         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13942         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13943         NEXT_MATH_H.
13944         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13945         instead of NEXT_MATH_H.
13946
13947 2009-05-21  Bruno Haible  <bruno@clisp.org>
13948
13949         Avoid redefinition warnings for SIZE_MAX.
13950         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13951         Reported by Simon Josefsson.
13952
13953 2009-05-21  Bruno Haible  <bruno@clisp.org>
13954
13955         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13956         AC_CACHE_VAL.
13957
13958 2009-05-20  Bruno Haible  <bruno@clisp.org>
13959
13960         Make zeroptr.h work on mingw.
13961         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13962         mprotect.
13963         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13964         * modules/memchr2-tests (configure.ac): Likewise.
13965         * modules/memcmp-tests (configure.ac): Likewise.
13966         * modules/memmem-tests (configure.ac): Likewise.
13967         * modules/memrchr-tests (configure.ac): Likewise.
13968         Reported by Simon Josefsson.
13969
13970 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13971
13972         * tests/test-glob.c: Include string.h for strcmp prototype.
13973
13974 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13975
13976         * modules/getdelim (Depends-on): Add explicit stdint, although it
13977         was implicitly already pulled in via realloc-posix.
13978         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13979
13980 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13981
13982         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
13983         G. Christensen" <tgc@jupiterrise.com>.
13984         * m4/sys_socket_h.m4: Check for sa_family_t.
13985         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13986         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13987         * tests/test-sys_socket.c: Check that sa_family_t works.
13988
13989 2009-05-18  Eric Blake  <ebb9@byu.net>
13990
13991         maint.mk: allow gnulib_dir in VPATH build
13992         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13993
13994 2009-05-15  Jim Meyering  <meyering@redhat.com>
13995
13996         maint.mk: Give gnulib_dir a default definition.
13997         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13998         Thus, most packages no longer need to specify this variable in cfg.mk
13999
14000 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
14001
14002         rename.m4: fix typos that would make non-mingw cross-configure fail
14003         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
14004
14005 2009-05-13  Eric Blake  <ebb9@byu.net>
14006
14007         mmap-anon: avoid out-of-order autoconf expansion
14008         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
14009         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
14010         * modules/memchr-tests (Depends-on): Add extensions.
14011         * modules/memchr2-tests (Depends-on): Add extensions.
14012         * modules/memcmp-tests (Depends-on): Add extensions.
14013         * modules/memmem-tests (Depends-on): Add extensions.
14014         * modules/memrchr-tests (Depends-on): Add extensions.
14015
14016 2009-05-13  Bruno Haible  <bruno@clisp.org>
14017
14018         Make some tests ISO C 99 compliant.
14019         * tests/zerosize-ptr.h: New file.
14020         * tests/test-memchr.c: Include zerosize-ptr.h.
14021         (main): Use a zero-size object pointer instead of NULL.
14022         * tests/test-memchr2.c: Include zerosize-ptr.h.
14023         (main): Use a zero-size object pointer instead of NULL.
14024         * tests/test-memcmp.c: Include zerosize-ptr.h.
14025         (main): Use a zero-size object pointer instead of NULL.
14026         * tests/test-memmem.c: Include zerosize-ptr.h.
14027         (main): Use a zero-size object pointer instead of NULL.
14028         * tests/test-memrchr.c: Include zerosize-ptr.h.
14029         (main): Use a zero-size object pointer instead of NULL.
14030         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14031         m4/mmap-anon.m4.
14032         (Depends-on): Add getpagesize.
14033         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14034         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14035         m4/mmap-anon.m4.
14036         (Depends-on): Add getpagesize.
14037         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14038         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14039         m4/mmap-anon.m4.
14040         (Depends-on): Add getpagesize.
14041         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14042         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14043         m4/mmap-anon.m4.
14044         (Depends-on): Add getpagesize.
14045         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14046         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14047         m4/mmap-anon.m4.
14048         (Depends-on): Add getpagesize.
14049         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14050
14051 2009-05-12  Bruno Haible  <bruno@clisp.org>
14052
14053         Tests for module 'alignof'.
14054         * modules/alignof-tests: New file.
14055         * tests/test-alignof.c: New file.
14056
14057 2009-05-12  Bruno Haible  <bruno@clisp.org>
14058
14059         Fix alignof macro.
14060         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14061         vendor compilers that are always correct.
14062
14063 2009-05-12  Bruno Haible  <bruno@clisp.org>
14064
14065         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14066         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14067         not whether its fully works.
14068
14069 2009-05-12  Bruno Haible  <bruno@clisp.org>
14070
14071         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14072
14073 2009-05-12  Jim Meyering  <meyering@redhat.com>
14074
14075         * top/maint.mk: Adjust backslash alignment.
14076
14077 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14078
14079         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14080
14081 2009-05-11  Eric Blake  <ebb9@byu.net>
14082
14083         argp: avoid undefined behavior
14084         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14085         macros.
14086
14087 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14088
14089         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14090         user.name to prevent git commit from complaining.
14091
14092 2009-05-10  Bruno Haible  <bruno@clisp.org>
14093
14094         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14095         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14096         it rewrites every file name only once.
14097         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14098
14099 2009-05-08  Bruno Haible  <bruno@clisp.org>
14100
14101         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14102         instead of 'max'.
14103
14104 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14105
14106         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14107         sockaddr_storage test.
14108
14109 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14110
14111         * modules/sys_socket (Makefile.am): Substitute
14112         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14113         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14114         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14115         * tests/test-sys_socket.c: Check sockaddr_storage.
14116
14117 2009-05-08  Bruno Haible  <bruno@clisp.org>
14118
14119         New module 'alignof'.
14120         * lib/alignof.h: New file.
14121         * modules/alignof: New file.
14122
14123 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14124             Bruno Haible  <bruno@clisp.org>
14125
14126         Fix test-file-has-acl on FreeBSD.
14127         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14128         mask is implicitly added.
14129         * tests/test-file-has-acl.c: Include <signal.h>.
14130         (main): Terminate the test after 5 seconds.
14131         * modules/acl-tests (configure.ac): Check for alarm function.
14132
14133 2009-05-04  Bruno Haible  <bruno@clisp.org>
14134
14135         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14136         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14137         * modules/errno (configure.ac): Drop AC_REQUIRE.
14138         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14139         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14140
14141 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14142
14143         * modules/glob-tests: New module.
14144         * tests/test-glob.c: Add.
14145
14146 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14147
14148         * modules/fnmatch-tests: New module.
14149         * tests/test-fnmatch.c: Add.
14150
14151 2009-05-04  Eric Blake  <ebb9@byu.net>
14152
14153         maint: make the new no-submodule-changes rule VPATH-safe
14154         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14155
14156 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14157             Bruno Haible  <bruno@clisp.org>
14158
14159         acl: Fix infinite loop on FreeBSD.
14160         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14161         of return value from acl_get_entry.
14162         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14163         Likewise.
14164
14165 2009-05-03  Bruno Haible  <bruno@clisp.org>
14166
14167         * lib/acl-internal.h (acl_entries): Clarify return value.
14168         * lib/acl_entries.c (acl_entries): Likewise.
14169
14170 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14171
14172         Bug fix in acl module.
14173         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14174
14175 2009-05-03  Bruno Haible  <bruno@clisp.org>
14176
14177         Create gperf-generated file in the source dir, not in the build dir.
14178         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14179         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14180         * modules/unicase/locale-language (unicase/locale-languages.h):
14181         Likewise.
14182         * modules/unicase/special-casing (unicase/special-casing-table.h):
14183         Likewise.
14184         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14185         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14186         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14187         Reported by Ralf Wildenhues.
14188
14189 2009-05-03  Bruno Haible  <bruno@clisp.org>
14190
14191         * modules/fnmatch (Description, configure.ac): Taken from
14192         fnmatch-posix.
14193         * modules/fnmatch-posix: Turn into a symbolic reference to the
14194         'fnmatch' module, and deprecate.
14195         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14196
14197 2009-05-03  Bruno Haible  <bruno@clisp.org>
14198
14199         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14200         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14201         Reported by Ralf Wildenhues.
14202
14203 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14204
14205         * m4/fnmatch.m4: Fix fnmatch re-define.
14206
14207 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14208
14209         priv-set: new module and tests; adapt write-any-file
14210         * lib/priv-set.c: New file.
14211         * lib/priv-set.h: New file.
14212         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14213         * lib/write-any-file.c: Simplify by using priv-set module.
14214         * m4/priv-set.m4: New file.
14215         * modules/priv-set: New file.
14216         * modules/unlinkdir: Add dependency on priv-set module.
14217         * modules/write-any-file: Likewise.
14218
14219         Tests for module 'priv-set'.
14220         * modules/priv-set-tests: New file.
14221         * tests/test-priv-set.c: New file.
14222
14223 2009-05-03  Jim Meyering  <meyering@redhat.com>
14224             Bruno Haible  <bruno@clisp.org>
14225
14226         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14227         use the converted UTF-8 variant of the name instead.
14228
14229 2009-05-03  Jim Meyering  <meyering@redhat.com>
14230
14231         tests: tighten some getdate tests
14232         * tests/test-getdate.c (main): Tighten tests: require equality,
14233         not just greater than.  Set TZ envvar to UTC0.
14234
14235 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14236
14237         getdate: correctly interpret "next monday" when run on a Monday
14238         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14239         that e.g., "next tues" (when run on a tuesday) results in a date
14240         that is one week in the future, and not today's date.
14241         I.e., add a week when the wday is the same as the current one.
14242         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14243         and earlier by Martin Bernreuther and Jan Minář.
14244         * tests/test-getdate.c (main): Check that "next DAY" is always in
14245         the future and that "last DAY" is always in the past.
14246
14247 2009-05-02  Jim Meyering  <meyering@redhat.com>
14248
14249         build: ensure that a release build fails when a submodule is unclean
14250         * top/maint.mk (no-submodule-changes): New rule.
14251         (alpha beta major): Depend on it.
14252
14253 2009-05-02  Bruno Haible  <bruno@clisp.org>
14254
14255         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14256         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14257         shell variable gl_fnmatch_required to detect which variant is
14258         requested.
14259         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14260         gl_FUNC_FNMATCH_POSIX.
14261         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14262         exclude fnmatch-posix.
14263
14264 2009-05-02  Bruno Haible  <bruno@clisp.org>
14265
14266         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14267         * modules/mbsrtowcs (License): Change to LGPLv2+.
14268         * modules/strnlen1 (License): Likewise.
14269         Reported by Simon Josefsson.
14270
14271 2009-05-02  Bruno Haible  <bruno@clisp.org>
14272
14273         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14274         "cross".
14275         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14276         gnulib-tool was called with option --source-base=lib.
14277
14278 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14279
14280         Use automake *-local hooks without commands, for extensibility.
14281         * modules/localcharset (Makefile.am): Rename install-exec-local
14282         rule to install-exec-localcharset, and make it a prerequisite of
14283         install-exec-local.  Likewise, rename the uninstall-local rule to
14284         uninstall-localcharset, and make it a prerequisite of the former.
14285
14286 2009-05-01  Bruno Haible  <bruno@clisp.org>
14287
14288         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14289         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14290         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14292         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14293         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14294         m4/locale-zh.m4, m4/codeset.m4.
14295
14296         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14297         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14298         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14299         m4/locale-zh.m4.
14300
14301         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14302         REPLACE_WCRTOMB if mbstate_t must be replaced.
14303         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14304         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14305
14306 2009-05-01  Bruno Haible  <bruno@clisp.org>
14307
14308         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14309         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14310         dngettext, dcngettext, textdomain, bindtextdomain,
14311         bind_textdomain_codeset): Undefine before redefining.
14312
14313 2009-04-30  Bruno Haible  <bruno@clisp.org>
14314
14315         Fix bug introduced on 2009-04-25.
14316         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14317         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14318         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14319         is defined.
14320         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14321         is defined.
14322         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14323         is defined.
14324         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14325
14326 2009-04-28  Bruno Haible  <bruno@clisp.org>
14327
14328         Comment tweaks.
14329         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14330         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14331         * lib/unicase.h (u*_casexfrm): Likewise.
14332         Reported by Paolo Bonzini.
14333
14334 2009-04-28  Bruno Haible  <bruno@clisp.org>
14335
14336         Fix a compilation error.
14337         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14338         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14339         Reported by Jim Meyering.
14340
14341 2009-04-27  Bruno Haible  <bruno@clisp.org>
14342
14343         New module 'libunistring'.
14344         * modules/libunistring: New file.
14345         * m4/libunistring.m4: New file.
14346         * MODULES.html.sh (Unicode string functions): Add it.
14347
14348 2009-04-27  Eric Blake  <ebb9@byu.net>
14349
14350         maint.mk: allow package-specific header to provide <config.h>
14351         * top/maint.mk (sc_require_config_h): New variable.
14352         (sc_require_config_h, sc_require_config_h_first): Use it.
14353
14354 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14355
14356         * top/maint.mk (sc_avoid_if_before_free): Except
14357         useless-if-before-free script.
14358
14359 2009-04-27  Eric Blake  <ebb9@byu.net>
14360
14361         maintainer-makefile: depend on all required helper scripts
14362         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14363         useless-if-before-free.
14364         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14365         version, rather than assuming gnulib checkout is available.
14366         Reported by Simen Josefsson.
14367
14368 2009-04-26  Bruno Haible  <bruno@clisp.org>
14369
14370         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14371         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14372         "../" or "..".
14373
14374 2009-04-26  Bruno Haible  <bruno@clisp.org>
14375
14376         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14377         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14378         AC_LIB_HAVE_LINKFLAGS.
14379
14380 2009-04-26  Bruno Haible  <bruno@clisp.org>
14381
14382         Simplify calling convention of u*_conv_from_encoding.
14383         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14384         u32_conv_from_encoding): Expect a resultbuf argument and return the
14385         result directly as a pointer.
14386         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14387         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14388         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14389         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14390         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14391         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14392         Update.
14393         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14394         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14395         * lib/vasnprintf.c (VASNPRINTF): Update.
14396         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14397         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14398         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14399         * NEWS: Mention the change.
14400
14401 2009-04-26  Bruno Haible  <bruno@clisp.org>
14402
14403         Simplify calling convention of u*_conv_to_encoding.
14404         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14405         u32_conv_to_encoding): Expect a resultbuf argument and return the
14406         result directly as a pointer.
14407         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14408         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14409         freeing scaled_offsets if mem_iconveha failed.
14410         * lib/unicase/u-casexfrm.h (FUNC): Update.
14411         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14412         * lib/vasnprintf.c (VASNPRINTF): Update.
14413         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14414         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14415         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14416         * NEWS: Mention the change.
14417
14418 2009-04-26  Bruno Haible  <bruno@clisp.org>
14419
14420         Avoid test failures on AIX and OSF/1.
14421         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14422         malloc(0).
14423         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14424         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14425         Likewise.
14426         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14427         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14428         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14429         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14430         * doc/posix-functions/malloc.texi: Document the portability problem
14431         related to malloc(0).
14432
14433 2009-04-26  Bruno Haible  <bruno@clisp.org>
14434
14435         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14436         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14437         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14438
14439 2009-04-25  Bruno Haible  <bruno@clisp.org>
14440
14441         Avoid link error when creating a namespace clean library.
14442         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14443         as macro with arguments if already defined as an alias.
14444         * lib/signbitf.c (gl_signbitf): Don't undefine.
14445         * lib/signbitd.c (gl_signbitd): Don't undefine.
14446         * lib/signbitl.c (gl_signbitl): Don't undefine.
14447
14448 2009-04-25  Jim Meyering  <meyering@redhat.com>
14449
14450         vc-list-files: fix another quoting bug
14451         * build-aux/vc-list-files: Avoid sed backslash expansion
14452         of pathological directory names.
14453
14454 2009-04-25  Eric Blake  <ebb9@byu.net>
14455
14456         vc-list-files: fix shell quoting error
14457         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14458         timestamp.
14459
14460 2009-04-25  Jim Meyering  <meyering@redhat.com>
14461
14462         vc-list-files: restore lost functionality with subdir argument
14463         * build-aux/vc-list-files: When given a non-"." sub-directory
14464         argument, substitute the $dir/ prefix back onto each resulting name.
14465         Otherwise, coreutils' root_tests check would fail.
14466
14467 2009-04-24  Eric Blake  <ebb9@byu.net>
14468
14469         vc-list-files: ignore git symlinks
14470         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14471         than ls-files, to ignore git symlinks.
14472
14473         maint.mk: import improvements from m4
14474         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14475         (move_if_change): Delete unused macro.
14476         (news-date-check, vc-diff-check): Support VPATH builds.
14477         (announcement): Likewise.  Split --bootstrap-tools list...
14478         (boostrap-tools): ...into separate list, which can be overridden
14479         in cfg.mk.
14480         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14481         requiring dependency on useless-if-before-free module.
14482         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14483         Support VPATH builds.
14484
14485 2009-04-24  Jim Meyering  <meyering@redhat.com>
14486
14487         maint.mk: remove coreutils-specific rules and variables
14488         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14489         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14490         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14491
14492         maint.mk: remove obsolete rule
14493         * top/maint.mk (rel-check): Remove rule.
14494         (WGET, WGETFLAGS): Remove now-unused variables.
14495
14496 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14497
14498         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14499         consistency.
14500
14501         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14502         '$(PATH_SEPARATOR)' instead of ':'.
14503
14504 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14505
14506         * lib/getopt1.c (main): Use 'const' for static array.
14507
14508 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14509
14510         * top/maint.mk: Sync with coreutils.
14511         * NEWS: Explain incompatibilities.
14512
14513 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14514             Bruno Haible  <bruno@clisp.org>
14515
14516         Fix cross-compilation results.
14517         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14518         statement, as third argument of AC_TRY_RUN.
14519         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14520         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14521         Likewise.
14522         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14523         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14524         Likewise.
14525         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14526         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14527         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14528
14529 2009-04-20  Bruno Haible  <bruno@clisp.org>
14530
14531         Avoid test failure on mingw.
14532         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14533
14534 2009-04-20  Bruno Haible  <bruno@clisp.org>
14535
14536         Avoid compilation error on mingw.
14537         * modules/localename-tests (Depends-on): Add locale.
14538
14539 2009-04-19  Bruno Haible  <bruno@clisp.org>
14540
14541         Support for building a shared library on Windows platforms.
14542         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14543         (main): Test the presence of UNINORM_NFC here.
14544         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14545         (main): Test the presence of UNINORM_NFD here.
14546         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14547         (main): Test the presence of UNINORM_NFKC here.
14548         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14549         (main): Test the presence of UNINORM_NFKD here.
14550
14551 2009-04-19  Bruno Haible  <bruno@clisp.org>
14552
14553         Avoid a compiler warning.
14554         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14555         Change type of variable 'sequence'.
14556
14557 2009-04-19  Bruno Haible  <bruno@clisp.org>
14558
14559         * modules/configmake (Makefile.am): When the contents of configmake.h
14560         does not change, arrange to preserve its modification time.
14561
14562 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14563
14564         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14565         gettext domain.
14566
14567 2009-04-16  Jim Meyering  <meyering@redhat.com>
14568
14569         useless-if-before-free: improve conversion code
14570         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14571         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14572
14573 2009-04-14  Bruno Haible  <bruno@clisp.org>
14574
14575         * modules/fcntl (Depends-on): Add extensions.
14576         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14577
14578 2009-04-12  Ben Pfaff  <blp@gnu.org>
14579
14580         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14581         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14582
14583 2009-03-20  Ben Pfaff  <blp@gnu.org>
14584
14585         Make rename replace existing destinations on Windows.
14586         * m4/rename.m4: Add test for Mingw.
14587         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14588         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14589         * doc/posix-functions/rename.texi: Document.
14590
14591 2009-04-10  Bruno Haible  <bruno@clisp.org>
14592
14593         New include file "iconveh.h".
14594         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14595         * lib/striconveh.h: Include it.
14596         (enum iconv_ilseq_handler): Remove definition.
14597         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14598         striconveh.h.
14599         * lib/striconveha.c: Include striconveh.h.
14600         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14601         * modules/striconveh (Files): Add lib/iconveh.h.
14602         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14603         lib/striconveh.h.
14604
14605 2009-04-10  Bruno Haible  <bruno@clisp.org>
14606
14607         * lib/uniconv.h: Update comment.
14608
14609 2009-04-10  Bruno Haible  <bruno@clisp.org>
14610
14611         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14612         always.
14613         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14614         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14615         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14616         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14617         "unistring-notinline.h", so that the function gets defined always.
14618         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14619         * lib/unistr/u8-uctomb.c: Likewise.
14620         * lib/unistr/u16-mbtouc.c: Likewise.
14621         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14622         * lib/unistr/u16-uctomb.c: Likewise.
14623         * lib/unistr/u32-mbtouc.c: Likewise.
14624         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14625         * lib/unistr/u32-uctomb.c: Likewise.
14626
14627 2009-04-10  Bruno Haible  <bruno@clisp.org>
14628
14629         Mark 'utime' obsolete.
14630         * modules/utime (Status, Notice): New sections.
14631         Suggested by Jim Meyering.
14632
14633         Fix cross-compile guess for utime test.
14634         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14635         autoconf.
14636         * doc/posix-functions/utime.texi: Give more precisions.
14637         Reported by Jan <ipif@ymail.com>.
14638
14639 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14640
14641         filevercmp: correct today's change
14642         * lib/filevercmp.c: Also handle coreutils' test inputs.
14643         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14644
14645         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14646         for reporting it.
14647         * lib/filevercmp.c: Special handle for "", "." and "..".
14648         * tests/test-filevercmp.c: Enlarge the set suite.
14649
14650 2009-04-07  Jim Meyering  <meyering@redhat.com>
14651
14652         useless-if-before-free: show how to remove braced useless free, too
14653         * build-aux/useless-if-before-free: still only in a comment, though.
14654
14655 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14656
14657         maint.mk: import changes to syntax-check macros from coreutils
14658         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14659         Use them in the relevant macros.
14660
14661 2009-04-06  Bruno Haible  <bruno@clisp.org>
14662
14663         Fix unportable use of bit-fields.
14664         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14665         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14666         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14667
14668 2009-04-06  Bruno Haible  <bruno@clisp.org>
14669
14670         Avoid test failures on AIX and OSF/1.
14671         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14672         that malloc(0) = NULL.
14673         * tests/unicase/test-u8-tolower.c (check): Likewise.
14674         * tests/unicase/test-u8-totitle.c (check): Likewise.
14675         * tests/unicase/test-u8-toupper.c (check): Likewise.
14676         * tests/unicase/test-u16-casefold.c (check): Likewise.
14677         * tests/unicase/test-u16-tolower.c (check): Likewise.
14678         * tests/unicase/test-u16-totitle.c (check): Likewise.
14679         * tests/unicase/test-u16-toupper.c (check): Likewise.
14680         * tests/unicase/test-u32-casefold.c (check): Likewise.
14681         * tests/unicase/test-u32-tolower.c (check): Likewise.
14682         * tests/unicase/test-u32-totitle.c (check): Likewise.
14683         * tests/unicase/test-u32-toupper.c (check): Likewise.
14684         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14685         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14686         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14687         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14688         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14689         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14690         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14691         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14692         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14693         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14694         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14695         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14696
14697 2009-04-05  Bruno Haible  <bruno@clisp.org>
14698
14699         Work around an autoconf limitation.
14700         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14701         comment line if it would be longer than 3 KB.
14702
14703 2009-04-05  Bruno Haible  <bruno@clisp.org>
14704
14705         Avoid test failure with libiconv-1.13.
14706         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14707         of the expected test results.
14708
14709 2009-04-05  Bruno Haible  <bruno@clisp.org>
14710
14711         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14712         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14713         that it should be installed.
14714
14715 2009-04-05  Bruno Haible  <bruno@clisp.org>
14716
14717         * gnulib-tool: New option --copy-file.
14718         (func_usage): Document it.
14719         (func_dest_tmpfilename): Moved out of func_import.
14720         (func_add_file, func_update_file): New functions, extracted from
14721         func_import.
14722         (func_import): Update.
14723
14724 2009-04-05  Karl Berry  <karl@gnu.org>
14725
14726         * README: prominently mention gnulib-tool.
14727         Rearrange sections so getting the code is near the top.
14728
14729 2009-04-05  Bruno Haible  <bruno@clisp.org>
14730
14731         * lib/unicase.h: Mention u*_cmp2.
14732         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14733         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14734         * lib/unicase/ulc-casecmp.c: Likewise.
14735         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14736         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14737         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14738         unistr/u8-cmp.
14739         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14740         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14741         unistr/u16-cmp.
14742         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14743         unistr/u32-cmp.
14744
14745         * lib/uninorm.h: Mention u*_cmp2.
14746         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14747         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14748         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14749         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14750         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14751         unistr/u8-cmp.
14752         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14753         unistr/u16-cmp.
14754         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14755         unistr/u32-cmp.
14756
14757         New module 'unistr/u32-cmp2'.
14758         * lib/unistr/u32-cmp2.c: New file.
14759         * modules/unistr/u32-cmp2: New file.
14760
14761         New module 'unistr/u16-cmp2'.
14762         * lib/unistr/u16-cmp2.c: New file.
14763         * modules/unistr/u16-cmp2: New file.
14764
14765         New module 'unistr/u8-cmp2'.
14766         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14767         * lib/unistr/u8-cmp2.c: New file.
14768         * lib/unistr/u-cmp2.h: New file.
14769         * modules/unistr/u8-cmp2: New file.
14770
14771 2009-04-05  Bruno Haible  <bruno@clisp.org>
14772
14773         * lib/unictype.h (uc_property_is_valid): New macro.
14774         * tests/unictype/test-pr_byname.c (main): Use it.
14775
14776         * lib/unistr.h: Doc fixes.
14777         * lib/uniconv.h: Doc fixes.
14778         * lib/unictype.h: Doc fixes.
14779
14780 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14781
14782         Port coreutils 7.2 to Solaris 8.
14783
14784         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14785         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14786         for Solaris 8.  This is a bit of a hack, as it means it's the
14787         caller's responsibility to add -lnsl if needed, but most likely it
14788         won't be needed since only getaddrinfo uses this and getaddrinfo
14789         isn't needed on Solaris 8.
14790
14791         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14792         problem to Solaris 8 encountered with coreutils 7.2, which
14793         resulted in a message "fnmatch.c:292: warning: passing argument 4
14794         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14795         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14796
14797 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14798
14799         * m4/ld-version-script.m4: Add FIXME comment.
14800
14801 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14802
14803         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14804         SOVERSION variable.
14805
14806 2009-04-02  Bruno Haible  <bruno@clisp.org>
14807
14808         * Makefile (info, html, dvi, pdf): Combine the rules.
14809         Suggested by Jim Meyering.
14810
14811 2009-04-01  Bruno Haible  <bruno@clisp.org>
14812
14813         * Makefile (info, html, dvi, pdf): New targets.
14814         Reported by Reuben Thomas <rrt@sc3d.org>.
14815
14816 2009-04-01  Bruno Haible  <bruno@clisp.org>
14817
14818         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14819         can be put into PATH.
14820         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14821
14822 2009-04-01  Bruno Haible  <bruno@clisp.org>
14823
14824         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14825
14826 2009-04-01  Bruno Haible  <bruno@clisp.org>
14827
14828         Rename module 'visibility'.
14829         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14830         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14831         * doc/gnulib.texi: Update.
14832         * MODULES.html.sh (Misc): Update.
14833         * NEWS: Mention the change.
14834
14835 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14836
14837         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14838         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14839         Eric Blake <ebb9@byu.net> for review.
14840         * MODULES.html.sh: Add lib-msvc-compat.
14841         * doc/gnulib.texi: Link to new section.
14842         * m4/ld-output-def.m4: New file.
14843         * doc/ld-output-def.texi: New file.
14844
14845 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14846
14847         Rename ld-version-script to lib-symbol-versions.  Suggested by
14848         Bruno Haible <bruno@clisp.org>.
14849         * modules/ld-version-script: Renamed to lib-symbol-versions.
14850         * doc/ld-version-script.texi: Fix module name.
14851         * MODULES.html.sh: Add lib-symbol-versions.
14852
14853 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14854
14855         * modules/u64-tests: New file.
14856         * tests/test-u64.c: New file.
14857
14858 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14859
14860         * MODULES.html.sh: Mention u64.
14861         * modules/u64: New module.
14862         * modules/crypto/sha512: Depend on u64 module instead of providing
14863         u64.h.
14864
14865 2009-03-27  Eric Blake  <ebb9@byu.net>
14866
14867         test-strerror: make debugging EAI_SYSTEM easier
14868         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14869         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14870         failure was EAI_SYSTEM.
14871
14872 2009-03-25  Bruno Haible  <bruno@clisp.org>
14873
14874         Fix a problem with --enable-relocatable on Solaris 7.
14875         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14876         since 2008-02-24.
14877
14878 2009-03-25  Eric Blake  <ebb9@byu.net>
14879
14880         test-sockets: avoid gcc warning
14881         * tests/test-sockets.c (main): Silence compiler warning.
14882
14883 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14884
14885         New modules nproc, pthread, contributed by Glen Lenker.
14886
14887         * MODULES.html.sh: Add pthread, nproc.
14888         * lib/nproc.c: New file.
14889         * lib/nproc.h: New file.
14890         * lib/pthread.in.h: New file.
14891         * m4/pthread.m4: New file.
14892         * modules/nproc: New file.
14893         * modules/pthread: New file.
14894
14895 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14896
14897         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14898         New variable.
14899
14900 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14901
14902         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14903         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14904         * tests/test-filevercmp.c: Add tests for backup suffixes.
14905
14906 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14907
14908         * modules/stdlib (Depends-on): Add stdint, needed when defining
14909         struct random_data on, for example, HP-UX 10.20.  Reported by
14910         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14911
14912 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14913
14914         * lib/readline.c (readline): Call fflush on stdout after printing
14915         prompt.
14916
14917 2009-03-20  Bruno Haible  <bruno@clisp.org>
14918
14919         Remove dependency from 'close' module to -lws2_32 on native Windows.
14920         * lib/close-hook.h: New file.
14921         * lib/close-hook.c: New file.
14922         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14923         w32sock.h.
14924         (_gl_close_fd_maybe_socket): Remove function.
14925         (rpl_close): Invoke execute_all_close_hooks instead of
14926         _gl_close_fd_maybe_socket.
14927         * lib/sockets.c: Include close-hook.h, w32sock.h.
14928         (close_fd_maybe_socket): New function, essentially from lib/close.c.
14929         (close_sockets_hook): New variable.
14930         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14931         (gl_sockets_cleanup): Unregister it.
14932         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14933         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14934         * modules/close-hook: New file.
14935         * modules/close (Files): Remove lib/w32sock.h.
14936         (Depends-on): Add close-hook.
14937         (Link): Remove section.
14938         * modules/sockets (Files): Add lib/w32sock.h.
14939         (Depends-on): Add close-hook.
14940         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14941         invocation.
14942         * NEWS: Mention that LIB_CLOSE is gone.
14943
14944 2009-03-23  Eric Blake  <ebb9@byu.net>
14945
14946         signal-tests: test previous patch
14947         * tests/test-signal.c: New file.
14948         * modules/signal-tests: Likewise.
14949
14950         signal.h: always support 'volatile sig_atomic_t'
14951         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14952         (gl_SIGNAL_H_DEFAULTS): Add a default.
14953         * modules/signal (Makefile.am): Substitute if needed.
14954         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14955         users can blindly add volatile.
14956         * doc/posix-headers/signal.texi (signal.h): Document it.
14957         Reported by Matthew Woehlke.
14958
14959 2009-03-23  Jim Meyering  <meyering@redhat.com>
14960
14961         pathmax: PATH_MAX: use pathconf only when available
14962         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14963         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14964         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14965         This avoids a link failure in a PSP cross-compilation environment
14966         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14967
14968         * lib/vasnprintf.c (divide): Fix typo in comment.
14969
14970 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14971
14972         * gnulib-tool (func_filter_filelist): Fix comment.
14973
14974 2009-03-20  Bruno Haible  <bruno@clisp.org>
14975
14976         Make sockets.h self-contained.
14977         * lib/sockets.c: Include sockets.h first.
14978         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14979
14980 2009-03-19  Eric Blake  <ebb9@byu.net>
14981
14982         doc: mention more functions added in cygwin 1.7.0
14983         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14984         addition.
14985         * doc/posix-functions/log2f.texi: Likewise.
14986
14987 2009-03-19  Jim Meyering  <meyering@redhat.com>
14988
14989         fsusage: avoid syntax error due to statement-before-declaration
14990         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14991         after all declarations.  Reported by Matthew Woehlke in
14992         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14993
14994 2009-03-18  Eric Blake  <ebb9@byu.net>
14995
14996         build-aux/compile: sync from automake
14997         * build-aux/compile: New file, from automake.
14998         * config/srclist.txt: Mention build-aux/compile.
14999
15000 2009-03-17  Bruno Haible  <bruno@clisp.org>
15001
15002         * lib/git-merge-changelog.c: Fix typo in comment.
15003         Reported by Reuben Thomas <rrt@sc3d.org>.
15004
15005 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
15006
15007         * m4/regex.m4: update and improve help for
15008         --without-included-regex.
15009
15010 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15011
15012         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15013         failure on missing include files.
15014
15015 2009-03-17  Eric Blake  <ebb9@byu.net>
15016
15017         doc: mention more functions added in cygwin 1.7.0
15018         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15019         addition.
15020         * doc/posix-functions/fwscanf.texi: Likewise.
15021         * doc/posix-functions/swprintf.texi: Likewise.
15022         * doc/posix-functions/swscanf.texi: Likewise.
15023         * doc/posix-functions/vfwprintf.texi: Likewise.
15024         * doc/posix-functions/vfwscanf.texi: Likewise.
15025         * doc/posix-functions/vswprintf.texi: Likewise.
15026         * doc/posix-functions/vswscanf.texi: Likewise.
15027         * doc/posix-functions/vwprintf.texi: Likewise.
15028         * doc/posix-functions/vwscanf.texi: Likewise.
15029         * doc/posix-functions/wcscasecmp.texi: Likewise.
15030         * doc/posix-functions/wcsdup.texi: Likewise.
15031         * doc/posix-functions/wcsftime.texi: Likewise.
15032         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15033         * doc/posix-functions/wprintf.texi: Likewise.
15034         * doc/posix-functions/wscanf.texi: Likewise.
15035         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15036
15037 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15038
15039         maint.mk: really add $(AM_MAKEFLAGS)
15040         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15041         was inadvertently omitted in the last commit.
15042         Spotted by Bruno Haible.
15043
15044         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15045         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15046         $(AM_MAKEFLAGS)' rather than plain `make'.
15047
15048         gnulib-tool: execute $MAKE not make
15049         * gnulib-tool: Default $MAKE to 'make'.
15050         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15051         than make.  Initialize $MAKE in the do-autobuild script.
15052
15053         gnulib-tool: use $MAKE not make in generated files
15054         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15055         make, in generated files.  Initialize $MAKE in the do-autobuild
15056         script.
15057
15058         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15059
15060         GNUmakefile: disable parallelism only for multiple, recursive targets
15061         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15062         additions in the Makefile.
15063         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15064         by Automake.
15065         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15066         are listed on the command line and at least one of them is
15067         listed in $(ALL_RECURSIVE_TARGETS).
15068
15069 2009-03-14  Bruno Haible  <bruno@clisp.org>
15070
15071         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15072         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15073         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15074         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15075         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15076         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15077         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15078         unistr/u8-uctomb.
15079         * modules/unistr/u8-strchr (Depends-on): Likewise.
15080         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15081         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15082         unistr/u16-uctomb.
15083         * modules/unistr/u16-strchr (Depends-on): Likewise.
15084         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15085
15086 2009-03-12  Bruno Haible  <bruno@clisp.org>
15087
15088         Work around select() bug on Interix 3.5.
15089         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15090         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15091         * m4/select.m4: New file.
15092         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15093         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15094         * modules/select (Files): Add m4/select.m4.
15095         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15096         * modules/nanosleep (Depends-on): Add select.
15097         * modules/poll (Depends-on): Likewise.
15098         * doc/posix-functions/select.texi: Mention the Interix bug.
15099         Reported by Markus Duft <mduft@gentoo.org>.
15100
15101         * lib/select.c: Renamed from lib/winsock-select.c.
15102         * modules/select (Files): Add lib/select.c, remove
15103         lib/winsock-select.c.
15104         (configure.ac): Update.
15105
15106 2009-03-12  Jim Meyering  <meyering@redhat.com>
15107
15108         avoid gcc warnings about unused macro definitions
15109         * lib/readtokens.c (STREQ): Remove unused definition.
15110         * lib/xmalloc.c (SIZE_MAX): Likewise.
15111         * lib/openat-die.c (N_): Likewise.
15112         * lib/mountlist.c (SIZE_MAX): Remove definition.
15113         Instead, include <stdint.h>.
15114         * lib/readutmp.c: Likewise.
15115         * modules/readutmp (Depends-on): Add stdint.
15116         * modules/mountlist (Depends-on): Add stdint.
15117         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15118
15119 2009-03-10  Bruno Haible  <bruno@clisp.org>
15120
15121         Tests for module 'mbmemcasecoll'.
15122         * modules/mbmemcasecoll-tests: New file.
15123         * tests/test-mbmemcasecoll1.sh: New file.
15124         * tests/test-mbmemcasecoll2.sh: New file.
15125         * tests/test-mbmemcasecoll3.sh: New file.
15126         * tests/test-mbmemcasecoll.c: New file.
15127
15128         New module 'mbmemcasecoll'.
15129         * lib/mbmemcasecoll.h: New file.
15130         * lib/mbmemcasecoll.c: New file.
15131         * modules/mbmemcasecoll: New file.
15132
15133         * tests/test-mbmemcasecmp.h: New file, extracted from
15134         tests/test-mbmemcasecmp.c.
15135         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15136         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15137         (main): Update.
15138         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15139
15140 2009-03-09  Bruno Haible  <bruno@clisp.org>
15141
15142         Tests for module 'mbmemcasecmp'.
15143         * modules/mbmemcasecmp-tests: New file.
15144         * tests/test-mbmemcasecmp1.sh: New file.
15145         * tests/test-mbmemcasecmp2.sh: New file.
15146         * tests/test-mbmemcasecmp3.sh: New file.
15147         * tests/test-mbmemcasecmp.c: New file.
15148
15149         New module 'mbmemcasecmp'.
15150         * lib/mbmemcasecmp.h: New file.
15151         * lib/mbmemcasecmp.c: New file.
15152         * modules/mbmemcasecmp: New file.
15153
15154 2009-03-09  Bruno Haible  <bruno@clisp.org>
15155
15156         Tests for module 'unicase/ulc-casecoll'.
15157         * modules/unicase/ulc-casecoll-tests: New file.
15158         * tests/unicase/test-ulc-casecoll1.sh: New file.
15159         * tests/unicase/test-ulc-casecoll2.sh: New file.
15160         * tests/unicase/test-ulc-casecoll.c: New file.
15161
15162         New module 'unicase/ulc-casecoll'.
15163         * lib/unicase.h (ulc_casecoll): New declaration.
15164         * lib/unicase/ulc-casecoll.c: New file.
15165         * modules/unicase/ulc-casecoll: New file.
15166
15167         New module 'unicase/ulc-casexfrm'.
15168         * lib/unicase.h (ulc_casexfrm): New declaration.
15169         * lib/unicase/ulc-casexfrm.c: New file.
15170         * modules/unicase/ulc-casexfrm: New file.
15171
15172 2009-03-09  Bruno Haible  <bruno@clisp.org>
15173
15174         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15175         invocations.
15176
15177         * m4/mbscasecmp.m4: Remove file.
15178         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15179         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15180
15181         * m4/mbscasestr.m4: Remove file.
15182         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15183         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15184
15185         * m4/mbschr.m4: Remove file.
15186         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15187         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15188
15189         * m4/mbscspn.m4: Remove file.
15190         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15191         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15192
15193         * m4/mbslen.m4: Remove file.
15194         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15195         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15196
15197         * m4/mbsncasecmp.m4: Remove file.
15198         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15199         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15200
15201         * m4/mbsnlen.m4: Remove file.
15202         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15203         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15204
15205         * m4/mbspbrk.m4: Remove file.
15206         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15207         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15208
15209         * m4/mbspcasecmp.m4: Remove file.
15210         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15211         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15212
15213         * m4/mbsrchr.m4: Remove file.
15214         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15215         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15216
15217         * m4/mbssep.m4: Remove file.
15218         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15219         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15220
15221         * m4/mbsspn.m4: Remove file.
15222         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15223         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15224
15225         * m4/mbsstr.m4: Remove file.
15226         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15227         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15228
15229         * m4/mbstok_r.m4: Remove file.
15230         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15231         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15232
15233         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15234
15235         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15236         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15237
15238         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15239
15240 2009-03-08  Bruno Haible  <bruno@clisp.org>
15241
15242         Tests for module 'unicase/ulc-casecmp'.
15243         * modules/unicase/ulc-casecmp-tests: New file.
15244         * tests/unicase/test-ulc-casecmp1.sh: New file.
15245         * tests/unicase/test-ulc-casecmp2.sh: New file.
15246         * tests/unicase/test-ulc-casecmp.c: New file.
15247
15248         New module 'unicase/ulc-casecmp'.
15249         * lib/unicase.h (ulc_casecmp): New declaration.
15250         * lib/unicase/ulc-casecmp.c: New file.
15251         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15252         'const SRC_UNIT *'.
15253         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15254         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15255         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15256         * modules/unicase/ulc-casecmp: New file.
15257
15258         Tests for module 'unicase/u32-is-cased'.
15259         * modules/unicase/u32-is-cased-tests: New file.
15260         * tests/unicase/test-u32-is-cased.c: New file.
15261
15262         Tests for module 'unicase/u16-is-cased'.
15263         * modules/unicase/u16-is-cased-tests: New file.
15264         * tests/unicase/test-u16-is-cased.c: New file.
15265
15266         Tests for module 'unicase/u8-is-cased'.
15267         * modules/unicase/u8-is-cased-tests: New file.
15268         * tests/unicase/test-u8-is-cased.c: New file.
15269         * tests/unicase/test-is-cased.h: New file.
15270
15271         New module 'unicase/u32-is-cased'.
15272         * lib/unicase/u32-is-cased.c: New file.
15273         * modules/unicase/u32-is-cased: New file.
15274
15275         New module 'unicase/u16-is-cased'.
15276         * lib/unicase/u16-is-cased.c: New file.
15277         * modules/unicase/u16-is-cased: New file.
15278
15279         New module 'unicase/u8-is-cased'.
15280         * lib/unicase/u8-is-cased.c: New file.
15281         * lib/unicase/u-is-cased.h: New file.
15282         * modules/unicase/u8-is-cased: New file.
15283
15284         Tests for module 'unicase/u32-is-casefolded'.
15285         * modules/unicase/u32-is-casefolded-tests: New file.
15286         * tests/unicase/test-u32-is-casefolded.c: New file.
15287
15288         Tests for module 'unicase/u16-is-casefolded'.
15289         * modules/unicase/u16-is-casefolded-tests: New file.
15290         * tests/unicase/test-u16-is-casefolded.c: New file.
15291
15292         Tests for module 'unicase/u8-is-casefolded'.
15293         * modules/unicase/u8-is-casefolded-tests: New file.
15294         * tests/unicase/test-u8-is-casefolded.c: New file.
15295         * tests/unicase/test-is-casefolded.h: New file.
15296
15297         New module 'unicase/u32-is-casefolded'.
15298         * lib/unicase/u32-is-casefolded.c: New file.
15299         * modules/unicase/u32-is-casefolded: New file.
15300
15301         New module 'unicase/u16-is-casefolded'.
15302         * lib/unicase/u16-is-casefolded.c: New file.
15303         * modules/unicase/u16-is-casefolded: New file.
15304
15305         New module 'unicase/u8-is-casefolded'.
15306         * lib/unicase/u8-is-casefolded.c: New file.
15307         * modules/unicase/u8-is-casefolded: New file.
15308
15309         Tests for module 'unicase/u32-is-titlecase'.
15310         * modules/unicase/u32-is-titlecase-tests: New file.
15311         * tests/unicase/test-u32-is-titlecase.c: New file.
15312
15313         Tests for module 'unicase/u16-is-titlecase'.
15314         * modules/unicase/u16-is-titlecase-tests: New file.
15315         * tests/unicase/test-u16-is-titlecase.c: New file.
15316
15317         Tests for module 'unicase/u8-is-titlecase'.
15318         * modules/unicase/u8-is-titlecase-tests: New file.
15319         * tests/unicase/test-u8-is-titlecase.c: New file.
15320         * tests/unicase/test-is-titlecase.h: New file.
15321
15322         New module 'unicase/u32-is-titlecase'.
15323         * lib/unicase/u32-is-titlecase.c: New file.
15324         * modules/unicase/u32-is-titlecase: New file.
15325
15326         New module 'unicase/u16-is-titlecase'.
15327         * lib/unicase/u16-is-titlecase.c: New file.
15328         * modules/unicase/u16-is-titlecase: New file.
15329
15330         New module 'unicase/u8-is-titlecase'.
15331         * lib/unicase/u8-is-titlecase.c: New file.
15332         * modules/unicase/u8-is-titlecase: New file.
15333
15334         Tests for module 'unicase/u32-is-lowercase'.
15335         * modules/unicase/u32-is-lowercase-tests: New file.
15336         * tests/unicase/test-u32-is-lowercase.c: New file.
15337
15338         Tests for module 'unicase/u16-is-lowercase'.
15339         * modules/unicase/u16-is-lowercase-tests: New file.
15340         * tests/unicase/test-u16-is-lowercase.c: New file.
15341
15342         Tests for module 'unicase/u8-is-lowercase'.
15343         * modules/unicase/u8-is-lowercase-tests: New file.
15344         * tests/unicase/test-u8-is-lowercase.c: New file.
15345         * tests/unicase/test-is-lowercase.h: New file.
15346
15347         New module 'unicase/u32-is-lowercase'.
15348         * lib/unicase/u32-is-lowercase.c: New file.
15349         * modules/unicase/u32-is-lowercase: New file.
15350
15351         New module 'unicase/u16-is-lowercase'.
15352         * lib/unicase/u16-is-lowercase.c: New file.
15353         * modules/unicase/u16-is-lowercase: New file.
15354
15355         New module 'unicase/u8-is-lowercase'.
15356         * lib/unicase/u8-is-lowercase.c: New file.
15357         * modules/unicase/u8-is-lowercase: New file.
15358
15359         Tests for module 'unicase/u32-is-uppercase'.
15360         * modules/unicase/u32-is-uppercase-tests: New file.
15361         * tests/unicase/test-u32-is-uppercase.c: New file.
15362
15363         Tests for module 'unicase/u16-is-uppercase'.
15364         * modules/unicase/u16-is-uppercase-tests: New file.
15365         * tests/unicase/test-u16-is-uppercase.c: New file.
15366
15367         Tests for module 'unicase/u8-is-uppercase'.
15368         * modules/unicase/u8-is-uppercase-tests: New file.
15369         * tests/unicase/test-u8-is-uppercase.c: New file.
15370         * tests/unicase/test-is-uppercase.h: New file.
15371
15372         New module 'unicase/u32-is-uppercase'.
15373         * lib/unicase/u32-is-uppercase.c: New file.
15374         * modules/unicase/u32-is-uppercase: New file.
15375
15376         New module 'unicase/u16-is-uppercase'.
15377         * lib/unicase/u16-is-uppercase.c: New file.
15378         * modules/unicase/u16-is-uppercase: New file.
15379
15380         New module 'unicase/u8-is-uppercase'.
15381         * lib/unicase/u8-is-uppercase.c: New file.
15382         * modules/unicase/u8-is-uppercase: New file.
15383
15384         New module 'unicase/u32-is-invariant'.
15385         * lib/unicase/u32-is-invariant.c: New file.
15386         * modules/unicase/u32-is-invariant: New file.
15387
15388         New module 'unicase/u16-is-invariant'.
15389         * lib/unicase/u16-is-invariant.c: New file.
15390         * modules/unicase/u16-is-invariant: New file.
15391
15392         New module 'unicase/u8-is-invariant'.
15393         * lib/unicase/u8-is-invariant.c: New file.
15394         * lib/unicase/invariant.h: New file.
15395         * lib/unicase/u-is-invariant.h: New file.
15396         * modules/unicase/u8-is-invariant: New file.
15397
15398         Tests for module 'unicase/u32-casecoll'.
15399         * modules/unicase/u32-casecoll-tests: New file.
15400         * tests/unicase/test-u32-casecoll.c: New file.
15401
15402         Tests for module 'unicase/u16-casecoll'.
15403         * modules/unicase/u16-casecoll-tests: New file.
15404         * tests/unicase/test-u16-casecoll.c: New file.
15405
15406         Tests for module 'unicase/u8-casecoll'.
15407         * modules/unicase/u8-casecoll-tests: New file.
15408         * tests/unicase/test-u8-casecoll.c: New file.
15409
15410         New module 'unicase/u32-casecoll'.
15411         * lib/unicase/u32-casecoll.c: New file.
15412         * modules/unicase/u32-casecoll: New file.
15413
15414         New module 'unicase/u16-casecoll'.
15415         * lib/unicase/u16-casecoll.c: New file.
15416         * modules/unicase/u16-casecoll: New file.
15417
15418         New module 'unicase/u8-casecoll'.
15419         * lib/unicase/u8-casecoll.c: New file.
15420         * lib/unicase/u-casecoll.h: New file.
15421         * modules/unicase/u8-casecoll: New file.
15422
15423         New module 'unicase/u32-casexfrm'.
15424         * lib/unicase/u32-casexfrm.c: New file.
15425         * modules/unicase/u32-casexfrm: New file.
15426
15427         New module 'unicase/u16-casexfrm'.
15428         * lib/unicase/u16-casexfrm.c: New file.
15429         * modules/unicase/u16-casexfrm: New file.
15430
15431         New module 'unicase/u8-casexfrm'.
15432         * lib/unicase/u8-casexfrm.c: New file.
15433         * lib/unicase/u-casexfrm.h: New file.
15434         * modules/unicase/u8-casexfrm: New file.
15435
15436         Tests for module 'unicase/u32-casecmp'.
15437         * modules/unicase/u32-casecmp-tests: New file.
15438         * tests/unicase/test-u32-casecmp.c: New file.
15439
15440         Tests for module 'unicase/u16-casecmp'.
15441         * modules/unicase/u16-casecmp-tests: New file.
15442         * tests/unicase/test-u16-casecmp.c: New file.
15443
15444         Tests for module 'unicase/u8-casecmp'.
15445         * modules/unicase/u8-casecmp-tests: New file.
15446         * tests/unicase/test-u8-casecmp.c: New file.
15447         * tests/unicase/test-casecmp.h: New file.
15448
15449         New module 'unicase/u32-casecmp'.
15450         * lib/unicase/u32-casecmp.c: New file.
15451         * modules/unicase/u32-casecmp: New file.
15452
15453         New module 'unicase/u16-casecmp'.
15454         * lib/unicase/u16-casecmp.c: New file.
15455         * modules/unicase/u16-casecmp: New file.
15456
15457         New module 'unicase/u8-casecmp'.
15458         * lib/unicase/u8-casecmp.c: New file.
15459         * lib/unicase/u-casecmp.h: New file.
15460         * modules/unicase/u8-casecmp: New file.
15461
15462         Tests for module 'unicase/u32-casefold'.
15463         * modules/unicase/u32-casefold-tests: New file.
15464         * tests/unicase/test-u32-casefold.c: New file.
15465
15466         Tests for module 'unicase/u16-casefold'.
15467         * modules/unicase/u16-casefold-tests: New file.
15468         * tests/unicase/test-u16-casefold.c: New file.
15469
15470         Tests for module 'unicase/u8-casefold'.
15471         * modules/unicase/u8-casefold-tests: New file.
15472         * tests/unicase/test-u8-casefold.c: New file.
15473
15474         New module 'unicase/u32-casefold'.
15475         * lib/unicase/u32-casefold.c: New file.
15476         * modules/unicase/u32-casefold: New file.
15477
15478         New module 'unicase/u16-casefold'.
15479         * lib/unicase/u16-casefold.c: New file.
15480         * modules/unicase/u16-casefold: New file.
15481
15482         New module 'unicase/u8-casefold'.
15483         * lib/unicase/u8-casefold.c: New file.
15484         * lib/unicase/u-casefold.h: New file.
15485         * modules/unicase/u8-casefold: New file.
15486
15487         New module 'unicase/tocasefold'.
15488         * lib/unicase/casefold.h: New file.
15489         * lib/unicase/tocasefold.c: New file.
15490         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15491         * modules/unicase/tocasefold: New file.
15492
15493         Tests for module 'unicase/u32-totitle'.
15494         * modules/unicase/u32-totitle-tests: New file.
15495         * tests/unicase/test-u32-totitle.c: New file.
15496
15497         Tests for module 'unicase/u16-totitle'.
15498         * modules/unicase/u16-totitle-tests: New file.
15499         * tests/unicase/test-u16-totitle.c: New file.
15500
15501         Tests for module 'unicase/u8-totitle'.
15502         * modules/unicase/u8-totitle-tests: New file.
15503         * tests/unicase/test-u8-totitle.c: New file.
15504
15505         New module 'unicase/u32-totitle'.
15506         * lib/unicase/u32-totitle.c: New file.
15507         * modules/unicase/u32-totitle: New file.
15508
15509         New module 'unicase/u16-totitle'.
15510         * lib/unicase/u16-totitle.c: New file.
15511         * modules/unicase/u16-totitle: New file.
15512
15513         New module 'unicase/u8-totitle'.
15514         * lib/unicase/u8-totitle.c: New file.
15515         * lib/unicase/u-totitle.h: New file.
15516         * modules/unicase/u8-totitle: New file.
15517
15518         Tests for module 'unicase/u32-tolower'.
15519         * modules/unicase/u32-tolower-tests: New file.
15520         * tests/unicase/test-u32-tolower.c: New file.
15521
15522         Tests for module 'unicase/u16-tolower'.
15523         * modules/unicase/u16-tolower-tests: New file.
15524         * tests/unicase/test-u16-tolower.c: New file.
15525
15526         Tests for module 'unicase/u8-tolower'.
15527         * modules/unicase/u8-tolower-tests: New file.
15528         * tests/unicase/test-u8-tolower.c: New file.
15529
15530         New module 'unicase/u32-tolower'.
15531         * lib/unicase/u32-tolower.c: New file.
15532         * modules/unicase/u32-tolower: New file.
15533
15534         New module 'unicase/u16-tolower'.
15535         * lib/unicase/u16-tolower.c: New file.
15536         * modules/unicase/u16-tolower: New file.
15537
15538         New module 'unicase/u8-tolower'.
15539         * lib/unicase/u8-tolower.c: New file.
15540         * modules/unicase/u8-tolower: New file.
15541
15542         Tests for module 'unicase/u32-toupper'.
15543         * modules/unicase/u32-toupper-tests: New file.
15544         * tests/unicase/test-u32-toupper.c: New file.
15545
15546         Tests for module 'unicase/u16-toupper'.
15547         * modules/unicase/u16-toupper-tests: New file.
15548         * tests/unicase/test-u16-toupper.c: New file.
15549
15550         Tests for module 'unicase/u8-toupper'.
15551         * modules/unicase/u8-toupper-tests: New file.
15552         * tests/unicase/test-u8-toupper.c: New file.
15553
15554         New module 'unicase/u32-toupper'.
15555         * lib/unicase/u32-toupper.c: New file.
15556         * modules/unicase/u32-toupper: New file.
15557
15558         New module 'unicase/u16-toupper'.
15559         * lib/unicase/u16-toupper.c: New file.
15560         * modules/unicase/u16-toupper: New file.
15561
15562         New module 'unicase/u8-toupper'.
15563         * lib/unicase/u8-toupper.c: New file.
15564         * modules/unicase/u8-toupper: New file.
15565
15566         New module 'unicase/u32-casemap'.
15567         * lib/unicase/u32-casemap.c: New file.
15568         * modules/unicase/u32-casemap: New file.
15569
15570         New module 'unicase/u16-casemap'.
15571         * lib/unicase/u16-casemap.c: New file.
15572         * modules/unicase/u16-casemap: New file.
15573
15574         New module 'unicase/u8-casemap'.
15575         * lib/unicase/unicasemap.h: New file.
15576         * lib/unicase/u8-casemap.c: New file.
15577         * lib/unicase/u-casemap.h: New file.
15578         * modules/unicase/u8-casemap: New file.
15579
15580         New module 'unicase/special-casing'.
15581         * lib/unicase/special-casing.h: New file.
15582         * lib/unicase/special-casing.c: New file.
15583         * lib/unicase/special-casing-table.gperf: New file, generated by
15584         gen-uni-tables.c.
15585         * modules/unicase/special-casing: New file.
15586
15587         Tests for module 'unicase/locale-language'.
15588         * modules/unicase/locale-language-tests: New file.
15589         * tests/unicase/test-locale-language.sh: New file.
15590         * tests/unicase/test-locale-language.c: New file.
15591
15592         New module 'unicase/locale-language'.
15593         * lib/unicase/locale-language.c: New file.
15594         * lib/unicase/locale-languages.gperf: New file.
15595         * modules/unicase/locale-language: New file.
15596
15597         Generate more tables for case conversion and case folding.
15598         * lib/gen-uni-tables.c (SCC_*): New enum items.
15599         (struct special_casing_rule): New type.
15600         (casing_rules, num_casing_rules, allocated_casing_rules): New
15601         variables.
15602         (add_casing_rule, fill_casing_rules): New functions.
15603         (struct casefold_rule): New type.
15604         (casefolding_rules, num_casefolding_rules,
15605         allocated_casefolding_rules): New variables.
15606         (fill_casefolding_rules): New function.
15607         (unicode_casefold): New variable.
15608         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15609         sort_casing_rules, output_casing_rules): New functions.
15610         (main): Accept to more arguments: SpecialCasing.txt and
15611         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15612         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15613         Output mapping for casefolding.
15614
15615         * lib/unicase.h: Include stdbool.h, uninorm.h.
15616         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15617         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15618         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15619         arguments.
15620         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15621         resultp arguments.
15622         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15623         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15624         resultp arguments.
15625         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15626         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15627         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15628         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15629         declarations.
15630         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15631
15632 2009-03-08  Bruno Haible  <bruno@clisp.org>
15633
15634         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15635         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15636         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15637         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15638
15639 2009-03-07  Bruno Haible  <bruno@clisp.org>
15640
15641         Adjust u*_normcmp, u*_normcoll API.
15642         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15643         u16_normcoll, u32_normcoll): Change failure conventions.
15644         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15645         errno and return -1.
15646         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15647
15648 2009-03-07  Bruno Haible  <bruno@clisp.org>
15649
15650         Tests for module 'uninorm/u32-normcoll'.
15651         * modules/uninorm/u32-normcoll-tests: New file.
15652         * tests/uninorm/test-u32-normcoll.c: New file.
15653
15654         Tests for module 'uninorm/u16-normcoll'.
15655         * modules/uninorm/u16-normcoll-tests: New file.
15656         * tests/uninorm/test-u16-normcoll.c: New file.
15657
15658         Tests for module 'uninorm/u8-normcoll'.
15659         * modules/uninorm/u8-normcoll-tests: New file.
15660         * tests/uninorm/test-u8-normcoll.c: New file.
15661
15662 2009-03-07  Bruno Haible  <bruno@clisp.org>
15663
15664         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15665         tests/uninorm/test-u32-normcmp.c.
15666         * tests/uninorm/test-u32-normcmp.c: Include it.
15667         (test_nonascii): New function, extracted from main. Add some more
15668         tests.
15669         (main): Invoke test_ascii and test_nonascii.
15670         * modules/uninorm/u32-normcmp-tests (Files): Add
15671         tests/uninorm/test-u32-normcmp.h.
15672         (Depends-on): Remove uninorm/u32-normcmp.
15673
15674         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15675         tests/uninorm/test-u16-normcmp.c.
15676         * tests/uninorm/test-u16-normcmp.c: Include it.
15677         (test_nonascii): New function, extracted from main. Add some more
15678         tests.
15679         (main): Invoke test_ascii and test_nonascii.
15680         * modules/uninorm/u16-normcmp-tests (Files): Add
15681         tests/uninorm/test-u16-normcmp.h.
15682         (Depends-on): Remove uninorm/u16-normcmp.
15683
15684         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15685         tests/uninorm/test-u8-normcmp.c.
15686         * tests/uninorm/test-u8-normcmp.c: Include it.
15687         (test_nonascii): New function, extracted from main. Add some more
15688         tests.
15689         (main): Invoke test_ascii and test_nonascii.
15690         * modules/uninorm/u8-normcmp-tests (Files): Add
15691         tests/uninorm/test-u8-normcmp.h.
15692         (Depends-on): Remove uninorm/u8-normcmp.
15693
15694 2009-03-07  Bruno Haible  <bruno@clisp.org>
15695
15696         New module 'uninorm/u32-normcoll'.
15697         * lib/uninorm/u32-normcoll.c: New file.
15698         * modules/uninorm/u32-normcoll: New file.
15699
15700         New module 'uninorm/u16-normcoll'.
15701         * lib/uninorm/u16-normcoll.c: New file.
15702         * modules/uninorm/u16-normcoll: New file.
15703
15704         New module 'uninorm/u8-normcoll'.
15705         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15706         declarations.
15707         * lib/uninorm/u8-normcoll.c: New file.
15708         * lib/uninorm/u-normcoll.h: New file.
15709         * modules/uninorm/u8-normcoll: New file.
15710
15711         New module 'uninorm/u32-normxfrm'.
15712         * lib/uninorm/u32-normxfrm.c: New file.
15713         * modules/uninorm/u32-normxfrm: New file.
15714
15715         New module 'uninorm/u16-normxfrm'.
15716         * lib/uninorm/u16-normxfrm.c: New file.
15717         * modules/uninorm/u16-normxfrm: New file.
15718
15719         New module 'uninorm/u8-normxfrm'.
15720         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15721         declarations.
15722         * lib/uninorm/u8-normxfrm.c: New file.
15723         * lib/uninorm/u-normxfrm.h: New file.
15724         * modules/uninorm/u8-normxfrm: New file.
15725
15726 2009-03-07  Bruno Haible  <bruno@clisp.org>
15727
15728         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15729         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15730         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15731
15732 2009-03-07  Bruno Haible  <bruno@clisp.org>
15733
15734         New module 'memxfrm'.
15735         * lib/memxfrm.h: New file.
15736         * lib/memxfrm.c: New file.
15737         * modules/memxfrm: New file.
15738
15739 2009-03-07  Bruno Haible  <bruno@clisp.org>
15740
15741         New module 'memcmp2'.
15742         * lib/memcmp2.h: New file.
15743         * lib/memcmp2.c: New file.
15744         * modules/memcmp2: New file.
15745
15746 2009-03-07  Bruno Haible  <bruno@clisp.org>
15747
15748         Tests for module 'uninorm/decomposing-form'.
15749         * modules/uninorm/decomposing-form-tests: New file.
15750         * tests/uninorm/test-decomposing-form.c: New file.
15751
15752         New module 'uninorm/decomposing-form'.
15753         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15754         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15755         Add 'decomposing_variant' field.
15756         * lib/uninorm/decomposing-form.c: New file.
15757         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15758         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15759         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15760         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15761         * modules/uninorm/decomposing-form: New file.
15762         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15763         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15764
15765 2009-03-07  Bruno Haible  <bruno@clisp.org>
15766
15767         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15768         strings.
15769
15770 2009-03-06  Bruno Haible  <bruno@clisp.org>
15771
15772         Tests for module 'uninorm/u32-normcmp'.
15773         * tests/uninorm/test-u32-normcmp.c: New file.
15774         * modules/uninorm/u32-normcmp-tests: New file.
15775
15776         Tests for module 'uninorm/u16-normcmp'.
15777         * tests/uninorm/test-u16-normcmp.c: New file.
15778         * modules/uninorm/u16-normcmp-tests: New file.
15779
15780         Tests for module 'uninorm/u8-normcmp'.
15781         * tests/uninorm/test-u8-normcmp.c: New file.
15782         * modules/uninorm/u8-normcmp-tests: New file.
15783
15784         New module 'uninorm/u32-normcmp'.
15785         * lib/uninorm/u32-normcmp.c: New file.
15786         * modules/uninorm/u32-normcmp: New file.
15787
15788         New module 'uninorm/u16-normcmp'.
15789         * lib/uninorm/u16-normcmp.c: New file.
15790         * modules/uninorm/u16-normcmp: New file.
15791
15792         New module 'uninorm/u8-normcmp'.
15793         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15794         declarations.
15795         * lib/uninorm/u8-normcmp.c: New file.
15796         * lib/uninorm/u-normcmp.h: New file.
15797         * modules/uninorm/u8-normcmp: New file.
15798
15799 2009-03-06  Bruno Haible  <bruno@clisp.org>
15800
15801         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15802         Reported by Eric Blake.
15803
15804 2009-03-06  Eric Blake  <ebb9@byu.net>
15805             Bruno Haible  <bruno@clisp.org>
15806
15807         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15808         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15809         condition.
15810         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15811         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15812         condition.
15813         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15814
15815 2009-03-06  Eric Blake  <ebb9@byu.net>
15816
15817         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15818         to avoid compiler warnings.
15819         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15820
15821 2009-03-05  Bruno Haible  <bruno@clisp.org>
15822
15823         * tests/test-ftell.c (main): Disable test beyond end of file on
15824         FreeMiNT.
15825         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15826
15827 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15828
15829         * lib/filevercmp.c: Move hidden files up in ordering.
15830         * tests/test-filevercmp.c: Add tests for hidden files.
15831
15832 2009-03-04  Bruno Haible  <bruno@clisp.org>
15833
15834         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15835         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15836         AM_CFLAGS.
15837         Reported by Simon Josefsson.
15838
15839 2009-03-03  Bruno Haible  <bruno@clisp.org>
15840
15841         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15842         Reported by Simon Josefsson.
15843
15844         * doc/ld-version-script.texi: Update node reference.
15845
15846 2009-03-03  Bruno Haible  <bruno@clisp.org>
15847
15848         * modules/visibility (License): Change to 'unlimited'.
15849         Suggested by Simon Josefsson.
15850
15851 2009-03-03  Jim Meyering  <meyering@redhat.com>
15852
15853         unlinkdir: cannot_unlink_dir may modify process state
15854         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15855         it's neither thread-safe nor appropriate for use in a library.
15856
15857 2009-03-03  Eric Blake  <ebb9@byu.net>
15858
15859         test-closein: silence test under Darwin
15860         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15861         care if it dies from EPIPE or EBADF.
15862
15863 2009-03-03  Bruno Haible  <bruno@clisp.org>
15864
15865         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15866         earlier.
15867         * doc/visibility.texi: Fix @node and @section.
15868
15869 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15870
15871         * doc/gnulib.texi: Link to sections for ld version script and
15872         visibility.
15873         * doc/visibility.texi: Add @node and @section.
15874         * modules/ld-version-script: New module.
15875         * m4/ld-version-script.m4: New file.
15876         * doc/ld-version-script.texi: New file.
15877
15878 2009-03-02  David Lutterkort  <lutter@redhat.com>
15879
15880         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15881         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15882
15883 2009-03-02  Bruno Haible  <bruno@clisp.org>
15884
15885         * doc/visibility.texi: Mention libtool's -export-symbols option.
15886
15887 2009-03-02  Jim Meyering  <meyering@redhat.com>
15888
15889         announce-gen: new option: --no-print-checksums
15890         * build-aux/announce-gen (usage): Describe it.
15891         (print_checksums): Print a newline here, not in the [*] footnote.
15892         (main): Honor it.
15893
15894 2009-03-01  Bruno Haible  <bruno@clisp.org>
15895
15896         Use socklen_t in the native Windows replacements prototypes.
15897         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15898         instead of 'int'.
15899         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15900         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15901         * modules/getsockopt (Depends-on): Add socklen.
15902         * modules/setsockopt (Depends-on): Add socklen.
15903
15904 2009-03-01  Bruno Haible  <bruno@clisp.org>
15905
15906         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15907         least 4.2.
15908
15909 2009-03-01  Eric Blake  <ebb9@byu.net>
15910             Bruno Haible  <bruno@clisp.org>
15911
15912         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15913         error messages.
15914         * lib/wait-process.c (wait_subprocess): Omit error message about
15915         deadly signal sent to the child of termsigp != NULL.
15916
15917 2009-03-01  Eric Blake  <ebb9@byu.net>
15918
15919         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15920
15921 2009-03-01  Bruno Haible  <bruno@clisp.org>
15922
15923         Avoid a gcc warning.
15924         * tests/test-sched.c (b): Make global.
15925         Reported by Eric Blake.
15926
15927 2009-01-19  Martin Lambers  <marlam@marlam.de>
15928
15929         Provide POSIX semantics for socket timeout options on W32.
15930         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15931         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15932         * modules/setsockopt: Depend on sys_time module for struct timeval.
15933         * modules/getsockopt: Depend on sys_time module for struct timeval.
15934
15935 2009-03-01  Simon Josefsson  <simon@josefsson.org>
15936
15937         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15938         __USE_GNU, for consistency with netdb.in.h.
15939         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15940
15941 2009-03-01  Bruno Haible  <bruno@clisp.org>
15942
15943         More support for FreeMiNT.
15944         * lib/fseeko.c (rpl_fseeko): Complete last commit.
15945         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15946
15947 2009-03-01  Bruno Haible  <bruno@clisp.org>
15948
15949         More support for FreeMiNT.
15950         * lib/fpurge.c (fpurge): Correct last commit.
15951         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15952
15953 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15954
15955         Fix unportable awk script in vc-list-files.
15956         * build-aux/vc-list-files: In the replacement awk script, use
15957         substr with a second argument of 1, not zero.
15958         Report by Simon Josefsson.
15959
15960 2009-02-28  Bruno Haible  <bruno@clisp.org>
15961
15962         More support for FreeMiNT.
15963         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15964         to FreeMiNT today.
15965         * lib/fwriting.c (fwriting): Likewise.
15966         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15967
15968 2009-02-28  Bruno Haible  <bruno@clisp.org>
15969
15970         * tests/test-freadseek.c (main): Disable test beyond end of file on
15971         FreeMiNT.
15972         * tests/test-ftello.c (main): Likewise.
15973         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15974
15975 2009-02-28  Bruno Haible  <bruno@clisp.org>
15976
15977         Add tentative support for FreeMiNT.
15978         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15979         * lib/fpurge.c (fpurge): Likewise.
15980         * lib/freadable.c (freadable): Likewise.
15981         * lib/freading.c (freading): Likewise.
15982         * lib/freadptr.c (freadptr): Likewise.
15983         * lib/freadseek.c (freadptrinc): Likewise.
15984         * lib/fseeko.c (rpl_fseeko): Likewise.
15985         * lib/fseterr.c (fseterr): Likewise.
15986         * lib/fwritable.c (fwritable): Likewise.
15987         * lib/fwriting.c (fwriting): Likewise.
15988         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15989         Hourihane.
15990         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15991
15992 2009-02-28  Bruno Haible  <bruno@clisp.org>
15993
15994         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15995         SIGCHLD.
15996         Reported by Jim Meyering.
15997
15998 2009-02-28  Bruno Haible  <bruno@clisp.org>
15999
16000         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
16001         Mention the results of these tests on various platforms.
16002         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
16003         order.
16004         * doc/posix-functions/printf.texi: Likewise.
16005         * doc/posix-functions/snprintf.texi: Likewise.
16006         * doc/posix-functions/sprintf.texi: Likewise.
16007         * doc/posix-functions/vfprintf.texi: Likewise.
16008         * doc/posix-functions/vprintf.texi: Likewise.
16009         * doc/posix-functions/vsnprintf.texi: Likewise.
16010         * doc/posix-functions/vsprintf.texi: Likewise.
16011         * doc/glibc-functions/obstack_printf.texi: Likewise.
16012         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16013
16014 2009-02-28  Bruno Haible  <bruno@clisp.org>
16015
16016         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16017         Reported by Loïc Minier <lool@dooz.org>.
16018
16019 2009-02-27  Bruno Haible  <bruno@clisp.org>
16020
16021         * gnulib-tool (func_import): Make the sed expression used to create the
16022         sed script for updating the .gitignore file POSIX compliant.
16023         Reported by Eric Blake.
16024
16025 2009-02-27  Bruno Haible  <bruno@clisp.org>
16026
16027         * gnulib-tool (sed): Don't alias as "sed --posix".
16028         Reported by Eric Blake.
16029
16030 2009-02-27  Bruno Haible  <bruno@clisp.org>
16031
16032         Avoid test link errors.
16033         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16034         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16035         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16036         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16037         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16038
16039 2009-02-27  Bruno Haible  <bruno@clisp.org>
16040
16041         Avoid spurious "(cached)" in configure output.
16042         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16043         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16044         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16045         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16046         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16047         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16048         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16049         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16050         Reported by Eric Blake.
16051
16052 2009-02-27  Eric Blake  <ebb9@byu.net>
16053
16054         printf: fix regression in previous patch
16055         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16056
16057 2009-02-27  Bruno Haible  <bruno@clisp.org>
16058
16059         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16060         value.
16061         * lib/stdint.in.h: Likewise.
16062         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16063
16064 2009-02-27  Eric Blake  <ebb9@byu.net>
16065
16066         doc: mention more functions added in cygwin 1.7.0
16067         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16068         addition.
16069         * doc/posix-functions/open_wmemstream.texi: Likewise.
16070         * doc/posix-functions/wcsnlen.texi: Likewise.
16071         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16072         * doc/posix-functions/wcstod.texi: Likewise.
16073         * doc/posix-functions/wcstof.texi: Likewise.
16074         * doc/posix-functions/wcstoimax.texi: Likewise.
16075         * doc/posix-functions/wcstok.texi: Likewise.
16076         * doc/posix-functions/wcstoumax.texi: Likewise.
16077
16078         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16079         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16080         * doc/posix-functions/fprintf.texi: Update.
16081         * doc/posix-functions/printf.texi: Update.
16082         * doc/posix-functions/snprintf.texi: Update.
16083         * doc/posix-functions/sprintf.texi: Update.
16084         * doc/posix-functions/vfprintf.texi: Update.
16085         * doc/posix-functions/vprintf.texi: Update.
16086         * doc/posix-functions/vsnprintf.texi: Update.
16087         * doc/posix-functions/vsprintf.texi: Update.
16088         * doc/glibc-functions/obstack_printf.texi: Update.
16089         * doc/glibc-functions/obstack_vprintf.texi: Update.
16090
16091 2009-02-26  Eric Blake  <ebb9@byu.net>
16092
16093         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16094         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16095         compilation bug by using runtime conversion.
16096         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16097         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16098         * modules/ceill-tests (Files): Use nan.h.
16099         * modules/floorl-tests (Files): Likewise.
16100         * modules/frexpl-tests (Files): Likewise.
16101         * modules/isnanl-tests (Files): Likewise.
16102         * modules/ldexpl-tests (Files): Likewise.
16103         * modules/roundl-tests (Files): Likewise.
16104         * modules/truncl-tests (Files): Likewise.
16105         * tests/test-ceill.c (main): Use a working NaN.
16106         * tests/test-floorl.c (main): Likewise.
16107         * tests/test-frexpl.c (main): Likewise.
16108         * tests/test-isnan.c (test_long_double): Likewise.
16109         * tests/test-isnanl.h (main): Likewise.
16110         * tests/test-ldexpl.h (main): Likewise.
16111         * tests/test-roundl.h (main): Likewise.
16112         * tests/test-truncl.h (main): Likewise.
16113         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16114
16115 2009-02-26  Eric Blake  <ebb9@byu.net>
16116             Bruno Haible  <bruno@clisp.org>
16117
16118         Work around a *printf bug with %ls on Solaris.
16119         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16120         precision is specified, sprintf stops converting the wide string
16121         argument when the number of bytes that have been produced by this
16122         conversion equals or exceeds the precision.
16123         * doc/posix-functions/fprintf.texi: Update.
16124         * doc/posix-functions/printf.texi: Update.
16125         * doc/posix-functions/snprintf.texi: Update.
16126         * doc/posix-functions/sprintf.texi: Update.
16127         * doc/posix-functions/vfprintf.texi: Update.
16128         * doc/posix-functions/vprintf.texi: Update.
16129         * doc/posix-functions/vsnprintf.texi: Update.
16130         * doc/posix-functions/vsprintf.texi: Update.
16131         * doc/glibc-functions/obstack_printf.texi: Update.
16132         * doc/glibc-functions/obstack_vprintf.texi: Update.
16133
16134 2009-02-26  Eric Blake  <ebb9@byu.net>
16135
16136         stdlib: favor compiler check of random.h
16137         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16138         to avoid an ObjC random.h installed by Swarm.
16139
16140 2009-02-26  Bruno Haible  <bruno@clisp.org>
16141
16142         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16143         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16144         Reported by Gary V. Vaughan <gary@gnu.org>.
16145
16146 2009-02-26  Bruno Haible  <bruno@clisp.org>
16147
16148         Fix *printf behaviour regarding the %ls directive.
16149         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16150         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16151         NEED_PRINTF_DIRECTIVE_LS.
16152         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16153         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16154         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16155         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16156         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16157         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16158         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16160         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16162         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16163         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16164         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16165         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16166         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16167         * doc/posix-functions/fprintf.texi: Update.
16168         * doc/posix-functions/printf.texi: Update.
16169         * doc/posix-functions/snprintf.texi: Update.
16170         * doc/posix-functions/sprintf.texi: Update.
16171         * doc/posix-functions/vfprintf.texi: Update.
16172         * doc/posix-functions/vprintf.texi: Update.
16173         * doc/posix-functions/vsnprintf.texi: Update.
16174         * doc/posix-functions/vsprintf.texi: Update.
16175         * doc/glibc-functions/obstack_printf.texi: Update.
16176         * doc/glibc-functions/obstack_vprintf.texi: Update.
16177         Reported by Eric Blake.
16178
16179 2009-02-25  Bruno Haible  <bruno@clisp.org>
16180
16181         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16182         with known value.
16183         Reported by Gary V. Vaughan <gary@gnu.org>.
16184
16185 2009-02-25  Bruno Haible  <bruno@clisp.org>
16186
16187         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16188         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16189         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16190         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16191         Reported by Gary V. Vaughan <gary@gnu.org>.
16192
16193 2009-02-25  Bruno Haible  <bruno@clisp.org>
16194
16195         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16196         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16197         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16198         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16199         Reported by Gary V. Vaughan <gary@gnu.org>.
16200
16201 2009-02-25  Eric Blake  <ebb9@byu.net>
16202
16203         tests: skip fseek/ftell tests if ungetc is broken
16204         * m4/ungetc.m4: New file.
16205         * modules/fseek-tests: Split test, so ungetc dependency is
16206         separate from rest of test.
16207         * modules/fseeko-tests: Likewise.
16208         * modules/ftell-tests: Likewise.
16209         * modules/ftello-tests: Likewise.
16210         * tests/test-fseek.c (main): Isolate ungetc dependency.
16211         * tests/test-fseeko.c (main): Likewise.
16212         * tests/test-ftell.c (main): Likewise.
16213         * tests/test-ftello.c (main): Likewise.
16214         * tests/test-fseek2.sh: New file.
16215         * tests/test-fseeko2.sh: Likewise.
16216         * tests/test-ftell2.sh: Likewise.
16217         * tests/test-ftello2.sh: Likewise.
16218
16219 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
16220
16221         test-getaddrinfo: fix usage of skip return code 77
16222         * tests/test-gettaddrinfo.c: Return skip code 77 only
16223         for first occurance of skip (4x77 is not 77)
16224
16225 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16226
16227         strtod: avoid C99 decl-after-statement
16228         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16229
16230 2009-02-24  Eric Blake  <ebb9@byu.net>
16231
16232         strtod: detect HP-UX 11.31 bug
16233         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16234         Reported by Gary V. Vaughan.
16235
16236 2009-02-23  Bruno Haible  <bruno@clisp.org>
16237
16238         Fix invalid read past end of memory block.
16239         * lib/vasnprintf.c (DCHAR_SET): Define.
16240         (local_wcslen): Define only when needed.
16241         (local_strnlen, local_wcsnlen): New functions.
16242         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16243         directives that involve a conversion ourselves.
16244         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16245         wcsnlen, mbrtowc, wcrtomb.
16246         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16247         * tests/test-vasprintf-posix.c (test_function): Likewise.
16248         * tests/test-snprintf-posix.h (test_function): Likewise.
16249         * tests/test-sprintf-posix.h (test_function): Likewise.
16250         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16251
16252 2009-02-22  Bruno Haible  <bruno@clisp.org>
16253
16254         Implement new clarified decomposition of Hangul syllables.
16255         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16256         of type LTV, return only a pairwise decomposition.
16257         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16258         Likewise.
16259         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16260         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16261         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16262
16263 2009-02-22  Bruno Haible  <bruno@clisp.org>
16264
16265         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16266         zero-length results and shrink excess allocated memory.
16267         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16268         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16269         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16270         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16271         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16272         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16273         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16274         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16275         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16276         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16277         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16278         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16279
16280 2009-02-21  Bruno Haible  <bruno@clisp.org>
16281
16282         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16283         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16284         spaces after a period. Put a space between a macro name and its
16285         argument list. Trivial rewordings.
16286         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16287         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16288         (main): Return 0 explicitly.
16289
16290 2009-02-21  Bruno Haible  <bruno@clisp.org>
16291
16292         Tests for module 'uninorm/filter'.
16293         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16294         * modules/uninorm/filter-tests: New file.
16295
16296         New module 'uninorm/filter'.
16297         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16298         uninorm_filter_flush, uninorm_filter_free): New declarations.
16299         * lib/uninorm/uninorm-filter.c: New file.
16300         * modules/uninorm/filter: New file.
16301
16302 2009-02-21  Bruno Haible  <bruno@clisp.org>
16303
16304         Tests for module 'uninorm/nfkc'.
16305         * tests/uninorm/test-nfkc.c: New file.
16306         * tests/uninorm/test-u8-nfkc.c: New file.
16307         * tests/uninorm/test-u16-nfkc.c: New file.
16308         * tests/uninorm/test-u32-nfkc.c: New file.
16309         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16310         * tests/uninorm/test-u32-nfkc-big.c: New file.
16311         * modules/uninorm/nfkc-tests: New file.
16312
16313         New module 'uninorm/nfkc'.
16314         * lib/uninorm/nfkc.c: New file.
16315         * modules/uninorm/nfkc: New file.
16316
16317         Tests for module 'uninorm/nfkd'.
16318         * tests/uninorm/test-nfkd.c: New file.
16319         * tests/uninorm/test-u8-nfkd.c: New file.
16320         * tests/uninorm/test-u16-nfkd.c: New file.
16321         * tests/uninorm/test-u32-nfkd.c: New file.
16322         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16323         * tests/uninorm/test-u32-nfkd-big.c: New file.
16324         * modules/uninorm/nfkd-tests: New file.
16325
16326         New module 'uninorm/nfkd'.
16327         * lib/uninorm/nfkd.c: New file.
16328         * modules/uninorm/nfkd: New file.
16329
16330         Tests for module 'uninorm/nfc'.
16331         * tests/uninorm/test-nfc.c: New file.
16332         * tests/uninorm/test-u8-nfc.c: New file.
16333         * tests/uninorm/test-u16-nfc.c: New file.
16334         * tests/uninorm/test-u32-nfc.c: New file.
16335         * tests/uninorm/test-u32-nfc-big.sh: New file.
16336         * tests/uninorm/test-u32-nfc-big.c: New file.
16337         * modules/uninorm/nfc-tests: New file.
16338
16339         New module 'uninorm/nfc'.
16340         * lib/uninorm/nfc.c: New file.
16341         * modules/uninorm/nfc: New file.
16342
16343         Tests for module 'uninorm/nfd'.
16344         * tests/uninorm/test-nfd.c: New file.
16345         * tests/uninorm/test-u8-nfd.c: New file.
16346         * tests/uninorm/test-u16-nfd.c: New file.
16347         * tests/uninorm/test-u32-nfd.c: New file.
16348         * tests/uninorm/test-u32-nfd-big.sh: New file.
16349         * tests/uninorm/test-u32-nfd-big.c: New file.
16350         * tests/uninorm/test-u32-normalize-big.h: New file.
16351         * tests/uninorm/test-u32-normalize-big.c: New file.
16352         * tests/uninorm/NormalizationTest.txt: New file, created from
16353         Unicode 5.1.0 NormalizationTest.txt.
16354         * modules/uninorm/nfd-tests: New file.
16355
16356         New module 'uninorm/nfd'.
16357         * lib/uninorm/nfd.c: New file.
16358         * modules/uninorm/nfd: New file.
16359
16360         New module 'uninorm/u32-normalize'.
16361         * lib/uninorm/u32-normalize.c: New file.
16362         * modules/uninorm/u32-normalize: New file.
16363
16364         New module 'uninorm/u16-normalize'.
16365         * lib/uninorm/u16-normalize.c: New file.
16366         * modules/uninorm/u16-normalize: New file.
16367
16368         New module 'uninorm/u8-normalize'.
16369         * lib/uninorm/u8-normalize.c: New file.
16370         * lib/uninorm/normalize-internal.h: New file.
16371         * lib/uninorm/u-normalize-internal.h: New file.
16372         * modules/uninorm/u8-normalize: New file.
16373
16374         New module 'uninorm/decompose-internal'.
16375         * lib/uninorm/decompose-internal.c: New file.
16376         * modules/uninorm/decompose-internal: New file.
16377
16378         Tests for module 'uninorm/composition'.
16379         * tests/uninorm/test-composition.c: New file.
16380         * modules/uninorm/composition-tests: New file.
16381
16382         New module 'uninorm/composition'.
16383         * lib/uninorm/composition.c: New file.
16384         * lib/uninorm/composition-table.gperf: New file, generated by
16385         gen-uni-tables.
16386         * modules/uninorm/composition: New file.
16387
16388         Tests for module 'uninorm/compat-decomposition'.
16389         * tests/uninorm/test-compat-decomposition.c: New file.
16390         * modules/uninorm/compat-decomposition-tests: New file.
16391
16392         New module 'uninorm/compat-decomposition'.
16393         * lib/uninorm/decompose-internal.h: New file.
16394         * lib/uninorm/compat-decomposition.c: New file.
16395         * modules/uninorm/compat-decomposition: New file.
16396
16397         Tests for module 'uninorm/canonical-decomposition'.
16398         * tests/uninorm/test-canonical-decomposition.c: New file.
16399         * modules/uninorm/canonical-decomposition-tests: New file.
16400
16401         New module 'uninorm/canonical-decomposition'.
16402         * lib/uninorm/canonical-decomposition.c: New file.
16403         * modules/uninorm/canonical-decomposition: New file.
16404
16405         Tests for module 'uninorm/decomposition'.
16406         * tests/uninorm/test-decomposition.c: New file.
16407         * modules/uninorm/decomposition-tests: New file.
16408
16409         New module 'uninorm/decomposition'.
16410         * lib/uninorm/decomposition.c: New file.
16411         * modules/uninorm/decomposition: New file.
16412
16413         New module 'uninorm/decomposition-table'.
16414         * lib/uninorm/decomposition-table.h: New file.
16415         * lib/uninorm/decomposition-table.c: New file.
16416         * lib/uninorm/decomposition-table1.h: New file, generated by
16417         gen-uni-tables.
16418         * lib/uninorm/decomposition-table2.h: New file, generated by
16419         gen-uni-tables.
16420         * modules/uninorm/decomposition-table: New file.
16421
16422         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16423         (UC_DECOMP_*): New enumeration items.
16424         (get_decomposition): New function.
16425         (struct decomp_table): New type.
16426         (output_decomposition, output_decomposition_tables): New functions.
16427         (unicode_composition_exclusions): New variable.
16428         (fill_composition_exclusions, debug_output_composition_tables): New
16429         functions.
16430         (main): Accept one more argument. Invoke fill_composition_exclusions.
16431         Output decomposition and composition tables.
16432
16433         New module 'uninorm/base'.
16434         * lib/uninorm.h: New file.
16435         * lib/unictype.h: Update comment.
16436         * modules/uninorm/base: New file.
16437
16438 2009-02-21  David Lutterkort  <lutter@redhat.com>
16439
16440         Tests for module 'safe-alloc'.
16441         * tests/test-safe-alloc.c: New file.
16442         * modules/safe-alloc-tests: New file.
16443
16444         New module 'safe-alloc'.
16445         * lib/safe-alloc.h: New file.
16446         * lib/safe-alloc.c: New file.
16447         * m4/safe-alloc.m4: New file.
16448         * modules/safe-alloc: New file.
16449         * doc/safe-alloc.texi: New file.
16450         * doc/gnulib.texi: Include it.
16451         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16452         safe-alloc.
16453
16454 2009-02-18  Bruno Haible  <bruno@clisp.org>
16455
16456         Fix link error on non-glibc systems.
16457         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16458         variable.
16459         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16460
16461 2009-02-18  Jim Meyering  <meyering@redhat.com>
16462
16463         fts: avoid used-uninitialized error due to recent change
16464         * lib/fts.c (fts_read): Guard uses of the new member,
16465         parent->fts_n_dirs_remaining, since it's not relevant for
16466         the parent of a directory specified on the command-line.
16467
16468 2009-02-17  James Youngman  <jay@gnu.org>
16469             Bruno Haible  <bruno@clisp.org>
16470
16471         * m4/include_next.m4: Reformulate comment.
16472
16473 2009-02-16  Jim Meyering  <meyering@redhat.com>
16474
16475         fts: add #if guards so that the fts_lgpl module still builds
16476         * lib/fts.c: Guard just-added hash-table-using parts with
16477         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16478         Reported by Simon Josefsson.
16479
16480 2009-02-15  Bruno Haible  <bruno@clisp.org>
16481
16482         * modules/array-mergesort-tests: New file.
16483         * tests/test-array-mergesort.c: New file.
16484
16485         New module 'array-mergesort'.
16486         * modules/array-mergesort: New file.
16487         * lib/array-mergesort.h: New file.
16488
16489 2009-02-15  Bruno Haible  <bruno@clisp.org>
16490
16491         Fix 2009-02-07 commit.
16492         * lib/gen-uni-tables.c (output_predicate, output_category,
16493         output_combclass, output_bidi_category, output_decimal_digit,
16494         output_digit, output_numeric, output_mirror, output_scripts,
16495         output_ident_category, output_simple_mapping): Fix format directives.
16496         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16497
16498 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16499
16500         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16501         fixes are available from IBM.
16502
16503 2009-02-13  Jim Meyering  <meyering@redhat.com>
16504
16505         fts: arrange not to stat non-directories in more cases
16506         This makes GNU find (when it doesn't need to stat each file)
16507         *much* more efficient at traversing reiserfs file systems.
16508         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16509         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16510         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16511         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16512         (leaf_optimization_applies): New function.
16513         (LCO_hash, LCO_compare): New helper functions.
16514         (link_count_optimize_ok): New function.
16515         (fts_stat): Initialize new member (if dir).
16516         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16517         we've just stat'ed a directory.  Skip the stat call when possible.
16518         ---
16519         Note this AFS-related exchange:
16520         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16521         and note find's pioctl call in find/fstype.c.
16522         But that is necessary only if you want to enable the
16523         optimization for AFS, and for now, I don't.
16524
16525         fts: move a function definition "up" (no semantic change)
16526         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16527         "up" to precede upcoming use of a related function.
16528
16529 2009-02-11  Jim Meyering  <meyering@redhat.com>
16530
16531         fts: correct internal computation of nlinks (optimization-related)
16532         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16533         whether the current entry is a directory, so don't test it.
16534
16535 2009-02-10  Bruno Haible  <bruno@clisp.org>
16536
16537         Tests for module 'uniwbrk/ulc-wordbreaks'.
16538         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16539         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16540         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16541
16542         Tests for module 'uniwbrk/u32-wordbreaks'.
16543         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16544         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16545
16546         Tests for module 'uniwbrk/u16-wordbreaks'.
16547         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16548         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16549
16550         Tests for module 'uniwbrk/u8-wordbreaks'.
16551         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16552         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16553
16554 2009-02-10  Bruno Haible  <bruno@clisp.org>
16555
16556         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16557         property.
16558         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16559         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16560         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16561
16562 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16563
16564         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16565         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16566
16567 2009-02-10  Bruno Haible  <bruno@clisp.org>
16568
16569         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16570         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16571         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16572         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16573         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16574         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16575
16576 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16577
16578         * lib/sockets.h (gl_fd_to_handle): New function.
16579
16580         * tests/test-sockets.c: Call gl_fd_to_handle.
16581
16582 2009-02-09  Bruno Haible  <bruno@clisp.org>
16583
16584         * doc/havelib.texi: Document the conventions on bi-arch systems.
16585
16586 2009-02-08  Bruno Haible  <bruno@clisp.org>
16587
16588         Document the AC_LIB_LINKFLAGS macro.
16589         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16590         * doc/gnulib.texi: Include it.
16591
16592 2009-02-08  Bruno Haible  <bruno@clisp.org>
16593
16594         Fix wrong order of sections, compared to TOC.
16595         * doc/gnulib.texi: Include relocatable-maint.texi after the
16596         "Regular expressions" node, not before.
16597
16598 2009-02-08  Bruno Haible  <bruno@clisp.org>
16599
16600         Tests for module 'unicase/totitle'.
16601         * modules/unicase/totitle-tests: New file.
16602
16603         Tests for module 'unicase/tolower'.
16604         * modules/unicase/tolower-tests: New file.
16605
16606         Tests for module 'unicase/toupper'.
16607         * modules/unicase/toupper-tests: New file.
16608         * tests/unicase/test-mapping-part1.h: New file.
16609         * tests/unicase/test-mapping-part2.h: New file.
16610
16611         New module 'unicase/totitle'.
16612         * modules/unicase/totitle: New file.
16613         * lib/unicase/totitle.c: New file.
16614
16615         New module 'unicase/tolower'.
16616         * modules/unicase/tolower: New file.
16617         * lib/unicase/tolower.c: New file.
16618
16619         New module 'unicase/toupper'.
16620         * modules/unicase/toupper: New file.
16621         * lib/unicase/toupper.c: New file.
16622         * lib/unicase/simple-mapping.h: New file.
16623
16624         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16625         (mapping_table): New structure.
16626         (output_simple_mapping): New function.
16627         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16628         * modules/gen-uni-tables (Description): Update.
16629         * lib/unicase/toupper.h: New file, automatically generated by
16630         gen-uni-tables.
16631         * lib/unicase/tolower.h: New file, automatically generated by
16632         gen-uni-tables.
16633         * lib/unicase/totitle.h: New file, automatically generated by
16634         gen-uni-tables.
16635         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16636         gen-uni-tables.
16637         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16638         gen-uni-tables.
16639         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16640         gen-uni-tables.
16641
16642         New module 'unicase/base'.
16643         * modules/unicase/base: New file.
16644         * lib/unicase.h: New file.
16645
16646 2009-02-08  Bruno Haible  <bruno@clisp.org>
16647
16648         New module 'uniwbrk/ulc-wordbreaks'.
16649         * modules/uniwbrk/ulc-wordbreaks: New file.
16650         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16651
16652         New module 'uniwbrk/u32-wordbreaks'.
16653         * modules/uniwbrk/u32-wordbreaks: New file.
16654         * lib/uniwbrk/u32-wordbreaks.c: New file.
16655
16656         New module 'uniwbrk/u16-wordbreaks'.
16657         * modules/uniwbrk/u16-wordbreaks: New file.
16658         * lib/uniwbrk/u16-wordbreaks.c: New file.
16659
16660         New module 'uniwbrk/u8-wordbreaks'.
16661         * modules/uniwbrk/u8-wordbreaks: New file.
16662         * lib/uniwbrk/u8-wordbreaks.c: New file.
16663         * lib/uniwbrk/u-wordbreaks.h: New file.
16664
16665         New module 'uniwbrk/table'.
16666         * modules/uniwbrk/table: New file.
16667         * lib/uniwbrk/wbrktable.h: New file.
16668         * lib/uniwbrk/wbrktable.c: New file.
16669
16670         New module 'uniwbrk/wordbreak-property'.
16671         * modules/uniwbrk/wordbreak-property: New file.
16672         * lib/uniwbrk/wordbreak-property.c: New file.
16673
16674         * lib/gen-uni-tables.c (WBP_*): New enum items.
16675         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16676         (unicode_org_wbp): New variable.
16677         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16678         New functions.
16679         (wbp_table): New structure.
16680         (output_wbp, output_wbrk_tables): New functions.
16681         (main): Accept additional argument. Invoke fill_org_wbp,
16682         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16683         output_wbrk_tables.
16684         * modules/gen-uni-tables (Description): Update.
16685         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16686         gen-uni-tables.
16687
16688         New module 'uniwbrk/base'.
16689         * modules/uniwbrk/base: New file.
16690         * lib/uniwbrk.h: New file.
16691
16692 2009-02-08  Bruno Haible  <bruno@clisp.org>
16693
16694         Update to Unicode 5.1.0.
16695         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16696         U+2185..U+2188.
16697         (is_property_default_ignorable_code_point): Don't include characters
16698         of category Cc or Cs and not-a-characters.
16699         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16700         U+0D79, U+109E, U+109F, U+A60C.
16701         * lib/unictype/bidi_of.h: Regenerated.
16702         * lib/unictype/blocks.h: Regenerated.
16703         * lib/unictype/categ_C.h: Regenerated.
16704         * lib/unictype/categ_Cf.h: Regenerated.
16705         * lib/unictype/categ_Cn.h: Regenerated.
16706         * lib/unictype/categ_L.h: Regenerated.
16707         * lib/unictype/categ_Ll.h: Regenerated.
16708         * lib/unictype/categ_Lm.h: Regenerated.
16709         * lib/unictype/categ_Lo.h: Regenerated.
16710         * lib/unictype/categ_Lu.h: Regenerated.
16711         * lib/unictype/categ_M.h: Regenerated.
16712         * lib/unictype/categ_Mc.h: Regenerated.
16713         * lib/unictype/categ_Me.h: Regenerated.
16714         * lib/unictype/categ_Mn.h: Regenerated.
16715         * lib/unictype/categ_N.h: Regenerated.
16716         * lib/unictype/categ_Nd.h: Regenerated.
16717         * lib/unictype/categ_Nl.h: Regenerated.
16718         * lib/unictype/categ_No.h: Regenerated.
16719         * lib/unictype/categ_P.h: Regenerated.
16720         * lib/unictype/categ_Pd.h: Regenerated.
16721         * lib/unictype/categ_Pe.h: Regenerated.
16722         * lib/unictype/categ_Pf.h: Regenerated.
16723         * lib/unictype/categ_Pi.h: Regenerated.
16724         * lib/unictype/categ_Po.h: Regenerated.
16725         * lib/unictype/categ_Ps.h: Regenerated.
16726         * lib/unictype/categ_S.h: Regenerated.
16727         * lib/unictype/categ_Sk.h: Regenerated.
16728         * lib/unictype/categ_Sm.h: Regenerated.
16729         * lib/unictype/categ_So.h: Regenerated.
16730         * lib/unictype/categ_of.h: Regenerated.
16731         * lib/unictype/combining.h: Regenerated.
16732         * lib/unictype/ctype_alnum.h: Regenerated.
16733         * lib/unictype/ctype_alpha.h: Regenerated.
16734         * lib/unictype/ctype_graph.h: Regenerated.
16735         * lib/unictype/ctype_lower.h: Regenerated.
16736         * lib/unictype/ctype_print.h: Regenerated.
16737         * lib/unictype/ctype_punct.h: Regenerated.
16738         * lib/unictype/ctype_upper.h: Regenerated.
16739         * lib/unictype/decdigit.h: Regenerated.
16740         * lib/unictype/digit.h: Regenerated.
16741         * lib/unictype/mirror.h: Regenerated.
16742         * lib/unictype/numeric.h: Regenerated.
16743         * lib/unictype/pr_alphabetic.h: Regenerated.
16744         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16745         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16746         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16747         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16748         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16749         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16750         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16751         * lib/unictype/pr_combining.h: Regenerated.
16752         * lib/unictype/pr_dash.h: Regenerated.
16753         * lib/unictype/pr_decimal_digit.h: Regenerated.
16754         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16755         * lib/unictype/pr_deprecated.h: Regenerated.
16756         * lib/unictype/pr_diacritic.h: Regenerated.
16757         * lib/unictype/pr_extender.h: Regenerated.
16758         * lib/unictype/pr_format_control.h: Regenerated.
16759         * lib/unictype/pr_grapheme_base.h: Regenerated.
16760         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16761         * lib/unictype/pr_grapheme_link.h: Regenerated.
16762         * lib/unictype/pr_id_continue.h: Regenerated.
16763         * lib/unictype/pr_id_start.h: Regenerated.
16764         * lib/unictype/pr_ideographic.h: Regenerated.
16765         * lib/unictype/pr_ignorable_control.h: Regenerated.
16766         * lib/unictype/pr_lowercase.h: Regenerated.
16767         * lib/unictype/pr_math.h: Regenerated.
16768         * lib/unictype/pr_numeric.h: Regenerated.
16769         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16770         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16771         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16772         * lib/unictype/pr_other_id_continue.h: Regenerated.
16773         * lib/unictype/pr_other_lowercase.h: Regenerated.
16774         * lib/unictype/pr_other_math.h: Regenerated.
16775         * lib/unictype/pr_punctuation.h: Regenerated.
16776         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16777         * lib/unictype/pr_soft_dotted.h: Regenerated.
16778         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16779         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16780         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16781         * lib/unictype/pr_uppercase.h: Regenerated.
16782         * lib/unictype/pr_xid_continue.h: Regenerated.
16783         * lib/unictype/pr_xid_start.h: Regenerated.
16784         * lib/unictype/pr_zero_width.h: Regenerated.
16785         * lib/unictype/scripts.h: Regenerated.
16786         * lib/unictype/scripts_byname.gperf: Regenerated.
16787         * lib/unictype/sy_java_ident.h: Regenerated.
16788         * lib/unilbrk/lbrkprop1.h: Regenerated.
16789         * lib/unilbrk/lbrkprop2.h: Regenerated.
16790         * tests/unictype/test-categ_C.c: Regenerated.
16791         * tests/unictype/test-categ_Cf.c: Regenerated.
16792         * tests/unictype/test-categ_Cn.c: Regenerated.
16793         * tests/unictype/test-categ_L.c: Regenerated.
16794         * tests/unictype/test-categ_Ll.c: Regenerated.
16795         * tests/unictype/test-categ_Lm.c: Regenerated.
16796         * tests/unictype/test-categ_Lo.c: Regenerated.
16797         * tests/unictype/test-categ_Lu.c: Regenerated.
16798         * tests/unictype/test-categ_M.c: Regenerated.
16799         * tests/unictype/test-categ_Mc.c: Regenerated.
16800         * tests/unictype/test-categ_Me.c: Regenerated.
16801         * tests/unictype/test-categ_Mn.c: Regenerated.
16802         * tests/unictype/test-categ_N.c: Regenerated.
16803         * tests/unictype/test-categ_Nd.c: Regenerated.
16804         * tests/unictype/test-categ_Nl.c: Regenerated.
16805         * tests/unictype/test-categ_No.c: Regenerated.
16806         * tests/unictype/test-categ_P.c: Regenerated.
16807         * tests/unictype/test-categ_Pd.c: Regenerated.
16808         * tests/unictype/test-categ_Pe.c: Regenerated.
16809         * tests/unictype/test-categ_Pf.c: Regenerated.
16810         * tests/unictype/test-categ_Pi.c: Regenerated.
16811         * tests/unictype/test-categ_Po.c: Regenerated.
16812         * tests/unictype/test-categ_Ps.c: Regenerated.
16813         * tests/unictype/test-categ_S.c: Regenerated.
16814         * tests/unictype/test-categ_Sk.c: Regenerated.
16815         * tests/unictype/test-categ_Sm.c: Regenerated.
16816         * tests/unictype/test-categ_So.c: Regenerated.
16817         * tests/unictype/test-ctype_alnum.c: Regenerated.
16818         * tests/unictype/test-ctype_alpha.c: Regenerated.
16819         * tests/unictype/test-ctype_graph.c: Regenerated.
16820         * tests/unictype/test-ctype_lower.c: Regenerated.
16821         * tests/unictype/test-ctype_print.c: Regenerated.
16822         * tests/unictype/test-ctype_punct.c: Regenerated.
16823         * tests/unictype/test-ctype_upper.c: Regenerated.
16824         * tests/unictype/test-decdigit.h: Regenerated.
16825         * tests/unictype/test-digit.h: Regenerated.
16826         * tests/unictype/test-numeric.h: Regenerated.
16827         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16828         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16829         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16830         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16831         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16832         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16833         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16834         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16835         * tests/unictype/test-pr_combining.c: Regenerated.
16836         * tests/unictype/test-pr_dash.c: Regenerated.
16837         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16838         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16839         * tests/unictype/test-pr_deprecated.c: Regenerated.
16840         * tests/unictype/test-pr_diacritic.c: Regenerated.
16841         * tests/unictype/test-pr_extender.c: Regenerated.
16842         * tests/unictype/test-pr_format_control.c: Regenerated.
16843         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16844         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16845         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16846         * tests/unictype/test-pr_id_continue.c: Regenerated.
16847         * tests/unictype/test-pr_id_start.c: Regenerated.
16848         * tests/unictype/test-pr_ideographic.c: Regenerated.
16849         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16850         * tests/unictype/test-pr_lowercase.c: Regenerated.
16851         * tests/unictype/test-pr_math.c: Regenerated.
16852         * tests/unictype/test-pr_numeric.c: Regenerated.
16853         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16854         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16855         Regenerated.
16856         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16857         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16858         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16859         * tests/unictype/test-pr_other_math.c: Regenerated.
16860         * tests/unictype/test-pr_punctuation.c: Regenerated.
16861         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16862         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16863         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16864         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16865         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16866         * tests/unictype/test-pr_uppercase.c: Regenerated.
16867         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16868         * tests/unictype/test-pr_xid_start.c: Regenerated.
16869         * tests/unictype/test-pr_zero_width.c: Regenerated.
16870
16871         Update to Unicode 5.1.0.
16872         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16873         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16874         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16875         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16876         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16877         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16878         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16879         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16880         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16881         (nonspacing_table_ind): Update.
16882         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16883
16884         Update to Unicode 5.1.0.
16885         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16886         code transform.
16887         * lib/uniname/uniname.c (unicode_character_name,
16888         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16889         * lib/uniname/uninames.h: Regenerated.
16890         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16891
16892 2009-02-07  Bruno Haible  <bruno@clisp.org>
16893
16894         Merge gen-ctype and gen-lbrk into a single program.
16895         * lib/gen-uni-tables.c: New file, incorporating
16896         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16897         Add directory prefixes to the names of the generated files.
16898         * lib/unictype/gen-ctype.c: Remove file.
16899         * lib/unilbrk/gen-lbrk.c: Remove file.
16900         * modules/gen-uni-tables: New file.
16901         * modules/unictype/gen-ctype: Remove file.
16902         * modules/unilbrk/gen-lbrk: Remove file.
16903
16904 2009-02-07  Bruno Haible  <bruno@clisp.org>
16905
16906         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16907
16908         New module 'unistr/u32-strcoll'.
16909         * modules/unistr/u32-strcoll: New file.
16910         * lib/unistr/u32-strcoll.c: New file.
16911
16912         New module 'unistr/u16-strcoll'.
16913         * modules/unistr/u16-strcoll: New file.
16914         * lib/unistr/u16-strcoll.c: New file.
16915
16916         New module 'unistr/u8-strcoll'.
16917         * modules/unistr/u8-strcoll: New file.
16918         * lib/unistr/u8-strcoll.c: New file.
16919         * lib/unistr/u-strcoll.h: New file.
16920
16921 2009-02-07  Bruno Haible  <bruno@clisp.org>
16922
16923         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16924         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16925         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16926         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16927         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16928         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16929
16930 2009-02-07  Bruno Haible  <bruno@clisp.org>
16931
16932         Make 64-bit clean.
16933         * lib/unictype/gen-ctype.c (output_predicate, output_category,
16934         output_combclass, output_bidi_category, output_decimal_digit,
16935         output_digit, output_numeric, output_mirror, output_scripts,
16936         output_ident_category): Use proper width specifier in format strings.
16937
16938 2009-02-07  Bruno Haible  <bruno@clisp.org>
16939
16940         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16941         failure behaviour.
16942
16943 2009-02-07  Jim Meyering  <meyering@redhat.com>
16944
16945         regex: avoid compilation failure with upcoming gcc-4.4
16946         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16947         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16948         "... error: integer overflow in preprocessor expression".
16949
16950 2009-02-05  Ben Pfaff  <blp@gnu.org>
16951
16952         Fix link errors on Windows when close module is used.
16953         * modules/close: Add $(LIB_CLOSE) to Link section.
16954         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16955         $(LIB_CLOSE) on Windows.
16956
16957 2009-02-05  Jim Meyering  <meyering@redhat.com>
16958
16959         still avoid unused-parameter warnings, but do it cleanly
16960         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16961         (get_fs_usage): Cast to void instead.
16962         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16963         (dev_from_mount_options, read_file_system_list): Cast to void.
16964         Prompted by Bruno Haible.
16965
16966 2009-02-04  Jim Meyering  <meyering@redhat.com>
16967
16968         fsusage.c: correct copyright year
16969         * lib/fsusage.c: Reflect year in which the change is pushed into
16970
16971         avoid misc. warnings
16972         * lib/fsusage.c (UNUSED_PARAM): Define.
16973         (get_fs_usage): Mark parameter "disk" as unused.
16974         * lib/getugroups.c (getgrent): Use "void" in prototype.
16975         * lib/mountlist.c: Mark unused parameters.
16976         (read_file_system_list): Declare a local with "const".
16977         * lib/nanosleep.c (getnow): Declare static.
16978         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16979
16980         dirfd: set errno upon failure
16981         * lib/dirfd.c: Include <errno.h>.
16982         Set errno to ENOTSUP when returning -1.
16983         * modules/dirfd (Depends-on): Add errno.
16984         Suggested by John Kodis <kodis@comcast.net>.
16985
16986 2009-02-01  Bruno Haible  <bruno@clisp.org>
16987
16988         Don't assume sizeof (long) >= sizeof (void *).
16989         * lib/memcmp.c: Include stdint.h.
16990         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16991         srcp2 to 'const byte *'.
16992         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16993         types to uintptr_t.
16994         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16995         * modules/memcmp (Depends-on): Add stdint.
16996         Reported by Ozkan Sezer <sezeroz@gmail.com>.
16997
16998 2009-01-30  Eric Blake  <ebb9@byu.net>
16999
17000         fix more require-before-expand issues
17001         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
17002         expand, AC_PROG_AWK.
17003         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
17004
17005 2009-01-28  Eric Blake  <ebb9@byu.net>
17006
17007         version-etc: use consistent URL formatting
17008         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
17009         Improve formatting.  Use fputs for string without %.
17010
17011 2009-01-28  Jim Meyering  <meyering@redhat.com>
17012
17013         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17014         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17015         "underquoted definition of NAME" from autoconf-2.59.
17016
17017 2009-01-28  Bruno Haible  <bruno@clisp.org>
17018
17019         * doc/gnulib.texi: Add "Obsolete modules" to index.
17020
17021 2009-01-28  Jim Meyering  <meyering@redhat.com>
17022
17023         useless-if-before-free: recognize more variants
17024         * build-aux/useless-if-before-free: Also recognize e.g.,
17025         if (NULL != p) free (p);
17026
17027 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17028
17029         test-getaddrinfo: skip (don't fail) this test when there's no network
17030         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17031         on the presumption that it means you lack network access.
17032
17033 2009-01-26  Jim Meyering  <meyering@redhat.com>
17034
17035         fflush: avoid warnings on modern systems
17036         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17037         pos and result, into scopes where they're used.
17038
17039 2009-01-26  Eric Blake  <ebb9@byu.net>
17040
17041         Silence warning reintroduced by recent extensions patch.
17042         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17043         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17044         autoconf.
17045
17046         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17047         * m4/00gnulib.m4: New file.
17048         * gnulib-tool (func_get_filelist): Always use it.
17049         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17050         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17051
17052 2009-01-25  Bruno Haible  <bruno@clisp.org>
17053
17054         Make test-quotearg work on MacOS X and AIX.
17055         * tests/test-quotearg.sh: New file.
17056         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17057         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17058         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17059         include <libintl.h>.
17060         (fake_locale): Remove variable.
17061         (gettext, dgettext, dcgettext): Remove functions.
17062         (main): Instead of setting a fake locale, set a real locale. Call
17063         textdomain and bindtextdomain.
17064         * modules/quotearg-tests (Files): Add the new files.
17065         (Depends-on): Add gettext, setenv, unsetenv.
17066         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17067         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17068         Augment TESTS_ENVIRONMENT.
17069
17070 2009-01-25  Bruno Haible  <bruno@clisp.org>
17071
17072         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17073         fr_FR.ISO8859-1 locale on MacOS X.
17074         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17075         ja_JP.eucJP locale on MacOS X.
17076         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17077         zh_CN.GB18030 locale on MacOS X.
17078
17079 2009-01-25  Bruno Haible  <bruno@clisp.org>
17080
17081         Avoid link errors on MacOS X 10.3.
17082         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17083         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17084
17085 2009-01-25  Bruno Haible  <bruno@clisp.org>
17086
17087         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17088         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17089         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17090         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17091         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17092         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17093         posix_spawnattr_init, posix_spawnattr_setsigmask,
17094         posix_spawnattr_setflags, posix_spawnattr_destroy.
17095
17096         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17097         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17098         * modules/execute (Files): Remove m4/posix_spawn.m4.
17099         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17100         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17101         posix_spawnattr_init, posix_spawnattr_setsigmask,
17102         posix_spawnattr_setflags, posix_spawnattr_destroy.
17103
17104 2009-01-25  Bruno Haible  <bruno@clisp.org>
17105
17106         * lib/glthread/threadlib.c: Include <stdlib.h>.
17107
17108 2009-01-25  Bruno Haible  <bruno@clisp.org>
17109
17110         * lib/glthread/threadlib.c (dummy): New declaration.
17111
17112 2009-01-25  Bruno Haible  <bruno@clisp.org>
17113
17114         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17115         multibyte characters also for the GB18030 encoding. Don't crash when
17116         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17117
17118 2009-01-25  Bruno Haible  <bruno@clisp.org>
17119
17120         Avoid redefining 'struct random_data' on OSF/1 5.1.
17121         * lib/stdlib.in.h: Include <random.h> if it exists.
17122         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17123         HAVE_RANDOM_H. Include <random.h> when testing whether
17124         'struct random_data' exists.
17125         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17126
17127 2009-01-25  Bruno Haible  <bruno@clisp.org>
17128
17129         Don't install charset.alias on MacOS X >= 10.3.
17130         * lib/localcharset.c (DARWIN7): New macro.
17131         (get_charset_aliases): Hardcode the result for Darwin7.
17132         * modules/localcharset (install-exec-local): Don't install
17133         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17134
17135 2009-01-25  Bruno Haible  <bruno@clisp.org>
17136
17137         Don't install charset.alias on mingw and Cygwin.
17138         * modules/localcharset (install-exec-local): Don't install
17139         charset.alias on mingw and Cygwin, if the file does not yet exist.
17140         The result for these platforms is hardcoded in localcharset.c.
17141
17142 2009-01-25  Bruno Haible  <bruno@clisp.org>
17143
17144         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17145         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17146         before requiring AC_USE_SYSTEM_EXTENSIONS.
17147
17148 2009-01-25  Jim Meyering  <meyering@redhat.com>
17149
17150         c-strtod: avoid warnings
17151         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17152         "assignment discards qualifiers from pointer target type" warnings.
17153
17154 2009-01-24  Bruno Haible  <bruno@clisp.org>
17155
17156         Add support for non-UTF-8 locales on MacOS X.
17157         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17158         canonical encodings. For Darwin 7 and newer, don't map traditional
17159         encodings to UTF-8.
17160         Reported by Vincent Lefevre <vincent@vinc17.org>
17161         at <http://savannah.gnu.org/bugs/?25235>.
17162
17163 2009-01-24  Bruno Haible  <bruno@clisp.org>
17164
17165         * doc/gnulib.texi (Obsolete modules): New section.
17166         Reported by Mike Frysinger <vapier@gentoo.org>.
17167
17168 2009-01-24  Bruno Haible  <bruno@clisp.org>
17169
17170         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17171         (%.dvi): New rule.
17172
17173 2009-01-24  Bruno Haible  <bruno@clisp.org>
17174
17175         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17176         Reported by Eric Blake.
17177
17178 2009-01-24  Bruno Haible  <bruno@clisp.org>
17179
17180         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17181         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17182         Reported by Gary V. Vaughan <gary@gnu.org>.
17183
17184 2009-01-24  Bruno Haible  <bruno@clisp.org>
17185
17186         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17187
17188 2009-01-23  Bruno Haible  <bruno@clisp.org>
17189
17190         Make c-strtod, c-strtold usable in libraries.
17191         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17192         (C_STRTOD): Call strdup instead of xstrdup.
17193         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17194         * modules/c-strtold (Depends-on): Likewise.
17195         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17196         * NEWS: Mention the change.
17197         Reported by Michael Gold <mgold@ncf.ca>.
17198
17199 2009-01-23  Jim Meyering  <meyering@redhat.com>
17200
17201         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17202         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17203         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17204
17205 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17206
17207         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17208         GNU CoreUtils.
17209         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17210         * modules/version-etc (Description): Update.
17211
17212 2009-01-22  Bruno Haible  <bruno@clisp.org>
17213
17214         Cache the C locale object.
17215         * lib/c-strtod.c (c_locale_cache): New variable.
17216         (c_locale): New function.
17217         (C_STRTOD): Use it, and don't call freelocale.
17218         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17219         Suggested by Paolo Bonzini.
17220
17221 2009-01-21  Bruno Haible  <bruno@clisp.org>
17222
17223         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17224         conditions other than overflow.
17225
17226 2009-01-21  Bruno Haible  <bruno@clisp.org>
17227
17228         * lib/c-strtod.c: Include errno.h.
17229         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17230         value from STRTOD_L and STRTOD.
17231
17232 2009-01-21  Bruno Haible  <bruno@clisp.org>
17233         and Jim Meyering  <meyering@redhat.com>
17234
17235         nanosleep: skip configure test (fail it) for apple universal builds
17236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17237         universal builds, assume that nanosleep does not work.
17238         * modules/nanosleep (Depends-on): Add multiarch.
17239
17240         mktime: skip configure test (fail it) for apple universal builds
17241         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17242         universal builds, assume that mktime does not work.
17243         * modules/mktime (Depends-on): Add multiarch.
17244
17245 2009-01-21  Eric Blake  <ebb9@byu.net>
17246
17247         multiarch: avoid expand-before-require warning
17248         * modules/multiarch (configure.ac): Require, rather than expand,
17249         gl_MULTIARCH.
17250         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17251         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17252         enforce that all clients require it.  Partial reversion of
17253         2008-12-29 patch.
17254
17255         error: avoid expand-before-require warning
17256         * modules/errno (configure.ac): Require, rather than expand,
17257         gl_HEADER_ERRNO_H.
17258         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17259         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17260         enforce that all clients require it.
17261
17262         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17263         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17264         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17265         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17266
17267 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17268
17269         Revert:
17270         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17271
17272         regex: do not depend on obsolete modules.
17273         * modules/regex: Remove memcmp and memmove.
17274
17275 2009-01-20  Bruno Haible  <bruno@clisp.org>
17276
17277         Make the 'link' module link on Windows NT 4.
17278         * lib/link.c (_WIN32_WINNT): Don't define.
17279         (CreateHardLinkFuncType): New type.
17280         (CreateHardLinkFunc, initialized): New variables.
17281         (initialize): New function.
17282         (link): Invoke CreateHardLink indirectly through the function pointer.
17283
17284 2009-01-20  Bruno Haible  <bruno@clisp.org>
17285
17286         Fix compilation failure on mingw.
17287         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17288
17289 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17290
17291         * doc/c-strtod.texi: Mention a couple of restrictions.
17292
17293 2009-01-20  Jim Meyering  <meyering@redhat.com>
17294
17295         gettimeofday: move more declarations out of functions
17296         * lib/gettimeofday.c: Move extern declarations of tzset and
17297         gmtime out of containing functions.  Prompted by Bruno Haible.
17298
17299 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17300
17301         regex: do not depend on obsolete modules.
17302         * modules/regex: Remove memcmp and memmove.
17303
17304 2009-01-19  Bruno Haible  <bruno@clisp.org>
17305
17306         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17307         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17308         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17309         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17310         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17311
17312 2009-01-19  Bruno Haible  <bruno@clisp.org>
17313
17314         * tests/test-link.c: Include <errno.h>.
17315         (main): Exit with code 77 when a hard link cannot be created due to
17316         the file system.
17317         * tests/test-link.sh: Skip test when a hard link cannot be created due
17318         to the file system.
17319         Suggested by Eric Blake.
17320
17321 2009-01-19  Martin Lambers  <marlam@marlam.de>
17322
17323         * modules/link-tests: New file.
17324         * tests/test-link.sh: New file.
17325         * tests/test-link.c: New file.
17326
17327 2009-01-19  Eric Blake  <ebb9@byu.net>
17328
17329         doc: mention another function added in cygwin 1.7.0
17330         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17331         Another new function in cygwin 1.7.
17332
17333 2009-01-19  Bruno Haible  <bruno@clisp.org>
17334
17335         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17336         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17337         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17338         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17339         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17340         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17341         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17342         * m4/md4.m4 (gl_MD4): Likewise.
17343         * m4/md5.m4 (gl_MD5): Likewise.
17344         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17345         * m4/sha1.m4 (gl_SHA1): Likewise.
17346         * m4/sha256.m4 (gl_SHA256): Likewise.
17347         * m4/sha512.m4 (gl_SHA512): Likewise.
17348
17349 2009-01-19  Bruno Haible  <bruno@clisp.org>
17350
17351         * modules/uniname/uniname-tests (Depends-on): Add progname.
17352         * tests/uniname/test-uninames.c: Include progname.h.
17353         (main): Call set_program_name.
17354
17355         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17356         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17357         (main): Call set_program_name.
17358
17359         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17360         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17361         (main): Call set_program_name.
17362
17363         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17364         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17365         (main): Call set_program_name.
17366
17367         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17368         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17369         (main): Call set_program_name.
17370
17371         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17372         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17373         (main): Call set_program_name.
17374
17375         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17376         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17377         (main): Call set_program_name.
17378
17379         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17380         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17381         (main): Call set_program_name.
17382
17383         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17384         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17385         (main): Call set_program_name.
17386
17387 2009-01-19  Eric Blake  <ebb9@byu.net>
17388
17389         test-unistd: test previous patch
17390         * tests/test-unistd.c: Test *_FILENO macros.
17391
17392         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17393         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17394         Guarantee a definition.
17395         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17396         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17397         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17398         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17399         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17400         Likewise.
17401         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17402         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17403         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17404         Likewise.
17405         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17406         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17407         (STDERR_FILENO): Likewise.
17408         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17409         (STDERR_FILENO): Likewise.
17410         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17411         (STDERR_FILENO): Likewise.
17412         Reported by Elbert Pol.
17413
17414 2009-01-19  Eric Blake  <ebb9@byu.net>
17415
17416         doc: mention more functions added in cygwin 1.7.0
17417         * doc/posix-functions/abort.texi (abort): Update wording related
17418         to cygwin.
17419         * doc/posix-functions/daylight.texi (daylight): Likewise.
17420         * doc/posix-functions/optarg.texi (optarg): Likewise.
17421         * doc/posix-functions/optarg.texi (opterr): Likewise.
17422         * doc/posix-functions/optarg.texi (optind): Likewise.
17423         * doc/posix-functions/optarg.texi (optopt): Likewise.
17424         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17425         worked in 1.5.x, and was withdrawn in 1.7.
17426         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17427         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17428         cygwin versions.
17429         * doc/posix-functions/perror.texi (perror): Likewise.
17430         * doc/posix-functions/printf.texi (printf): Likewise.
17431         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17432         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17433         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17434         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17435         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17436         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17437         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17438         Likewise.
17439         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17440         Likewise.
17441         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17442         this function.
17443         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17444         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17445         Likewise.
17446         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17447         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17448         * doc/posix-functions/confstr.texi (confstr): Likewise.
17449         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17450         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17451         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17452         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17453         * doc/posix-functions/fputws.texi (fputws): Likewise.
17454         * doc/posix-functions/fwide.texi (fwide): Likewise.
17455         * doc/posix-functions/getwc.texi (getwc): Likewise.
17456         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17457         * doc/posix-functions/putwc.texi (putwc): Likewise.
17458         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17459         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17460         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17461         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17462         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17463         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17464         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17465         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17466         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17467         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17468         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17469
17470 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17471
17472         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17473         * lib/ioctl.c: Include <sys/ioctl.h>.
17474
17475 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17476
17477         * modules/getdate-tests (Depends-on): Add progname.
17478         * tests/test-getdate.c: Use progname module, to avoid link errors
17479         on non-glibc systems.
17480
17481 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17482
17483         * modules/filenamecat-tests (Depends-on): Add progname.
17484         * modules/fstrcmp-tests (Depends-on): Likewise.
17485
17486         * tests/test-filenamecat.c: Use progname module, to avoid link
17487         errors on non-glibc systems.
17488         * tests/test-fstrcmp.c: Likewise.
17489
17490 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17491
17492         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17493         * lib/gettimeofday.c: Move extern declaration out of function.
17494
17495 2009-01-18  Bruno Haible  <bruno@clisp.org>
17496
17497         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17498         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17499         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17500
17501 2009-01-18  Bruno Haible  <bruno@clisp.org>
17502
17503         * lib/strftime.c (MEMPCPY): Remove unused macro.
17504         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17505
17506 2009-01-18  Martin Lambers  <marlam@marlam.de>
17507
17508         New module 'link'.
17509         * lib/unistd.in.h (link): New declaration.
17510         * lib/link.c: New file.
17511         * m4/link.m4: New file.
17512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17513         HAVE_LINK.
17514         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17515         * modules/link: New file.
17516         * doc/posix-functions/link.texi: Mention the new module.
17517
17518 2009-01-18  Bruno Haible  <bruno@clisp.org>
17519
17520         * tests/test-avltree_list.c (main): Call set_program_name.
17521         * tests/test-avltree_oset.c (main): Likewise.
17522         * tests/test-obstack-printf.c: Include progname.h.
17523         (main): Call set_program_name.
17524         * tests/test-quotearg.c: Include progname.h.
17525         (main): Call set_program_name.
17526         * tests/test-xmemdup0.c: Include progname.h.
17527         (main): Call set_program_name.
17528
17529 2009-01-18  Bruno Haible  <bruno@clisp.org>
17530
17531         New module 'alphasort'.
17532         * lib/dirent.in.h (alphasort): New declaration.
17533         * lib/alphasort.c: New file, from glibc with modifications.
17534         * m4/alphasort.m4: New file.
17535         * modules/alphasort: New file.
17536         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17537         HAVE_ALPHASORT.
17538         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17539         HAVE_ALPHASORT.
17540         * doc/posix-functions/alphasort.texi: Mention the new module and the
17541         portability problems.
17542
17543 2009-01-18  Bruno Haible  <bruno@clisp.org>
17544
17545         New module 'scandir'.
17546         * lib/dirent.in.h (scandir): New declaration.
17547         * lib/scandir.c: New file, from glibc with modifications.
17548         * m4/scandir.m4: New file.
17549         * modules/scandir: New file.
17550         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17551         HAVE_SCANDIR.
17552         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17553         HAVE_SCANDIR.
17554         * doc/posix-functions/scandir.texi: Mention the new module and the
17555         portability problems.
17556
17557 2009-01-17  Bruno Haible  <bruno@clisp.org>
17558
17559         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17560         Update documentation.
17561         (func_remove_suffix): Escape all dots in the suffix. Update
17562         documentation.
17563         (func_filter_filelist): Update documentation.
17564         Reported by Ralf Wildenhues.
17565
17566 2009-01-17  Bruno Haible  <bruno@clisp.org>
17567
17568         * modules/dprintf-posix-tests: New file.
17569         * tests/test-dprintf-posix.sh: New file.
17570         * tests/test-dprintf-posix.c: New file.
17571
17572         New modules 'dprintf', 'dprintf-posix'.
17573         * lib/stdio.in.h (dprintf): New declaration.
17574         * lib/dprintf.c: New file.
17575         * m4/dprintf.m4: New file.
17576         * m4/dprintf-posix.m4: New file.
17577         * modules/dprintf: New file.
17578         * modules/dprintf-posix: New file.
17579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17580         HAVE_DPRINTF, REPLACE_DPRINTF.
17581         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17582         HAVE_DPRINTF, REPLACE_DPRINTF.
17583         * doc/posix-functions/dprintf.texi: Mention the new modules.
17584
17585 2009-01-17  Bruno Haible  <bruno@clisp.org>
17586
17587         * modules/vdprintf-posix-tests: New file.
17588         * tests/test-vdprintf-posix.sh: New file.
17589         * tests/test-vdprintf-posix.c: New file.
17590
17591         New modules 'vdprintf', 'vdprintf-posix'.
17592         * lib/stdio.in.h (vdprintf): New declaration.
17593         * lib/vdprintf.c: New file.
17594         * m4/vdprintf.m4: New file.
17595         * m4/vdprintf-posix.m4: New file.
17596         * modules/vdprintf: New file.
17597         * modules/vdprintf-posix: New file.
17598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17599         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17600         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17601         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17602         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17603
17604 2009-01-17  Bruno Haible  <bruno@clisp.org>
17605
17606         Fix replacement of fopen on mingw.
17607         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17608         mingw.
17609
17610 2009-01-17  Bruno Haible  <bruno@clisp.org>
17611
17612         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17613         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17614
17615 2009-01-17  Bruno Haible  <bruno@clisp.org>
17616
17617         Avoid test-fflush2.sh failure on mingw.
17618         * tests/test-fflush2.c: Include binary-io.h.
17619         (main): Put standard input into binary mode.
17620         * modules/fflush-tests (Depends-on): Add binary-io.
17621
17622 2009-01-17  Bruno Haible  <bruno@clisp.org>
17623
17624         * lib/wchar.in.h: In another particular situation, include only the
17625         system's <wchar.h> file.
17626         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17627         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17628         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17629
17630 2009-01-17  Bruno Haible  <bruno@clisp.org>
17631
17632         Support for stripping executables in --enable-relocatable.
17633         * build-aux/install-reloc: Expect one more argument, or an environment
17634         variable RELOC_STRIP_PROG. If set, strip the destination program and
17635         its wrapper.
17636         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17637         RELOC_STRIP_PROG.
17638         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17639         to set RELOCATABLE_STRIP.
17640         * NEWS: Mention the new Makefile requirement.
17641
17642 2009-01-17  Bruno Haible  <bruno@clisp.org>
17643
17644         * build-aux/install-reloc: Remove debugging information left over by
17645         C compiler on MacOS X.
17646
17647 2009-01-17  Bruno Haible  <bruno@clisp.org>
17648
17649         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17650         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17651         _NSGetExecutablePath.
17652
17653 2009-01-16  Jim Meyering  <meyering@redhat.com>
17654
17655         strerror: avoid warnings about discarding "const"
17656         * lib/strerror.c (rpl_strerror): Instead of returning a const
17657         string from each and every "case", use a variable, and add a single
17658         cast after the switch.
17659
17660 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17661
17662         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17663
17664 2009-01-16  Bruno Haible  <bruno@clisp.org>
17665
17666         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17667         array initializer syntax that also works in C++ mode.
17668         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17669
17670 2009-01-16  Jim Meyering  <meyering@redhat.com>
17671
17672         poll: suppress a warning
17673         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17674         to ignore "...unsigned expression < 0 is always false" warnings.
17675
17676 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17677
17678         poll: remove declarations of unused variables
17679         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17680         sockbuf and optlen.
17681
17682 2009-01-15  Bruno Haible  <bruno@clisp.org>
17683
17684         Make fflush-after-ungetc POSIX compliant on BSD systems.
17685         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17686         (clear_ungetc_buffer): Implement also for other systems.
17687         (rpl_fflush): On glibc systems, invoke
17688         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17689         clear_ungetc_buffer after fetching the stream's position, not before.
17690
17691 2009-01-15  Bruno Haible  <bruno@clisp.org>
17692
17693         Make fflush-after-ungetc POSIX compliant on glibc systems.
17694         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17695         after ungetc.
17696         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17697         (rpl_fflush): On glibc systems, simply call the system's fflush
17698         function after clearing the ungetc buffer.
17699         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17700         Instead, lseek only to the end of file, then use the system's fseeko
17701         for the rest. On glibc systems, reset the EOF indicator bit.
17702
17703 2009-01-15  Jim Meyering  <meyering@redhat.com>
17704
17705         openmp.m4: revert quote-adding change, for portability to older autoconf
17706         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17707         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17708         Simon Josefsson noticed the problem when using autoconf-2.61.
17709
17710 2009-01-15  Bruno Haible  <bruno@clisp.org>
17711
17712         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17713         * tests/test-fflush2.c (ASSERT): Always fail.
17714         (main): Add two tests for fflush() after ungetc(), taking into account
17715         the Austin Group's clarification.
17716         Suggested by Eric Blake.
17717
17718 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17719
17720         mktime.m4: remove K&R-style function prototypes
17721         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17722         for the Sun C++ compiler.
17723
17724 2009-01-14  Bruno Haible  <bruno@clisp.org>
17725
17726         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17727         while including <wchar.h>.
17728         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17729         the system's <wchar.h> file.
17730         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17731
17732 2009-01-14  Bruno Haible  <bruno@clisp.org>
17733
17734         * m4/csharp.m4: Don't mention gettext on the serial number line.
17735         * m4/csharpexec.m4: Likewise.
17736         * m4/eaccess.m4: Likewise.
17737         * m4/javaexec.m4: Likewise.
17738         * m4/sig_atomic_t.m4: Likewise.
17739         * m4/tmpdir.m4: Likewise.
17740         * m4/intldir.m4: Bump gettext version.
17741         * m4/lib-ld.m4: Likewise.
17742
17743 2009-01-14  Bruno Haible  <bruno@clisp.org>
17744
17745         * lib/progname.c (set_program_name): Add more comments.
17746         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17747
17748 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17749
17750         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17751         were sys/stat.h does not define it.
17752
17753 2009-01-14  Jim Meyering  <meyering@redhat.com>
17754
17755         many *.m4 files: improve m4 quoting
17756         99% of this change was performed by running the following commands:
17757         git ls-files | grep '\.m4$' | xargs perl -pi \
17758           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17759           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17760           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17761           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17762         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17763         The remainder were to add Copyright dates, increment serial numbers,
17764         undo some changes in comments, exclude m4/intl.m4, and add quotes
17765         around the "1" in ",1" where the unusual spacing prohibited the
17766         above regexps from doing the job.  For more details, see
17767         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17768         * m4/acl.m4: Modified.
17769         * m4/afs.m4: Likewise.
17770         * m4/alloca.m4: Likewise.
17771         * m4/argp.m4: Likewise.
17772         * m4/argz.m4: Likewise.
17773         * m4/atexit.m4: Likewise.
17774         * m4/bison-i18n.m4: Likewise.
17775         * m4/bison.m4: Likewise.
17776         * m4/byteswap.m4: Likewise.
17777         * m4/c-stack.m4: Likewise.
17778         * m4/c-strtod.m4: Likewise.
17779         * m4/calloc.m4: Likewise.
17780         * m4/canonicalize-lgpl.m4: Likewise.
17781         * m4/chown.m4: Likewise.
17782         * m4/clock_time.m4: Likewise.
17783         * m4/codeset.m4: Likewise.
17784         * m4/copy-file.m4: Likewise.
17785         * m4/csharp.m4: Likewise.
17786         * m4/csharpcomp.m4: Likewise.
17787         * m4/csharpexec.m4: Likewise.
17788         * m4/d-ino.m4: Likewise.
17789         * m4/d-type.m4: Likewise.
17790         * m4/dirfd.m4: Likewise.
17791         * m4/double-slash-root.m4: Likewise.
17792         * m4/eaccess.m4: Likewise.
17793         * m4/eealloc.m4: Likewise.
17794         * m4/environ.m4: Likewise.
17795         * m4/errno_h.m4: Likewise.
17796         * m4/euidaccess.m4: Likewise.
17797         * m4/execute.m4: Likewise.
17798         * m4/fatal-signal.m4: Likewise.
17799         * m4/fchdir.m4: Likewise.
17800         * m4/fcntl_h.m4: Likewise.
17801         * m4/fileblocks.m4: Likewise.
17802         * m4/filenamecat.m4: Likewise.
17803         * m4/findprog.m4: Likewise.
17804         * m4/flexmember.m4: Likewise.
17805         * m4/fnmatch.m4: Likewise.
17806         * m4/fopen.m4: Likewise.
17807         * m4/fpending.m4: Likewise.
17808         * m4/fprintf-posix.m4: Likewise.
17809         * m4/free.m4: Likewise.
17810         * m4/frexp.m4: Likewise.
17811         * m4/frexpl.m4: Likewise.
17812         * m4/fsusage.m4: Likewise.
17813         * m4/ftruncate.m4: Likewise.
17814         * m4/gc-camellia.m4: Likewise.
17815         * m4/gc-random.m4: Likewise.
17816         * m4/gc.m4: Likewise.
17817         * m4/getaddrinfo.m4: Likewise.
17818         * m4/getcwd-abort-bug.m4: Likewise.
17819         * m4/getcwd-path-max.m4: Likewise.
17820         * m4/getdate.m4: Likewise.
17821         * m4/getdomainname.m4: Likewise.
17822         * m4/getgroups.m4: Likewise.
17823         * m4/gethostname.m4: Likewise.
17824         * m4/gethrxtime.m4: Likewise.
17825         * m4/getline.m4: Likewise.
17826         * m4/getloadavg.m4: Likewise.
17827         * m4/getndelim2.m4: Likewise.
17828         * m4/getpass.m4: Likewise.
17829         * m4/gettext.m4: Likewise.
17830         * m4/gettime.m4: Likewise.
17831         * m4/gettimeofday.m4: Likewise.
17832         * m4/gnulib-common.m4: Likewise.
17833         * m4/group-member.m4: Likewise.
17834         * m4/host-os.m4: Likewise.
17835         * m4/iconv.m4: Likewise.
17836         * m4/iconv_open.m4: Likewise.
17837         * m4/inet_ntop.m4: Likewise.
17838         * m4/inet_pton.m4: Likewise.
17839         * m4/inline.m4: Likewise.
17840         * m4/intldir.m4: Likewise.
17841         * m4/intlmacosx.m4: Likewise.
17842         * m4/intmax.m4: Likewise.
17843         * m4/intmax_t.m4: Likewise.
17844         * m4/inttypes.m4: Likewise.
17845         * m4/inttypes_h.m4: Likewise.
17846         * m4/inttypes-pri.m4: Likewise.
17847         * m4/isapipe.m4: Likewise.
17848         * m4/isnand.m4: Likewise.
17849         * m4/isnanf.m4: Likewise.
17850         * m4/isnanl.m4: Likewise.
17851         * m4/javacomp.m4: Likewise.
17852         * m4/javaexec.m4: Likewise.
17853         * m4/jm-winsz1.m4: Likewise.
17854         * m4/jm-winsz2.m4: Likewise.
17855         * m4/lchown.m4: Likewise.
17856         * m4/lcmessage.m4: Likewise.
17857         * m4/ldexpl.m4: Likewise.
17858         * m4/lib-ld.m4: Likewise.
17859         * m4/lib-link.m4: Likewise.
17860         * m4/libsigsegv.m4: Likewise.
17861         * m4/link-follow.m4: Likewise.
17862         * m4/localcharset.m4: Likewise.
17863         * m4/locale-fr.m4: Likewise.
17864         * m4/locale-ja.m4: Likewise.
17865         * m4/locale-tr.m4: Likewise.
17866         * m4/locale-zh.m4: Likewise.
17867         * m4/lock.m4: Likewise.
17868         * m4/longlong.m4: Likewise.
17869         * m4/ls-mntd-fs.m4: Likewise.
17870         * m4/lstat.m4: Likewise.
17871         * m4/malloc.m4: Likewise.
17872         * m4/mathl.m4: Likewise.
17873         * m4/mbrtowc.m4: Likewise.
17874         * m4/mbstate_t.m4: Likewise.
17875         * m4/mbswidth.m4: Likewise.
17876         * m4/memchr.m4: Likewise.
17877         * m4/memcmp.m4: Likewise.
17878         * m4/memcpy.m4: Likewise.
17879         * m4/memmem.m4: Likewise.
17880         * m4/memmove.m4: Likewise.
17881         * m4/mempcpy.m4: Likewise.
17882         * m4/memrchr.m4: Likewise.
17883         * m4/memset.m4: Likewise.
17884         * m4/minmax.m4: Likewise.
17885         * m4/mkdir-slash.m4: Likewise.
17886         * m4/mkdtemp.m4: Likewise.
17887         * m4/mktime.m4: Likewise.
17888         * m4/mmap-anon.m4: Likewise.
17889         * m4/mountlist.m4: Likewise.
17890         * m4/nanosleep.m4: Likewise.
17891         * m4/nls.m4: Likewise.
17892         * m4/nocrash.m4: Likewise.
17893         * m4/open.m4: Likewise.
17894         * m4/openat.m4: Likewise.
17895         * m4/openmp.m4: Likewise.
17896         * m4/pathmax.m4: Likewise.
17897         * m4/perl.m4: Likewise.
17898         * m4/physmem.m4: Likewise.
17899         * m4/pipe.m4: Likewise.
17900         * m4/po.m4: Likewise.
17901         * m4/poll.m4: Likewise.
17902         * m4/posixtm.m4: Likewise.
17903         * m4/posixver.m4: Likewise.
17904         * m4/printf-frexp.m4: Likewise.
17905         * m4/printf-frexpl.m4: Likewise.
17906         * m4/printf-posix.m4: Likewise.
17907         * m4/printf-posix-rpl.m4: Likewise.
17908         * m4/printf.m4: Likewise.
17909         * m4/progtest.m4: Likewise.
17910         * m4/putenv.m4: Likewise.
17911         * m4/readline.m4: Likewise.
17912         * m4/readlink.m4: Likewise.
17913         * m4/readutmp.m4: Likewise.
17914         * m4/realloc.m4: Likewise.
17915         * m4/regex.m4: Likewise.
17916         * m4/relocatable.m4: Likewise.
17917         * m4/relocatable-lib.m4: Likewise.
17918         * m4/rename-dest-slash.m4: Likewise.
17919         * m4/rename.m4: Likewise.
17920         * m4/rmdir-errno.m4: Likewise.
17921         * m4/rmdir.m4: Likewise.
17922         * m4/roundf.m4: Likewise.
17923         * m4/roundl.m4: Likewise.
17924         * m4/rpmatch.m4: Likewise.
17925         * m4/save-cwd.m4: Likewise.
17926         * m4/selinux-selinux-h.m4: Likewise.
17927         * m4/setenv.m4: Likewise.
17928         * m4/settime.m4: Likewise.
17929         * m4/sig2str.m4: Likewise.
17930         * m4/sig_atomic_t.m4: Likewise.
17931         * m4/signalblocking.m4: Likewise.
17932         * m4/signbit.m4: Likewise.
17933         * m4/sigpipe.m4: Likewise.
17934         * m4/sockets.m4: Likewise.
17935         * m4/sockpfaf.m4: Likewise.
17936         * m4/st_dm_mode.m4: Likewise.
17937         * m4/stat-time.m4: Likewise.
17938         * m4/stdbool.m4: Likewise.
17939         * m4/stdint.m4: Likewise.
17940         * m4/stdint_h.m4: Likewise.
17941         * m4/stpcpy.m4: Likewise.
17942         * m4/stpncpy.m4: Likewise.
17943         * m4/strcase.m4: Likewise.
17944         * m4/strchrnul.m4: Likewise.
17945         * m4/strcspn.m4: Likewise.
17946         * m4/strdup.m4: Likewise.
17947         * m4/strftime.m4: Likewise.
17948         * m4/strndup.m4: Likewise.
17949         * m4/strnlen.m4: Likewise.
17950         * m4/strpbrk.m4: Likewise.
17951         * m4/strptime.m4: Likewise.
17952         * m4/strsep.m4: Likewise.
17953         * m4/strtod.m4: Likewise.
17954         * m4/strtoimax.m4: Likewise.
17955         * m4/strtok_r.m4: Likewise.
17956         * m4/strtol.m4: Likewise.
17957         * m4/strtoll.m4: Likewise.
17958         * m4/strtoul.m4: Likewise.
17959         * m4/strtoull.m4: Likewise.
17960         * m4/strtoumax.m4: Likewise.
17961         * m4/strverscmp.m4: Likewise.
17962         * m4/threadlib.m4: Likewise.
17963         * m4/timegm.m4: Likewise.
17964         * m4/tm_gmtoff.m4: Likewise.
17965         * m4/tmpdir.m4: Likewise.
17966         * m4/tmpfile.m4: Likewise.
17967         * m4/tzset.m4: Likewise.
17968         * m4/uintmax_t.m4: Likewise.
17969         * m4/unlinkdir.m4: Likewise.
17970         * m4/unlocked-io.m4: Likewise.
17971         * m4/uptime.m4: Likewise.
17972         * m4/userspec.m4: Likewise.
17973         * m4/utimbuf.m4: Likewise.
17974         * m4/utime.m4: Likewise.
17975         * m4/utimes-null.m4: Likewise.
17976         * m4/utimes.m4: Likewise.
17977         * m4/vararrays.m4: Likewise.
17978         * m4/vasnprintf.m4: Likewise.
17979         * m4/vfprintf-posix.m4: Likewise.
17980         * m4/vprintf-posix.m4: Likewise.
17981         * m4/wait-process.m4: Likewise.
17982         * m4/wchar_t.m4: Likewise.
17983         * m4/wint_t.m4: Likewise.
17984         * m4/write-any-file.m4: Likewise.
17985         * m4/yield.m4: Likewise.
17986
17987 2009-01-13  Bruno Haible  <bruno@clisp.org>
17988
17989         Avoid test-copy-file.sh failures when ACL support insufficient.
17990         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17991         TESTS_ENVIRONMENT.
17992         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17993         Reported by Jim Meyering.
17994
17995 2009-01-13  Bruno Haible  <bruno@clisp.org>
17996
17997         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17998         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17999         * modules/unistdio/u8-printf-parse (Files): Likewise.
18000         * modules/unistdio/u32-printf-parse (Files): Likewise.
18001         * modules/unistdio/ulc-printf-parse (Files): Likewise.
18002
18003 2009-01-13  Simon Josefsson  <simon@josefsson.org>
18004
18005         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
18006         and m4/inttypes_h.m4 too.
18007
18008 2009-01-12  Eric Blake  <ebb9@byu.net>
18009
18010         tests: IRIX 6.2 cc can't compile -0.0 into .data
18011         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18012         rather than at compile-time.
18013         * tests/test-floorl.c (minus_zero): Likewise.
18014         * tests/test-frexpl.c (minus_zero): Likewise.
18015         * tests/test-isnan.c (minus_zerol): Likewise.
18016         * tests/test-isnanl.h (minus_zero): Likewise.
18017         * tests/test-ldexpl.c (minus_zero): Likewise.
18018         * tests/test-roundl.c (minus_zero): Likewise.
18019         * tests/test-signbit.c (minus_zerol): Likewise.
18020         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18021         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18022         * tests/test-truncl.c (minus_zero): Likewise.
18023         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18024         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18025         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18026
18027 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18028
18029         regex: fix glibc bug 9697
18030         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18031         handling.
18032
18033 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18034
18035         regex: fix glibc bug 697
18036         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18037         being NULL also if there are no backreferences.
18038
18039 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18040
18041         regex: merge glibc changes
18042         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18043         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18044         re_string_skip_chars, re_string_reconstruct): Likewise.
18045         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18046
18047 2009-01-07  Jim Meyering  <meyering@redhat.com>
18048
18049         poll: filter through cppi
18050         * lib/poll.c: Indent cpp directives to reflect nesting.
18051
18052 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18053
18054         poll: don't return uninitialized
18055         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18056
18057 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18058
18059         avoid compile failure on AIX 6.1
18060         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18061         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18062
18063 2009-01-04  Jim Meyering  <meyering@redhat.com>
18064
18065         remove duplicate inclusion of <stdio.h>
18066         * tests/test-fprintf-posix.c: Likewise.
18067         * tests/test-printf-posix.c: Likewise.
18068         * tests/test-snprintf-posix.c: Likewise.
18069         * tests/test-sprintf-posix.c: Likewise.
18070         * tests/test-vasprintf-posix.c: Likewise.
18071         * tests/test-vfprintf-posix.c: Likewise.
18072         * tests/test-vprintf-posix.c: Likewise.
18073         * tests/test-vsnprintf-posix.c: Likewise.
18074         * tests/test-vsprintf-posix.c: Likewise.
18075
18076 2009-01-03  Jim Meyering  <meyering@redhat.com>
18077
18078         gnulib-tool: fix sed-based filtering
18079         * gnulib-tool (func_filter_filelist): Remove extra backslash
18080         in sed_fff_filter definition.
18081
18082 2009-01-02  Jim Meyering  <meyering@redhat.com>
18083
18084         strftime: avoid compilation failure on Solaris 2.6
18085         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18086         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18087         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18088         be available.  Reported by Tom G. Christensen.  Details in
18089         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18090
18091 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18092             Bruno Haible  <bruno@clisp.org>
18093
18094         Speed up gnulib-tool by doing more string processing through shell
18095         built-ins.
18096         * gnulib-tool (fast_func_append): New variable.
18097         (func_remove_prefix, func_remove_suffix): New functions.
18098         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18099         (func_filter_filelist): New function.
18100         (func_get_dependencies): Use func_remove_suffix instead of sed.
18101         (func_get_automake_snippet): Use func_filter_filelist instead of a
18102         subshell and sed invocation.
18103
18104 2009-01-01  Bruno Haible  <bruno@clisp.org>
18105
18106         Fix a security bug.
18107         * gnulib-tool (func_import, import, update): Don't allow the characters
18108         '"', '$', '`', '\' in macro arguments that become part of commands that
18109         are evaluated.
18110
18111 2009-01-01  Bruno Haible  <bruno@clisp.org>
18112
18113         * gnulib-tool (func_reset_sigpipe): Add more comments.
18114
18115 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18116
18117         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18118         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18119         already know the answer.
18120
18121 2009-01-01  Jim Meyering  <meyering@redhat.com>
18122
18123         * lib/version-etc.c (version_etc_va): Update copyright year.
18124
18125 2008-12-30  Bruno Haible  <bruno@clisp.org>
18126
18127         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18128         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18129         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18130
18131 2008-12-29  Eric Blake  <ebb9@byu.net>
18132
18133         multiarch: avoid autoconf AC_REQUIRE bug
18134         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18135         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18136         2.63 and older.
18137         Reported by Bruno Haible, and analyzed in
18138         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18139
18140 2008-12-29  Bruno Haible  <bruno@clisp.org>
18141
18142         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18143         files in subdirectories correctly.
18144         Reported by Ralf Wildenhues.
18145
18146 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18147
18148         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18149         rather than 'join FILE -', for Solaris join.
18150
18151 2008-12-29  Bruno Haible  <bruno@clisp.org>
18152
18153         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18154         quoting.
18155         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18156         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18157         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18158         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18159         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18160         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18161         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18162         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18163         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18164         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18165         * m4/nls.m4 (AM_NLS): Likewise.
18166         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18167         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18168         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18169         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18170         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18171         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18172         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18173         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18174         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18175         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18176         * m4/xsize.m4 (gl_XSIZE): Likewise.
18177         Suggested by Jim Meyering.
18178
18179 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18180
18181         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18182         * lib/parse-duration.c: use a switch instead of cascading if's.
18183
18184 2008-12-29  Eric Blake  <ebb9@byu.net>
18185
18186         wchar.h: supply WEOF on Irix 5.3
18187         * lib/wchar.in.h (wint_t): Also supply WEOF.
18188         * lib/wctype.in.h (wint_t): Likewise.
18189         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18190         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18191         Reported by Tom G. Christensen.
18192
18193 2008-12-26  Bruno Haible  <bruno@clisp.org>
18194
18195         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18196         i486, i586, i686.
18197
18198 2008-12-26  Bruno Haible  <bruno@clisp.org>
18199
18200         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18201
18202 2008-12-26  Bruno Haible  <bruno@clisp.org>
18203
18204         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18205         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18206         not __STDC_CONSTANT_MACROS.
18207         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18208
18209 2008-12-25  Bruno Haible  <bruno@clisp.org>
18210
18211         Add support for universal builds to vasnprintf.
18212         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18213         universal builds, guess no.
18214         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18215         * modules/vasprintf-posix (Depends-on): Likewise.
18216         * modules/fprintf-posix (Depends-on): Likewise.
18217         * modules/vfprintf-posix (Depends-on): Likewise.
18218         * modules/snprintf-posix (Depends-on): Likewise.
18219         * modules/vsnprintf-posix (Depends-on): Likewise.
18220         * modules/sprintf-posix (Depends-on): Likewise.
18221         * modules/vsprintf-posix (Depends-on): Likewise.
18222         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18223         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18224         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18225         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18226         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18227         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18228         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18229
18230         Add support for universal builds to <inttypes.h>.
18231         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18232         _SCNu64_PREFIX): In Apple
18233         universal builds, define directly, using _LP64.
18234         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18235         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18236         * modules/inttypes (Depends-on): Add multiarch.
18237         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18238
18239         Add support for universal builds to <stdint.h>.
18240         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18241         universal builds, define directly, using _LP64.
18242         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18243         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18244         and size_t.
18245         * modules/stdint (Depends-on): Add multiarch.
18246         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18247
18248         New module 'multiarch'.
18249         * modules/multiarch: New file.
18250         * m4/multiarch.m4: New file.
18251
18252 2008-12-25  Bruno Haible  <bruno@clisp.org>
18253
18254         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18255
18256 2008-12-25  Bruno Haible  <bruno@clisp.org>
18257
18258         * modules/btowc (License): Relicense under LGPLv2+.
18259         * modules/mbsinit (License): Likewise.
18260         * modules/mbrtowc (License): Likewise.
18261         * modules/wcrtomb (License): Likewise.
18262         * modules/streq (License): Likewise.
18263         Reported by David Lutterkort <lutter@redhat.com>.
18264
18265 2008-12-23  Bruno Haible  <bruno@clisp.org>
18266
18267         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18268
18269 2008-12-23  Bruno Haible  <bruno@clisp.org>
18270
18271         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18272         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18273         GETADDRINFO_LIB, not in LIBS.
18274         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18275         * modules/canon-host (Link): Likewise.
18276         * NEWS: Mention the change.
18277         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18278         GETADDRINFO_LIB.
18279
18280 2008-12-22  Bruno Haible  <bruno@clisp.org>
18281
18282         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18283         * doc/posix-functions/iswalpha_l.texi: Likewise.
18284         * doc/posix-functions/iswblank_l.texi: Likewise.
18285         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18286         * doc/posix-functions/iswctype_l.texi: Likewise.
18287         * doc/posix-functions/iswdigit_l.texi: Likewise.
18288         * doc/posix-functions/iswgraph_l.texi: Likewise.
18289         * doc/posix-functions/iswlower_l.texi: Likewise.
18290         * doc/posix-functions/iswprint_l.texi: Likewise.
18291         * doc/posix-functions/iswpunct_l.texi: Likewise.
18292         * doc/posix-functions/iswspace_l.texi: Likewise.
18293         * doc/posix-functions/iswupper_l.texi: Likewise.
18294         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18295         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18296         * doc/posix-functions/open_wmemstream.texi: Likewise.
18297         * doc/posix-functions/swscanf.texi: Likewise.
18298         * doc/posix-functions/towctrans_l.texi: Likewise.
18299         * doc/posix-functions/towlower.texi: Likewise.
18300         * doc/posix-functions/towlower_l.texi: Likewise.
18301         * doc/posix-functions/towupper.texi: Likewise.
18302         * doc/posix-functions/towupper_l.texi: Likewise.
18303         * doc/posix-functions/vfwprintf.texi: Likewise.
18304         * doc/posix-functions/vfwscanf.texi: Likewise.
18305         * doc/posix-functions/vswscanf.texi: Likewise.
18306         * doc/posix-functions/vwprintf.texi: Likewise.
18307         * doc/posix-functions/vwscanf.texi: Likewise.
18308         * doc/posix-functions/wcpcpy.texi: Likewise.
18309         * doc/posix-functions/wcpncpy.texi: Likewise.
18310         * doc/posix-functions/wcscasecmp.texi: Likewise.
18311         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18312         * doc/posix-functions/wcscoll_l.texi: Likewise.
18313         * doc/posix-functions/wcsdup.texi: Likewise.
18314         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18315         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18316         * doc/posix-functions/wcsnlen.texi: Likewise.
18317         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18318         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18319         * doc/posix-functions/wctrans_l.texi: Likewise.
18320         * doc/posix-functions/wctype_l.texi: Likewise.
18321         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18322         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18323         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18324         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18325         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18326         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18327         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18328         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18329         * doc/glibc-functions/wcschrnul.texi: Likewise.
18330         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18331         * doc/glibc-functions/wcstod_l.texi: Likewise.
18332         * doc/glibc-functions/wcstof_l.texi: Likewise.
18333         * doc/glibc-functions/wcstol_l.texi: Likewise.
18334         * doc/glibc-functions/wcstold_l.texi: Likewise.
18335         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18336         * doc/glibc-functions/wcstoq.texi: Likewise.
18337         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18338         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18339         * doc/glibc-functions/wcstouq.texi: Likewise.
18340         * doc/glibc-functions/wmempcpy.texi: Likewise.
18341
18342 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18343             Eric Blake  <ebb9@byu.net>
18344             Paolo Bonzini  <bonzini@gnu.org>
18345             Bruno Haible  <bruno@clisp.org>
18346
18347         Make c-stack work on Haiku.
18348         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18349         (c_stack_action): Use SA_ONSTACK flag.
18350
18351 2008-12-22  Bruno Haible  <bruno@clisp.org>
18352
18353         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18354
18355 2008-12-22  Bruno Haible  <bruno@clisp.org>
18356
18357         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18358         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18359         being overridden.
18360         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18361         New macros.
18362         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18363         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18364         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18365         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18366
18367 2008-12-22  Bruno Haible  <bruno@clisp.org>
18368
18369         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18370         from test code.
18371
18372 2008-12-22  Eric Blake  <ebb9@byu.net>
18373
18374         Avoid gcc warnings on cygwin.
18375         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18376         Avoid unused variable.
18377         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18378         Likewise.
18379
18380 2008-12-22  Bruno Haible  <bruno@clisp.org>
18381
18382         Remove HAVE_MBRTOWC conditionals.
18383         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18384         (mbscasecmp): Assume mbrtowc function.
18385         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18386         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18387         * lib/mbschr.c: Include mbuiter.h unconditionally.
18388         (mbschr): Assume mbrtowc function.
18389         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18390         (mbscspn): Assume mbrtowc function.
18391         * lib/mbslen.c: Include mbuiter.h unconditionally.
18392         (mbslen): Assume mbrtowc function.
18393         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18394         (mbsncasecmp): Assume mbrtowc function.
18395         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18396         (mbsnlen): Assume mbrtowc function.
18397         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18398         (mbspbrk): Assume mbrtowc function.
18399         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18400         (mbspcasecmp): Assume mbrtowc function.
18401         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18402         (mbsrchr): Assume mbrtowc function.
18403         * lib/mbssep.c: Include mbuiter.h unconditionally.
18404         (mbssep): Assume mbrtowc function.
18405         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18406         (mbsspn): Assume mbrtowc function.
18407         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18408         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18409         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18410         (mbstok_r): Assume mbrtowc function.
18411         * lib/propername.c: Include mbuiter.h unconditionally.
18412         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18413         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18414         (trim2): Assume mbrtowc function.
18415         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18416         (mbsnwidth): Assume mbrtowc function.
18417         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18418         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18419         fallback definitions.
18420         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18421
18422 2008-12-22  Bruno Haible  <bruno@clisp.org>
18423
18424         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18425
18426 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18427
18428         * modules/regex: Request emulations for the mb*/wc* functions we need.
18429         * m4/regex.m4: Don't look for those functions here.
18430         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18431
18432 2008-12-22  Bruno Haible  <bruno@clisp.org>
18433
18434         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18435
18436 2008-12-21  Bruno Haible  <bruno@clisp.org>
18437
18438         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18439         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18440         (Include): Remove conditionalization.
18441         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18442         (Include): Remove conditionalization.
18443         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18444         (Include): Remove conditionalization.
18445         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18446         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18447         * NEWS: Mention the change.
18448         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18449         via Sergey Poznyakoff <gray@gnu.org.ua>.
18450
18451 2008-12-21  Bruno Haible  <bruno@clisp.org>
18452
18453         * MODULES.html.sh (Extended multibyte and wide character utilities
18454         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18455         wcrtomb, wcsrtombs.
18456         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18457         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18458         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18459         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18460
18461 2008-12-21  Bruno Haible  <bruno@clisp.org>
18462
18463         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18464
18465 2008-12-21  Bruno Haible  <bruno@clisp.org>
18466
18467         * modules/wcsnrtombs-tests: New file.
18468         * tests/test-wcsnrtombs1.sh: New file.
18469         * tests/test-wcsnrtombs2.sh: New file.
18470         * tests/test-wcsnrtombs3.sh: New file.
18471         * tests/test-wcsnrtombs4.sh: New file.
18472         * tests/test-wcsnrtombs.c: New file.
18473
18474         New module 'wcsnrtombs'.
18475         * lib/wchar.in.h (wcsnrtombs): New declaration.
18476         * lib/wcsnrtombs.c: New file.
18477         * lib/wcsrtombs-state.c: New file.
18478         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18479         (internal_state): Remove variable.
18480         * m4/wcsnrtombs.m4: New file.
18481         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18482         compilation units.
18483         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18484         HAVE_WCSNRTOMBS.
18485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18486         HAVE_WCSNRTOMBS.
18487         * modules/wcsnrtombs: New file.
18488         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18489         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18490
18491 2008-12-21  Bruno Haible  <bruno@clisp.org>
18492
18493         * modules/wcsrtombs-tests: New file.
18494         * tests/test-wcsrtombs1.sh: New file.
18495         * tests/test-wcsrtombs2.sh: New file.
18496         * tests/test-wcsrtombs3.sh: New file.
18497         * tests/test-wcsrtombs4.sh: New file.
18498         * tests/test-wcsrtombs.c: New file.
18499
18500         New module 'wcsrtombs'.
18501         * lib/wchar.in.h (wcsrtombs): New declaration.
18502         * lib/wcsrtombs.c: New file.
18503         * m4/wcsrtombs.m4: New file.
18504         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18505         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18506         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18507         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18508         * modules/wcsrtombs: New file.
18509         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18510         bugs.
18511
18512 2008-12-21  Bruno Haible  <bruno@clisp.org>
18513
18514         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18515         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18516         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18517         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18518         if not correct.
18519         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18520         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18521         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18522         m4/locale-zh.m4, m4/codeset.m4.
18523         * doc/posix-functions/wcrtomb.texi: Document the bug.
18524
18525 2008-12-21  Bruno Haible  <bruno@clisp.org>
18526
18527         Work around a btowc() bug on IRIX 6.5.
18528         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18529         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18530         REPLACE_WTOBC if not.
18531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18532         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18533         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18534
18535 2008-12-21  Bruno Haible  <bruno@clisp.org>
18536
18537         * modules/wcrtomb-tests: New file.
18538         * tests/test-wcrtomb.sh: New file.
18539         * tests/test-wcrtomb.c: New file.
18540
18541         New module 'wcrtomb'.
18542         * lib/wchar.in.h (wcrtomb): New declaration.
18543         * lib/wcrtomb.c: New file.
18544         * m4/wcrtomb.m4: New file.
18545         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18546         HAVE_WCRTOMB.
18547         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18548         HAVE_WCRTOMB.
18549         * modules/wcrtomb: New file.
18550         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18551
18552 2008-12-21  Bruno Haible  <bruno@clisp.org>
18553
18554         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18555         * modules/mbsrtowcs (Files): Likewise.
18556         * modules/wctob (Files): Likewise.
18557         * modules/c-strcase-tests (Files): Likewise.
18558         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18559         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18560         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18561         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18562         * modules/vasnprintf-posix-tests (Files): Likewise.
18563
18564 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18565
18566         gitlog-to-changelog: pass all command-line arguments to git-log
18567         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18568         it is sometimes convenient to filter the commits in various ways.
18569         gitlog-to-changelog only allows --since to specify a start date,
18570         but git-log itself supports many other filtering mechanisms.
18571         At the moment, I want to filter by branch name.  Rather than
18572         adding a --branch option to gitlog-to-changelog, it seems more
18573         flexible to simply pass all options directly to git-log and let
18574         git do the work.  Notice that this effectively makes --since a
18575         redundant option for gitlog-to-changelog, but removing it would
18576         require current usage to change since calls would then require
18577         an additional '--'.
18578
18579 2008-12-21  Bruno Haible  <bruno@clisp.org>
18580
18581         * modules/mbsnrtowcs-tests: New file.
18582         * tests/test-mbsnrtowcs1.sh: New file.
18583         * tests/test-mbsnrtowcs2.sh: New file.
18584         * tests/test-mbsnrtowcs3.sh: New file.
18585         * tests/test-mbsnrtowcs4.sh: New file.
18586         * tests/test-mbsnrtowcs.c: New file.
18587
18588         New module 'mbsnrtowcs'.
18589         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18590         * lib/mbsnrtowcs.c: New file.
18591         * lib/mbsrtowcs-state.c: New file.
18592         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18593         (internal_state): Remove variable.
18594         * m4/mbsnrtowcs.m4: New file.
18595         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18596         compilation units.
18597         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18598         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18599         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18600         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18601         * modules/mbsnrtowcs: New file.
18602         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18603         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18604         portability problem.
18605
18606 2008-12-21  Bruno Haible  <bruno@clisp.org>
18607
18608         Work around mbsrtowcs bug.
18609         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18610         (gl_FUNC_MBSRTOWCS): Invoke it.
18611         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18612         m4/locale-zh.m4.
18613         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18614
18615 2008-12-21  Bruno Haible  <bruno@clisp.org>
18616
18617         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18618
18619 2008-12-21  Bruno Haible  <bruno@clisp.org>
18620
18621         Update doc for AIX.
18622         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18623         16-bit wchar_t type.
18624         * doc/posix-functions/btowc.texi: Likewise.
18625         * doc/posix-functions/fgetwc.texi: Likewise.
18626         * doc/posix-functions/fgetws.texi: Likewise.
18627         * doc/posix-functions/fputwc.texi: Likewise.
18628         * doc/posix-functions/fputws.texi: Likewise.
18629         * doc/posix-functions/fwide.texi: Likewise.
18630         * doc/posix-functions/fwprintf.texi: Likewise.
18631         * doc/posix-functions/fwscanf.texi: Likewise.
18632         * doc/posix-functions/getwchar.texi: Likewise.
18633         * doc/posix-functions/getwc.texi: Likewise.
18634         * doc/posix-functions/iswalnum.texi: Likewise.
18635         * doc/posix-functions/iswalpha.texi: Likewise.
18636         * doc/posix-functions/iswblank.texi: Likewise.
18637         * doc/posix-functions/iswcntrl.texi: Likewise.
18638         * doc/posix-functions/iswctype.texi: Likewise.
18639         * doc/posix-functions/iswdigit.texi: Likewise.
18640         * doc/posix-functions/iswgraph.texi: Likewise.
18641         * doc/posix-functions/iswlower.texi: Likewise.
18642         * doc/posix-functions/iswprint.texi: Likewise.
18643         * doc/posix-functions/iswpunct.texi: Likewise.
18644         * doc/posix-functions/iswspace.texi: Likewise.
18645         * doc/posix-functions/iswupper.texi: Likewise.
18646         * doc/posix-functions/iswxdigit.texi: Likewise.
18647         * doc/posix-functions/mbrtowc.texi: Likewise.
18648         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18649         * doc/posix-functions/mbstowcs.texi: Likewise.
18650         * doc/posix-functions/mbtowc.texi: Likewise.
18651         * doc/posix-functions/putwchar.texi: Likewise.
18652         * doc/posix-functions/putwc.texi: Likewise.
18653         * doc/posix-functions/swprintf.texi: Likewise.
18654         * doc/posix-functions/tolower.texi: Likewise.
18655         * doc/posix-functions/toupper.texi: Likewise.
18656         * doc/posix-functions/towctrans.texi: Likewise.
18657         * doc/posix-functions/ungetwc.texi: Likewise.
18658         * doc/posix-functions/vswprintf.texi: Likewise.
18659         * doc/posix-functions/wcrtomb.texi: Likewise.
18660         * doc/posix-functions/wcscat.texi: Likewise.
18661         * doc/posix-functions/wcschr.texi: Likewise.
18662         * doc/posix-functions/wcscmp.texi: Likewise.
18663         * doc/posix-functions/wcscoll.texi: Likewise.
18664         * doc/posix-functions/wcscpy.texi: Likewise.
18665         * doc/posix-functions/wcscspn.texi: Likewise.
18666         * doc/posix-functions/wcsftime.texi: Likewise.
18667         * doc/posix-functions/wcslen.texi: Likewise.
18668         * doc/posix-functions/wcsncat.texi: Likewise.
18669         * doc/posix-functions/wcsncmp.texi: Likewise.
18670         * doc/posix-functions/wcsncpy.texi: Likewise.
18671         * doc/posix-functions/wcspbrk.texi: Likewise.
18672         * doc/posix-functions/wcsrchr.texi: Likewise.
18673         * doc/posix-functions/wcsrtombs.texi: Likewise.
18674         * doc/posix-functions/wcsspn.texi: Likewise.
18675         * doc/posix-functions/wcsstr.texi: Likewise.
18676         * doc/posix-functions/wcstod.texi: Likewise.
18677         * doc/posix-functions/wcstof.texi: Likewise.
18678         * doc/posix-functions/wcstoimax.texi: Likewise.
18679         * doc/posix-functions/wcstok.texi: Likewise.
18680         * doc/posix-functions/wcstold.texi: Likewise.
18681         * doc/posix-functions/wcstoll.texi: Likewise.
18682         * doc/posix-functions/wcstol.texi: Likewise.
18683         * doc/posix-functions/wcstombs.texi: Likewise.
18684         * doc/posix-functions/wcstoull.texi: Likewise.
18685         * doc/posix-functions/wcstoul.texi: Likewise.
18686         * doc/posix-functions/wcstoumax.texi: Likewise.
18687         * doc/posix-functions/wcswidth.texi: Likewise.
18688         * doc/posix-functions/wcsxfrm.texi: Likewise.
18689         * doc/posix-functions/wctob.texi: Likewise.
18690         * doc/posix-functions/wctomb.texi: Likewise.
18691         * doc/posix-functions/wctrans.texi: Likewise.
18692         * doc/posix-functions/wctype.texi: Likewise.
18693         * doc/posix-functions/wcwidth.texi: Likewise.
18694         * doc/posix-functions/wmemchr.texi: Likewise.
18695         * doc/posix-functions/wmemcmp.texi: Likewise.
18696         * doc/posix-functions/wmemcpy.texi: Likewise.
18697         * doc/posix-functions/wmemmove.texi: Likewise.
18698         * doc/posix-functions/wmemset.texi: Likewise.
18699         * doc/posix-functions/wprintf.texi: Likewise.
18700         * doc/posix-functions/wscanf.texi: Likewise.
18701
18702 2008-12-21  Bruno Haible  <bruno@clisp.org>
18703
18704         Update doc for HP-UX 11.11.
18705         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18706         in HP-UX version 11.00, not in all versions of HP-UX 11.
18707         * doc/posix-functions/fwide.texi: Likewise.
18708         * doc/posix-functions/fwprintf.texi: Likewise.
18709         * doc/posix-functions/fwscanf.texi: Likewise.
18710         * doc/posix-functions/inet_ntop.texi: Likewise.
18711         * doc/posix-functions/inet_pton.texi: Likewise.
18712         * doc/posix-functions/mbrlen.texi: Likewise.
18713         * doc/posix-functions/mbrtowc.texi: Likewise.
18714         * doc/posix-functions/mbsinit.texi: Likewise.
18715         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18716         * doc/posix-functions/swprintf.texi: Likewise.
18717         * doc/posix-functions/swscanf.texi: Likewise.
18718         * doc/posix-functions/towctrans.texi: Likewise.
18719         * doc/posix-functions/vfwprintf.texi: Likewise.
18720         * doc/posix-functions/vswprintf.texi: Likewise.
18721         * doc/posix-functions/vwprintf.texi: Likewise.
18722         * doc/posix-functions/wcrtomb.texi: Likewise.
18723         * doc/posix-functions/wcsrtombs.texi: Likewise.
18724         * doc/posix-functions/wcsstr.texi: Likewise.
18725         * doc/posix-functions/wctob.texi: Likewise.
18726         * doc/posix-functions/wctrans.texi: Likewise.
18727         * doc/posix-functions/wmemchr.texi: Likewise.
18728         * doc/posix-functions/wmemcmp.texi: Likewise.
18729         * doc/posix-functions/wmemcpy.texi: Likewise.
18730         * doc/posix-functions/wmemmove.texi: Likewise.
18731         * doc/posix-functions/wmemset.texi: Likewise.
18732         * doc/posix-functions/wprintf.texi: Likewise.
18733         * doc/posix-functions/wscanf.texi: Likewise.
18734
18735 2008-12-21  Bruno Haible  <bruno@clisp.org>
18736
18737         Work around a portability problem.
18738         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18739         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18740
18741 2008-12-20  Bruno Haible  <bruno@clisp.org>
18742
18743         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18744         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18745         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18746         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18747         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18748
18749         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18750         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18751         set.
18752         (GNULIB_defined_mbstate_t): New macro.
18753         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18754         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18755         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18756         reuses the system's mbrtowc function but works around the bugs.
18757         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18758         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18759         macros.
18760         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18761         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18762         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18763         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18764         REPLACE_MBSINIT if mbsinit needs to be overridden.
18765         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18766         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18767         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18768         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18769         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18770         m4/locale-zh.m4.
18771         (Depends): Add mbsinit.
18772         * modules/mbsinit (Depends): Add mbrtowc.
18773         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18774
18775 2008-12-20  Bruno Haible  <bruno@clisp.org>
18776
18777         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18778         so that there are no conversion errors on AIX.
18779         * tests/test-mbsrtowcs.c (main): LIkewise.
18780
18781 2008-12-20  Bruno Haible  <bruno@clisp.org>
18782
18783         Work around wctob bug on Solaris <= 9.
18784         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18785         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18786         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18787         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18788         * modules/wctob (Files): Add m4/locale-fr.m4.
18789         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18790
18791 2008-12-20  Bruno Haible  <bruno@clisp.org>
18792
18793         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18794         /dev/null.
18795         * tests/test-select-in.sh: Likewise.
18796         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18797
18798 2008-12-20  Bruno Haible  <bruno@clisp.org>
18799
18800         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18801         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18802         Cygwin 1.5.x.
18803
18804 2008-12-20  Bruno Haible  <bruno@clisp.org>
18805
18806         Ensure mbstate_t is defined on HP-UX 11.11.
18807         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18808         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18809         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18810         AC_USE_SYSTEM_EXTENSIONS.
18811         * modules/fnmatch (Depends-on): Add extensions.
18812         * modules/mbrlen (Depends-on): Likewise.
18813         * modules/mbrtowc (Depends-on): Likewise.
18814         * modules/mbsinit (Depends-on): Likewise.
18815         * modules/mbsrtowcs (Depends-on): Likewise.
18816         * modules/mbswidth (Depends-on): Likewise.
18817         * modules/quotearg (Depends-on): Likewise.
18818         * modules/strftime (Depends-on): Likewise.
18819
18820 2008-12-20  Bruno Haible  <bruno@clisp.org>
18821
18822         Ensure wctob is declared on IRIX 6.5.
18823         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18824         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18825         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18827         of HAVE_WCTOB.
18828         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18829         HAVE_WCTOB.
18830         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18831
18832 2008-12-19  Bruno Haible  <bruno@clisp.org>
18833
18834         * modules/mbsrtowcs-tests: New file.
18835         * tests/test-mbsrtowcs1.sh: New file.
18836         * tests/test-mbsrtowcs2.sh: New file.
18837         * tests/test-mbsrtowcs3.sh: New file.
18838         * tests/test-mbsrtowcs4.sh: New file.
18839         * tests/test-mbsrtowcs.c: New file.
18840
18841         New module 'mbsrtowcs'.
18842         * lib/wchar.in.h (mbsrtowcs): New declaration.
18843         * lib/mbsrtowcs.c: New file.
18844         * m4/mbsrtowcs.m4: New file.
18845         * modules/mbsrtowcs: New file.
18846         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18847         HAVE_MBSRTOWCS.
18848         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18849         HAVE_MBSRTOWCS.
18850         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18851
18852 2008-12-19  Bruno Haible  <bruno@clisp.org>
18853
18854         New module 'mbrlen'.
18855         * lib/wchar.in.h (mbrlen): New declaration.
18856         * lib/mbrlen.c: New file.
18857         * m4/mbrlen.m4: New file.
18858         * modules/mbrlen: New file.
18859         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18860         HAVE_MBRLEN.
18861         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18862         HAVE_MBRLEN.
18863         * doc/posix-functions/mbrlen.texi: Document the new module.
18864
18865 2008-12-19  Bruno Haible  <bruno@clisp.org>
18866
18867         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18868         * modules/mbrtowc (Depends-on): Add verify.
18869         Suggested by Paul Eggert.
18870
18871 2008-12-18  Bruno Haible  <bruno@clisp.org>
18872
18873         * modules/mbsinit-tests: New file.
18874         * tests/test-mbsinit.sh: New file.
18875         * tests/test-mbsinit.c: New file.
18876
18877 2008-12-18  Bruno Haible  <bruno@clisp.org>
18878
18879         * modules/mbrtowc-tests: New file.
18880         * tests/test-mbrtowc1.sh: New file.
18881         * tests/test-mbrtowc2.sh: New file.
18882         * tests/test-mbrtowc3.sh: New file.
18883         * tests/test-mbrtowc4.sh: New file.
18884         * tests/test-mbrtowc.c: New file.
18885
18886         New module 'mbrtowc'.
18887         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18888         mbsinit and mbrtowc.
18889         (mbrtowc): New declaration.
18890         * lib/mbrtowc.c: New file.
18891         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18892         * modules/mbrtowc: New file.
18893         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18894         HAVE_MBRTOWC.
18895         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18896         HAVE_MBRTOWC.
18897         * doc/posix-functions/mbrtowc.texi: Document the new module.
18898
18899 2008-12-18  Bruno Haible  <bruno@clisp.org>
18900
18901         New module 'wctob'.
18902         * lib/wchar.in.h (wctob): New declaration.
18903         * lib/wctob.c: New file.
18904         * m4/wctob.m4: New file.
18905         * modules/wctob: New file.
18906         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18907         HAVE_WCTOB.
18908         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18909         * doc/posix-functions/wctob.texi: Document the new module.
18910
18911 2008-12-18  Bruno Haible  <bruno@clisp.org>
18912
18913         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18914         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18915
18916 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18917
18918         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18919         G. Christensen" <tgc@jupiterrise.com>.
18920
18921         * lib/flock.c: Need to include errno.h.  Reported by "Tom
18922         G. Christensen" <tgc@jupiterrise.com>.
18923
18924         * lib/flock.c: Need to include string.h.  Reported by "Tom
18925         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18926         <ebb9@byu.net>.
18927
18928 2008-12-18  Bruno Haible  <bruno@clisp.org>
18929
18930         * m4/locale-ja.m4: New file, from GNU gettext.
18931
18932 2008-12-17  Bruno Haible  <bruno@clisp.org>
18933
18934         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18935         Suggested by Eric Blake.
18936
18937 2008-12-17  Bruno Haible  <bruno@clisp.org>
18938
18939         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18940
18941 2008-12-17  Bruno Haible  <bruno@clisp.org>
18942
18943         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18944         * modules/mbsinit (Depends-on): Add verify.
18945         Suggested by Paul Eggert.
18946
18947 2008-12-17  Bruno Haible  <bruno@clisp.org>
18948
18949         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18950         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18951         gl_FUNC_MBRTOWC.
18952         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18953         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18954         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18955         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18956         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18957         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18958         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18959         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18960         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18961         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18962         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18963         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18964         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18965         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18966         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18967         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18968         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18969         * modules/trim (configure.ac): Likewise.
18970
18971 2008-12-17  Bruno Haible  <bruno@clisp.org>
18972
18973         * modules/btowc-tests: New file.
18974         * tests/test-btowc1.sh: New file.
18975         * tests/test-btowc2.sh: New file.
18976         * tests/test-btowc.c: New file.
18977
18978         New module 'btowc'.
18979         * lib/wchar.in.h (btowc): New declaration.
18980         * lib/btowc.c: New file.
18981         * m4/btowc.m4: New file.
18982         * modules/btowc: New file.
18983         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18984         HAVE_BTOWC.
18985         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18986         * doc/posix-functions/btowc.texi: Document the new module.
18987
18988 2008-12-17  Bruno Haible  <bruno@clisp.org>
18989
18990         New module 'mbsinit'.
18991         * lib/wchar.in.h (mbsinit): New declaration.
18992         * lib/mbsinit.c: New file.
18993         * m4/mbsinit.m4: New file.
18994         * modules/mbsinit: New file.
18995         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18996         HAVE_MBSINIT.
18997         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18998         HAVE_MBSINIT.
18999         * doc/posix-functions/mbsinit.texi: Document the new module.
19000
19001 2008-12-16  Bruno Haible  <bruno@clisp.org>
19002
19003         * lib/unistd.in.h: Add comment.
19004         * tests/test-environ.c: Don't include <stdlib.h>.
19005
19006 2008-12-16  Bruno Haible  <bruno@clisp.org>
19007
19008         * lib/parse-duration.h (parse_duration): Document return value
19009         convention.
19010         * lib/parse-duration.c: Include specification header first. Add
19011         comments.
19012         (_): Remove macro.
19013         (parse_year_month_day, parse_hour_minute_second): Move side effects
19014         outside of strchr call.
19015         (parse_non_iso8601): Move side effects outside of isspace call.
19016         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19017         call.
19018
19019 2008-12-16  Bruno Haible  <bruno@clisp.org>
19020
19021         * tests/test-parse-duration.sh: Produce no output when the test
19022         succeeds.
19023
19024 2008-12-16  Bruno Haible  <bruno@clisp.org>
19025
19026         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19027         expressions.
19028
19029 2008-12-15  Bruno Haible  <bruno@clisp.org>
19030
19031         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19032         * doc/glibc-functions/flistxattr.texi: Likewise.
19033         * doc/glibc-functions/fopencookie.texi: Likewise.
19034         * doc/glibc-functions/fremovexattr.texi: Likewise.
19035         * doc/glibc-functions/fsetxattr.texi: Likewise.
19036         * doc/glibc-functions/getxattr.texi: Likewise.
19037         * doc/glibc-functions/lgetxattr.texi: Likewise.
19038         * doc/glibc-functions/listxattr.texi: Likewise.
19039         * doc/glibc-functions/llistxattr.texi: Likewise.
19040         * doc/glibc-functions/lremovexattr.texi: Likewise.
19041         * doc/glibc-functions/lsetxattr.texi: Likewise.
19042         * doc/glibc-functions/removexattr.texi: Likewise.
19043         * doc/glibc-functions/setxattr.texi: Likewise.
19044         * doc/posix-functions/open_memstream.texi: Likewise.
19045
19046 2008-12-15  Eric Blake  <ebb9@byu.net>
19047
19048         Update doc for cygwin 1.7.
19049         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19050         functions.
19051         * doc/posix-functions/fchmodat.texi: Likewise.
19052         * doc/posix-functions/fchownat.texi: Likewise.
19053         * doc/posix-functions/fdopendir.texi: Likewise.
19054         * doc/posix-functions/fmemopen.texi: Likewise.
19055         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19056         * doc/posix-functions/fstatat.texi: Likewise.
19057         * doc/posix-functions/futimens.texi: Likewise.
19058         * doc/posix-functions/gai_strerror.texi: Likewise.
19059         * doc/posix-functions/getaddrinfo.texi: Likewise.
19060         * doc/posix-functions/getnameinfo.texi: Likewise.
19061         * doc/posix-functions/if_freenameindex.texi: Likewise.
19062         * doc/posix-functions/if_indextoname.texi: Likewise.
19063         * doc/posix-functions/if_nameindex.texi: Likewise.
19064         * doc/posix-functions/if_nametoindex.texi: Likewise.
19065         * doc/posix-functions/insque.texi: Likewise.
19066         * doc/posix-functions/linkat.texi: Likewise.
19067         * doc/posix-functions/llrint.texi: Likewise.
19068         * doc/posix-functions/llrintf.texi: Likewise.
19069         * doc/posix-functions/llrintl.texi: Likewise.
19070         * doc/posix-functions/lockf.texi: Likewise.
19071         * doc/posix-functions/lrintl.texi: Likewise.
19072         * doc/posix-functions/mkdirat.texi: Likewise.
19073         * doc/posix-functions/mkfifoat.texi: Likewise.
19074         * doc/posix-functions/mknodat.texi: Likewise.
19075         * doc/posix-functions/mq_close.texi: Likewise.
19076         * doc/posix-functions/mq_getattr.texi: Likewise.
19077         * doc/posix-functions/mq_notify.texi: Likewise.
19078         * doc/posix-functions/mq_open.texi: Likewise.
19079         * doc/posix-functions/mq_receive.texi: Likewise.
19080         * doc/posix-functions/mq_send.texi: Likewise.
19081         * doc/posix-functions/mq_setattr.texi: Likewise.
19082         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19083         * doc/posix-functions/mq_timedsend.texi: Likewise.
19084         * doc/posix-functions/mq_unlink.texi: Likewise.
19085         * doc/posix-functions/open_memstream.texi: Likewise.
19086         * doc/posix-functions/openat.texi: Likewise.
19087         * doc/posix-functions/posix_fadvise.texi: Likewise.
19088         * doc/posix-functions/posix_fallocate.texi: Likewise.
19089         * doc/posix-functions/posix_madvise.texi: Likewise.
19090         * doc/posix-functions/posix_memalign.texi: Likewise.
19091         * doc/posix-functions/posix_openpt.texi: Likewise.
19092         * doc/posix-functions/readlinkat.texi: Likewise.
19093         * doc/posix-functions/remque.texi: Likewise.
19094         * doc/posix-functions/renameat.texi: Likewise.
19095         * doc/posix-functions/rintl.texi: Likewise.
19096         * doc/posix-functions/sem_unlink.texi: Likewise.
19097         * doc/posix-functions/shm_open.texi: Likewise.
19098         * doc/posix-functions/shm_unlink.texi: Likewise.
19099         * doc/posix-functions/signgam.texi: Likewise.
19100         * doc/posix-functions/sigset.texi: Likewise.
19101         * doc/posix-functions/stpcpy.texi: Likewise.
19102         * doc/posix-functions/stpncpy.texi: Likewise.
19103         * doc/posix-functions/strerror.texi: Likewise.
19104         * doc/posix-functions/strtod.texi: Likewise.
19105         * doc/posix-functions/symlinkat.texi: Likewise.
19106         * doc/posix-functions/unlinkat.texi: Likewise.
19107         * doc/posix-functions/utimensat.texi: Likewise.
19108         * doc/glibc-functions/bindresvport.texi: Likewise.
19109         * doc/glibc-functions/dn_expand.texi: Likewise.
19110         * doc/glibc-functions/exp10.texi: Likewise.
19111         * doc/glibc-functions/exp10f.texi: Likewise.
19112         * doc/glibc-functions/fgetxattr.texi: Likewise.
19113         * doc/glibc-functions/flistxattr.texi: Likewise.
19114         * doc/glibc-functions/fopencookie.texi: Likewise.
19115         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19116         * doc/glibc-functions/fremovexattr.texi: Likewise.
19117         * doc/glibc-functions/fsetxattr.texi: Likewise.
19118         * doc/glibc-functions/getifaddrs.texi: Likewise.
19119         * doc/glibc-functions/getxattr.texi: Likewise.
19120         * doc/glibc-functions/lgetxattr.texi: Likewise.
19121         * doc/glibc-functions/listxattr.texi: Likewise.
19122         * doc/glibc-functions/llistxattr.texi: Likewise.
19123         * doc/glibc-functions/lremovexattr.texi: Likewise.
19124         * doc/glibc-functions/lsetxattr.texi: Likewise.
19125         * doc/glibc-functions/pow10.texi: Likewise.
19126         * doc/glibc-functions/pow10f.texi: Likewise.
19127         * doc/glibc-functions/rcmd_af.texi: Likewise.
19128         * doc/glibc-functions/removexattr.texi: Likewise.
19129         * doc/glibc-functions/res_init.texi: Likewise.
19130         * doc/glibc-functions/res_mkquery.texi: Likewise.
19131         * doc/glibc-functions/res_query.texi: Likewise.
19132         * doc/glibc-functions/res_querydomain.texi: Likewise.
19133         * doc/glibc-functions/res_send.texi: Likewise.
19134         * doc/glibc-functions/rresvport_af.texi: Likewise.
19135         * doc/glibc-functions/setxattr.texi: Likewise.
19136         * doc/glibc-functions/strcasestr.texi: Likewise.
19137
19138 2008-12-15  Bruno Haible  <bruno@clisp.org>
19139
19140         Fix compilation error on OSF/1 4.0.
19141         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19142         <sys/time.h>, simply delegate to the system header.
19143         Reported by Daniel Richard G. <oss@teragram.com>.
19144
19145 2008-12-15  Bruno Haible  <bruno@clisp.org>
19146
19147         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19148         * doc/posix-functions/fchmodat.texi: Likewise.
19149         * doc/posix-functions/fchownat.texi: Likewise.
19150         * doc/posix-functions/fdopendir.texi: Likewise.
19151         * doc/posix-functions/fstatat.texi: Likewise.
19152         * doc/posix-functions/mkdirat.texi: Likewise.
19153         * doc/posix-functions/unlinkat.texi: Likewise.
19154
19155 2008-12-14  Bruno Haible  <bruno@clisp.org>
19156
19157         Update doc for POSIX:2008.
19158         * doc/posix-functions/faccessat.texi: New file.
19159         * doc/posix-functions/fchmodat.texi: New file.
19160         * doc/posix-functions/fchownat.texi: New file.
19161         * doc/posix-functions/fdopendir.texi: New file.
19162         * doc/posix-functions/fstatat.texi: New file.
19163         * doc/posix-functions/futimens.texi: New file.
19164         * doc/posix-functions/linkat.texi: New file.
19165         * doc/posix-functions/mkdirat.texi: New file.
19166         * doc/posix-functions/mkfifoat.texi: New file.
19167         * doc/posix-functions/mknodat.texi: New file.
19168         * doc/posix-functions/open_wmemstream.texi: New file.
19169         * doc/posix-functions/openat.texi: New file.
19170         * doc/posix-functions/psiginfo.texi: New file.
19171         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19172         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19173         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19174         * doc/posix-functions/readlinkat.texi: New file.
19175         * doc/posix-functions/renameat.texi: New file.
19176         * doc/posix-functions/strerror_l.texi: New file.
19177         * doc/posix-functions/symlinkat.texi: New file.
19178         * doc/posix-functions/unlinkat.texi: New file.
19179         * doc/posix-functions/utimensat.texi: New file.
19180         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19181
19182 2008-12-14  Bruno Haible  <bruno@clisp.org>
19183
19184         Update doc for POSIX:2008.
19185         * doc/posix-functions/alphasort.texi: Renamed from
19186         doc/glibc-functions/alphasort.texi.
19187         * doc/posix-functions/dirfd.texi: Renamed from
19188         doc/glibc-functions/dirfd.texi.
19189         * doc/posix-functions/dprintf.texi: Renamed from
19190         doc/glibc-functions/dprintf.texi.
19191         * doc/posix-functions/duplocale.texi: Renamed from
19192         doc/glibc-functions/duplocale.texi.
19193         * doc/posix-functions/fexecve.texi: Renamed from
19194         doc/glibc-functions/fexecve.texi.
19195         * doc/posix-functions/fmemopen.texi: Renamed from
19196         doc/glibc-functions/fmemopen.texi.
19197         * doc/posix-functions/freelocale.texi: Renamed from
19198         doc/glibc-functions/freelocale.texi.
19199         * doc/posix-functions/getdate_err.texi: Renamed from
19200         doc/glibc-functions/getdate_err.texi.
19201         * doc/posix-functions/isalnum_l.texi: Renamed from
19202         doc/glibc-functions/isalnum_l.texi.
19203         * doc/posix-functions/isalpha_l.texi: Renamed from
19204         doc/glibc-functions/isalpha_l.texi.
19205         * doc/posix-functions/isblank_l.texi: Renamed from
19206         doc/glibc-functions/isblank_l.texi.
19207         * doc/posix-functions/iscntrl_l.texi: Renamed from
19208         doc/glibc-functions/iscntrl_l.texi.
19209         * doc/posix-functions/isdigit_l.texi: Renamed from
19210         doc/glibc-functions/isdigit_l.texi.
19211         * doc/posix-functions/isgraph_l.texi: Renamed from
19212         doc/glibc-functions/isgraph_l.texi.
19213         * doc/posix-functions/islower_l.texi: Renamed from
19214         doc/glibc-functions/islower_l.texi.
19215         * doc/posix-functions/isprint_l.texi: Renamed from
19216         doc/glibc-functions/isprint_l.texi.
19217         * doc/posix-functions/ispunct_l.texi: Renamed from
19218         doc/glibc-functions/ispunct_l.texi.
19219         * doc/posix-functions/isspace_l.texi: Renamed from
19220         doc/glibc-functions/isspace_l.texi.
19221         * doc/posix-functions/isupper_l.texi: Renamed from
19222         doc/glibc-functions/isupper_l.texi.
19223         * doc/posix-functions/iswalnum_l.texi: Renamed from
19224         doc/glibc-functions/iswalnum_l.texi.
19225         * doc/posix-functions/iswalpha_l.texi: Renamed from
19226         doc/glibc-functions/iswalpha_l.texi.
19227         * doc/posix-functions/iswblank_l.texi: Renamed from
19228         doc/glibc-functions/iswblank_l.texi.
19229         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19230         doc/glibc-functions/iswcntrl_l.texi.
19231         * doc/posix-functions/iswctype_l.texi: Renamed from
19232         doc/glibc-functions/iswctype_l.texi.
19233         * doc/posix-functions/iswdigit_l.texi: Renamed from
19234         doc/glibc-functions/iswdigit_l.texi.
19235         * doc/posix-functions/iswgraph_l.texi: Renamed from
19236         doc/glibc-functions/iswgraph_l.texi.
19237         * doc/posix-functions/iswlower_l.texi: Renamed from
19238         doc/glibc-functions/iswlower_l.texi.
19239         * doc/posix-functions/iswprint_l.texi: Renamed from
19240         doc/glibc-functions/iswprint_l.texi.
19241         * doc/posix-functions/iswpunct_l.texi: Renamed from
19242         doc/glibc-functions/iswpunct_l.texi.
19243         * doc/posix-functions/iswspace_l.texi: Renamed from
19244         doc/glibc-functions/iswspace_l.texi.
19245         * doc/posix-functions/iswupper_l.texi: Renamed from
19246         doc/glibc-functions/iswupper_l.texi.
19247         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19248         doc/glibc-functions/iswxdigit_l.texi.
19249         * doc/posix-functions/isxdigit_l.texi: Renamed from
19250         doc/glibc-functions/isxdigit_l.texi.
19251         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19252         doc/glibc-functions/mbsnrtowcs.texi.
19253         * doc/posix-functions/mkdtemp.texi: Renamed from
19254         doc/glibc-functions/mkdtemp.texi.
19255         * doc/posix-functions/newlocale.texi: Renamed from
19256         doc/glibc-functions/newlocale.texi.
19257         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19258         doc/glibc-functions/nl_langinfo_l.texi.
19259         * doc/posix-functions/open_memstream.texi: Renamed from
19260         doc/glibc-functions/open_memstream.texi.
19261         * doc/posix-functions/opterr.texi: Renamed from
19262         doc/glibc-functions/opterr.texi.
19263         * doc/posix-functions/optind.texi: Renamed from
19264         doc/glibc-functions/optind.texi.
19265         * doc/posix-functions/optopt.texi: Renamed from
19266         doc/glibc-functions/optopt.texi.
19267         * doc/posix-functions/psignal.texi: Renamed from
19268         doc/glibc-functions/psignal.texi.
19269         * doc/posix-functions/scandir.texi: Renamed from
19270         doc/glibc-functions/scandir.texi.
19271         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19272         doc/glibc-functions/sched_get_priority_min.texi.
19273         * doc/posix-functions/signgam.texi: Renamed from
19274         doc/glibc-functions/signgam.texi.
19275         * doc/posix-functions/stpcpy.texi: Renamed from
19276         doc/glibc-functions/stpcpy.texi.
19277         * doc/posix-functions/stpncpy.texi: Renamed from
19278         doc/glibc-functions/stpncpy.texi.
19279         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19280         doc/glibc-functions/strcasecmp_l.texi.
19281         * doc/posix-functions/strcoll_l.texi: Renamed from
19282         doc/glibc-functions/strcoll_l.texi.
19283         * doc/posix-functions/strfmon_l.texi: Renamed from
19284         doc/glibc-functions/strfmon_l.texi.
19285         * doc/posix-functions/strftime_l.texi: Renamed from
19286         doc/glibc-functions/strftime_l.texi.
19287         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19288         doc/glibc-functions/strncasecmp_l.texi.
19289         * doc/posix-functions/strndup.texi: Renamed from
19290         doc/glibc-functions/strndup.texi.
19291         * doc/posix-functions/strnlen.texi: Renamed from
19292         doc/glibc-functions/strnlen.texi.
19293         * doc/posix-functions/strsignal.texi: Renamed from
19294         doc/glibc-functions/strsignal.texi.
19295         * doc/posix-functions/strxfrm_l.texi: Renamed from
19296         doc/glibc-functions/strxfrm_l.texi.
19297         * doc/posix-functions/timer_gettime.texi: Renamed from
19298         doc/glibc-functions/timer_gettime.texi.
19299         * doc/posix-functions/tolower_l.texi: Renamed from
19300         doc/glibc-functions/tolower_l.texi.
19301         * doc/posix-functions/toupper_l.texi: Renamed from
19302         doc/glibc-functions/toupper_l.texi.
19303         * doc/posix-functions/towctrans_l.texi: Renamed from
19304         doc/glibc-functions/towctrans_l.texi.
19305         * doc/posix-functions/towlower_l.texi: Renamed from
19306         doc/glibc-functions/towlower_l.texi.
19307         * doc/posix-functions/towupper_l.texi: Renamed from
19308         doc/glibc-functions/towupper_l.texi.
19309         * doc/posix-functions/uselocale.texi: Renamed from
19310         doc/glibc-functions/uselocale.texi.
19311         * doc/posix-functions/vdprintf.texi: Renamed from
19312         doc/glibc-functions/vdprintf.texi.
19313         * doc/posix-functions/wcpcpy.texi:
19314         Renamed from doc/glibc-functions/wcpcpy.texi.
19315         * doc/posix-functions/wcpncpy.texi: Renamed from
19316         doc/glibc-functions/wcpncpy.texi.
19317         * doc/posix-functions/wcscasecmp.texi: Renamed from
19318         doc/glibc-functions/wcscasecmp.texi.
19319         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19320         doc/glibc-functions/wcscasecmp_l.texi.
19321         * doc/posix-functions/wcscoll_l.texi: Renamed from
19322         doc/glibc-functions/wcscoll_l.texi.
19323         * doc/posix-functions/wcsdup.texi: Renamed from
19324         doc/glibc-functions/wcsdup.texi.
19325         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19326         doc/glibc-functions/wcsncasecmp.texi.
19327         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19328         doc/glibc-functions/wcsncasecmp_l.texi.
19329         * doc/posix-functions/wcsnlen.texi: Renamed from
19330         doc/glibc-functions/wcsnlen.texi.
19331         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19332         doc/glibc-functions/wcsnrtombs.texi.
19333         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19334         doc/glibc-functions/wcsxfrm_l.texi.
19335         * doc/posix-functions/wctrans_l.texi: Renamed from
19336         doc/glibc-functions/wctrans_l.texi.
19337         * doc/posix-functions/wctype_l.texi: Renamed from
19338         doc/glibc-functions/wctype_l.texi.
19339         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19340         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19341         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19342         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19343         these subsections.
19344         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19345         Remove sections.
19346
19347 2008-12-14  Bruno Haible  <bruno@clisp.org>
19348
19349         Update doc for POSIX:2008.
19350         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19351
19352 2008-12-14  Bruno Haible  <bruno@clisp.org>
19353
19354         Update doc for POSIX:2008.
19355         * doc/pastposix-functions/bcmp.texi: Renamed from
19356         doc/posix-functions/bcmp.texi.
19357         * doc/pastposix-functions/bcopy.texi: Renamed from
19358         doc/posix-functions/bcopy.texi.
19359         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19360         doc/posix-functions/bsd_signal.texi.
19361         * doc/pastposix-functions/bzero.texi: Renamed from
19362         doc/posix-functions/bzero.texi.
19363         * doc/pastposix-functions/ecvt.texi: Renamed from
19364         doc/posix-functions/ecvt.texi.
19365         * doc/pastposix-functions/fcvt.texi: Renamed from
19366         doc/posix-functions/fcvt.texi.
19367         * doc/pastposix-functions/ftime.texi: Renamed from
19368         doc/posix-functions/ftime.texi.
19369         * doc/pastposix-functions/gcvt.texi: Renamed from
19370         doc/posix-functions/gcvt.texi.
19371         * doc/pastposix-functions/getcontext.texi: Renamed from
19372         doc/posix-functions/getcontext.texi.
19373         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19374         doc/posix-functions/gethostbyaddr.texi.
19375         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19376         doc/posix-functions/gethostbyname.texi.
19377         * doc/pastposix-functions/getwd.texi: Renamed from
19378         doc/posix-functions/getwd.texi.
19379         * doc/pastposix-functions/h_errno.texi: Renamed from
19380         doc/posix-functions/h_errno.texi.
19381         * doc/pastposix-functions/index.texi: Renamed from
19382         doc/posix-functions/index.texi.
19383         * doc/pastposix-functions/makecontext.texi: Renamed from
19384         doc/posix-functions/makecontext.texi.
19385         * doc/pastposix-functions/mktemp.texi: Renamed from
19386         doc/posix-functions/mktemp.texi.
19387         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19388         doc/posix-functions/pthread_attr_getstackaddr.texi.
19389         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19390         doc/posix-functions/pthread_attr_setstackaddr.texi.
19391         * doc/pastposix-functions/rindex.texi: Renamed from
19392         doc/posix-functions/rindex.texi.
19393         * doc/pastposix-functions/scalb.texi: Renamed from
19394         doc/posix-functions/scalb.texi.
19395         * doc/pastposix-functions/setcontext.texi: Renamed from
19396         doc/posix-functions/setcontext.texi.
19397         * doc/pastposix-functions/swapcontext.texi: Renamed from
19398         doc/posix-functions/swapcontext.texi.
19399         * doc/pastposix-functions/ualarm.texi: Renamed from
19400         doc/posix-functions/ualarm.texi.
19401         * doc/pastposix-functions/usleep.texi: Renamed from
19402         doc/posix-functions/usleep.texi.
19403         * doc/pastposix-functions/vfork.texi: Renamed from
19404         doc/posix-functions/vfork.texi.
19405         * doc/pastposix-functions/wcswcs.texi: Renamed from
19406         doc/posix-functions/wcswcs.texi.
19407         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19408         (Function Substitutes): Update.
19409
19410 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19411
19412         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19413         m4/strerror.m4.
19414
19415 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19416             Bruno Haible  <bruno@clisp.org>
19417
19418         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19419
19420 2008-12-13  Bruno Haible  <bruno@clisp.org>
19421
19422         * modules/strtoull (Depends-on): Remove unistd.
19423
19424 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19425
19426         * modules/strtoull (Depends-on): Add stdlib.
19427
19428 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19429
19430         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19431
19432 2008-12-10  Jim Meyering  <meyering@redhat.com>
19433
19434         gl_ASSERT: don't say assertions are disabled when they're not
19435         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19436         "checking whether to enable assertions... no", when they are in
19437         fact enabled.  This is solely a bug in the output of configure.
19438         In spite of saying "no", NDEBUG was not defined in that case.
19439         Also, as noted by Eric Blake, leave assertions enabled upon
19440         --enable-assert=INVALID.
19441
19442 2008-12-10  Bruno Haible  <bruno@clisp.org>
19443
19444         Change MODULES.html to refer to POSIX:2008 where possible.
19445         * MODULES.html.sh (POSIX2008_URL): New variable.
19446         (posix_headers): Remove sys/timeb, ucontext.
19447         (posix2001_headers): New variable.
19448         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19449         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19450         index, makecontext, mktemp, pthread_attr_getstackaddr,
19451         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19452         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19453         (posix2001_functions): New variable.
19454         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19455         otherwise.
19456
19457 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19458
19459         add missing include to parse-duration.c
19460         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19461         * modules/parse-duration (Depends-on): Add xalloc.
19462
19463         fix sed script reading maint.mk
19464         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19465         (syntax-check-rules): Use it.
19466
19467 2008-12-09  Bruno Haible  <bruno@clisp.org>
19468
19469         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19470         MacOS X 10.4/PowerPC.
19471         Reported by Simon Josefsson.
19472
19473 2008-12-08  Jim Meyering  <meyering@redhat.com>
19474
19475         work around mingw's lack of some S_IF definitions
19476         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19477         Reported by Simon Josefsson.
19478
19479 2008-12-08  Bruno Haible  <bruno@clisp.org>
19480
19481         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19482         applied to variables. Needed on MacOS X 10.4/PowerPC.
19483         Reported by Simon Josefsson.
19484
19485 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19486         and Eric Blake  <ebb9@byu.net>
19487
19488         assert: honor --enable-assert
19489         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19490         order to honor --enable-assert, rather than treating it as a
19491         synonym for --disable-assert.
19492
19493 2008-12-08  Jim Meyering  <meyering@redhat.com>
19494
19495         * lib/posixtm.c: Remove now-useless declaration of mktime.
19496
19497         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19498
19499 2008-12-07  Bruno Haible  <bruno@clisp.org>
19500
19501         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19502         test_once): Mark functions as static.
19503         * tests/test-tls.c (test_tls): Likewise.
19504
19505 2008-12-07  Bruno Haible  <bruno@clisp.org>
19506
19507         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19508         iconv_register_autodetect.
19509
19510 2008-12-07  Jim Meyering  <meyering@redhat.com>
19511
19512         posixtm.c: avoid a warning
19513         * lib/posixtm.c (posixtime): Don't initialize tm0.
19514         It's no longer needed to placate gcc4's -Wuninitialized,
19515         and the attempt to placate would elicit a new warning.
19516
19517         unicodeio.c: mark unused parameters
19518         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19519         (fallback_failure_callback): Likewise.
19520
19521 2008-12-07  Bruno Haible  <bruno@clisp.org>
19522
19523         * gnulib-tool (func_create_testdir): When building the tests
19524         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19525         Reported by Simon Josefsson.
19526
19527 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19528
19529         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19530
19531 2008-12-06  Bruno Haible  <bruno@clisp.org>
19532
19533         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19534         Suggested by Eric Blake.
19535
19536 2008-12-06  Bruno Haible  <bruno@clisp.org>
19537
19538         Fix a c-stack test failure on MacOS X.
19539         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19540         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19541         handler for SIGBUS as well.
19542         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19543         install a signal handler for SIGBUS as well.
19544         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19545
19546 2008-12-06  Bruno Haible  <bruno@clisp.org>
19547
19548         Advocacy documentation.
19549         * doc/gnulib-intro.texi (Benefits): New section.
19550         * doc/gnulib.texi: Update.
19551
19552 2008-12-06  Bruno Haible  <bruno@clisp.org>
19553
19554         Document the 'manywarnings' module.
19555         * doc/manywarnings.texi: New file.
19556         * doc/gnulib.texi: Include it.
19557
19558 2008-12-05  Eric Blake  <ebb9@byu.net>
19559
19560         tests: silence some gcc warnings
19561         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19562         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19563         type mismatches.
19564
19565 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19566             Bruno Haible  <bruno@clisp.org>
19567
19568         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19569
19570 2008-11-29  Jim Meyering  <meyering@redhat.com>
19571
19572         unicodeio.c: mark unused parameters
19573         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19574         (fallback_failure_callback): Likewise.
19575
19576         fts: fix a thinko
19577         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19578         (set_stat_type): Return S_IF*-valued "type" directly.
19579         Prompted by James Youngman's spotting a related bug.
19580         Confirmed by further testing through find.
19581
19582         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19583         * lib/fts.c (D_TYPE): Define.
19584         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19585         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19586         (s_ifmt_shift_bits): New function.
19587         (set_stat_type): New function.
19588         (fts_build): When not calling fts_stat, call set_stat_type
19589         to propagate dirent.d_type info to fts_read caller.
19590         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19591         fts_statp->st_mode type information may be valid.
19592
19593 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19594
19595         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19596         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19597         <sds@gnu.org>.
19598
19599 2008-11-20  Bruno Haible  <bruno@clisp.org>
19600
19601         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19602         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19603         INCLUDE_NEXT.
19604         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19605         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19606         * modules/math (Makefile.am): Substitute
19607         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19608         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19609
19610 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19611             Bruno Haible  <bruno@clisp.org>
19612
19613         * lib/stdint.in.h: Define all type macros so that their expansion is
19614         a single typedef'ed token. Fixes a compilation failure in Boost which
19615         does "using ::int8_t;".
19616
19617 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19618
19619         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19620         gl_MANYWARN_ALL_GCC.
19621         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19622         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19623         * modules/manywarnings: New file.
19624         * MODULES.html.sh: Mention manywarnings module.
19625
19626 2008-11-18  Bruno Haible  <bruno@clisp.org>
19627
19628         * doc/gnulib-tool.texi (Unit tests): New section.
19629
19630 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19631
19632         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19633         paths like 'lib/po/foo.po'.
19634
19635 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19636
19637         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19638         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19639
19640 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19641
19642         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19643         parameter works.
19644
19645 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19646
19647         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19648
19649 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19650
19651         * modules/parse-duration-tests: New file.
19652         * tests/test-parse-duration.sh: New file.
19653         * tests/test-parse-duration.c: New file.
19654
19655         New module 'parse-duration'.
19656         * lib/parse-duration.h: New file.
19657         * lib/parse-duration.c: New file.
19658         * modules/parse-duration: New file.
19659
19660 2008-11-17  Bruno Haible  <bruno@clisp.org>
19661
19662         * tests/test-select-out.sh: Comment out the first pipe test.
19663         Reported by Simon Josefsson.
19664
19665 2008-11-17  Bruno Haible  <bruno@clisp.org>
19666
19667         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19668         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19669         gl_HOSTENT.
19670
19671 2008-11-17  Bruno Haible  <bruno@clisp.org>
19672
19673         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19674         -lnetwork and -lnet. Needed for Haiku and BeOS.
19675
19676 2008-11-16  Bruno Haible  <bruno@clisp.org>
19677
19678         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19679
19680 2008-11-16  Bruno Haible  <bruno@clisp.org>
19681
19682         Avoid test failure on Haiku.
19683         * tests/test-fsync.c: Include <errno.h>.
19684         (main): Don't require that fsync (0) fails.
19685
19686 2008-11-15  Bruno Haible  <bruno@clisp.org>
19687
19688         New module 'hostent'.
19689         * modules/hostent: New file.
19690         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19691
19692 2008-11-15  Bruno Haible  <bruno@clisp.org>
19693
19694         New module 'servent'.
19695         * modules/servent: New file.
19696         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19697
19698 2008-11-15  Bruno Haible  <bruno@clisp.org>
19699
19700         Avoid generating same test program with two different rules.
19701         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19702         test-frexp to test-frexp-nolibm.
19703         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19704         test-frexpl to test-frexpl-nolibm.
19705
19706 2008-11-15  Bruno Haible  <bruno@clisp.org>
19707
19708         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19709         $(FREXPL_LIBM).
19710
19711 2008-11-15  Bruno Haible  <bruno@clisp.org>
19712
19713         * lib/netdb.in.h: Activate the definitions also when the system's
19714         <netdb.h> has 'struct addrinfo'.
19715         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19716         EAI_OVERFLOW or AI_NUMERICSERV.
19717         * doc/posix-headers/netdb.texi: Document the problem.
19718
19719 2008-11-15  Bruno Haible  <bruno@clisp.org>
19720
19721         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19722
19723         Make the 'sched' module work on platforms where <sched.h> exists but
19724         is incomplete (such as Haiku).
19725         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19726         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19727         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19728         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19729         HAVE_STRUCT_SCHED_PARAM.
19730         * modules/sched (Depends-on): Add include_next.
19731         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19732         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19733         * doc/posix-headers/sched.texi: Document the issue.
19734
19735 2008-11-13  Jim Meyering  <meyering@redhat.com>
19736
19737         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19738         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19739         test would fail due to the difference in the Report bugs to ...
19740         line.  The expected address is empty, "<>", while the actual
19741         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19742
19743 2008-11-12  Bruno Haible  <bruno@clisp.org>
19744
19745         lstat: don't compile lstat.c on systems lacking lstat
19746         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19747         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19748         Reported by Daniel P. Berrange via Jim Meyering.
19749
19750 2008-11-12  Jim Meyering  <meyering@redhat.com>
19751
19752         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19753
19754 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19755
19756         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19757         instead.
19758
19759 2008-11-12  Bruno Haible  <bruno@clisp.org>
19760
19761         * lib/unicodeio.c: Include unistr.h.
19762         (utf8_wctomb): Remove function.
19763         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19764
19765 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19766
19767         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19768         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19769         <bruno@clisp.org>.
19770         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19771
19772 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19773
19774         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19775         * doc/gnulib.texi: Add section for warnings.
19776
19777 2008-11-11  Bruno Haible  <bruno@clisp.org>
19778
19779         * lib/sockets.h: Add a comment.
19780
19781 2008-11-11  Karl Berry  <karl@gnu.org>
19782
19783         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19784
19785 2008-11-11  Eric Blake  <ebb9@byu.net>
19786
19787         fdl.texi: avoid git symlinks
19788         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19789
19790 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19791
19792         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19793
19794 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19795
19796         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19797         (gl_WARN_ADD): Substitute $2 if literal.
19798
19799 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19800
19801         * m4/warning.m4: Remove.
19802
19803 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19804
19805         * m4/warnings.m4: Almost complete rewrite. :-)
19806
19807 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19808
19809         * modules/warnings: New module.
19810         * m4/warnings.m4: New file.
19811         * MODULES.html.sh: Mention warnings module.
19812         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19813         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19814
19815 2008-11-10  Eric Blake  <ebb9@byu.net>
19816
19817         fdl.texi: make a symlink to the latest version
19818         * doc/standards.texi: Revert today's earlier change.
19819         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19820         * doc/fdl.texi: ...and replace this with a symlink to the newer
19821         fdl-1.3.texi.
19822
19823 2008-11-10  Bruno Haible  <bruno@clisp.org>
19824
19825         * tests/test-select-fd.c (main): Accept the result file name as fourth
19826         argument.
19827         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19828         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19829
19830 2008-11-10  Bruno Haible  <bruno@clisp.org>
19831
19832         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19833         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19834         as autoconf-substituted macros.
19835         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19836         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19837         gl_NETDB_H_DEFAULTS. Set these variables.
19838         * modules/netdb (Makefile.am): Substitute these variables.
19839
19840 2008-11-10  Eric Blake  <ebb9@byu.net>
19841
19842         standards.texi: include correct file for FDL 1.3
19843         * doc/standards.texi (GNU Free Documentation License): Change
19844         include file to pull in FDL 1.3, not 1.2.
19845
19846         fdl.texi: revert accidental change to license
19847         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19848
19849 2008-11-10  Bruno Haible  <bruno@clisp.org>
19850
19851         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19852         cross-compiling guesses also when the native compile gives no result.
19853
19854 2008-11-10  Bruno Haible  <bruno@clisp.org>
19855
19856         * lib/spawni.c (__spawni): Force variable into the stack.
19857
19858 2008-11-10  Bruno Haible  <bruno@clisp.org>
19859
19860         Add support for Haiku.
19861         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19862         glibc and BeOS, but also on Haiku.
19863         * lib/fpurge.c (fpurge): Likewise.
19864         * lib/freadable.c (freadable): Likewise.
19865         * lib/freadahead.c (freadahead): Likewise.
19866         * lib/freading.c (freading): Likewise.
19867         * lib/freadptr.c (freadptr): Likewise.
19868         * lib/freadseek.c (freadptrinc): Likewise.
19869         * lib/fseeko.c (rpl_fseeko): Likewise.
19870         * lib/fseterr.c (fseterr): Likewise.
19871         * lib/fwritable.c (fwritable): Likewise.
19872         * lib/fwriting.c (fwriting): Likewise.
19873         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19874
19875 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19876
19877         * lib/config.charset: Treat Haiku like BeOS.
19878
19879 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19880
19881         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19882         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19883
19884 2008-11-08  Bruno Haible  <bruno@clisp.org>
19885
19886         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19887         AC_CACHE_CHECK.
19888
19889 2008-11-08  Bruno Haible  <bruno@clisp.org>
19890
19891         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19892
19893 2008-11-08  Bruno Haible  <bruno@clisp.org>
19894
19895         * tests/test-select-fd.c: New file.
19896         * tests/test-select-in.sh: New file.
19897         * tests/test-select-out.sh: New file.
19898         * tests/test-select-stdin.c: New file.
19899         * modules/select-tests (Files): Add the new files.
19900         (Depends-on): Add gettimeofday.
19901         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19902         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19903         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19904
19905 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19906             Bruno Haible  <bruno@clisp.org>
19907
19908         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19909
19910 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19911
19912         * build-aux/pmccabe2html: Added support for C++ source files.
19913
19914 2008-11-05  Ben Pfaff  <blp@gnu.org>
19915
19916         Fix lib/close.c build on Windows.
19917         * modules/close (Files): Add lib/w32sock.h.
19918
19919 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
19920
19921         Accept Bison's NEWS format.
19922         * build-aux/announce-gen (print_news_deltas): Tweak
19923         $re_prefix.
19924
19925 2008-11-04  Bruno Haible  <bruno@clisp.org>
19926
19927         * modules/random_r (Maintainer): Add glibc.
19928
19929 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19930
19931         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19932         by karl@freefriends.org (Karl Berry).
19933         * doc/alloca.texi: Likewise.
19934         * doc/c-ctype.texi: Likewise.
19935         * doc/c-strcase.texi: Likewise.
19936         * doc/c-strcaseeq.texi: Likewise.
19937         * doc/c-strcasestr.texi: Likewise.
19938         * doc/c-strstr.texi: Likewise.
19939         * doc/c-strtod.texi: Likewise.
19940         * doc/c-strtold.texi: Likewise.
19941         * doc/ctime.texi: Likewise.
19942         * doc/error.texi: Likewise.
19943         * doc/fdl.texi: Likewise.
19944         * doc/gcd.texi: Likewise.
19945         * doc/getdate.texi: Likewise.
19946         * doc/gnulib-intro.texi: Likewise.
19947         * doc/gnulib-tool.texi: Likewise.
19948         * doc/gnulib.texi: Likewise.
19949         * doc/inet_ntoa.texi: Likewise.
19950         * doc/maintain.texi: Likewise.
19951         * doc/make-stds.texi: Likewise.
19952         * doc/quote.texi: Likewise.
19953         * doc/regexprops-generic.texi: Likewise.
19954         * doc/standards.texi: Likewise.
19955         * doc/verify.texi: Likewise.
19956         * doc/visibility.texi: Likewise.
19957         * doc/gnulib.texi (GNU Free Documentation License): Include
19958         fdl-1.3.texi instead of fdl.texi.
19959
19960 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19961
19962         * doc/fdl-1.3.texi: New file, from
19963         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19964         * modules/fdl-1.3: Add.
19965         * MODULES.html.sh: Add fdl-1.3.
19966
19967 2008-11-03  Bruno Haible  <bruno@clisp.org>
19968
19969         Make determination of absolute name of header file work with AIX xlc.
19970         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19971         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19972         preprocessing.
19973         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19974         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19975
19976 2008-11-03  Simon Josefsson  <simon@josefsson.org>
19977
19978         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19979         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
19980         <ludo@gnu.org>.
19981
19982 2008-11-02  Bruno Haible  <bruno@clisp.org>
19983
19984         Mark 'strpbrk' obsolete.
19985         * modules/strpbrk (Status, Notice): New sections.
19986         * modules/strtok_r (Depends-on): Add strpbrk.
19987
19988 2008-11-02  Bruno Haible  <bruno@clisp.org>
19989
19990         Mark 'strdup' obsolete.
19991         * modules/strdup (Status, Notice): New sections.
19992         * modules/findprog (Depends-on): Add strdup.
19993         * modules/getaddrinfo (Depends-on): Likewise.
19994         * modules/localename (Depends-on): Likewise.
19995         * modules/relocatable-lib (Depends-on): Likewise.
19996         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19997         * modules/relocatable-prog (Depends-on): Likewise.
19998         * modules/trim (Depends-on): Likewise.
19999         * modules/unictype/gen-ctype (Depends-on): Likewise.
20000         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20001
20002 2008-11-02  Bruno Haible  <bruno@clisp.org>
20003
20004         Mark 'strcspn' obsolete.
20005         * modules/strcspn (Status, Notice): New sections.
20006
20007 2008-11-02  Bruno Haible  <bruno@clisp.org>
20008
20009         Mark 'rmdir' obsolete.
20010         * modules/rmdir (Status, Notice): New sections.
20011         * modules/clean-temp (Depends-on): Add rmdir.
20012         * modules/openat (Depends-on): Likewise.
20013
20014 2008-11-02  Bruno Haible  <bruno@clisp.org>
20015
20016         Mark 'raise' obsolete.
20017         * modules/raise (Status, Notice): New sections.
20018         (Include): Specify <signal.h>.
20019         * modules/stdio (Depends-on): Add raise.
20020         * modules/write (Depends-on): Likewise.
20021
20022 2008-11-02  Bruno Haible  <bruno@clisp.org>
20023
20024         Mark 'memset' obsolete.
20025         * modules/memset (Status, Notice): New sections.
20026
20027 2008-11-02  Bruno Haible  <bruno@clisp.org>
20028
20029         Mark 'memmove' obsolete.
20030         * modules/memmove (Status, Notice): New sections.
20031         * modules/argp (Depends-on): Add memmove.
20032         * modules/argz (Depends-on): Likewise.
20033         * modules/canonicalize (Depends-on): Likewise.
20034         * modules/canonicalize-lgpl (Depends-on): Likewise.
20035         * modules/fts (Depends-on): Likewise.
20036         * modules/getcwd (Depends-on): Likewise.
20037         * modules/human (Depends-on): Likewise.
20038         * modules/regex (Depends-on): Likewise.
20039         * modules/striconveh (Depends-on): Likewise.
20040         * modules/trim (Depends-on): Likewise.
20041         * modules/unistr/u8-move (Depends-on): Likewise.
20042         * modules/unistr/u16-move (Depends-on): Likewise.
20043         * modules/unistr/u32-move (Depends-on): Likewise.
20044
20045 2008-11-02  Bruno Haible  <bruno@clisp.org>
20046
20047         Mark 'memcpy' obsolete.
20048         * modules/memcpy (Status, Notice): New sections.
20049
20050 2008-11-02  Bruno Haible  <bruno@clisp.org>
20051
20052         Mark 'memcmp' obsolete.
20053         * modules/memcmp (Status, Notice): New sections.
20054         * modules/argmatch (Depends-on): Add memchr.
20055         * modules/backupfile (Depends-on): Likewise.
20056         * modules/c-strcasestr (Depends-on): Likewise.
20057         * modules/crypto/des (Depends-on): Likewise.
20058         * modules/csharpcomp (Depends-on): Likewise.
20059         * modules/fnmatch (Depends-on): Likewise.
20060         * modules/git-merge-changelog (Depends-on): Likewise.
20061         * modules/isnand (Depends-on): Likewise.
20062         * modules/isnand-nolibm (Depends-on): Likewise.
20063         * modules/isnanf (Depends-on): Likewise.
20064         * modules/isnanf-nolibm (Depends-on): Likewise.
20065         * modules/isnanl (Depends-on): Likewise.
20066         * modules/isnanl-nolibm (Depends-on): Likewise.
20067         * modules/mbchar (Depends-on): Likewise.
20068         * modules/memcoll (Depends-on): Likewise.
20069         * modules/quotearg (Depends-on): Likewise.
20070         * modules/regex (Depends-on): Likewise.
20071         * modules/relocatable-prog (Depends-on): Likewise.
20072         * modules/same (Depends-on): Likewise.
20073         * modules/signbit (Depends-on): Likewise.
20074         * modules/strcasestr-simple (Depends-on): Likewise.
20075         * modules/unictype/gen-ctype (Depends-on): Likewise.
20076         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20077         * modules/uniname/uniname (Depends-on): Likewise.
20078         * modules/unistr/u8-cmp (Depends-on): Likewise.
20079
20080 2008-11-02  Bruno Haible  <bruno@clisp.org>
20081
20082         Mark 'memchr' obsolete.
20083         * modules/memchr (Status, Notice): New sections.
20084         * modules/argp (Depends-on): Add memchr.
20085         * modules/base64 (Depends-on): Likewise.
20086         * modules/c-strcasestr (Depends-on): Likewise.
20087         * modules/chdir-long (Depends-on): Likewise.
20088         * modules/fnmatch (Depends-on): Likewise.
20089         * modules/getsubopt (Depends-on): Likewise.
20090         * modules/git-merge-changelog (Depends-on): Likewise.
20091         * modules/glob (Depends-on): Likewise.
20092         * modules/strcasestr-simple (Depends-on): Likewise.
20093         * modules/strnlen (Depends-on): Likewise.
20094
20095 2008-11-02  Bruno Haible  <bruno@clisp.org>
20096
20097         Mark 'atexit' obsolete.
20098         * modules/atexit (Status, Notice): New sections.
20099         * modules/chdir-long (Depends-on): Add atexit.
20100         * modules/wait-process (Depends-on): Likewise.
20101
20102 2008-11-02  Bruno Haible  <bruno@clisp.org>
20103
20104         * gnulib-tool: New option --with-obsolete.
20105         (func_usage): Document it.
20106         (func_modules_transitive_closure): Drop obsolete dependencies if
20107         incobsolete is not true.
20108         (func_import): Read and save the incobsolete variable to the cache.
20109
20110 2008-11-02  Bruno Haible  <bruno@clisp.org>
20111
20112         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20113         * gnulib-tool: New option --extract-status.
20114         (func_usage): Document it.
20115         (sed_extract_prog): Recognize it.
20116         (func_get_status): New function.
20117
20118 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20119
20120         * modules/sockets (License): Change from LGPL to LGPLv2+.
20121
20122 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20123
20124         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20125
20126 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20127
20128         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20129         Mention times and sys_times.
20130         * modules/sys_times, modules/sys_times-tests: New modules.
20131         * modules/times, modules/times-tests: Likewise
20132         * m4/sys_times_h.m4: New file.
20133         * lib/sys_times.in.h: Likewise
20134         * lib/times.c: Likewise.
20135         * tests/test-sys_times.c: Likewise.
20136         * tests/test-times.c: Likewise.
20137         * doc/posix-headers/sys_times.texi: Update.
20138         * doc/posix-functions/times.texi: Update.
20139
20140 2008-10-28  Jim Meyering  <meyering@redhat.com>
20141
20142         * modules/tempname (Depends-on): Add lstat.
20143
20144         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20145
20146 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20147
20148         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20149         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20150         using idiom used elsewhere in gnulib.
20151
20152 2008-10-27  Jim Meyering  <meyering@redhat.com>
20153
20154         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20155
20156 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20157
20158         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20159         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20160         programs.
20161         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20162
20163 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20164
20165         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20166
20167 2008-10-27  Bruno Haible  <bruno@clisp.org>
20168
20169         * tests/test-lstat.c: Include <stdio.h>.
20170
20171 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20172
20173         * modules/lstat-tests: New module.
20174         * tests/test-lstat.c: New file.
20175
20176 2008-10-26  Jim Meyering  <meyering@redhat.com>
20177
20178         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20179
20180 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20181             Bruno Haible  <bruno@clisp.org>
20182
20183         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20184         * modules/configmake (Include): Add a note that the include must come
20185         after all system headers.
20186         * lib/javaversion.c: Include configmake.h after all other includes.
20187
20188 2008-10-26  Bruno Haible  <bruno@clisp.org>
20189
20190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20191         HAVE_STRUCT_RANDOM_DATA to 1.
20192         (gl_STDLIB_H): Simplify.
20193
20194 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20195
20196         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20197         substitute HAVE_STRUCT_RANDOM_DATA.
20198         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20199         random_data.
20200         * modules/stdlib (Makefile.am): Substitute
20201         HAVE_STRUCT_RANDOM_DATA.
20202
20203 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20204
20205         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20206         * doc/gnulib-intro.texi (Copyright): Likewise.
20207
20208 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20209
20210         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20211         findings.
20212
20213 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20214             Bruno Haible  <bruno@clisp.org>
20215
20216         * lib/unistd.in.h: Include <winsock2.h>.
20217         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20218         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20219         Provide dummy declarations.
20220         (gethostname): Override.
20221         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20222         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20223         gl_PREREQ_SYS_H_WINSOCK2.
20224         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20225         * doc/posix-functions/gethostname.texi: More details.
20226
20227 2008-10-25  Bruno Haible  <bruno@clisp.org>
20228
20229         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20230         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20231         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20232
20233         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20234         here ...
20235         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20236         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20237         gl_UNISTD_H_DEFAULTS.
20238
20239 2008-10-25  Eric Blake  <ebb9@byu.net>
20240
20241         signbit: avoid spurious compiler failure
20242         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20243         declarations inside function.
20244
20245 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20246             Bruno Haible  <bruno@clisp.org>
20247
20248         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20249         * modules/random_r (Depends-on): Add stdint.
20250
20251 2008-10-24  Bruno Haible  <bruno@clisp.org>
20252
20253         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20254         Eggert.
20255         * modules/strerror (License): Likewise.
20256
20257 2008-10-24  Jim Meyering  <meyering@redhat.com>
20258
20259         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20260         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20261
20262 2008-10-24  Eric Blake  <ebb9@byu.net>
20263
20264         getgroups: fix compilation when getgroups is available
20265         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20266         but with <config.h> override of getgroups disabled.
20267
20268 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20269
20270         * doc/gnulib.texi (Header files): Add note about C++ problems.
20271         Explained by Bruno Haible <bruno@clisp.org>.
20272
20273 2008-10-23  Bruno Haible  <bruno@clisp.org>
20274
20275         Define a dummy SA_NODEFER macro on Interix.
20276         * lib/signal.in.h (SA_NODEFER): Define fallback.
20277         Reported by Aleksey Cheusov <cheusov@tut.by> via
20278         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20279
20280 2008-10-23  Bruno Haible  <bruno@clisp.org>
20281
20282         * modules/freadahead (License): Change to LGPLv2+.
20283         Suggested by Simon Josefsson.
20284
20285 2008-10-23  Jim Meyering  <meyering@redhat.com>
20286
20287         random_r: new module
20288         * modules/random_r: New file.
20289         * m4/random_r.m4: New file.
20290         * lib/random_r.c: New file, from glibc.
20291         * modules/random_r-tests: New file.
20292         * tests/test-random_r.c: New file.
20293         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20294          Declare.
20295         (RAND_MAX): Define.
20296         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20297         * modules/stdlib: Substitute them, too.
20298         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20299         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20300         * doc/glibc-functions/random_r.texi: Likewise.
20301         * doc/glibc-functions/setstate_r.texi: Likewise.
20302         * doc/glibc-functions/srandom_r.texi: Likewise.
20303         * config/srclist.txt: Mention it.
20304
20305 2008-10-23  David Lutterkort  <lutter@redhat.com>
20306
20307         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20308         link requirement
20309
20310 2008-10-23  Jim Meyering  <meyering@redhat.com>
20311
20312         selinux-h: mark parameters of stub functions as intentionally unused
20313         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20314         * lib/se-context.in.h: Likewise.
20315
20316 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20317
20318         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20319
20320 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20321
20322         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20323
20324 2008-10-22  Eric Blake  <ebb9@byu.net>
20325
20326         glthread/thread: avoid compiler warning
20327         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20328         Add unreachable abort to silence compiler.
20329
20330 2008-10-22  Eric Blake  <ebb9@byu.net>
20331
20332         netdb: also supply struct addrinfo for cygwin 1.5.x
20333         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20334         older cygwin.
20335         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20336         cygwin.
20337         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20338
20339 2008-10-22  Bruno Haible  <bruno@clisp.org>
20340
20341         * users.txt: Update entry about pspp.
20342
20343 2008-10-21  Bruno Haible  <bruno@clisp.org>
20344
20345         Simplification.
20346         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20347         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20348
20349         Simplification.
20350         * lib/ioctl.c (ioctl): Don't undefine.
20351         * lib/socket.c (socket): Don't undefine.
20352
20353         Remove unused module indicator macros.
20354         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20355         GNULIB_$1 as a C macro.
20356
20357         * doc/posix-functions/close.texi: Undo last change.
20358         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20359         Windows platforms.
20360
20361 2008-10-21  Bruno Haible  <bruno@clisp.org>
20362
20363         Add gethostname() declaration to <unistd.h>.
20364         * lib/unistd.in.h (gethostname): New declaration.
20365         * lib/gethostname.c: Include <unistd.h>.
20366         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20367         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20369         and HAVE_GETHOSTNAME.
20370         * modules/gethostname (Depends-on): Add unistd.
20371         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20372         (Include): Specify <unistd.h>.
20373         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20374         HAVE_GETHOSTNAME.
20375         * tests/test-gethostname.c: Include <unistd.h> first.
20376
20377 2008-10-21  Bruno Haible  <bruno@clisp.org>
20378
20379         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20380         * modules/select-tests (Depends-on): Likewise.
20381         Reported by Simon Josefsson.
20382
20383 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20384
20385         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20386         * lib/accept.c: New file, based on winsock.c.
20387         * lib/bind.c: New file, based on winsock.c.
20388         * lib/connect.c: New file, based on winsock.c.
20389         * lib/getpeername.c: New file, based on winsock.c.
20390         * lib/getsockname.c: New file, based on winsock.c.
20391         * lib/getsockopt.c: New file, based on winsock.c.
20392         * lib/ioctl.c: New file, based on winsock.c.
20393         * lib/listen.c: New file, based on winsock.c.
20394         * lib/recv.c: New file, based on winsock.c.
20395         * lib/recvfrom.c: New file, based on winsock.c.
20396         * lib/send.c: New file, based on winsock.c.
20397         * lib/sendto.c: New file, based on winsock.c.
20398         * lib/setsockopt.c: New file, based on winsock.c.
20399         * lib/shutdown.c: New file, based on winsock.c.
20400         * lib/socket.c: New file, based on winsock.c.
20401         * lib/w32sock.h: New file, based on winsock.c.
20402         * lib/winsock.c: Remove file.
20403         * modules/accept: Likewise.
20404         * modules/bind: Likewise.
20405         * modules/connect: Likewise.
20406         * modules/getpeername: Likewise.
20407         * modules/getsockname: Likewise.
20408         * modules/getsockopt: Likewise.
20409         * modules/ioctl: Likewise.
20410         * modules/listen: Likewise.
20411         * modules/recv: Likewise.
20412         * modules/recvfrom: Likewise.
20413         * modules/send: Likewise.
20414         * modules/sendto: Likewise.
20415         * modules/setsockopt: Likewise.
20416         * modules/shutdown: Likewise.
20417         * modules/socket: Use socket.c instead of winsock.c.
20418         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20419         * doc/posix-functions/accept.texi: Doc fix.
20420         * doc/posix-functions/bind.texi: Doc fix.
20421         * doc/posix-functions/close.texi: Doc fix.
20422         * doc/posix-functions/connect.texi: Doc fix.
20423         * doc/posix-functions/getpeername.texi: Doc fix.
20424         * doc/posix-functions/getsockname.texi: Doc fix.
20425         * doc/posix-functions/getsockopt.texi: Doc fix.
20426         * doc/posix-functions/ioctl.texi: Doc fix.
20427         * doc/posix-functions/listen.texi: Doc fix.
20428         * doc/posix-functions/recv.texi: Doc fix.
20429         * doc/posix-functions/recvfrom.texi: Doc fix.
20430         * doc/posix-functions/send.texi: Doc fix.
20431         * doc/posix-functions/sendto.texi: Doc fix.
20432         * doc/posix-functions/setsockopt.texi: Doc fix.
20433         * doc/posix-functions/shutdown.texi: Doc fix.
20434         * doc/posix-functions/socket.texi: Doc fix.
20435
20436 2008-10-20  Bruno Haible  <bruno@clisp.org>
20437
20438         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20439         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20440         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20441         as an alias for SIGABRT.
20442         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20443         (sigaction): Map it to SIGABRT.
20444         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20445
20446 2008-10-20  Bruno Haible  <bruno@clisp.org>
20447
20448         * lib/fts.c: Don't include lstat.h.
20449         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20450
20451         Move the lstat() declaration to <sys/stat.h>.
20452         * lib/lstat.h: Remove file.
20453         * lib/sys_stat.in.h: Add special invocation convention.
20454         (lstat): New declaration.
20455         * lib/lstat.c (orig_lstat): New function.
20456         (rpl_lstat): Use orig_lstat instead of lstat.
20457         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20458         AC_C_INLINE. Set REPLACE_LSTAT.
20459         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20460         and REPLACE_LSTAT.
20461         * modules/lstat (Files): Remove lib/lstat.h.
20462         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20463         (Include): Specify <sys/stat.h> instead of lstat.h.
20464         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20465         REPLACE_LSTAT.
20466         * NEWS: Mention the change.
20467
20468 2008-10-20  Bruno Haible  <bruno@clisp.org>
20469
20470         * modules/posix_spawn-tests: New file.
20471         * tests/test-posix_spawn3.c: New file.
20472
20473 2008-10-20  Bruno Haible  <bruno@clisp.org>
20474
20475         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20476         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20477         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20478         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20479         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20480
20481 2008-10-20  Bruno Haible  <bruno@clisp.org>
20482
20483         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20484         of posix_spawn on AIX 5.3.
20485
20486 2008-10-20  Bruno Haible  <bruno@clisp.org>
20487
20488         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20489
20490 2008-10-20  Bruno Haible  <bruno@clisp.org>
20491
20492         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20493         of AC_LANG_PROGRAM.
20494
20495 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20496
20497         * lib/netdb.in.h: Don't define GNU specific constants until they
20498         are supported or needed.  Reported by Bruno Haible
20499         <bruno@clisp.org>.
20500
20501 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20502
20503         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20504
20505 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20506
20507         * lib/getaddrinfo.h: Remove file.
20508         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20509         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20510         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20511         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20512         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20513         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20514         * tests/test-getaddrinfo.c: Likewise.
20515         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20516         * NEWS: Mention change.
20517
20518 2008-10-19  Bruno Haible  <bruno@clisp.org>
20519
20520         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20521
20522 2008-10-19  Bruno Haible  <bruno@clisp.org>
20523
20524         * lib/wait-process.c: Include simply <sys/wait.h>.
20525         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20526         WIFSTOPPED): Remove fallback definitions.
20527         * modules/wait-process (Depends-on): Add sys_wait.
20528
20529         New module 'sys_wait'.
20530         * modules/sys_wait: New file.
20531         * lib/sys_wait.in.h: New file, partially copied from
20532         lib/wait-process.c.
20533         * m4/sys_wait_h.m4: New file.
20534         * doc/posix-headers/sys_wait.texi: Mention the new module.
20535
20536 2008-10-19  Bruno Haible  <bruno@clisp.org>
20537
20538         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20539
20540 2008-10-19  Bruno Haible  <bruno@clisp.org>
20541
20542         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20543         * lib/wait-process.c (WAIT_T): Remove type.
20544         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20545         (wait_subprocess): Update.
20546
20547 2008-10-19  Bruno Haible  <bruno@clisp.org>
20548
20549         New module 'atoll'.
20550         * modules/atoll: New file.
20551         * lib/stdlib.in.h (atoll): New declaration.
20552         * lib/atoll.c: New file, from glibc with modifications.
20553         * m4/atoll.m4: New file.
20554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20555         HAVE_ATOLL.
20556         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20557         * doc/posix-functions/atoll.texi: Mention the new module.
20558
20559 2008-10-19  Bruno Haible  <bruno@clisp.org>
20560
20561         Add strtoull() declaration to <stdlib.h>.
20562         * lib/stdlib.in.h (strtoull): New declaration.
20563         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20564         Set HAVE_STRTOULL.
20565         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20566         HAVE_STRTOULL.
20567         * modules/strtoull (Depends-on): Add stdlib.
20568         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20569         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20570         HAVE_STRTOULL.
20571
20572 2008-10-19  Bruno Haible  <bruno@clisp.org>
20573
20574         Add strtoll() declaration to <stdlib.h>.
20575         * lib/stdlib.in.h (strtoll): New declaration.
20576         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20577         Set HAVE_STRTOLL.
20578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20579         HAVE_STRTOLL.
20580         * modules/strtoll (Depends-on): Add stdlib.
20581         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20582         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20583
20584 2008-10-19  Bruno Haible  <bruno@clisp.org>
20585
20586         * modules/bcopy (Depends-on): Add strings.
20587         (Include): Specify <strings.h>.
20588
20589 2008-10-19  Bruno Haible  <bruno@clisp.org>
20590
20591         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20592
20593 2008-10-19  Bruno Haible  <bruno@clisp.org>
20594
20595         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20596         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20597         mingw.
20598
20599 2008-10-19  Bruno Haible  <bruno@clisp.org>
20600
20601         * lib/atanl.c: Don't include isnanl.h.
20602         * lib/cosl.c: Likewise.
20603         * lib/ldexpl.c: Likewise.
20604         * lib/logl.c: Likewise.
20605         * lib/sinl.c: Likewise.
20606         * lib/sqrtl.c: Likewise.
20607         * lib/tanl.c: Likewise.
20608
20609         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20610         * lib/isnanf.h: Remove file.
20611         * lib/isnand.h: Remove file.
20612         * lib/isnanl.h: Remove file.
20613         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20614         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20615         macros.
20616         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20617         HAVE_ISNANF, don't define it as a C macro.
20618         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20619         HAVE_ISNAND, don't define it as a C macro.
20620         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20621         HAVE_ISNANL, don't define it as a C macro.
20622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20623         HAVE_ISNAN[FDL].
20624         * modules/isnanf (Files): Remove lib/isnanf.h.
20625         (Depends-on): Add math.
20626         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20627         (Include): Specify <math.h> instead of isnanf.h.
20628         * modules/isnand (Files): Remove lib/isnand.h.
20629         (Depends-on): Add math.
20630         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20631         (Include): Specify <math.h> instead of isnand.h.
20632         * modules/isnanl (Files): Remove lib/isnanl.h.
20633         (Depends-on): Add math.
20634         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20635         (Include): Specify <math.h> instead of isnanl.h.
20636         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20637         HAVE_ISNAN[FDL].
20638         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20639         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20640         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20641         * NEWS: Mention the change.
20642
20643 2008-10-18  Bruno Haible  <bruno@clisp.org>
20644
20645         Add getusershell(), setusershell(), endusershell() declarations to
20646         <unistd.h>.
20647         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20648         declarations.
20649         * lib/getusershell.c: Include unistd.h.
20650         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20651         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20652         HAVE_GETUSERSHELL.
20653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20654         and HAVE_GETUSERSHELL.
20655         * modules/getusershell (Depends-on): Add unistd, extensions.
20656         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20657         (Include): Specify <unistd.h>.
20658         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20659         HAVE_GETUSERSHELL.
20660
20661 2008-10-18  Bruno Haible  <bruno@clisp.org>
20662
20663         Add a getloadavg() declaration to <stdlib.h>.
20664         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20665         getloadavg declaration.
20666         (getloadavg): New declaration.
20667         * lib/getloadavg.c: Include <stdlib.h> first.
20668         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20669         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20670         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20672         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20673         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20674         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20675         (Include): Specify <stdlib.h>.
20676         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20677         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20678
20679 2008-10-18  Bruno Haible  <bruno@clisp.org>
20680
20681         * lib/dirchownmod.c: Don't include lchmod.h.
20682
20683         Move the lchmod() declaration to <sys/stat.h>.
20684         * lib/lchmod.h: Remove file.
20685         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20686         (lchmod): New declaration, moved here from lib/lchown.h.
20687         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20688         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20689         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20690         and HAVE_LCHMOD.
20691         * modules/lchmod (Files): Remove lib/lchmod.h.
20692         (Depends-on): Add sys_stat, extensions.
20693         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20694         (Include): Specify <sys/stat.h> instead of lchmod.h.
20695         * modules/sys_stat (Depends-on): Add link-warning.
20696         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20697         definition of GL_LINK_WARNING.
20698         * NEWS: Mention the change.
20699
20700 2008-10-18  Bruno Haible  <bruno@clisp.org>
20701
20702         * lib/fchdir.c: Don't include dirfd.h.
20703         * lib/fts.c: Likewise.
20704         * lib/getcwd.c: Likewise.
20705         * lib/glob.c: Likewise.
20706
20707         Move the dirfd() declaration to <dirent.h>.
20708         * lib/dirfd.h: Remove file.
20709         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20710         (dirfd): New declaration.
20711         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20712         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20713         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20714         HAVE_DECL_DIRFD.
20715         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20716         HAVE_DECL_DIRFD.
20717         * modules/dirfd (Files): Remove lib/dirfd.h.
20718         (Depends-on): Add dirent, extensions.
20719         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20720         (Include): Specify <dirent.h> instead of dirfd.h.
20721         * modules/dirent (Depends-on): Add link-warning.
20722         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20723         definition of GL_LINK_WARNING.
20724         * NEWS: Mention the change.
20725
20726 2008-10-18  Bruno Haible  <bruno@clisp.org>
20727
20728         Move the euidaccess() declaration to <unistd.h>.
20729         * lib/euidaccess.h: Remove file.
20730         * lib/unistd.in.h (euidaccess): New declaration.
20731         * lib/euidaccess.c: Don't include euidaccess.h.
20732         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20733         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20735         and HAVE_EUIDACCESS.
20736         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20737         (Depends-on): Add unistd.
20738         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20739         (Include): Specify <unistd.h> instead of euidaccess.h.
20740         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20741         HAVE_EUIDACCESS.
20742         * NEWS: Mention the change.
20743
20744 2008-10-18  Bruno Haible  <bruno@clisp.org>
20745
20746         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20747
20748         Move the getdomainname() declaration to <unistd.h>.
20749         * lib/getdomainname.h: Remove file.
20750         * lib/unistd.in.h (getdomainname): New declaration.
20751         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20752         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20753         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20754         HAVE_GETDOMAINNAME.
20755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20756         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20757         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20758         (Depends-on): Add unistd, extensions.
20759         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20760         (Includes): Specify <unistd.h> instead of getdomainname.h.
20761         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20762         HAVE_GETDOMAINNAME.
20763         * NEWS: Mention the change.
20764
20765 2008-10-18  Bruno Haible  <bruno@clisp.org>
20766
20767         * modules/dirent: New file.
20768         * m4/dirent_h.m4: New file.
20769         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20770         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20771         * modules/fchdir (Files): Remove lib/dirent.in.h.
20772         (Depends-on): Add dirent.
20773         (Makefile.am): Move rules to modules/dirent.
20774         * doc/posix-headers/dirent.texi: Mention the new module.
20775
20776 2008-10-18  Bruno Haible  <bruno@clisp.org>
20777
20778         Avoid -Wunused-parameter warnings in public gnulib header files.
20779         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20780         macro.
20781         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20782
20783 2008-10-18  Bruno Haible  <bruno@clisp.org>
20784
20785         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20786         * doc/glibc-functions/error.texi: Mention the module 'error'.
20787         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20788         * doc/glibc-functions/getdomainname.texi: Mention the module
20789         'getdomainname'.
20790         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20791         * doc/glibc-functions/getpagesize.texi: Mention the module
20792         'getpagesize'.
20793         * doc/glibc-functions/getusershell.texi: Mention the module
20794         'getusershell'.
20795         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20796         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20797         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20798         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20799         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20800         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20801         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20802         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20803         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20804         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20805         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20806         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20807         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20808         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20809
20810 2008-10-17  Bruno Haible  <bruno@clisp.org>
20811
20812         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20813         HP-UX and IRIX, use -0.0L.
20814         * tests/test-ceill.c (minus_zero): Likewise.
20815         * tests/test-floorl.c (minus_zero): Likewise.
20816         * tests/test-frexpl.c (minus_zero): Likewise.
20817         * tests/test-isnan.c (minus_zerol): Likewise.
20818         * tests/test-isnanl.h (minus_zero): Likewise.
20819         * tests/test-ldexpl.c (minus_zero): Likewise.
20820         * tests/test-roundl.c (minus_zero): Likewise.
20821         * tests/test-signbit.c (minus_zerol): Likewise.
20822         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20823         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20824         * tests/test-truncl.c (minus_zero): Likewise.
20825         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20826         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20827         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20828         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20829
20830 2008-10-17  Bruno Haible  <bruno@clisp.org>
20831
20832         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20833         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20834         that it gets activated only for gcc >= 3.0.
20835         * lib/dirent.in.h: Likewise.
20836         * lib/errno.in.h: Likewise.
20837         * lib/fcntl.in.h: Likewise.
20838         * lib/float.in.h: Likewise.
20839         * lib/iconv.in.h: Likewise.
20840         * lib/inttypes.in.h: Likewise.
20841         * lib/locale.in.h: Likewise.
20842         * lib/math.in.h: Likewise.
20843         * lib/netdb.in.h: Likewise.
20844         * lib/netinet_in.in.h: Likewise.
20845         * lib/search.in.h: Likewise.
20846         * lib/signal.in.h: Likewise.
20847         * lib/spawn.in.h: Likewise.
20848         * lib/stdarg.in.h: Likewise.
20849         * lib/stdint.in.h: Likewise.
20850         * lib/stdio.in.h: Likewise.
20851         * lib/stdlib.in.h: Likewise.
20852         * lib/string.in.h: Likewise.
20853         * lib/strings.in.h: Likewise.
20854         * lib/sys_file.in.h: Likewise.
20855         * lib/sys_ioctl.in.h: Likewise.
20856         * lib/sys_select.in.h: Likewise.
20857         * lib/sys_socket.in.h: Likewise.
20858         * lib/sys_stat.in.h: Likewise.
20859         * lib/sys_time.in.h: Likewise.
20860         * lib/sysexits.in.h: Likewise.
20861         * lib/time.in.h: Likewise.
20862         * lib/unistd.in.h: Likewise.
20863         * lib/wchar.in.h: Likewise.
20864         * lib/wctype.in.h: Likewise.
20865         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20866
20867 2008-10-17  Jim Meyering  <meyering@redhat.com>
20868
20869         ignore-value: don't depend on inline module
20870         * modules/ignore-value (Depends-on): Remove 'inline'.
20871         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20872         Suggestion from Bruno Haible.
20873
20874 2008-10-17  Bruno Haible  <bruno@clisp.org>
20875
20876         New implementation of condition variables for Win32.
20877         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20878         (gl_linked_waitqueue_t): New type.
20879         (gl_cond_t): Use it.
20880         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20881         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20882         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20883         (glthread_cond_init_func, glthread_cond_wait_func,
20884         glthread_cond_timedwait_func, glthread_cond_signal_func,
20885         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20886         Reimplemented on the basis of gl_linked_waitqueue_t.
20887         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20888         gl_waitqueue_t.
20889         (gl_rwlock_t): Update.
20890         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20891
20892 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20893
20894         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20895         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20896
20897 2008-10-17  Jim Meyering  <meyering@redhat.com>
20898
20899         ignore-value: new module
20900         * modules/ignore-value: New file.
20901         * lib/ignore-value.h: New file.
20902         * MODULES.html.sh (Compiler warning management): New section,
20903         just for this module.  More to come.
20904
20905 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20906
20907         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20908         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20909         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20910
20911 2008-10-16  Jim Meyering  <meyering@redhat.com>
20912
20913         openat-die.c: avoid 'no previous prototype' warning
20914         * lib/openat-die.c: Include "openat.h".
20915         Reported by Reuben Thomas <rrt@sc3d.org>.
20916
20917 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20918
20919         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20920         * lib/netdb.in.h: Fix typo.
20921         Reported by Bruno Haible  <bruno@clisp.org>
20922
20923         * lib/netdb.in.h: Include sys/socket.h for platforms without
20924         netdb.h, to get structures like hostent on MinGW.
20925         * modules/netdb (Depends-on): Add sys_socket.
20926
20927 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20928
20929         * modules/netdb, modules/netdb-tests: New file.
20930         * m4/netdb_h.m4: New file.
20931         * lib/netdb.in.h: Add, currently just an empty file pending
20932         definitions.
20933         * tests/test-netdb.c: New file.
20934         * doc/posix-headers/netdb.texi: Mention that we replace it if
20935         needed.
20936         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20937         netdb.
20938
20939 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20940
20941         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20942         with code.
20943
20944 2008-10-13  Bruno Haible  <bruno@clisp.org>
20945
20946         * lib/glthread/cond.c (glthread_cond_wait_func,
20947         glthread_cond_timedwait_func): Add a comment.
20948
20949 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20950
20951         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20952         * tests/test-select.c: Likewise,
20953
20954 2008-10-13  Bruno Haible  <bruno@clisp.org>
20955
20956         * lib/glthread/cond.c (glthread_cond_wait_func,
20957         glthread_cond_timedwait_func): Fix variable name.
20958         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20959
20960 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20961
20962         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20963         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20964         struct sockaddr.sa_len.
20965         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20966
20967 2008-10-13  Simon Josefsson  <simon@josefsson.org>
20968
20969         * build-aux/pmccabe2html: Add css and css_url parameters.
20970
20971 2008-10-12  Bruno Haible  <bruno@clisp.org>
20972
20973         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20974         calling aclx_get.
20975         Reported by Rainer Tammer <tammer@tammer.net>.
20976
20977 2008-10-12  Bruno Haible  <bruno@clisp.org>
20978
20979         Use msvcrt aware primitives for creation/termination of Win32 threads.
20980         * lib/glthread/thread.c: Include <process.h>.
20981         (glthread_create_func): Use _beginthreadex instead of CreateThread.
20982         (wrapper_func): Update signature.
20983         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20984
20985 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20986             Bruno Haible  <bruno@clisp.org>
20987
20988         Provide a Win32 implementation of the 'cond' module.
20989         * lib/glthread/cond.h [USE_WIN32]: New implementation.
20990         * lib/glthread/cond.c (glthread_cond_init_func,
20991         glthread_cond_wait_func, glthread_cond_timedwait_func,
20992         glthread_cond_signal_func, glthread_cond_broadcast_func,
20993         glthread_cond_destroy_func) [USE_WIN32]: New functions.
20994         * modules/cond (Dependencies): Add gettimeofday.
20995
20996 2008-10-11  Bruno Haible  <bruno@clisp.org>
20997
20998         Make sleep work on older versions of mingw.
20999         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
21000         only whether it exists.
21001         * doc/posix-functions/sleep.texi: Mention the problem with older
21002         versions of mingw.
21003
21004 2008-10-11  Bruno Haible  <bruno@clisp.org>
21005
21006         New module 'shutdown'.
21007         * modules/shutdown: New file.
21008         * lib/sys_socket.in.h (shutdown): New declaration.
21009         * lib/winsock.c (shutdown): New function.
21010         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21011         GNULIB_SHUTDOWN.
21012         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21013         * doc/posix-functions/shutdown.texi: Document the new module.
21014
21015 2008-10-11  Jim Meyering  <meyering@redhat.com>
21016
21017         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21018
21019 2008-10-11  Bruno Haible  <bruno@clisp.org>
21020
21021         New module 'fclose'.
21022         * modules/fclose: New file.
21023         * lib/stdio.in.h (fclose): New declaration.
21024         * lib/fclose.c: New file.
21025         * m4/fclose.m4: New file.
21026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21027         REPLACE_FCLOSE.
21028         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21029         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21030         REPLACE_FCLOSE.
21031         * modules/close (Depends-on): fclose.
21032         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21033
21034 2008-10-11  Bruno Haible  <bruno@clisp.org>
21035
21036         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21037         set errno and don't call _close.
21038
21039 2008-10-10  Bruno Haible  <bruno@clisp.org>
21040
21041         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21042         ACL, not afterwards. Fixes test failure on Cygwin.
21043
21044 2008-10-09  Ben Pfaff  <blp@gnu.org>
21045
21046         * build-aux/announce-gen: Fix gnulib version related part of usage
21047         message.  Die with a useful error message if no tarballs are
21048         found.
21049
21050 2008-10-10  Jim Meyering  <meyering@redhat.com>
21051
21052         bootstrap: use git's --depth=N option only if it's supported
21053         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21054         recognize the --depth option.  Reported by Pádraig Brady.
21055
21056 2008-10-09  Bruno Haible  <bruno@clisp.org>
21057
21058         New module 'ioctl'.
21059         * modules/ioctl: New file.
21060         * lib/sys_socket.in.h (ioctl): Remove declaration.
21061         * lib/winsock.c: Include <sys/ioctl.h>.
21062         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21063         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21064         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21065         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21066         * doc/posix-functions/ioctl.texi: Mention the new module.
21067
21068 2008-10-09  Bruno Haible  <bruno@clisp.org>
21069
21070         New module 'sys_ioctl'.
21071         * lib/sys_ioctl.in.h: New file.
21072         * m4/sys_ioctl_h.m4: New file.
21073         * modules/sys_ioctl: New file.
21074         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21075
21076 2008-10-09  Bruno Haible  <bruno@clisp.org>
21077
21078         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21079         * lib/winsock.c: Include <stdarg.h>.
21080         (rpl_ioctl): Change to second argument 'int' and then varargs.
21081
21082 2008-10-09  Bruno Haible  <bruno@clisp.org>
21083
21084         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21085         when the sys_socket module is present and the system has <winsock2.h>.
21086
21087 2008-10-09  Bruno Haible  <bruno@clisp.org>
21088
21089         * doc/posix-functions/close.texi: Mention module 'close' instead of
21090         module 'sys_socket'.
21091
21092 2008-10-09  Bruno Haible  <bruno@clisp.org>
21093
21094         * doc/glibc-headers/sys_ioctl.texi: New file.
21095         * doc/gnulib.texi: Include it.
21096
21097 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21098             Bruno Haible  <bruno@clisp.org>
21099
21100         Combine the two replacements of 'close'.
21101         * lib/sys_socket.in.h (close): Define to a reminder to include
21102         <unistd.h>.
21103         (_gl_close_fd_maybe_socket): New declaration.
21104         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21105         * lib/winsock.c (close): Remove undefinition.
21106         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21107         needed for the gnulib module 'close'.
21108         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21109         define to an error symbol or to a warning, if suitable.
21110         * lib/close.c: Include <sys/socket.h>.
21111         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21112         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21113         UNISTD_H_HAVE_WINSOCK2_H.
21114         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21116         UNISTD_H_HAVE_WINSOCK2_H.
21117         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21118         (configure.ac): Set a module indicator.
21119         (Makefile.am): Substitute GNULIB_CLOSE.
21120         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21121         * modules/poll-tests (Depends-on): Add close.
21122         * modules/select-tests (Depends-on): Likewise.
21123
21124 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21125             Bruno Haible  <bruno@clisp.org>
21126
21127         New module 'close'.
21128         * modules/close: New file.
21129         * lib/unistd.in.h (close): Move declaration out of the
21130         FCHDIR_REPLACEMENT scope.
21131         (_gl_unregister_fd): New declaration.
21132         * lib/close.c: New file.
21133         * lib/fchdir.c (rpl_close): Remove function.
21134         * m4/close.m4: New file.
21135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21136         close.
21137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21138         REPLACE_CLOSE.
21139         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21140         REPLACE_CLOSE.
21141         * modules/fchdir (Depends-on): Add close.
21142
21143 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21144             Bruno Haible  <bruno@clisp.org>
21145
21146         * lib/fcntl.in.h (open): Simplify conditionals.
21147         (_gl_register_fd): New declaration.
21148         * lib/fchdir.c (rpl_open): Remove function.
21149         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21150         also.
21151         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21152         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21153         open.
21154
21155 2008-10-09  Jim Meyering  <meyering@redhat.com>
21156
21157         GNUmakefile: use the more name-space-friendly "_version"
21158         * top/GNUmakefile (_dummy): Update.
21159         (_version): Rename from "version".
21160
21161 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21162             Bruno Haible  <bruno@clisp.org>
21163
21164         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21165         rpl_close.
21166         (_gl_register_fd): New function, extracted from rpl_open.
21167         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21168         (rpl_open, rpl_opendir): Use _gl_register_fd.
21169
21170 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21171
21172         Fix organization of 'open' replacement.
21173         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21174         (gl_FUNC_OPEN): Use it.
21175         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21176
21177 2008-10-08  Bruno Haible  <bruno@clisp.org>
21178
21179         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21180
21181 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21182
21183         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21184         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21185         listen).
21186
21187 2008-10-08  Eric Blake  <ebb9@byu.net>
21188
21189         GNUmakefile: add 'make version' target
21190         * top/GNUmakefile (_curr-ver): Split version update rules...
21191         (version): ...into a target.
21192
21193 2008-10-07  Bruno Haible  <bruno@clisp.org>
21194
21195         Use a more portable replacement expression for -0.0L.
21196         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21197         instead of -0.0L. Fix m4 quotation.
21198
21199         * tests/test-signbit.c: Include <float.h>.
21200         (minus_zero): New variable.
21201         (test_signbitl): Use minus_zero instead of -zero.
21202         * modules/signbit-tests (Depends-on): Add float.
21203
21204         * tests/test-ceill.c: Include <float.h>.
21205         (zero): Remove variable.
21206         (minus_zero): New variable.
21207         (main): Use minus_zero instead of -zero.
21208         * modules/ceill-tests (Depends-on): Add float.
21209
21210         * tests/test-floorl.c: Include <float.h>.
21211         (zero): Remove variable.
21212         (minus_zero): New variable.
21213         (main): Use minus_zero instead of -zero.
21214         * modules/floorl-tests (Depends-on): Add float.
21215
21216         * tests/test-roundl.c: Include <float.h>.
21217         (zero): Remove variable.
21218         (minus_zero): New variable.
21219         (main): Use minus_zero instead of -zero.
21220         * modules/roundl-tests (Depends-on): Add float.
21221
21222         * tests/test-truncl.c: Include <float.h>.
21223         (zero): Remove variable.
21224         (minus_zero): New variable.
21225         (main): Use minus_zero instead of -zero.
21226         * modules/truncl-tests (Depends-on): Add float.
21227
21228         * tests/test-frexpl.c (zero): Remove variable.
21229         (minus_zero): New variable.
21230         (main): Use minus_zero instead of -zero.
21231         * modules/frexpl-tests (Depends-on): Add float.
21232
21233         * tests/test-isnan.c (zerol): Remove variable.
21234         (minus_zerol): New variable.
21235         (test_long_double): Use minus_zerol instead of -zerol.
21236         * modules/isnan-tests (Depends-on): Add float.
21237
21238         * tests/test-isnanl.h (zero): Remove variable.
21239         (minus_zero): New variable.
21240         (main): Use minus_zero instead of -zero.
21241         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21242         * modules/isnanl-tests (Depends-on): Add float.
21243
21244         * tests/test-ldexpl.c (zero): Remove variable.
21245         (minus_zero): New variable.
21246         (main): Use minus_zero instead of -zero.
21247         * modules/ldexpl-tests (Depends-on): Add float.
21248
21249         * tests/test-snprintf-posix.h (zerol): Remove variable.
21250         (minus_zerol): New variable.
21251         (test_function): Use minus_zerol instead of -zerol.
21252         * modules/snprintf-posix-tests (Depends-on): Add float.
21253         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21254
21255         * tests/test-sprintf-posix.h (zerol): Remove variable.
21256         (minus_zerol): New variable.
21257         (test_function): Use minus_zerol instead of -zerol.
21258         * modules/sprintf-posix-tests (Depends-on): Add float.
21259         * modules/vsprintf-posix-tests (Depends-on): Add float.
21260
21261         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21262         (minus_zerol): New variable.
21263         (test_function): Use minus_zerol instead of -zerol.
21264         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21265
21266         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21267         (minus_zerol): New variable.
21268         (test_function): Use minus_zerol instead of -zerol.
21269         * modules/vasprintf-posix-tests (Depends-on): Add float.
21270
21271 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21272
21273         * MODULES.html.sh (Support for building documentation): Mention
21274         pmccabe2html.  Sort entries.
21275
21276         Add pmccabe2html module, from gnupdf.
21277         * build-aux/pmccabe.css: New file.
21278         * build-aux/pmccabe2html: New file.
21279         * m4/pmccabe2html.m4: New file.
21280         * modules/pmccabe2html: New file.
21281
21282 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21283
21284         flock: new module
21285         * MODULES.html.sh: Add to list of modules.
21286         * lib/flock.c: flock implementation for Windows and Unix systems
21287         which have fcntl.
21288         * doc/glibc-functions/flock.texi: Update documentation.
21289         * lib/sys_file.in.h: <sys/file.h> header file.
21290         * m4/flock.m4: M4 macros.
21291         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21292         * modules/flock: flock module.
21293         * modules/flock-tests: flock tests module.
21294         * modules/sys_file: sys/file.h module.
21295         * tests/test-flock.c: test suite for flock.
21296
21297 2008-10-06  Jim Meyering  <meyering@redhat.com>
21298
21299         bootstrap: check for LT_INIT more portably still ;-)
21300         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21301         Spotted by Bruno Haible.
21302
21303 2008-10-06  Eric Blake  <ebb9@byu.net>
21304
21305         test-signbit: avoid tripping Irix cc bug on -0.0L
21306         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21307         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21308         entire testsuite consistent and avoids an Irix 6.2 bug.
21309
21310 2008-10-05  Bruno Haible  <bruno@clisp.org>
21311             Jim Meyering  <jim@meyering.net>
21312
21313         Add an option for ignoring EPIPE during close_stdout.
21314         * lib/closeout.h: Include <stdbool.h>.
21315         (close_stdout_set_ignore_EPIPE): New declaration.
21316         * lib/closeout.c: Include <stdbool.h>.
21317         (ignore_EPIPE): New variable.
21318         (close_stdout_set_ignore_EPIPE): New function.
21319         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21320         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21321         failure.
21322         * modules/closeout (Depends-on): Add stdbool.
21323
21324 2008-10-05  Bruno Haible  <bruno@clisp.org>
21325
21326         * modules/accept: New file.
21327         * modules/bind: New file.
21328         * modules/connect: New file.
21329         * modules/getpeername: New file.
21330         * modules/getsockname: New file.
21331         * modules/getsockopt: New file.
21332         * modules/listen: New file.
21333         * modules/recv: New file.
21334         * modules/recvfrom: New file.
21335         * modules/send: New file.
21336         * modules/sendto: New file.
21337         * modules/setsockopt: New file.
21338         * modules/socket: New file.
21339         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21340         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21341         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21342         the particular module is requested. Add a link warning when the
21343         particular module is not requested.
21344         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21345         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21346         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21347         the particular module is requested.
21348         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21349         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21350         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21351         * modules/sys_socket (Depends-on): Add link-warning.
21352         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21353         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21354         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21355         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21356         GL_LINK_WARNING.
21357         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21358         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21359         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21360         * doc/posix-functions/getpeername.texi: Mention the new module
21361         'getpeername'.
21362         * doc/posix-functions/getsockname.texi: Mention the new module
21363         'getsockname'.
21364         * doc/posix-functions/getsockopt.texi: Mention the new module
21365         'getsockopt'.
21366         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21367         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21368         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21369         * doc/posix-functions/send.texi: Mention the new module 'send'.
21370         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21371         * doc/posix-functions/setsockopt.texi: Mention the new module
21372         'setsockopt'.
21373         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21374         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21375         listen, connect, accept.
21376         * modules/select-tests (Depends-on): Likewise.
21377
21378 2008-10-05  Bruno Haible  <bruno@clisp.org>
21379
21380         * lib/winsock.c (strerror): Remove unused #undef.
21381         (rpl_close): Remove unused local variable.
21382
21383         * modules/sys_socket (Depends-on); Add errno.
21384
21385 2008-10-05  Bruno Haible  <bruno@clisp.org>
21386
21387         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21388         (select): Add a link warning when the 'select' module is not used.
21389         * modules/sys_select (Depends-on): Add link-warning.
21390         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21391         Suggested by Paolo Bonzini.
21392
21393 2008-10-05  Jim Meyering  <meyering@redhat.com>
21394
21395         bootstrap: check for LT_INIT more portably
21396         * build-aux/bootstrap: Avoid using grep -E, since it's not
21397         portable enough.  Suggestion from Bruno Haible.
21398
21399 2008-10-05  Bruno Haible  <bruno@clisp.org>
21400
21401         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21402         as being fixed by gnulib.
21403
21404 2008-10-05  Bruno Haible  <bruno@clisp.org>
21405
21406         * modules/select-tests: New file, mostly copied from
21407         modules/sys_select-tests.
21408         * tests/test-select.c: New file, mostly copied from
21409         tests/test-sys_select.c.
21410         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21411         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21412         (Makefile.am): Remove test_sys_select_LDADD.
21413
21414         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21415         to an undefined symbol, for an error message.
21416         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21417         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21418         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21419         winsock-select.c here.
21420         * modules/sys_select (Files): Remove lib/winsock-select.c.
21421         (Depends-on): Remove alloca.
21422         (Makefile.am): Substitute GNULIB_SELECT.
21423         * modules/select: New file.
21424         * doc/posix-functions/select.texi: Update.
21425
21426 2008-10-05  Bruno Haible  <bruno@clisp.org>
21427
21428         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21429         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21430         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21431         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21432         getdtablesize.
21433         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21434         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21435
21436 2008-10-05  Bruno Haible  <bruno@clisp.org>
21437
21438         * modules/getdtablesize-tests: New file.
21439         * tests/test-getdtablesize.c: New file.
21440
21441         New module 'getdtablesize'.
21442         * lib/unistd.in.h (getdtablesize): New declaration.
21443         * lib/getdtablesize.c: New file.
21444         * m4/getdtablesize.m4: New file.
21445         * modules/getdtablesize: New file.
21446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21447         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21448         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21449         HAVE_GETDTABLESIZE.
21450         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21451
21452 2008-10-05  Bruno Haible  <bruno@clisp.org>
21453
21454         * modules/sched (Makefile.am): Fix typo.
21455         Reported by Simon Josefsson.
21456
21457 2008-10-05  Jim Meyering  <meyering@redhat.com>
21458
21459         bootstrap: check for LT_INIT, too
21460         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21461         are deprecated.  Suggestion from Ralf Wildenhues.
21462
21463 2008-10-05  Bruno Haible  <bruno@clisp.org>
21464
21465         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21466         overriding them by ours.
21467         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21468
21469 2008-10-05  Jim Meyering  <meyering@redhat.com>
21470
21471         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21472         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21473         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21474
21475 2008-10-04  Bruno Haible  <bruno@clisp.org>
21476
21477         * modules/dup2 (License): Change to LGPLv2+.
21478         * modules/sleep (License): Likewise.
21479         * modules/perror (License): Likewise.
21480         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21481         Blake.
21482         * modules/signal (License): Likewise.
21483         * modules/sigprocmask (License): Likewise.
21484         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21485         Meyering.
21486
21487 2008-10-04  Bruno Haible  <bruno@clisp.org>
21488
21489         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21490         Reported by Rainer Tammer <tammer@tammer.net>.
21491
21492 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21493             Bruno Haible  <bruno@clisp.org>
21494
21495         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21496         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21497         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21498
21499 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21500
21501         filevercmp: new module
21502         * lib/filevercmp.h: New function filevercmp comparing version strings.
21503         * lib/filevercmp.c: Implementation of filevercmp function.
21504         * modules/filevercmp: Module metadata.
21505         * tests/test-filevercmp.c: Unit test for new module.
21506         * modules/filevercmp-tests: Unit test metadata.
21507         * MODULES.html.sh: Add filevercmp module.
21508
21509 2008-10-03  Bruno Haible  <bruno@clisp.org>
21510
21511         * lib/c-ctype.h: Add comment.
21512         Reported by Jim Meyering.
21513
21514 2008-10-02  Bruno Haible  <bruno@clisp.org>
21515
21516         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21517
21518 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21519
21520         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21521         name of bootstrap.conf accordingly.
21522
21523 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21524
21525         * build-aux/bootstrap: Install git-merge-changelog configuration
21526         items into .gitconfig if needed.
21527
21528 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21529
21530         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21531         git repository, and initialize/update it accordingly.
21532
21533 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21534
21535         * modules/fsync-tests: New file.
21536         * tests/test-fsync.c: New file.
21537
21538         New module 'fsync'.
21539         * lib/fsync.c: New file.
21540         * m4/fsync.m4: New file.
21541         * modules/fsync: New file.
21542         * lib/unistd.in.h (fsync): New declaration.
21543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21544         GNULIB_FSYNC and HAVE_FSYNC.
21545         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21546         * MODULES.html.sh (posix_functions): Add fsync.
21547         * doc/posix-functions/fsync.texi: Mention the new module.
21548
21549 2008-10-02  Jim Meyering  <meyering@redhat.com>
21550
21551         fts.c: sync with similar code from coreutils' remove.c
21552         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21553         Guard also with "#if defined __linux__", since for now at least,
21554         this code is Linux-kernel-specific.
21555
21556 2008-10-02  Jim Meyering  <meyering@redhat.com>
21557
21558         fts: bug fixes
21559         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21560         Include <sys/vfs.h>, not <sys/statfs.h>.
21561
21562         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21563         Include <sys/vfs.h>, not <sys/statfs.h>.
21564
21565 2008-10-01  Bruno Haible  <bruno@clisp.org>
21566
21567         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21568         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21569         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21570         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21571         * doc/posix-functions/posix_spawnp.texi: Likewise.
21572         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21573         whether posix_spawn actually works.
21574         * m4/pipe.m4 (gl_PIPE): Likewise.
21575         * modules/execute (Files): Add m4/posix_spawn.m4.
21576         * modules/pipe (Files): Add m4/posix_spawn.m4.
21577         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21578
21579 2008-10-01  Jim Meyering  <meyering@redhat.com>
21580
21581         remove trailing spaces
21582         * NEWS: Likewise.
21583         * lib/poll.c (poll): Likewise.
21584         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21585         * lib/winsock.c (rpl_close): Likewise.
21586         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21587         * modules/yield: Likewise.
21588         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21589         * tests/test-sys_select.c (connect_to_socket): Likewise.
21590
21591         fts.c: adjust a new interface to be more generally useful
21592         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21593         (fts_build): Adjust caller.
21594
21595 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21596
21597         * modules/cond-tests: New file.
21598         * tests/test-cond.c: New file.
21599
21600 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21601             Bruno Haible  <bruno@clisp.org>
21602
21603         * modules/cond (Dependencies): Add errno, time.
21604         * lib/glthread/cond.h: Include <time.h>.
21605         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21606         across platforms.
21607
21608 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21609             Bruno Haible  <bruno@clisp.org>
21610
21611         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21612
21613 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21614             Bruno Haible  <bruno@clisp.org>
21615
21616         * modules/tls-tests (Depends-on): Add thread, yield.
21617         (configure.ac): Remove all checks.
21618         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21619         * tests/test-tls.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_tls): Pass an additional NULL argument to gl_thread_join.
21623
21624 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21625             Bruno Haible  <bruno@clisp.org>
21626
21627         * modules/lock-tests (Depends-on): Add thread, yield.
21628         (configure.ac): Remove all checks.
21629         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21630         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21631         gl_thread_self): Remove definitions. Include glthread/thread.h and
21632         glthread/yield.h instead.
21633         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21634         additional NULL argument to gl_thread_join.
21635
21636 2008-09-30  Bruno Haible  <bruno@clisp.org>
21637
21638         Fix the Win32 implementation of the 'thread' module.
21639         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21640         pointer type.
21641         (gl_thread_self): Invoke gl_thread_self_func.
21642         (gl_thread_self_func): New declaration.
21643         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21644         (do_init_self_key, init_self_key): New functions.
21645         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21646         Remove some fields.
21647         (running_threads, running_lock): Remove variables.
21648         (get_current_thread_handle): New function.
21649         (gl_thread_self_func, wrapper_func, glthread_create_func,
21650         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21651         simplified.
21652
21653 2008-09-30  Bruno Haible  <bruno@clisp.org>
21654
21655         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21656         files.
21657
21658 2008-09-30  Jim Meyering  <meyering@redhat.com>
21659
21660         fts.m4: correct the test for statfs.f_type
21661         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21662         when checking for statfs.f_type.
21663
21664 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21665
21666         tests: avoid some compiler warnings
21667         * tests/test-memchr.c (main): Pass NULL indirectly.
21668         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21669
21670 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
21671
21672         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21673         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21674         exactly specified dayshifts.
21675         (dayshift): New rule.
21676         (rel): Add dayshift.
21677         (relative_time_table) [tomorrow, yesterday, today, now]:
21678         Use tDAY_SHIFT in place of tDAY_UNIT.
21679         * tests/test-getdate.c: Add tests for now-disallowed countable
21680         dayshifts, e.g., "4 yesterday ago".
21681
21682 2008-09-29  Bruno Haible  <bruno@clisp.org>
21683
21684         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21685         * tests/test-posix_spawn1.in.sh: Renamed from
21686         tests/test-posix_spawn.in.sh.
21687         * tests/test-posix_spawn2.c: New file.
21688         * tests/test-posix_spawn2.in.sh: New file.
21689         * modules/posix_spawnp-tests (Files): Update.
21690         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21691
21692 2008-09-29  Bruno Haible  <bruno@clisp.org>
21693
21694         Propagate effects of putenv/setenv/unsetenv to child processes.
21695         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21696         * lib/pipe.c (create_pipe): Likewise.
21697
21698 2008-09-29  Bruno Haible  <bruno@clisp.org>
21699
21700         Enable use of shell scripts as executables in mingw.
21701         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21702         run the program as a shell script.
21703         * lib/pipe.c (create_pipe): Likewise.
21704         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21705         resulting array.
21706
21707 2008-09-29  Eric Blake  <ebb9@byu.net>
21708
21709         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21710
21711 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21712
21713         * doc/posix-functions/accept.texi: Update mingw problems.
21714         * doc/posix-functions/bind.texi: Update mingw problems.
21715         * doc/posix-functions/close.texi: Update mingw problems.
21716         * doc/posix-functions/connect.texi: Update mingw problems.
21717         * doc/posix-functions/getpeername.texi: Update mingw problems.
21718         * doc/posix-functions/getsockname.texi: Update mingw problems.
21719         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21720         * doc/posix-functions/ioctl.texi: Update mingw problems.
21721         * doc/posix-functions/listen.texi: Update mingw problems.
21722         * doc/posix-functions/recv.texi: Update mingw problems.
21723         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21724         * doc/posix-functions/select.texi: Update mingw problems.
21725         * doc/posix-functions/send.texi: Update mingw problems.
21726         * doc/posix-functions/sendto.texi: Update mingw problems.
21727         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21728         * doc/posix-functions/socket.texi: Update mingw problems.
21729
21730 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21731             Bruno Haible  <bruno@clisp.org>
21732
21733         * lib/sys_select.in.h: Include sys/time.h.
21734         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21735         * modules/sys_select: Depend on sys_time.
21736         * tests/test-sys_select.c: Test that sys/select.h defines struct
21737         timeval fully.
21738
21739 2008-09-29  Bruno Haible  <bruno@clisp.org>
21740
21741         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21742         * lib/sys_select.in.h: Likewise.
21743
21744 2008-09-29  Bruno Haible  <bruno@clisp.org>
21745
21746         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21747
21748 2008-09-29  Bruno Haible  <bruno@clisp.org>
21749
21750         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21751         Set LIBSOCKET instead of augmenting LIBS.
21752         * modules/sockets (Link): New section.
21753         * modules/sockets-tests (test_sockets_LDADD): New variable.
21754         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21755         * modules/poll-tests (test_poll_LDADD): New variable.
21756         * NEWS: Document the change.
21757
21758 2008-09-29  Bruno Haible  <bruno@clisp.org>
21759
21760         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21761         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21762         ARPA_INET_H directly.
21763         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21764
21765 2008-09-28  Bruno Haible  <bruno@clisp.org>
21766
21767         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21768         from gl_HEADER_SYS_SOCKET.
21769         (gl_HEADER_SYS_SOCKET): Invoke it.
21770         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21771
21772 2008-09-28  Bruno Haible  <bruno@clisp.org>
21773
21774         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21775         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21776         Needed on OSF/1 4.0.
21777
21778 2008-09-28  Bruno Haible  <bruno@clisp.org>
21779
21780         Override open more carefully.
21781         * lib/open.c (orig_open): New function.
21782         (rpl_open): Use orig_open instead of open.
21783         * lib/fcntl.in.h: Add special invocation convention.
21784         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21785         (gl_FUNC_OPEN): Invoke it.
21786
21787         Override freopen more carefully.
21788         * lib/freopen.c (orig_freopen): New function.
21789         (rpl_freopen): Use orig_freopen instead of freopen.
21790         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21791         (gl_FUNC_FREOPEN): Invoke it.
21792
21793         Override fopen more carefully.
21794         * lib/fopen.c (orig_fopen): New function.
21795         (rpl_fopen): Use orig_fopen instead of fopen.
21796         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21797         (gl_FUNC_FOPEN): Invoke it.
21798         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21799
21800 2008-09-28  Bruno Haible  <bruno@clisp.org>
21801
21802         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21803         SIGPIPE.
21804
21805 2008-09-28  Bruno Haible  <bruno@clisp.org>
21806
21807         * tests/test-sigaction.c (handler, main): Disable the check whether
21808         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21809         glibc systems with LinuxThreads.
21810
21811 2008-09-28  Bruno Haible  <bruno@clisp.org>
21812
21813         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21814
21815         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21816         with AIX xlc.
21817         * lib/fcntl.in.h (open): Likewise.
21818         Reported by Rainer Tammer <tammer@tammer.net>.
21819
21820 2008-09-28  Bruno Haible  <bruno@clisp.org>
21821
21822         * modules/posix_spawnp-tests: New file.
21823         * tests/test-posix_spawn.c: New file.
21824         * tests/test-posix_spawn.in.sh: New file.
21825
21826         New module 'posix_spawnp'.
21827         * modules/posix_spawnp: New file.
21828         * lib/spawnp.c: New file, from GNU libc with modifications.
21829         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21830
21831         New module 'posix_spawn'.
21832         * modules/posix_spawn: New file.
21833         * lib/spawn.c: New file, from GNU libc with modifications.
21834         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21835
21836         New module 'posix_spawnattr_destroy'.
21837         * modules/posix_spawnattr_destroy: New file.
21838         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21839         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21840         module.
21841
21842         New module 'posix_spawnattr_setsigmask'.
21843         * modules/posix_spawnattr_setsigmask: New file.
21844         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21845         modifications.
21846         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21847         new module.
21848
21849         New module 'posix_spawnattr_getsigmask'.
21850         * modules/posix_spawnattr_getsigmask: New file.
21851         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21852         modifications.
21853         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21854         new module.
21855
21856         New module 'posix_spawnattr_setsigdefault'.
21857         * modules/posix_spawnattr_setsigdefault: New file.
21858         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21859         modifications.
21860         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21861         new module.
21862
21863         New module 'posix_spawnattr_getsigdefault'.
21864         * modules/posix_spawnattr_getsigdefault: New file.
21865         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21866         modifications.
21867         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21868         new module.
21869
21870         New module 'posix_spawnattr_setschedpolicy'.
21871         * modules/posix_spawnattr_setschedpolicy: New file.
21872         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21873         modifications.
21874         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21875         new module.
21876
21877         New module 'posix_spawnattr_getschedpolicy'.
21878         * modules/posix_spawnattr_getschedpolicy: New file.
21879         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21880         modifications.
21881         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21882         new module.
21883
21884         New module 'posix_spawnattr_setschedparam'.
21885         * modules/posix_spawnattr_setschedparam: New file.
21886         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21887         modifications.
21888         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21889         new module.
21890
21891         New module 'posix_spawnattr_getschedparam'.
21892         * modules/posix_spawnattr_getschedparam: New file.
21893         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21894         modifications.
21895         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21896         new module.
21897
21898         New module 'posix_spawnattr_setpgroup'.
21899         * modules/posix_spawnattr_setpgroup: New file.
21900         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21901         modifications.
21902         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21903         module.
21904
21905         New module 'posix_spawnattr_getpgroup'.
21906         * modules/posix_spawnattr_getpgroup: New file.
21907         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21908         modifications.
21909         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21910         module.
21911
21912         New module 'posix_spawnattr_setflags'.
21913         * modules/posix_spawnattr_setflags: New file.
21914         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21915         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21916         module.
21917
21918         New module 'posix_spawnattr_getflags'.
21919         * modules/posix_spawnattr_getflags: New file.
21920         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21921         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21922         module.
21923
21924         New module 'posix_spawnattr_init'.
21925         * modules/posix_spawnattr_init: New file.
21926         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21927         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21928         module.
21929
21930         New module 'posix_spawn_file_actions_destroy'.
21931         * modules/posix_spawn_file_actions_destroy: New file.
21932         * lib/spawn_faction_destroy.c: New file, from GNU libc with
21933         modifications.
21934         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21935         the new module.
21936
21937         New module 'posix_spawn_file_actions_addopen'.
21938         * modules/posix_spawn_file_actions_addopen: New file.
21939         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21940         modifications.
21941         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21942         the new module.
21943
21944         New module 'posix_spawn_file_actions_adddup2'.
21945         * modules/posix_spawn_file_actions_adddup2: New file.
21946         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21947         modifications.
21948         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21949         the new module.
21950
21951         New module 'posix_spawn_file_actions_addclose'.
21952         * modules/posix_spawn_file_actions_addclose: New file.
21953         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21954         modifications.
21955         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21956         the new module.
21957
21958         New module 'posix_spawn_file_actions_init'.
21959         * modules/posix_spawn_file_actions_init: New file.
21960         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21961         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21962         new module.
21963
21964         New module 'posix_spawn-internal'.
21965         * modules/posix_spawn-internal: New file.
21966         * lib/spawn_int.h: New file, from GNU libc with modifications.
21967         * lib/spawni.c: New file, from GNU libc with modifications.
21968         * m4/posix_spawn.m4: New file.
21969
21970         New module 'spawn'.
21971         * modules/spawn: New file.
21972         * lib/spawn.in.h: New file, from GNU libc with modifications.
21973         * m4/spawn_h.m4: New file.
21974         * doc/posix-headers/spawn.texi: Mention the new module.
21975
21976 2008-09-28  Bruno Haible  <bruno@clisp.org>
21977
21978         * modules/sched-tests: New file.
21979         * tests/test-sched.c: New file.
21980
21981         New module 'sched'.
21982         * modules/sched: New file.
21983         * lib/sched.in.h: New file.
21984         * m4/sched_h.m4: New file.
21985         * doc/posix-headers/sched.texi: Mention the new module.
21986
21987 2008-09-27  Eric Blake  <ebb9@byu.net>
21988
21989         Fix previous patch, and tweak references to $0.
21990         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21991         (func_version, func_gnulib_dir): Don't call this program
21992         gnulib-tool.
21993         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21994         with using $0 in function.
21995         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21996         (func_fatal_error): Reuse the name the user invoked us with.
21997
21998 2008-09-27  Bruno Haible  <bruno@clisp.org>
21999
22000         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
22001         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
22002         (gl_ICONV_H): Not here.
22003         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22004         instead of assigning ICONV_H directly.
22005
22006         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
22007         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
22008         WCHAR_H directly.
22009
22010 2008-09-27  Bruno Haible  <bruno@clisp.org>
22011
22012         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22013         * modules/arpa_inet (Depends-on): Add link-warning.
22014         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22015         * modules/unistd (Makefile.am): Likewise.
22016
22017 2008-09-26  Bruno Haible  <bruno@clisp.org>
22018
22019         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22020         variables.
22021         (func_version): Essentially copied from gnulib-tool.
22022         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22023         func_readlink): Copied from gnulib-tool.
22024
22025 2008-09-26  Bruno Haible  <bruno@clisp.org>
22026
22027         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22028         invoking git-version-gen.
22029
22030 2008-09-26  Bruno Haible  <bruno@clisp.org>
22031
22032         * posix-modules: Update to directory names changed on 2008-01-19.
22033         Remove commas in output before splitting into words. No more need to
22034         avoid 'ftruncate' since 2007-02-19.
22035
22036 2008-09-26  Bruno Haible  <bruno@clisp.org>
22037
22038         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22039
22040 2008-09-26  Bruno Haible  <bruno@clisp.org>
22041
22042         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22043         * modules/fwriteerror (Depends-on): Add errno.
22044
22045 2008-09-26  Bruno Haible  <bruno@clisp.org>
22046
22047         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22048         * tests/test-vc-list-files-cvs.sh: Likewise.
22049
22050 2008-09-26  Bruno Haible  <bruno@clisp.org>
22051
22052         * doc/posix-headers/sys_resource.texi: Reorder items.
22053
22054 2008-09-26  Jim Meyering  <meyering@redhat.com>
22055
22056         fts: tweak inode comparison function
22057         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22058         inode numbers, as documented.
22059
22060         fts: sort dirent entries on inode number before traversing
22061         This avoids a quadratic, seek-related performance penalty when
22062         operating on a directory containing many entries (measurable at 10k;
22063         3.5 hours at 2 million entries with a cold cache) on certain types
22064         of file systems, including ext3 and ext4, but not tmpfs.
22065         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22066         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22067         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22068         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22069         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22070         (fts_build): Set the stat.st_ino member from D_INO.
22071         If it is likely to be useful, sort dirent entries on inode number.
22072
22073         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22074         and the struct statfs.f_type member.
22075         * modules/fts (Depends-on): Add d-ino.
22076
22077 2008-09-26  Bruno Haible  <bruno@clisp.org>
22078
22079         * modules/sigpipe-die (Depends-on): Add sigpipe.
22080
22081         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22082         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22083         and GNULIB_STDIO_H_SIGPIPE are set.
22084         * lib/stdio-write.c: New file.
22085         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22086         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22087         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22088         REPLACE_STDIO_WRITE_FUNCS.
22089         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22090         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22091         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22092         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22093         * modules/stdio (Files): Add lib/stdio-write.c.
22094         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22095         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22096         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22097         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22098         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22099         REPLACE_FPRINTF_POSIX.
22100         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22101         REPLACE_PRINTF_POSIX.
22102         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22103         REPLACE_VFPRINTF_POSIX.
22104         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22105         REPLACE_VPRINTF_POSIX.
22106         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22107         SIGPIPE issue.
22108         * doc/posix-functions/fputc.texi: Likewise.
22109         * doc/posix-functions/fputs.texi: Likewise.
22110         * doc/posix-functions/fwrite.texi: Likewise.
22111         * doc/posix-functions/printf.texi: Likewise.
22112         * doc/posix-functions/putc.texi: Likewise.
22113         * doc/posix-functions/putchar.texi: Likewise.
22114         * doc/posix-functions/puts.texi: Likewise.
22115         * doc/posix-functions/vfprintf.texi: Likewise.
22116         * doc/posix-functions/vprintf.texi: Likewise.
22117
22118         * modules/safe-write (Depends-on): Add write.
22119
22120         * modules/sigpipe-tests: New file.
22121         * tests/test-sigpipe.c: New file.
22122         * tests/test-sigpipe.sh: New file.
22123
22124         * modules/write: New file.
22125         * lib/unistd.in.h: Include <sys/types.h>.
22126         (write): New declaration.
22127         * lib/write.c: New file.
22128         * m4/write.m4: New file.
22129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22130         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22131         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22132         GNULIB_WRITE, REPLACE_WRITE.
22133         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22134         and the SIGPIPE issue.
22135
22136         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22137         (raise): New declaration.
22138         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22139         (ext_signal): New function.
22140         (rpl_raise): New function.
22141         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22142         GNULIB_SIGNAL_H_SIGPIPE.
22143         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22144         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22145
22146         * modules/sigpipe: New file.
22147         * m4/sigpipe.m4: New file.
22148
22149 2008-09-25  Derek Price  <derek@ximbiot.com>
22150             Bruno Haible  <bruno@clisp.org>
22151
22152         * gnulib-tool (func_import): Report all license incompatibilities, not
22153         just the first one.
22154
22155 2008-09-25  Bruno Haible  <bruno@clisp.org>
22156
22157         * gnulib-tool (func_import): When computing the edits, consider not
22158         only the Makefile.ams that exist but also those that will be generated.
22159
22160 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22161
22162         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22163         fixes gnulib-tool --test warning about duplicate dependency.
22164
22165 2008-09-25  Bruno Haible  <bruno@clisp.org>
22166
22167         * gnulib-tool: Don't ask the user to perform edits in the generated
22168         Makefile.ams.
22169         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22170         apply to the Makefile.am being generated.
22171         (func_emit_tests_Makefile_am): Execute edits that apply to the
22172         Makefile.am being generated.
22173         (func_import): Setup list of Makefile.am edits before emitting the
22174         Makefile.ams, not at the end.
22175         (func_create_testdir): Update.
22176         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22177
22178 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22179
22180         * gnulib-tool (func_import): Store the --tests-base option in the
22181         comment in gnulib-cache.m4.
22182
22183 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22184
22185         * NEWS: Document increased portability that sys_select now provides.
22186
22187         * lib/sys_select.in.h: Install select wrapper.
22188         * lib/sys_socket.in.h: Use more descriptive name when there is no
22189         select wrapper.
22190         * lib/winsock-select.c: New.
22191         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22192         Require gl_HEADER_SYS_SOCKET.
22193         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22194         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22195         * tests/test-sys_select.c: Add functional tests.
22196
22197 2008-09-24  Eric Blake  <ebb9@byu.net>
22198
22199         open, fopen: close fd leak in last patch
22200         * lib/open.c (rpl_open): Close fd before returning error.
22201         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22202         * doc/posix-functions/open.texi (open): Document that Irix also
22203         has the bug.
22204         * doc/posix-functions/fopen.texi (fopen): Likewise.
22205         Reported by Paolo Bonzini.
22206
22207 2008-09-24  Bruno Haible  <bruno@clisp.org>
22208
22209         Ensure that a filename ending in a slash cannot be used to access a
22210         non-directory.
22211         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22212         to check whether it's really a directory.
22213         * lib/fopen.c: Include fcntl.h, unistd.h.
22214         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22215         and fdopen().
22216         * modules/fopen (Depends-on): Add unistd.
22217         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22218         * tests/test-fopen.c (main): Likewise.
22219         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22220         * doc/posix-functions/fopen.texi: Likewise.
22221         Reported by Eric Blake.
22222
22223 2008-09-23  Eric Blake  <ebb9@byu.net>
22224
22225         c-stack: avoid compiler optimizations when provoking overflow
22226         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22227         recursion harder to optimize, to ensure a stack overflow occurs.
22228         * tests/test-c-stack.c (recurse): Likewise.
22229         Borrowed from libsigsegv.
22230
22231         c-stack: work around Irix sigaltstack bug
22232         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22233         whether sigaltstack uses wrong end of stack_t (copied in part from
22234         libsigsegv).
22235         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22236         Irix bug, without requiring an over-allocation.
22237         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22238         bug.
22239
22240         fopen: document mingw bug on directories
22241         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22242         not allowing a stream visiting a directory, even though reading
22243         from such a stream is not portable.
22244
22245 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22246
22247         * lib/poll.c: Rewrite.
22248         * modules/poll: Depend on alloca.
22249
22250 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22251
22252         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22253         instead define prototypes for a full set of wrappers.  Ensure
22254         that Cygwin does not use the compatibility code, which is only
22255         for MinGW.
22256         * lib/winsock.c: New.
22257         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22258         * modules/sys_socket: Add lib/winsock.c.
22259
22260         * modules/poll-tests: Add errno and perror.
22261         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22262
22263 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22264
22265         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22266
22267 2008-09-23  Bruno Haible  <bruno@clisp.org>
22268
22269         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22270         * doc/glibc-functions/*: Likewise.
22271
22272 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22273
22274         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22275         success.
22276
22277 2008-09-22  Eric Blake  <ebb9@byu.net>
22278             Bruno Haible  <bruno@clisp.org>
22279
22280         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22281         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22282         supply %A but mishandle pseudo-NaN.
22283         Reported by Simon Josefsson.
22284
22285 2008-09-21  Bruno Haible  <bruno@clisp.org>
22286
22287         * tests/test-lock.c (main): Tweak skip message.
22288         * tests/test-tls.c (main): Likewise.
22289
22290 2008-09-21  Bruno Haible  <bruno@clisp.org>
22291
22292         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22293         whether 'struct sigaction' has sa_sigaction here...
22294         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22295         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22296
22297 2008-09-21  Bruno Haible  <bruno@clisp.org>
22298
22299         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22300         section.
22301         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22302         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22303         the new section.
22304         (Support for obsolete systems lacking POSIX:2001): New section.
22305         (String handling <string.h>): Move strdup to the new section.
22306         Suggested by Simon Josefsson and Paolo Bonzini.
22307
22308 2008-09-21  Bruno Haible  <bruno@clisp.org>
22309
22310         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22311         exponents in %e and %g results on 'long double'. Needed for mingw's
22312         improved *printf functions.
22313         * tests/test-vasprintf-posix.c (test_function): Likewise.
22314         * tests/test-snprintf-posix.h (test_function): Likewise.
22315         * tests/test-sprintf-posix.h (test_function): Likewise.
22316         Reported by Eric Blake.
22317
22318 2008-09-21  Bruno Haible  <bruno@clisp.org>
22319
22320         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22321         * tests/test-sprintf-posix.h (test_function): Likewise.
22322
22323 2008-09-21  Bruno Haible  <bruno@clisp.org>
22324
22325         * modules/getpass (Depends-on): Add strdup-posix.
22326
22327         New module 'strdup-posix'.
22328         * modules/strdup-posix: New file.
22329         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22330         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22331         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22332         REPLACE_STRDUP.
22333         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22334         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22335         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22336         strdup-posix.
22337
22338         * modules/strdup (Depends-on): Remove malloc-posix.
22339
22340 2008-09-20  Bruno Haible  <bruno@clisp.org>
22341
22342         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22343         Wildenhues.
22344
22345 2008-09-20  Bruno Haible  <bruno@clisp.org>
22346
22347         Ensure that wint_t gets defined on IRIX 5.3.
22348         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22349         * lib/wctype.in.h (wint_t): Likewise.
22350         (__wctype_wint_t): Remove type.
22351         (isw*): Use wint_t instead of __wctype_wint_t.
22352         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22353         * modules/wchar (Files): Add m4/wint_t.m4.
22354         (Makefile.am): Substitute HAVE_WINT_T.
22355         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22356         * tests/test-wctype.c: Check that wint_t is defined.
22357         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22358         * doc/posix-headers/wctype.texi: Likewise.
22359         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22360
22361 2008-09-18  Bruno Haible  <bruno@clisp.org>
22362
22363         * gnulib-tool (func_exit): Update comment.
22364
22365 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22366
22367         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22368         assumes strdup exists and does not depend on strdup to return
22369         ENOMEM on out of memory conditions.
22370
22371 2008-09-18  Bruno Haible  <bruno@clisp.org>
22372
22373         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
22374         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22375         digits for the exponent.
22376
22377 2008-09-18  Jim Meyering  <meyering@redhat.com>
22378             Bruno Haible  <bruno@clisp.org>
22379
22380         * lib/vasnprintf.c (decimal_point_char): Define also if
22381         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22382
22383 2008-09-16  Bruno Haible  <bruno@clisp.org>
22384         and Eric Blake  <ebb9@byu.net>
22385
22386         vasnprintf: support Irix 5.3
22387         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22388         that mishandle long double infinity.
22389         Reported by Tom G. Christensen.
22390
22391 2008-09-16  Bruno Haible  <bruno@clisp.org>
22392
22393         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22394         Solaris 9.
22395         * doc/glibc-functions/alphasort.texi: Likewise.
22396         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22397
22398 2008-09-16  Jim Meyering  <meyering@redhat.com>
22399
22400         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22401         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22402         a umask modification leak out of a subshell.  Otherwise, the
22403         opensolaris /bin/sh would be accepted and thus cause unwarranted
22404         failures in the coreutils test suite.
22405
22406 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22407
22408         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22409         to succeed.
22410
22411 2008-09-16  Jim Meyering  <meyering@redhat.com>
22412
22413         avoid spurious test failure when library is built without ACL support
22414         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22415         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22416         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22417         * tests/test-copy-acl.sh: Likewise.
22418
22419 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22420
22421         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22422         based on character occurrence counts.
22423
22424 2008-09-15  Eric Blake  <ebb9@byu.net>
22425
22426         tests: avoid some compiler warnings
22427         * tests/test-memchr.c (main): Pass NULL indirectly.
22428         * tests/test-closein.c (main): Avoid unused variable.
22429
22430 2008-09-15  Bruno Haible  <bruno@clisp.org>
22431
22432         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22433         are missing on OpenBSD 4.0 individually.
22434         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22435
22436 2008-09-15  Bruno Haible  <bruno@clisp.org>
22437
22438         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22439         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22440         * doc/posix-functions/perror.texi: Likewise.
22441         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22442         is missing.
22443         Reported by Eric Blake.
22444
22445         * lib/errno.in.h: Use replacement values >= 2000.
22446         Reported by Eric Blake.
22447
22448 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22449
22450         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22451         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22452         limit.
22453         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22454         compareseq was aborted.
22455
22456 2008-09-14  Bruno Haible  <bruno@clisp.org>
22457
22458         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22459         yvec_edit_count.
22460         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22461         (fstrcmp_bounded): Simplify result computation accordingly.
22462
22463 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22464
22465         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22466         (fstrcmp): Define in terms of fstrcmp_bounded.
22467         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22468         lower_bound argument.
22469         Return quickly if the result is certainly < lower_bound.
22470         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22471
22472 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22473
22474         * lib/diffseq.h (EARLY_ABORT): New macro.
22475         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22476         evaluates to true.
22477
22478 2008-09-14  Bruno Haible  <bruno@clisp.org>
22479
22480         * modules/perror-tests: New file.
22481         * tests/test-perror.sh: New file.
22482         * tests/test-perror.c: New file.
22483
22484         New module 'perror'.
22485         * lib/stdio.in.h (perror): New declaration.
22486         * lib/perror.c: New file.
22487         * m4/perror.m4: New file.
22488         * modules/perror: New file.
22489         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22490         * doc/posix-functions/perror.texi: Mention the perror module.
22491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22492         REPLACE_PERROR.
22493         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22494         REPLACE_PERROR.
22495
22496 2008-09-14  Bruno Haible  <bruno@clisp.org>
22497
22498         * modules/stdio (Makefile.am): Reorder to match the order in
22499         lib/stdio.in.h.
22500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22501
22502 2008-09-13  Bruno Haible  <bruno@clisp.org>
22503
22504         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22505
22506 2008-09-13  Bruno Haible  <bruno@clisp.org>
22507
22508         Extend strerror to cover the added errno values.
22509         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22510         (rpl_strerror): Provide error messages for the added errno values and
22511         for the WSA* values.
22512         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22513         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22514         strerror.
22515         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22516         * modules/strerror (Depends-on): Add errno.
22517         * doc/posix-functions/strerror.texi: Document the change.
22518         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22519         and EOVERFLOW.
22520
22521 2008-09-13  Bruno Haible  <bruno@clisp.org>
22522
22523         * modules/EOVERFLOW: Remove file.
22524         * m4/eoverflow.m4: Remove file.
22525         * modules/EOVERFLOW-tests: Remove file.
22526         * tests/test-EOVERFLOW.c: Remove file.
22527         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22528         * modules/ftell (Depends-on): Likewise.
22529         * modules/getdelim (Depends-on): Likewise.
22530         * modules/getugroups (Depends-on): Likewise.
22531         * modules/poll (Depends-on): Likewise.
22532         * modules/snprintf (Depends-on): Likewise.
22533         * modules/sprintf-posix (Depends-on): Likewise.
22534         * modules/vasnprintf (Depends-on): Likewise.
22535         * modules/vasprintf (Depends-on): Likewise.
22536         * modules/vfprintf-posix (Depends-on): Likewise.
22537         * modules/vsnprintf (Depends-on): Likewise.
22538         * modules/vsprintf-posix (Depends-on): Likewise.
22539         * modules/xvasprintf (Depends-on): Likewise.
22540         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22541         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22542         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22543         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22544         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22545         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22546         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22547         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22548         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22549         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22550         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22551         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22552         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22553         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22554         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22555         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22556         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22557         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22558         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22559         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22560         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22561         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22562         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22563         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22564         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22565         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22566         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22567         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22568         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22569         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22570         * MODULES.html.sh: Remove EOVERFLOW.
22571         * NEWS: Mention the change.
22572
22573 2008-09-13  Bruno Haible  <bruno@clisp.org>
22574
22575         * modules/errno-tests: New file.
22576         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22577
22578         * lib/errno.in.h: New file.
22579         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22580         * modules/errno: New file.
22581         * doc/posix-headers/errno.texi: Update documentation.
22582         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22583
22584 2008-09-13  Bruno Haible  <bruno@clisp.org>
22585
22586         * tests/test-poll.c: Use #if for native Windows, rather than testing
22587         __MSVCRT__.
22588
22589 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22590             Bruno Haible  <bruno@clisp.org>
22591
22592         * lib/glob.c: Don't include <pwd.h> on native Windows.
22593         (WINDOWS32): New macro.
22594         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22595
22596 2008-09-13  Bruno Haible  <bruno@clisp.org>
22597
22598         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22599         (ETIMEDOUT): Remove macro.
22600         (glthread_cond_timedwait_multithreaded): New declaration.
22601         (glthread_cond_timedwait): Use it.
22602         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22603         (glthread_cond_timedwait_multithreaded): New function.
22604
22605 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22606
22607         * modules/poll-tests: Do not check for io.h.
22608         * tests/test-poll.c: Check for __MSVCRT__ instead.
22609
22610 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22611
22612         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22613         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22614         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22615
22616 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22617
22618         * modules/poll-tests: New.
22619         * tests/test-poll.c: New.
22620
22621 2008-09-12  Eric Blake  <ebb9@byu.net>
22622
22623         frexp: test for NetBSD failure on -0.0
22624         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22625         not all, bugs from NetBSD 3.0 have been fixed.
22626         * doc/posix-functions/frexp.texi (frexp): Document bug.
22627         Reported by Thomas Klausner.
22628
22629         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22630         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22631         literal -0.0.
22632         Reported by Jonathan C. Patschke <jp@centtech.com>.
22633
22634 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22635
22636         * lib/glthread/cond.h: Use dummy implementation also if
22637         USE_WIN32_THREADS.
22638
22639 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22640
22641         * modules/fnmatch-posix (License): Change to LGPLv2+.
22642         * modules/fnmatch-gnu (License): Likewise.
22643
22644 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22645
22646         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22647
22648 2008-09-11  Jim Meyering  <meyering@redhat.com>
22649
22650         * users.txt: Add gtk-vnc.
22651
22652 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22653
22654         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22655         rotate amounts.
22656
22657         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22658         required for 16-bit and 8-bit rotates.
22659         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22660         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22661         UINT8_MAX instead of hard-coded constants.
22662         Suggested by Paul Eggert.
22663
22664 2008-09-07  Bruno Haible  <bruno@clisp.org>
22665
22666         * tests/test-striconveh.c (main): Check behaviour when converting from
22667         UTF-7.
22668
22669         Make striconveh work better with stateful encodings.
22670         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22671         that iconv does not increment the inptr when returning -1/EINVAL.
22672
22673 2008-09-07  Bruno Haible  <bruno@clisp.org>
22674
22675         * build-aux/config.rpath: Update according to libtool-2.2.6.
22676         * build-aux/config.libpath: Likewise.
22677
22678 2008-09-06  Bruno Haible  <bruno@clisp.org>
22679
22680         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22681         * lib/freadptr.c (freadptr): Likewise.
22682         * lib/freadseek.c (freadptrinc): Likewise.
22683         Reported by Simon Josefsson.
22684
22685 2008-09-06  Bruno Haible  <bruno@clisp.org>
22686
22687         * modules/freadptr (License): Change to LGPLv2+.
22688         * modules/freadseek (License): Likewise.
22689         Suggested by Eric Blake.
22690
22691         * modules/memchr2 (License): Change to LGPLv2+.
22692         Approved by Eric Blake.
22693
22694 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22695             Bruno Haible  <bruno@clisp.org>
22696
22697         Make gnulib-tool work with native 'sed' on AIX.
22698         * gnulib-tool (sed_noop): New variable.
22699         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22700         func_add_or_update, func_create_testdir): Use it to initialize sed
22701         script variables.
22702         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22703
22704 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22705             Bruno Haible  <bruno@clisp.org>
22706
22707         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22708         also works after #include directives.
22709
22710 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
22711
22712         getdate.y: reject an out-of-range timezone value
22713         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22714         the range [-24...+24].  When specified with only one or two digits,
22715         * tests/test-getdate.c: Tests for the fix.
22716         * doc/getdate.texi: Document this change.
22717
22718 2008-09-03  Bruno Haible  <bruno@clisp.org>
22719
22720         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22721
22722 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22723
22724         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22725         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22726         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22727         Blake <ebb9@byu.net>.
22728
22729         * tests/test-bitrotate.c: Add more test vectors.
22730
22731 2008-09-02  Eric Blake  <ebb9@byu.net>
22732
22733         vasnprintf-posix: handle large precision via %.*d
22734         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22735         when handling it ourselves.
22736         * tests/test-vasnprintf-posix.c (test_function): Add test.
22737         * tests/test-snprintf-posix.h (test_function): Likewise.
22738         * tests/test-sprintf-posix.h (test_function): Likewise.
22739         * tests/test-vasprintf-posix.c (test_function): Likewise.
22740         Reported by Alain Guibert.
22741
22742 2008-09-01  Eric Blake  <ebb9@byu.net>
22743
22744         c-stack: make configure-time check more robust
22745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22746         successful sigaction call.
22747         Reported by Tom G. Christensen.
22748
22749 2008-09-01  Bruno Haible  <bruno@clisp.org>
22750
22751         New module 'findprog-lgpl'.
22752         * modules/findprog-lgpl: New file.
22753         * lib/findprog-lgpl.c: New file.
22754         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22755         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22756         to decide whether to use strdup or xstrdup, concatenated_filename or
22757         xconcatenated_filename.
22758
22759 2008-09-01  Bruno Haible  <bruno@clisp.org>
22760
22761         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22762         'xconcat-filename' (GPL).
22763         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22764         (License): Change to LGPLv2+.
22765         * modules/xconcat-filename: New file.
22766         * lib/concat-filename.h (concatenated_filename): Change specification.
22767         (xconcatenated_filename): New declaration.
22768         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22769         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22770         memory situations.
22771         * lib/xconcat-filename.c: New file.
22772         * NEWS: Mention the change.
22773         * lib/findprog.c: Include concat-filename.h, not filename.h.
22774         (find_in_path): Use xconcatenated_filename instead of
22775         concatenated_filename.
22776         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22777         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22778         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22779         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22780         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22781         instead of concatenated_filename.
22782         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22783         (execute_java_class): Use xconcatenated_filename instead of
22784         concatenated_filename.
22785         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22786         * modules/javacomp (Depends-on): Likewise.
22787         * modules/javaexec (Depends-on): Likewise.
22788
22789 2008-09-01  Bruno Haible  <bruno@clisp.org>
22790
22791         Split module 'filename' into 'filename' and 'concat-filename'.
22792         * modules/filename: Keep only lib/filename.h.
22793         (License): Change to LGPLv2+.
22794         * modules/concat-filename: New file, extracted from modules/filename.
22795         * lib/filename.h (concatenated_filename): Remove declaration.
22796         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22797         * lib/concat-filename.c: Include concat-filename.h.
22798         * NEWS: Mention the change.
22799
22800 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22801
22802         * lib/bitrotate.h (rotl8, rotr8): Add.
22803
22804         * modules/bitrotate (configure.ac): Need
22805         AC_REQUIRE([AC_C_INLINE]).
22806         (Description): Mention stdint.h.  Reported by Bruno Haible
22807         <bruno@clisp.org>.
22808
22809         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22810         Paolo Bonzini <bonzini@gnu.org>.
22811
22812 2008-08-31  Bruno Haible  <bruno@clisp.org>
22813
22814         Assume Solaris specific bi-arch conventions on Solaris systems.
22815         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22816         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22817         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22818         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22819         like acl_libdirstem.
22820         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22821         acl_libdirstem.
22822         * NEWS: Mention the change.
22823         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22824
22825 2008-08-31  Jim Meyering  <meyering@redhat.com>
22826
22827         * lib/strftime.h: Add comments describing the two added arguments.
22828
22829         remove duplicate #include directives
22830         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22831         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22832
22833 2008-08-31  Bruno Haible  <bruno@clisp.org>
22834
22835         New module 'sigpipe-die'.
22836         * modules/sigpipe-die: New file.
22837         * lib/sigpipe-die.h: New file.
22838         * lib/sigpipe-die.c: New file.
22839         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22840
22841 2008-08-31  Bruno Haible  <bruno@clisp.org>
22842
22843         Don't override previously installed signal handlers.
22844         * lib/fatal-signal.c (saved_sigactions): New variable.
22845         (uninstall_handlers): Reset the signal to the saved handler, not
22846         to SIG_DFL (except when ignored).
22847         (install_handlers): Save the previous handlers.
22848
22849 2008-08-30  Bruno Haible  <bruno@clisp.org>
22850
22851         * gnulib-tool (func_reset_sigpipe): New function.
22852         (func_get_automake_snippet, func_modules_transitive_closure,
22853         func_import): Invoke it before a join command that reads from stdin,
22854         to avoid "echo: write error: Broken pipe" error messages on stderr.
22855         Reported by Sam Steingold <sds@gnu.org>.
22856
22857 2008-08-30  Bruno Haible  <bruno@clisp.org>
22858
22859         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22860         Code copied from m4/open.m4.
22861         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22862         access and the filename ends in a slash. Code copied from lib/open.c.
22863         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22864         * tests/test-fopen.c (main): Check against bug with trailing slash.
22865
22866 2008-08-29  Bruno Haible  <bruno@clisp.org>
22867
22868         Avoid some "gcc -pedantic" warnings.
22869         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22870         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22871         * lib/dirent.in.h: Likewise.
22872         * lib/fcntl.in.h: Likewise.
22873         * lib/float.in.h: Likewise.
22874         * lib/iconv.in.h: Likewise.
22875         * lib/inttypes.in.h: Likewise.
22876         * lib/locale.in.h: Likewise.
22877         * lib/math.in.h: Likewise.
22878         * lib/netinet_in.in.h: Likewise.
22879         * lib/search.in.h: Likewise.
22880         * lib/signal.in.h: Likewise.
22881         * lib/stdarg.in.h: Likewise.
22882         * lib/stdint.in.h: Likewise.
22883         * lib/stdio.in.h: Likewise.
22884         * lib/stdlib.in.h: Likewise.
22885         * lib/string.in.h: Likewise.
22886         * lib/strings.in.h: Likewise.
22887         * lib/sys_select.in.h: Likewise.
22888         * lib/sys_socket.in.h: Likewise.
22889         * lib/sys_stat.in.h: Likewise.
22890         * lib/sys_time.in.h: Likewise.
22891         * lib/sysexits.in.h: Likewise.
22892         * lib/time.in.h: Likewise.
22893         * lib/unistd.in.h: Likewise.
22894         * lib/wchar.in.h: Likewise.
22895         * lib/wctype.in.h: Likewise.
22896         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22897         * modules/fchdir (Makefile.am): Likewise.
22898         * modules/fcntl (Makefile.am): Likewise.
22899         * modules/float (Makefile.am): Likewise.
22900         * modules/iconv_open (Makefile.am): Likewise.
22901         * modules/inttypes (Makefile.am): Likewise.
22902         * modules/locale (Makefile.am): Likewise.
22903         * modules/math (Makefile.am): Likewise.
22904         * modules/netinet_in (Makefile.am): Likewise.
22905         * modules/search (Makefile.am): Likewise.
22906         * modules/signal (Makefile.am): Likewise.
22907         * modules/stdarg (Makefile.am): Likewise.
22908         * modules/stdint (Makefile.am): Likewise.
22909         * modules/stdio (Makefile.am): Likewise.
22910         * modules/stdlib (Makefile.am): Likewise.
22911         * modules/string (Makefile.am): Likewise.
22912         * modules/strings (Makefile.am): Likewise.
22913         * modules/sys_select (Makefile.am): Likewise.
22914         * modules/sys_socket (Makefile.am): Likewise.
22915         * modules/sys_stat (Makefile.am): Likewise.
22916         * modules/sys_time (Makefile.am): Likewise.
22917         * modules/sysexits (Makefile.am): Likewise.
22918         * modules/time (Makefile.am): Likewise.
22919         * modules/unistd (Makefile.am): Likewise.
22920         * modules/wchar (Makefile.am): Likewise.
22921         * modules/wctype (Makefile.am): Likewise.
22922         Reported by Reuben Thomas <rrt@sc3d.org>.
22923
22924 2008-08-29  Bruno Haible  <bruno@clisp.org>
22925
22926         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22927         any more.
22928
22929 2008-08-29  Simon Josefsson  <simon@josefsson.org>
22930
22931         * MODULES.html.sh (Misc): Add bitrotate.
22932
22933         * modules/bitrotate: New file.
22934
22935         * lib/bitrotate.h: New file.
22936
22937         * modules/bitrotate-tests: New file.
22938
22939         * tests/test-bitrotate.c: New file.
22940
22941         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22942         on the bitrotate module.
22943
22944         * lib/arctwo.c: Use new bitrotate module.
22945
22946 2008-08-29  Jim Meyering  <meyering@redhat.com>
22947
22948         bootstrap: merge changes from coreutils
22949         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22950         of copied files.  Remove a kludge, now that this is fixed.
22951         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22952         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22953         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22954
22955 2008-08-29  Bruno Haible  <bruno@clisp.org>
22956
22957         * MODULES.html.sh: Remove --cvs-urls option.
22958
22959 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22960
22961         maint.mk: adjust to file name change
22962         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22963
22964 2008-08-28  Jim Meyering  <meyering@redhat.com>
22965
22966         * modules/getndelim2 (License): Relicense to LGPLv2+.
22967         Approved by Richard Stallman for the version of 1995, and by
22968         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22969
22970 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
22971
22972         * lib/getdelim.c (flockfile, funlockfile): Make all of them
22973         dummy if one is not available.  Do not touch them if
22974         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22975         (getc_maybe_unlocked): New.
22976         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22977
22978 2008-08-26  Eric Blake  <ebb9@byu.net>
22979
22980         doc/INSTALL: resync from autoconf
22981         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22982         (INSTALL_PRELUDE): Delete; this is done more efficiently by
22983         moving...
22984         * install.texi [!autoconf]: ...here.  Resync from autoconf.
22985         * INSTALL: Regenerate.
22986         * INSTALL.ISO: New file.
22987         * INSTALL.UTF-8: Likewise.
22988
22989 2008-08-26  Jim Meyering  <meyering@redhat.com>
22990
22991         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22992         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22993         these definitions conditional, so that they may be overridden, too.
22994
22995 2008-08-26  Bruno Haible  <bruno@clisp.org>
22996
22997         Generate INSTALL file variants with prettier quotes.
22998         * doc/Makefile (INSTALL_PRELUDE): New macro.
22999         (INSTALL): Use it.
23000         (INSTALL.ISO, INSTALL.UTF-8): New rules.
23001
23002 2008-08-26  Bruno Haible  <bruno@clisp.org>
23003
23004         Run makeinfo in an English locale.
23005         * doc/Makefile (MAKEINFO): New variable.
23006
23007 2008-08-26  Bruno Haible  <bruno@clisp.org>
23008
23009         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
23010         Suggested by Eric Blake.
23011
23012 2008-08-25  Bruno Haible  <bruno@clisp.org>
23013
23014         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23015
23016 2008-08-25  Eric Blake  <ebb9@byu.net>
23017
23018         c-stack: test that stack overflow can be caught
23019         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23020         that platform allows handling stack overflow; at least OS/2 EMX
23021         has sigaltstack, but crashes before transferring control to
23022         handler on stack overflow.
23023         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23024         check for HAVE_STACK_OVERFLOW_HANDLING.
23025         Reported by Elbert Pol.
23026
23027 2008-08-25  Bruno Haible  <bruno@clisp.org>
23028
23029         * doc/posix-functions/strftime.texi: Fix description of strftime
23030         module.
23031
23032 2008-08-24  Bruno Haible  <bruno@clisp.org>
23033
23034         * tests/uniwidth/test-uc_width2.c: New file.
23035         * tests/uniwidth/test-uc_width2.sh: New file.
23036         * modules/uniwidth/width-tests (Files): Add the new files.
23037         (TESTS): Add uniwidth/test-uc_width2.sh.
23038         (TESTS_ENVIRONMENT): New variable.
23039         (check_PROGRAMS): Add test-uc_width2.
23040         (test_uc_width2_SOURCES): New variable.
23041
23042         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23043         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23044         not 0x00AB.
23045         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23046
23047 2008-08-22  Eric Blake  <ebb9@byu.net>
23048
23049         test-lock, test-tls: mention why a test is skipped
23050         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23051         skipped.
23052         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23053
23054         count-one-bits: relax license
23055         * modules/count-one-bits (License): Relicense to LGPLv2+.
23056         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23057
23058 2008-08-22  Andreas Schwab  <schwab@suse.de>
23059
23060         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23061         Remove spurious space in assignment.
23062
23063 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23064
23065         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23066         Paul Eggert <eggert@CS.UCLA.EDU>.
23067
23068 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23069
23070         * modules/gettext: Add m4/threadlib.m4.
23071
23072 2008-08-19  Eric Blake  <ebb9@byu.net>
23073
23074         test-c-stack: fix compilation failure on FreeBSD 5.0
23075         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23076         headers before <sys/resource.h>.
23077         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23078         the bug.
23079         Reported by Nelson H. F. Beebe.
23080
23081         strverscmp: migrate from "strverscmp.h" to <string.h>
23082         * modules/string (Makefile.am): Add new hooks.
23083         * modules/strverscmp (Files): Remove strverscmp.h.
23084         (Depends-on): Add string.
23085         (configure.ac): Add indicator.
23086         (Include): Mention new header.
23087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23088         defaults.
23089         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23090         results.
23091         * lib/strverscmp.h: Delete.
23092         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23093         * tests/test-strverscmp.c (includes): Adjust client.
23094         * lib/check-version.c (includes): Likewise.
23095         * NEWS: Document the change.
23096
23097         strverscmp: add unit test
23098         * modules/strverscmp-tests: New file.
23099         * tests/test-strverscmp.c: Likewise.
23100
23101 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23102
23103         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23104         regarding Windows crypto stuff, from Mono.
23105
23106 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23107
23108         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23109         if present, for intel RND.  Return error on failures.
23110
23111 2008-08-18  Ben Pfaff  <blp@gnu.org>
23112
23113         gitlog-to-changelog: give better diagnostic for failed pipe-open
23114         * build-aux/gitlog-to-changelog: Improve error message: suggest
23115         that the version of Git may be too old.
23116
23117 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23118
23119         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23120         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23121
23122 2008-08-18  Bruno Haible  <bruno@clisp.org>
23123
23124         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23125         pthread_in_use().
23126
23127 2008-08-18  Bruno Haible  <bruno@clisp.org>
23128
23129         * lib/glthread/threadlib.c: Include <pthread.h>.
23130
23131 2008-08-18  Bruno Haible  <bruno@clisp.org>
23132
23133         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23134         glthread_recursive_lock_* macros.
23135         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23136         Fix syntax error.
23137
23138 2008-08-18  Bruno Haible  <bruno@clisp.org>
23139
23140         * lib/glthread/thread.c: Avoid forcing a context switch right after
23141         thread creation.
23142
23143 2008-08-17  Bruno Haible  <bruno@clisp.org>
23144
23145         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23146         * lib/glthread/thread.h: Provide Win32 specific implementation.
23147         * modules/thread (Files): Add lib/glthread/thread.c.
23148         (Depends-on): Add lock.
23149         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23150
23151 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23152
23153         New module 'yield'.
23154         * modules/yield: New file.
23155         * lib/glthread/yield.h: New file.
23156         * m4/yield.m4: New file.
23157         * MODULES.html.sh (Multithreading): Add yield.
23158
23159 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23160
23161         New module 'thread'.
23162         * modules/thread: New file.
23163         * lib/glthread/thread.h: New file.
23164         * m4/thread.m4: New file.
23165         * MODULES.html.sh (Multithreading): Add thread.
23166
23167 2008-08-17  Bruno Haible  <bruno@clisp.org>
23168
23169         * lib/glthread/lock.h: Include <stdlib.h> always.
23170         * lib/glthread/tls.h: Likewise.
23171         * lib/glthread/cond.h: Likewise.
23172
23173 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23174
23175         New module 'cond'.
23176         * modules/cond: New file.
23177         * lib/glthread/cond.h: New file.
23178         * lib/glthread/cond.c: New file.
23179         * m4/cond.m4: New file.
23180         * MODULES.html.sh (Multithreading): Add cond.
23181
23182 2008-08-16  Eric Blake  <ebb9@byu.net>
23183
23184         c-stack: fix regression on Irix 5.3 from 2008-06-21
23185         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23186         sa_sigaction...
23187         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23188         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23189         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23190         * modules/signal (Makefile.am): Use the value.
23191         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23192         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23193         * doc/posix-headers/signal.texi (signal.h): Document this
23194         portability issue.
23195         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23196         Reported by Tom G. Christensen.
23197
23198 2008-08-17  Bruno Haible  <bruno@clisp.org>
23199
23200         New module 'threadlib'.
23201         * modules/threadlib: New file.
23202         * lib/glthread/threadlib.c: New file, extracted from
23203         lib/glthread/lock.c.
23204         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23205         functions.
23206         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23207         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23208         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23209         macros.
23210         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23211         (gl_DISABLE_THREADS): Remove macro.
23212         * modules/lock (Files): Remove build-aux/config.rpath.
23213         (Depends-on): Remove havelib. Add threadlib.
23214         (configure.ac-early): Remove section.
23215         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23216         * modules/tls (Depends-on): Remove lock. Add threadlib.
23217         (Link): New section, copied from threadlib.
23218         * MODULES.html.sh (Multithreading): Add threadlib.
23219
23220 2008-08-14  Bruno Haible  <bruno@clisp.org>
23221
23222         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23223         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23224         glthread_rwlock_unlock, glthread_rwlock_destroy,
23225         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23226         glthread_recursive_lock_destroy): Define as macros always.
23227         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23228         glthread_lock_lock.
23229         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23230         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23231         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23232         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23233         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23234         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23235         (glthread_recursive_lock_lock_func): Renamed from
23236         glthread_recursive_lock_lock.
23237         (glthread_recursive_lock_unlock_func): Renamed from
23238         glthread_recursive_lock_unlock.
23239         (glthread_recursive_lock_destroy_func): Renamed from
23240         glthread_recursive_lock_destroy.
23241
23242 2008-08-14  Bruno Haible  <bruno@clisp.org>
23243
23244         * lib/glthread/lock.h: Renamed from lib/lock.h.
23245         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23246         * lib/glthread/tls.h: Renamed from lib/tls.h.
23247         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23248         * lib/fstrcmp.c: Update includes.
23249         * lib/strsignal.c: Update includes.
23250         * modules/lock (Files, Makefile.am): Update.
23251         (Include): Change to "glthread/lock.h".
23252         * modules/tls (Files, Makefile.am): Update.
23253         (Include): Change to "glthread/tls.h".
23254         * tests/test-lock.c: Update includes.
23255         * tests/test-tls.c: Update includes.
23256         * NEWS: Mention the renamed header files.
23257
23258 2008-08-11  Jim Meyering  <meyering@redhat.com>
23259
23260         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23261
23262 2008-08-11  Eric Blake  <ebb9@byu.net>
23263
23264         test-c-stack: avoid C99-ism
23265         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23266         before statement.
23267         Reported by Alain Guibert.
23268
23269 2008-08-10  Jim Meyering  <meyering@redhat.com>
23270
23271         ensure that return value of uinttostr et al are not ignored
23272         * lib/inttostr.h (__GNUC_PREREQ): Define.
23273         (__attribute_warn_unused_result__): Define.
23274         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23275
23276 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23277
23278         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23279         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23280
23281 2008-08-07  Jim Meyering  <meyering@redhat.com>
23282
23283         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23284
23285         * modules/mkstemp (License): Relicense under LGPLv2+.
23286         * modules/tempname (License): Likewise.
23287
23288 2008-08-06  Bruno Haible  <bruno@clisp.org>
23289
23290         * lib/poll.c (poll): Further micro-optimization.
23291
23292 2008-08-06  Jim Meyering  <meyering@redhat.com>
23293
23294         inet_pton.c: use locale-independent tolower
23295         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23296         (inet_pton6): Use c_tolower rather than tolower.
23297         * modules/inet_pton (Depends-on): Add c-ctype.
23298
23299 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23300
23301         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23302         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23303
23304 2008-08-06  Jim Meyering  <meyering@redhat.com>
23305
23306         * modules/inet_pton (License): Relicense under LGPLv2+.
23307
23308 2008-08-03  Bruno Haible  <bruno@clisp.org>
23309
23310         Additional non-aborting API for lock and tls.
23311         * lib/lock.h: Include <errno.h>.
23312         (glthread_lock_init): New macro/function.
23313         (gl_lock_init): Define as wrapper around glthread_lock_init.
23314         (glthread_lock_lock): New macro/function.
23315         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23316         (glthread_lock_unlock): New macro/function.
23317         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23318         (glthread_lock_destroy): New macro/function.
23319         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23320         (glthread_rwlock_init): New macro/function.
23321         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23322         (glthread_rwlock_rdlock): New macro/function.
23323         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23324         (glthread_rwlock_wrlock): New macro/function.
23325         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23326         (glthread_rwlock_unlock): New macro/function.
23327         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23328         (glthread_rwlock_destroy): New macro/function.
23329         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23330         (glthread_recursive_lock_init): New macro/function.
23331         (gl_recursive_lock_init): Define as wrapper around
23332         glthread_recursive_lock_init.
23333         (glthread_recursive_lock_lock): New macro/function.
23334         (gl_recursive_lock_lock): Define as wrapper around
23335         glthread_recursive_lock_lock.
23336         (glthread_recursive_lock_unlock): New macro/function.
23337         (gl_recursive_lock_unlock): Define as wrapper around
23338         glthread_recursive_lock_unlock.
23339         (glthread_recursive_lock_destroy): New macro/function.
23340         (gl_recursive_lock_destroy): Define as wrapper around
23341         glthread_recursive_lock_destroy.
23342         (glthread_once): New macro/function.
23343         (gl_once): Define as wrapper around glthread_once.
23344         Update function declarations.
23345         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23346         glthread_rwlock_init. Return error code.
23347         (glthread_rwlock_rdlock_multithreaded): Renamed from
23348         glthread_rwlock_rdlock. Return error code.
23349         (glthread_rwlock_wrlock_multithreaded): Renamed from
23350         glthread_rwlock_wrlock. Return error code.
23351         (glthread_rwlock_unlock_multithreaded): Renamed from
23352         glthread_rwlock_unlock. Return error code.
23353         (glthread_rwlock_destroy_multithreaded): Renamed from
23354         glthread_rwlock_destroy. Return error code.
23355         (glthread_recursive_lock_init_multithreaded): Renamed from
23356         glthread_recursive_lock_init. Return error code.
23357         (glthread_recursive_lock_lock_multithreaded): Renamed from
23358         glthread_recursive_lock_lock. Return error code.
23359         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23360         glthread_recursive_lock_unlock. Return error code.
23361         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23362         glthread_recursive_lock_destroy. Return error code.
23363         (glthread_once_call): Make static.
23364         (glthread_once_multithreaded): Renamed from glthread_once.
23365         * lib/tls.h: Include <errno.h>.
23366         (glthread_tls_key_init): New macro/function.
23367         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23368         (glthread_tls_set): New macro/function.
23369         (gl_tls_set): Define as wrapper around glthread_tls_set.
23370         (glthread_tls_key_destroy): New macro/function.
23371         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23372         Update function declarations.
23373         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23374         glthread_tls_get.
23375         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23376
23377 2008-08-04  Eric Blake  <ebb9@byu.net>
23378
23379         gnumakefile: use space, not TAB, outside of targets
23380         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23381
23382 2008-08-02  Jim Meyering  <meyering@redhat.com>
23383
23384         getdate.y: avoid locale-dependent date parsing failure
23385         In Turkish locales, getdate would fail to recognize keywords
23386         containing a lowercase "i".  The solution is not to rely on
23387         locale-sensitive case-conversion.
23388         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23389         (lookup_word): Use c_toupper in place of toupper.
23390         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23391         Reported by Vefa Bicakci <bicave@superonline.com> in
23392         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23393         * modules/getdate (Depends-on): Add c-ctype.
23394
23395 2008-08-02  Bruno Haible  <bruno@clisp.org>
23396
23397         * gnulib-tool (func_import): When updating or creating a .gitignore
23398         file, prepend each added line with a slash, and ignore leading slashes
23399         from the existing lines.
23400         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23401
23402 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23403
23404         Portability fix for GNU make 3.79.1.
23405         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23406         versions do not understand.
23407
23408 2008-08-01  Bruno Haible  <bruno@clisp.org>
23409
23410         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23411         * tests/test-isnanf.h (zero): New variable.
23412         (main): Avoid literal -0.0f.
23413         * tests/test-isnand.h (zero): New variable.
23414         (main): Avoid literal -0.0.
23415         * tests/test-isnanl.h (zero): New variable.
23416         (main): Avoid literal -0.0L.
23417         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23418         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23419         -0.0, -0.0L.
23420         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23421         (test_signbitd): Avoid literal -0.0.
23422         (test_signbitl): Avoid literal -0.0L.
23423         * tests/test-ceilf1.c (zero): New variable.
23424         (main): Avoid literal -0.0f.
23425         * tests/test-ceill.c (zero): New variable.
23426         (main): Avoid literal -0.0L.
23427         * tests/test-floorf1.c (zero): New variable.
23428         (main): Avoid literal -0.0f.
23429         * tests/test-floorl.c (zero): New variable.
23430         (main): Avoid literal -0.0L.
23431         * tests/test-roundf1.c (zero): New variable.
23432         (main): Avoid literal -0.0f.
23433         * tests/test-round1.c (zero): New variable.
23434         (main): Avoid literal -0.0.
23435         * tests/test-roundl.c (zero): New variable.
23436         (main): Avoid literal -0.0L.
23437         * tests/test-truncf1.c (zero): New variable.
23438         (main): Avoid literal -0.0f.
23439         * tests/test-trunc1.c (zero): New variable.
23440         (main): Avoid literal -0.0.
23441         * tests/test-truncl.c (zero): New variable.
23442         (main): Avoid literal -0.0L.
23443         * tests/test-frexp.c (zero): New variable.
23444         (main): Avoid literal -0.0.
23445         * tests/test-frexpl.c (zero): New variable.
23446         (main): Avoid literal -0.0L.
23447         * tests/test-ldexpl.c (zero): New variable.
23448         (main): Avoid literal -0.0L.
23449         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23450         (zerod, zerol): New variables.
23451         (test_function): Avoid literals -0.0, -0.0L.
23452         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23453         (zerod, zerol): New variables.
23454         (test_function): Avoid literals -0.0, -0.0L.
23455         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23456         (zerod, zerol): New variables.
23457         (test_function): Avoid literals -0.0, -0.0L.
23458         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23459         (zerod, zerol): New variables.
23460         (test_function): Avoid literals -0.0, -0.0L.
23461         * tests/test-strtod.c (zero): New variable.
23462         (main): Avoid literal -0.0.
23463         Reported by Jonathan C. Patschke <jp@centtech.com>.
23464
23465 2008-07-31  Jim Meyering  <meyering@redhat.com>
23466
23467         sha256.h: correct definition of SHA224_DIGEST_SIZE
23468         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23469         Reported by Paulie Pena IV <paulie4@gmail.com>.
23470         Define as 224 / 8, rather than as a literal.
23471         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23472         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23473         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23474
23475 2008-07-31  Bruno Haible  <bruno@clisp.org>
23476
23477         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23478         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23479         Reported by Jonathan Patschke <jp@centtech.com>.
23480
23481 2008-07-31  Bruno Haible  <bruno@clisp.org>
23482
23483         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23484         Reported by Paolo Bonzini <bonzini@gnu.org>.
23485
23486 2008-07-30  Eric Blake  <ebb9@byu.net>
23487
23488         test-strtod: allow compilation without -lm
23489         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23490         Reported by Dennis Clarke <blastwave@gmail.com>.
23491
23492 2008-07-28  Jim Meyering  <meyering@redhat.com>
23493
23494         bootstrap: work also when there are no .po files in po/
23495         * build-aux/bootstrap (update_po_files): Complete the change
23496         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23497
23498 2008-07-27  Jim Meyering  <meyering@redhat.com>
23499
23500         * users.txt: Add zile.
23501
23502 2008-07-26  Ben Pfaff  <blp@gnu.org>
23503
23504         Add missing dependencies on new m4/exponent[fdl].m4 files.
23505         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23506         * modules/isnand-nolibm: Add m4/exponentd.m4.
23507         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23508         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23509         m4/isnan[fdl].m4, because the macros actually used moved.
23510         Reported by Jim Meyering.
23511
23512 2008-07-14  Ben Pfaff  <blp@gnu.org>
23513
23514         Add isinf module.
23515         * lib/isinf.c: New file.
23516         * lib/math.in.h: Define isinf macro if we have decided to replace
23517         it.
23518         * m4/isinf.m4: New file.
23519         * m4/math_h.m4: Initialize and substitute variables for isinf
23520         module.
23521         * modules/isinf: New file.
23522         * modules/isinf-tests: New file.
23523         * modules/math: Add substitutions for new module.
23524         * tests/test-isinf.c: New file.
23525         * doc/posix-functions/isinf.texi: Mention new module.
23526         * MODULES.html.sh: Mention new module.
23527
23528 2008-07-14  Ben Pfaff  <blp@gnu.org>
23529
23530         Factor out some macros for use by additional modules.
23531         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23532         exponentf.m4.
23533         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23534         exponentd.m4.
23535         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23536         file exponentl.m4.
23537         * m4/exponentf.m4: New file.
23538         * m4/exponentd.m4: New file.
23539         * m4/exponentl.m4: New file.
23540         * modules/isnanf: Use new file m4/exponentf.m4.
23541         * modules/isnand: Use new file m4/exponentd.m4.
23542         * modules/isnanl: Use new file m4/exponentl.m4.
23543
23544 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23545
23546         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23547         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23548         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23549         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23550
23551         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23552         readlink on platforms without PATH_MAX.
23553
23554 2008-07-21  Eric Blake  <ebb9@byu.net>
23555
23556         Warn, not fail, on stale version.
23557         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23558
23559         Don't allow installation with stale devel version number.
23560         * top/GNUmakefile (_is-install-target): New macro.
23561         (_curr-ver): Forbid installation with stale version number.
23562
23563 2008-07-20  Bruno Haible  <bruno@clisp.org>
23564
23565         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23566         TESTS_ENVIRONMENT.
23567         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23568
23569 2008-07-20  Bruno Haible  <bruno@clisp.org>
23570
23571         * lib/c-stack.h (c_stack_action): Add documentation.
23572         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23573
23574 2008-07-20  Bruno Haible  <bruno@clisp.org>
23575
23576         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23577         * modules/readlink (License): Likewise.
23578
23579 2008-07-17  Eric Blake  <ebb9@byu.net>
23580
23581         * modules/c-stack (Link): Fix typo.
23582
23583         Make c-stack use libsigsegv, when available.
23584         * modules/c-stack (Depends-on): Add libsigsegv.
23585         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23586         needed.
23587         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23588         (segv_handler, overflow_handler, c_stack_action)
23589         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23590         implementation when libsigsegv is available, but only when using
23591         the library is necessary.
23592         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23593         comment, explaining why XSI check fails on Linux.
23594         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23595         * tests/test-c-stack2.sh: Tweak skip message.
23596         * NEWS: Document new link-time requirements.
23597
23598 2008-07-16  Eric Blake  <ebb9@byu.net>
23599
23600         c-stack: Expose false positives when not using libsigsegv.
23601         * modules/c-stack-tests (Files): Expand test.
23602         * tests/test-c-stack.c (main): Add means to conditionally trigger
23603         non-overflow SIGSEGV.
23604         * tests/test-c-stack2.sh: New file.
23605
23606 2008-07-14  Bruno Haible  <bruno@clisp.org>
23607
23608         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23609         Reported by Eric Blake.
23610
23611 2008-07-14  Sam Steingold  <sds@gnu.org>
23612             Bruno Haible  <bruno@clisp.org>
23613
23614         New module libsigsegv.
23615         * modules/libsigsegv: New file.
23616         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23617         modifications.
23618         * MODULES.html.sh (Signal handling): New section.
23619
23620 2008-07-14  Bruno Haible  <bruno@clisp.org>
23621
23622         * modules/unictype/ctype-* (Description): Add the word "function".
23623         Improves the resulting doc in MODULES.html.
23624
23625 2008-07-12  Ben Pfaff  <blp@gnu.org>
23626
23627         Add longlong module.
23628         * modules/longlong: New file.
23629
23630 2008-07-12  Bruno Haible  <bruno@clisp.org>
23631
23632         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23633         to empty.
23634
23635 2008-07-10  Ben Pfaff  <blp@gnu.org>
23636
23637         Add isnan module.
23638         * doc/posix-functions/isnan.texi: Mention new module.
23639         * lib/math.in.h: Define isnan macro if we have decided to replace
23640         it.
23641         * m4/isnan.m4: New file.
23642         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23643         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23644         also.
23645         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23646         redundancy.
23647         * m4/math_h.m4: Initialize and substitute variables for isnan
23648         module.
23649         * modules/isnan: New file.
23650         * modules/isnan-tests: New file.
23651         * modules/math: Add substitutions for new module.
23652         * tests/test-isnan.c: New file.
23653         * MODULES.html.sh: Mention new module.
23654
23655 2008-07-10  Ben Pfaff  <blp@gnu.org>
23656
23657         Add isnanf module.
23658         * lib/isnanf.m4: New file.
23659         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23660         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23661         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23662         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23663         * modules/isnanf: New file.
23664         * modules/isnanf-tests: New file.
23665         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23666         files.
23667         * tests/test-isnanf-nolibm.c: factored most of its contents into
23668         new file tests/test-isnanf.h.
23669         * tests/test-isnanf.h: New file.
23670         * tests/test-isnanf.c: New file.
23671         * MODULES.html.sh: Mention new module.
23672         * doc/glibc-functions/isnanf.texi: Mention new module.
23673
23674 2008-07-10  Ben Pfaff  <blp@gnu.org>
23675
23676         Add isnand module.
23677         * lib/isnand.h: New file.
23678         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23679         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23680         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23681         functionality also.
23682         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23683         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23684         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23685         * modules/isnand: New file.
23686         * modules/isnand-tests: New file.
23687         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23688         files.
23689         * tests/test-isnand-nolibm.c: factored most of its contents into
23690         new file tests/test-isnand.h.
23691         * tests/test-isnand.h: New file.
23692         * tests/test-isnand.c: New file.
23693         * MODULES.html.sh: Mention new module.
23694
23695 2008-07-10  Ben Pfaff  <blp@gnu.org>
23696
23697         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23698         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23699         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23700         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23701         * modules/isnanf-nolibm: Update references to renamed files.
23702         * modules/isnand-nolibm: Likewise.
23703         * modules/isnanf-nolibm-tests: Likewise.
23704         * modules/isnand-nolibm-tests: Likewise.
23705         * lib/frexp.c: Likewise.
23706         * lib/isfinite.c: Likewise.
23707         * lib/signbitd.c: Likewise.
23708         * lib/signbitf.c: Likewise.
23709         * lib/vasnprintf.c: Likewise.
23710         * tests/test-ceilf1.c: Likewise.
23711         * tests/test-ceilf2.c: Likewise.
23712         * tests/test-floorf1.c: Likewise.
23713         * tests/test-floorf2.c: Likewise.
23714         * tests/test-frexp.c: Likewise.
23715         * tests/test-round1.c: Likewise.
23716         * tests/test-round2.c: Likewise.
23717         * tests/test-roundf1.c: Likewise.
23718         * tests/test-strtod.c: Likewise.
23719         * tests/test-trunc1.c: Likewise.
23720         * tests/test-trunc2.c: Likewise.
23721         * tests/test-truncf1.c: Likewise.
23722         * tests/test-truncf2.c: Likewise.
23723         * NEWS: Mention the renamed header files.
23724
23725 2008-07-11  Jim Meyering  <meyering@redhat.com>
23726
23727         vc-list-files: make the last-resort awk code more portable
23728         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23729         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23730         does not support it.
23731
23732 2008-07-10  Eric Blake  <ebb9@byu.net>
23733
23734         Work with tar's bootstrap.
23735         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23736         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23737         an m4 comment.
23738
23739 2008-07-09  Jim Meyering  <meyering@redhat.com>
23740
23741         posix-shell.m4: fix typo that made this test malfunction
23742         * m4/posix-shell.m4: Remove capitalization in variable name.
23743
23744 2008-07-08  Bruno Haible  <bruno@clisp.org>
23745
23746         * m4/onceonly.m4: Update comments.
23747         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23748
23749 2008-07-04  Jim Meyering  <meyering@redhat.com>
23750
23751         * users.txt: Add vc-dwim.
23752         (bison, coreutils): Use the gitweb URL.
23753
23754 2008-07-03  Jim Meyering  <meyering@redhat.com>
23755
23756         * users.txt: Add libffcall.  From Sam Steingold.
23757
23758 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
23759
23760         getdate.y: do not ignore TZ with relative day, month or year offset
23761         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23762         relative-date-handling, since otherwise, the latter would clobber the
23763         sole output (an updated Start value) of the tz-handling block.
23764         * tests/test-getdate.c: Tests for the fix
23765
23766 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23767
23768         Recognize 'foo_LIBRARIES += libgnu.a'.
23769         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23770         makefile snippet has already specified an installation location,
23771         also using '+='.
23772
23773 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
23774
23775         getdate.y: factor out common actions
23776         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23777         Use them in place of open-coded actions.
23778
23779 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23780
23781         Add self-test for getdate module.
23782         * modules/getdate-tests: New file.
23783         * tests/test-getdate.c: New file.
23784
23785 2008-06-29  Bruno Haible  <bruno@clisp.org>
23786
23787         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23788         .gitignore.
23789         Reported by Sylvain Beucler <beuc@beuc.net>.
23790
23791 2008-06-29  Bruno Haible  <bruno@clisp.org>
23792
23793         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23794         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23795
23796 2008-06-29  Bruno Haible  <bruno@clisp.org>
23797
23798         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23799         EXTRA_DIST.
23800         Reported by Sylvain Beucler <beuc@beuc.net>.
23801
23802 2008-06-26  Jim Meyering  <meyering@redhat.com>
23803
23804         make several modules depend on the "open" module
23805         This provides slightly increased consistency when opening-for-write
23806         the name of a non-directory spelled with a trailing slash.
23807         * modules/chdir-safer: Likewise.
23808         * modules/chown: Likewise.
23809         * modules/clean-temp: Likewise.
23810         * modules/copy-file: Likewise.
23811         * modules/fchdir: Likewise.
23812         * modules/fcntl-safer: Likewise.
23813         * modules/pipe: Likewise.
23814         * modules/utime: Likewise.
23815         Prompted by Eric Blake and Bruno Haible.
23816
23817 2008-06-24  Andreas Schwab  <schwab@suse.de>
23818
23819         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23820         literals can be used as initializers for global variables.
23821
23822 2008-06-23  Eric Blake  <ebb9@byu.net>
23823
23824         Make gnulib-cache.m4 easier to diff.
23825         * gnulib-tool (func_import): Allow newlines when reading cached
23826         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23827
23828 2008-06-23  Bruno Haible  <bruno@clisp.org>
23829
23830         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23831         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23832         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23833         m4/signalblocking.m4.
23834         (gl_PREREQ_SIGACTION): Don't invoke it.
23835         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23836         gl_PREREQ_SIG_HANDLER_H.
23837         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23838         Don't check for sigaction here.
23839
23840 2008-06-23  Bruno Haible  <bruno@clisp.org>
23841
23842         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23843         (install_handlers): Don't set the SA_RESETHAND flag.
23844
23845 2008-06-23  Bruno Haible  <bruno@clisp.org>
23846
23847         * m4/sigaction.m4: Comment fixes.
23848         * lib/signal.in.h: Likewise.
23849
23850 2008-06-23  Eric Blake  <ebb9@byu.net>
23851
23852         Fix typo.
23853         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23854
23855         Avoid SA_ namespace.
23856         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23857         Reported by Ralf Wildenhues.
23858
23859         Avoid test failure due to SA_RESTORER.
23860         * tests/test-sigaction.c (SA_MASK): New macro.
23861         (main): Avoid failing due to extension flags being set.
23862         Reported by Jim Meyering.
23863
23864         Revert use of sig-handler.h in sigprocmask.c.
23865         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23866         it requires the existence of struct sigaction.
23867         * lib/sigprocmask.c (handler_t): Restore typedef.
23868         (rpl_signal, old_handlers): Use local type.
23869
23870 2008-06-22  Bruno Haible  <bruno@clisp.org>
23871
23872         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23873         conditionally.
23874         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23875
23876 2008-06-22  Bruno Haible  <bruno@clisp.org>
23877
23878         * doc/posix-functions/siginterrupt.texi: Move note.
23879
23880         * lib/signal.in.h (SA_RESTART): New macro.
23881         * lib/sigaction.c: Update comment.
23882
23883         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23884
23885         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23886         (gl_PREREQ_SIGPROCMASK): Invoke it.
23887         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23888
23889         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23890
23891         * lib/sigprocmask.c: Update a comment.
23892
23893 2008-06-21  Eric Blake  <ebb9@byu.net>
23894
23895         Use sigaction module rather than signal().
23896         * modules/c-stack (Depends-on): Add sigaction.
23897         * modules/fatal-signal (Depends-on): Likewise.
23898         * modules/nanosleep (Depends-on): Likewise.
23899         * modules/sigprocmask (Files): Add sig-handler.h.
23900         * modules/sigaction (Files): Likewise.
23901         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23902         Eggert.
23903         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23904         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23905         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23906         (init_fatal_signals): Likewise.
23907         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23908         (siginterrupt): Delete fallback.
23909         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23910         instead.
23911         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23912         siginterrupt.
23913
23914         New module sigaction, for mingw.
23915         * modules/sigaction: New module...
23916         * modules/sigaction-tests: ...and its test.
23917         * m4/sigaction.m4: New file.
23918         * lib/sigaction.c: Likewise.
23919         * tests/test-sigaction.c: Likewise.
23920         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23921         * modules/signal (Makefile.am): Likewise.
23922         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23923         needed.
23924         * doc/posix-headers/signal.texi (signal.h): Mention provided
23925         types.
23926         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23927         that sigaction is preferable.
23928         * doc/posix-functions/sigaction.texi (sigaction): Mention new
23929         module.
23930         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23931         sigaction.
23932
23933         Improve robustness of sigprocmask by overriding signal.
23934         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23935         is in use.
23936         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23937         (SIGKILL, SIGSTOP): Provide fallbacks.
23938         (rpl_signal): Implement.
23939         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23940         signal can be called inside handlers.
23941
23942         Fix nanosleep module on mingw.
23943         * modules/nanosleep (Depends-on): Add sys_select.
23944         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23945
23946         Fix licensing of sigprocmask.
23947         * modules/raise (License): Relicense as LGPL.
23948
23949 2008-06-21  Bruno Haible  <bruno@clisp.org>
23950
23951         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23952         result if it contains question marks.
23953         Reported by Michael Geng <linux@michaelgeng.de>.
23954
23955 2008-06-19  Bruno Haible  <bruno@clisp.org>
23956
23957         Fix CVS-ism.
23958         * doc/gnulib.texi: Include updated-stamp.texi.
23959         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23960         (updated-stamp.texi): New rule.
23961         (gnulib.info): Depend on it.
23962         * doc/.gitignore: Add updated-stamp.texi.
23963         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23964
23965 2008-06-19  Bruno Haible  <bruno@clisp.org>
23966
23967         * doc/Makefile (gnulib.info): Update and simplify dependencies.
23968         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23969
23970 2008-06-19  Eric Blake  <ebb9@byu.net>
23971
23972         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23973         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23974         Reported by Stepan Kasal.
23975
23976 2008-06-18  Bruno Haible  <bruno@clisp.org>
23977
23978         * lib/fatal-signal.c (init_fatal_signals): Add comment.
23979         Reported by Eric Blake.
23980
23981 2008-06-18  Eric Blake  <ebb9@byu.net>
23982
23983         Work around cygwin 1.5.25 strsignal bug.
23984         * tests/test-strsignal.c: Allow for const char *.
23985         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23986
23987 2008-06-18  Simon Josefsson  <simon@josefsson.org>
23988
23989         * users.txt: Update URL to article and add author/date
23990         information.
23991
23992 2008-06-17  Bruno Haible  <bruno@clisp.org>
23993
23994         New macro gl_DISABLE_THREADS.
23995         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23996         if the user did not pass --enable-threads or --disable-threads option.
23997         (gl_DISABLE_THREADS): New macro.
23998         Reported by Eric Blake <ebb9@byu.net>.
23999
24000 2008-06-17  Bruno Haible  <bruno@clisp.org>
24001
24002         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
24003         when the macro ignores it.
24004         Based on a patch by Eric Blake <ebb9@byu.net>.
24005
24006 2008-06-17  Bruno Haible  <bruno@clisp.org>
24007
24008         * modules/tls (License): Change to LGPLv2+.
24009         Reported by Eric Blake.
24010
24011 2008-06-17  Eric Blake  <ebb9@byu.net>
24012
24013         Simplify c-stack prerequisites.
24014         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24015         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24016         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24017         check.
24018         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24019         <sys/resource.h>.
24020
24021         Move c-stack test into testsuite.
24022         * modules/c-stack-tests: New file.
24023         * lib/c-stack.c [DEBUG]: Move test program...
24024         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24025         fail test if sigaltstack is lacking.
24026         * tests/test-c-stack.sh: New driver file.
24027
24028 2008-06-16  Eric Blake  <ebb9@byu.net>
24029
24030         Use raise module consistently.
24031         * modules/fatal-signal (Depends-on): Add raise.
24032         * modules/sigprocmask (Depends-on): Likewise.
24033         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24034         * lib/sigprocmask.c (sigprocmask): Likewise.
24035         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24036         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24037
24038         Fix compliance bug in sigpending.
24039         * lib/sigprocmask.c (sigpending): Return pending array via
24040         parameter, not return value.
24041
24042 2008-06-14  Eric Blake  <ebb9@byu.net>
24043
24044         Improve obstack-printf test code.
24045         * tests/test-obstack-printf.c (test_function): Fix comment, and
24046         simplify usage of obstack_* in macros.  Add a test for coverage.
24047         Reported by Bruno Haible.
24048
24049 2008-06-14  Bruno Haible  <bruno@clisp.org>
24050
24051         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24052         array size as a constant, not as a const variable.
24053         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24054         AC_USE_SYSTEM_EXTENSIONS.
24055         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24056         Test whether the obstack_printf function actually exists.
24057         * modules/obstack-printf (Depends-on): Add extensions.
24058         (Include): Remove obstack.h.
24059         * modules/obstack-printf-posix (Depends-on): Add extensions.
24060         (Include): Remove obstack.h.
24061
24062 2008-06-13  Eric Blake  <ebb9@byu.net>
24063
24064         Add obstack-printf and obstack-printf-posix modules.
24065         * modules/obstack-printf: New file.
24066         * modules/obstack-printf-posix: Likewise.
24067         * MODULES.html.sh (Misc): Mention them.
24068         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24069         Likewise.
24070         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24071         Likewise.
24072         * modules/stdio (Makefile.am): Accomodate new modules.
24073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24074         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24075         Declare.
24076         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24077         functions.
24078         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24079         (gl_REPLACE_OBSTACK_PRINTF): New macros
24080         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24081         * tests/test-obstack-printf.c: New file.
24082         * modules/obstack-printf-tests: Likewise.
24083         * modules/obstack-printf-posix-tests: Likewise.
24084
24085 2008-06-11  Bruno Haible  <bruno@clisp.org>
24086
24087         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24088         * lib/open.c: Include errno.h.
24089         (open): Fail when attempting to write to a file that has a trailing
24090         slash.
24091         * tests/test-open.c (main): Test against trailing slash bug.
24092         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24093
24094 2008-06-10  Bruno Haible  <bruno@clisp.org>
24095
24096         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24097         for $? to work inside the trap command, with various /bin/sh-s.
24098         * tests/test-vc-list-files-cvs.sh: Likewise.
24099
24100 2008-06-10  Bruno Haible  <bruno@clisp.org>
24101
24102         * lib/acl-internal.h: Don't include gettext.h here.
24103         * lib/set-mode-acl.c: Include gettext.h here.
24104         * lib/copy-acl.c: Likewise.
24105
24106 2008-06-10  Bruno Haible  <bruno@clisp.org>
24107
24108         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24109         * lib/wait-process.c (wait_subprocess): Likewise.
24110         * lib/execute.h (execute): Add termsigp argument.
24111         * lib/execute.c (execute): Likewise.
24112         * lib/csharpcomp.c (compile_csharp_using_pnet,
24113         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24114         * lib/csharpexec.c (execute_csharp_using_pnet,
24115         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24116         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24117         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24118         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24119         is_jikes_present): Update.
24120         * lib/javaexec.c (execute_java_class): Update.
24121         * lib/javaversion.c (execute_and_read_line): Update.
24122         * NEWS: Document the changes.
24123         Reported by Eric Blake.
24124
24125 2008-06-10  Eric Blake  <ebb9@byu.net>
24126
24127         Add missing include.
24128         * tests/test-strstr.c (includes): Add <signal.h>.
24129         * tests/test-strcasestr.c (includes): Likewise.
24130         * tests/test-memmem.c (includes): Likewise.
24131
24132 2008-06-10  Bruno Haible  <bruno@clisp.org>
24133
24134         * lib/wait-process.c (wait_subprocess): Add an assertion.
24135
24136 2008-06-10  Bruno Haible  <bruno@clisp.org>
24137
24138         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24139
24140 2008-06-10  Bruno Haible  <bruno@clisp.org>
24141
24142         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24143         using alarm().
24144         * tests/test-strcasestr.c (main): Likewise.
24145         * tests/test-strstr.c (main): Likewise.
24146
24147 2008-06-09  Bruno Haible  <bruno@clisp.org>
24148
24149         Work around the Solaris 10 ACE ACLs ABI change.
24150         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24151         declare if ACL_NO_TRIVIAL is present.
24152         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24153         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24154         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24155         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24156         define if ACL_NO_TRIVIAL is present.
24157         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24158         and use the current ABI.
24159         (file_has_acl): Use same #if condition as elsewhere.
24160         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24161         in use, and use the current ABI.
24162         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24163         Reported by Jim Meyering.
24164
24165 2008-06-09  Eric Blake  <ebb9@byu.net>
24166
24167         Work around environments that (stupidly) ignore SIGALRM.
24168         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24169         before using alarm().
24170         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24171         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24172         Reported by Ian Beckwith <ianb@erislabs.net>.
24173
24174         Produce autobuild blurb earlier in log.
24175         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24176
24177 2008-06-09  Jim Meyering  <meyering@redhat.com>
24178         and OndÅ™ej Vašík  <ovasik@redhat.com>
24179
24180         utimens.c: correct kernel bug work-around
24181         OndÅ™ej Vašík found that the invalid return value of 280 indicates
24182         failure, not success, and the kernel bug we're trying to work
24183         around affects not just the utimensat call, but also the fallback
24184         futimens call.
24185         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24186         not success.
24187         [HAVE_FUTIMENS]: Use the same work-around, here.
24188
24189 2008-06-09  Jim Meyering  <meyering@redhat.com>
24190
24191         add more guards around definition of ACE_-related code
24192         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24193         ALLOW and ACE_OWNER are also defined.
24194
24195 2008-06-08  Bruno Haible  <bruno@clisp.org>
24196
24197         * lib/acl-internal.h: Add me as co-author.
24198         * lib/file-has-acl.c: Likewise.
24199         * lib/set-mode-acl.c: Likewise.
24200         * lib/copy-acl.c: Likewise.
24201
24202 2008-06-08  Bruno Haible  <bruno@clisp.org>
24203
24204         Add support for AIX ACLs.
24205         * lib/acl-internal.h (acl_nontrivial): New declaration.
24206         * lib/file-has-acl.c (acl_nontrivial): New function.
24207         (file_has_acl): Add implementation using AIX 4 ACL API.
24208         * lib/set-mode-acl.c (qset_acl): Likewise.
24209         * lib/copy-acl.c (qcopy_acl): Likewise.
24210
24211 2008-06-08  Bruno Haible  <bruno@clisp.org>
24212
24213         Add support for HP-UX ACLs.
24214         * lib/acl-internal.h (acl_nontrivial): New declaration.
24215         * lib/file-has-acl.c (acl_nontrivial): New function.
24216         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24217         * lib/set-mode-acl.c (qset_acl): Likewise.
24218         * lib/copy-acl.c (qcopy_acl): Likewise.
24219
24220 2008-06-08  Bruno Haible  <bruno@clisp.org>
24221
24222         Add support for Cygwin ACLs.
24223         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24224         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24225         the chmod_or_fchmod call.
24226         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24227
24228 2008-06-08  Bruno Haible  <bruno@clisp.org>
24229
24230         Fix bug with setuid modes in Solaris 10+ code.
24231         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24232         succeeded, when the mode contains some special bits.
24233
24234 2008-06-08  Bruno Haible  <bruno@clisp.org>
24235
24236         Add support for Solaris 7..10 ACLs.
24237         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24238         declarations.
24239         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24240         functions.
24241         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24242         * lib/set-mode-acl.c (qset_acl): Likewise.
24243         * lib/copy-acl.c (qcopy_acl): Likewise.
24244
24245 2008-06-08  Bruno Haible  <bruno@clisp.org>
24246
24247         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24248         declaration.
24249         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24250         (acl_access_nontrivial): Remove MacOS X case.
24251         (file_has_acl): Use acl_extended_nontrivial.
24252         * lib/copy-acl.c (qcopy_acl): Likewise.
24253
24254 2008-06-08  Bruno Haible  <bruno@clisp.org>
24255
24256         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24257
24258 2008-06-08  Jim Meyering  <meyering@redhat.com>
24259
24260         * modules/acl (Maintainer): Add Bruno Haible.
24261
24262 2008-06-07  Bruno Haible  <bruno@clisp.org>
24263
24264         Improve support for Tru64 ACLs.
24265         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24266         ACL on OSF/1.
24267
24268 2008-06-07  Bruno Haible  <bruno@clisp.org>
24269
24270         Add support for MacOS X ACLs.
24271         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24272         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24273         * lib/set-mode-acl.c (qset_acl): Likewise.
24274         * lib/copy-acl.c (qcopy_acl): Likewise.
24275
24276 2008-06-07  Bruno Haible  <bruno@clisp.org>
24277
24278         Fix memory leak introduced on 2008-05-22.
24279         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24280         use.
24281
24282 2008-06-07  Bruno Haible  <bruno@clisp.org>
24283
24284         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24285         to construct an empty ACL.
24286
24287 2008-06-07  Bruno Haible  <bruno@clisp.org>
24288
24289         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24290         precisely.
24291         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24292
24293 2008-06-07  Bruno Haible  <bruno@clisp.org>
24294
24295         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24296         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24297
24298 2008-06-07  Bruno Haible  <bruno@clisp.org>
24299
24300         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24301         regardless of POSIX.
24302         * doc/posix-functions/_longjmp.texi: Likewise.
24303         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24304         SystemV platform in this case.
24305
24306 2008-06-06  Eric Blake  <ebb9@byu.net>
24307
24308         Document abort() bugs.
24309         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24310
24311         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24312         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24313         sigsetjmp.
24314         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24315         siglongjmp, but only as a macro.
24316         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24317         is obsolete.
24318         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24319
24320         Tweak documentation to cover cygwin argz bugs.
24321         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24322         argz bug fix; no code change needed since no cygwin releases
24323         occurred between the last fix and the bug being tested.
24324         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24325         module and recently fixed cygwin bugs.
24326         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24327         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24328         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24329         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24330         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24331         Likewise.
24332         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24333         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24334         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24335         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24336         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24337         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24338         Likewise.
24339
24340         Avoid gcc warning on cygwin.
24341         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24342         !ACL_NO_TRIVIAL]: Avoid unused variable.
24343
24344 2008-06-05  Eric Blake  <ebb9@byu.net>
24345
24346         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24347         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24348         git-version-gen fails to come up with a version.
24349         Reported by Simon Josefsson.
24350
24351 2008-06-05  Jim Meyering  <meyering@redhat.com>
24352             Paul Eggert  <eggert@cs.ucla.edu>
24353
24354         utimens.c: work around a probable Linux kernel bug
24355         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24356         appears to be a kernel bug that causes utimensat to return 280
24357         instead of 0, indicating success.
24358
24359 2008-06-04  Bruno Haible  <bruno@clisp.org>
24360
24361         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24362         2008-06-01 commit.
24363
24364 2008-06-04  Bruno Haible  <bruno@clisp.org>
24365
24366         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24367         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24368         (file_has_acl): Use it. Save errno afterwards.
24369         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24370
24371 2008-06-03  Bruno Haible  <bruno@clisp.org>
24372
24373         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24374         draft code. Simplify #ifs.
24375         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24376         Put Solaris code after POSIX-draft code. Fix comments regarding
24377         Solaris 10, HP-UX. Mention Cygwin.
24378         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24379
24380 2008-06-03  Eric Blake  <ebb9@byu.net>
24381
24382         Provide fallback for older kernels.
24383         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24384         Provide runtime fallback if kernel lacks support.
24385         Reported by Mike Frysinger.
24386
24387 2008-06-02  Bruno Haible  <bruno@clisp.org>
24388
24389         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24390         it exists.
24391
24392 2008-06-02  Bruno Haible  <bruno@clisp.org>
24393
24394         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24395         * lib/copy-acl.c (qcopy_acl): Update comment.
24396
24397 2008-06-02  Bruno Haible  <bruno@clisp.org>
24398
24399         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24400         like ACL APIs.
24401
24402 2008-06-02  Bruno Haible  <bruno@clisp.org>
24403
24404         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24405         * tests/test-set-mode-acl.sh: Likewise.
24406         * tests/test-copy-acl.sh: Likewise.
24407         * tests/test-copy-file.sh: Likewise.
24408
24409 2008-06-02  Bruno Haible  <bruno@clisp.org>
24410
24411         * tests/test-file-has-acl.sh: Remove unused code.
24412
24413 2008-06-01  Bruno Haible  <bruno@clisp.org>
24414
24415         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24416         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24417         messages.
24418         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24419
24420 2008-06-01  Bruno Haible  <bruno@clisp.org>
24421
24422         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24423         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24424         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24425         APIs.
24426         * modules/acl-tests (configure.ac): Remove tests now contained in
24427         m4/acl.m4.
24428
24429 2008-06-02  Jim Meyering  <meyering@redhat.com>
24430
24431         announce-gen: use a better key-server host name
24432         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24433         it may be more consistently reliable.  Suggested by Werner Koch
24434         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24435
24436 2008-06-01  Bruno Haible  <bruno@clisp.org>
24437
24438         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24439         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24440
24441 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24442
24443         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24444
24445 2008-06-01  Bruno Haible  <bruno@clisp.org>
24446
24447         New ACL tests.
24448         * tests/test-file-has-acl.sh: New file.
24449         * tests/test-file-has-acl.c: New file.
24450         * tests/test-set-mode-acl.sh: New file.
24451         * tests/test-set-mode-acl.c: New file.
24452         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24453         * tests/test-copy-acl.c: New file.
24454         * modules/acl-tests: New file, based on modules/copy-file-tests.
24455         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24456         (Depends-on): Add acl-tests.
24457         (configure.ac): Remove checks.
24458         (Makefile.am): Don't create test-sameacls program here any more.
24459
24460 2008-06-01  Bruno Haible  <bruno@clisp.org>
24461
24462         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24463         * tests/test-sameacls.c: Include progname.h.
24464         (main): Invoke set_program_name. Portability fixes for MacOS X,
24465         Solaris, HP-UX.
24466
24467 2008-06-01  Bruno Haible  <bruno@clisp.org>
24468
24469         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24470         function.
24471         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24472
24473 2008-06-01  Bruno Haible  <bruno@clisp.org>
24474
24475         * modules/rpmatch (Depends-on): Add strdup.
24476
24477 2008-06-01  Bruno Haible  <bruno@clisp.org>
24478
24479         * lib/pipe.c: Include unistd-safer.h.
24480         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24481         * modules/pipe (Depends-on): Add unistd-safer.
24482
24483 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24484
24485         * modules/autobuild (configure.ac): Call AB_INIT.
24486
24487 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24488
24489         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24490         Suggested by Bruno Haible <bruno@clisp.org>.
24491
24492 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24493
24494         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24495         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24496         <bruno@clisp.org>.
24497
24498 2008-05-29  Eric Blake  <ebb9@byu.net>
24499
24500         Prefer new POSIX 200x interfaces over futimesat.
24501         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24502         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24503         when available.
24504         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24505
24506 2008-05-28  Bruno Haible  <bruno@clisp.org>
24507
24508         * modules/stpcpy (License): Change to LGPLv2+.
24509         Requested by David Lutterkort <dlutter@redhat.com>.
24510
24511 2008-05-27  Bruno Haible  <bruno@clisp.org>
24512
24513         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24514         current mingw.
24515         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24516
24517 2008-05-27  Bruno Haible  <bruno@clisp.org>
24518
24519         * modules/iconv_open (Link): New section, from module 'iconv'.
24520         * modules/striconv (Link): Likewise.
24521         * modules/striconveh (Link): Likewise.
24522         * modules/xstriconv (Link): Likewise.
24523         * modules/unicodeio (Link): Likewise.
24524         * modules/propername (Link): Likewise.
24525         Reported by Jim Meyering.
24526
24527 2008-05-26  Jim Meyering  <meyering@redhat.com>
24528
24529         sha256: do not artificially restrict buffer length to be < 2^32
24530         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24531         uint32_t to size_t.
24532         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24533         to match.
24534
24535         avoid unaligned access errors, e.g., on sparc
24536         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24537         direct access through a possibly-unaligned uint64* pointer.
24538         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24539         direct access through a possibly-unaligned uint32* pointer.
24540         Prompted by this patch from Tom "spot" Callaway:
24541         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24542
24543         sha512.c: fix typo in comment
24544         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24545
24546 2008-05-25  Bruno Haible  <bruno@clisp.org>
24547
24548         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24549         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24550         (Makefile.am): Update lib_SOURCES.
24551
24552 2008-05-25  Bruno Haible  <bruno@clisp.org>
24553
24554         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24555
24556 2008-05-25  Jim Meyering  <meyering@redhat.com>
24557
24558         useless-if-before-free: freed expr may have white-space differences
24559         * build-aux/useless-if-before-free: Recognize cases in which the
24560         freed expression differs from the tested one in embedded white
24561         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24562         $1 was used, so we can't make any regexp shy.  Improved tests now
24563         detect this.
24564
24565         useless-if-before-free: accept white space in the expression.
24566         * build-aux/useless-if-before-free: For now, any white space
24567         in the expression must be identical in the free argument.
24568
24569         useless-if-before-free: efficiency tweak
24570         * build-aux/useless-if-before-free: Make the expression-matching
24571         regexp "shy".
24572         Make the *outer* regexp shy, not the expr-matching one.
24573
24574         update code-in-comment to accept cast of free arg
24575         * build-aux/useless-if-before-free: Update regexp.
24576
24577 2008-05-25  Bruno Haible  <bruno@clisp.org>
24578
24579         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24580         * modules/copy-file-tests (Files, Makefile.am): Update.
24581         * tests/test-copy-file.c (func_test_copy): Update.
24582
24583 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24584
24585         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24586
24587 2008-05-23  Bruno Haible  <bruno@clisp.org>
24588
24589         Improve support for ACLs on OSF/1.
24590         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24591         Remove fallback for unknown flavors of ACLs.
24592
24593 2008-05-22  Bruno Haible  <bruno@clisp.org>
24594
24595         Add support for ACLs on OSF/1.
24596         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24597         replacements.
24598         (acl_free_text): New macro fallback.
24599         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24600         acl_free.
24601         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24602         acl_free_text function. Require AC_C_INLINE.
24603
24604 2008-05-22  Bruno Haible  <bruno@clisp.org>
24605
24606         Make copy_acl work on MacOS X 10.5.
24607         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24608         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24609         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24610         If MODE_INSIDE_ACL, don't assume that every system has the same text
24611         representation for ACLs as FreeBSD.
24612         * lib/copy-acl.c (copy_acl): Add support for platforms with
24613         !MODE_INSIDE_ACL.
24614         * lib/file-has-acl.c (file_has_acl): Likewise.
24615         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24616         FreeBSD, MacOS X, or IRIX, respectively.
24617
24618 2008-05-22  Bruno Haible  <bruno@clisp.org>
24619
24620         * lib/acl.h: Don't include <sys/acl.h>.
24621         (GETACLCNT): Move fallback to lib/acl-internal.h.
24622         * lib/acl-internal.h: Include <sys/acl.h> here.
24623         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24624
24625 2008-05-22  Bruno Haible  <bruno@clisp.org>
24626
24627         Split off copy_acl function to separate file.
24628         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24629         * lib/acl.c (copy_acl): Moved function to separate file.
24630         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24631         * modules/acl (Files): Add lib/copy-acl.c.
24632         (Makefiles.am): Augment lib_SOURCES.
24633
24634 2008-05-22  Bruno Haible  <bruno@clisp.org>
24635
24636         * modules/copy-file-tests: New file.
24637         * tests/test-copy-file.sh: New file.
24638         * tests/test-copy-file.c: New file.
24639         * tests/test-copy-file-sameacls.c: New file.
24640
24641 2008-05-22  Eric Blake  <ebb9@byu.net>
24642
24643         Avoid gcc warning.
24644         * tests/test-memcmp.c (main): Pass NULL indirectly.
24645
24646 2008-05-21  Bruno Haible  <bruno@clisp.org>
24647
24648         Add reference doc about ACLs.
24649         * doc/acl-resources.txt: New file.
24650         * doc/acl-cygwin.txt: New file.
24651
24652 2008-05-21  Bruno Haible  <bruno@clisp.org>
24653
24654         Avoid one more warning from gcc.
24655         * lib/vasnprintf.c (IF_LINT): Update comments.
24656         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24657
24658 2008-05-21  Jim Meyering  <meyering@redhat.com>
24659
24660         avoid a warning from gcc
24661         * lib/vasnprintf.c (IF_LINT): Define.
24662         (scale10_round_decimal_long_double):
24663         Use it to avoid a "may be used uninitialized" warning.
24664         (scale10_round_decimal_double): Likewise.
24665
24666 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24667
24668         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24669         declared.
24670
24671 2008-05-20  Bruno Haible  <bruno@clisp.org>
24672
24673         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24674         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24675
24676 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24677
24678         * modules/memcmp-tests: New file.
24679         * tests/test-memcmp.c: New file.
24680
24681 2008-05-19  Bruno Haible  <bruno@clisp.org>
24682
24683         * modules/propername (Notice, configure.ac): Put quoted "..." into
24684         --keyword option.
24685         * lib/propername.h: Update comments accordingly.
24686         Reported by Eric Blake.
24687
24688 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24689
24690         * modules/getpass-gnu (Depends-on): Add fseeko.
24691
24692 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24693
24694         * modules/base64-tests: New file.
24695
24696 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24697
24698         * lib/base64.c (base64_decode_ctx): If a decode context structure
24699         was passed in use it to ignore newlines.  If a context structure
24700         was _not_ passed in, continue to treat newlines as garbage (this
24701         is the historical behavior).  Formerly base64_decode.
24702         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24703         takes a decode context structure.
24704         * lib/base64.h (base64_decode): Macro for four-argument calls.
24705         (base64_decode_alloc): Likewise.
24706         * lib/base64.c (base64_decode_ctx): If a decode context structure
24707         was passed in use it to ignore newlines.  If a context structure
24708         was _not_ passed in, continue to treat newlines as garbage (this
24709         is the historical behavior).  Formerly base64_decode.
24710         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24711         takes a decode context structure.
24712         * lib/base64.h (base64_decode): Macro for four-argument calls.
24713         (base64_decode_alloc): Likewise.
24714
24715 2008-05-19  Jim Meyering  <meyering@redhat.com>
24716
24717         avoid a warning from gcc
24718         * lib/trim.c (IF_LINT): Define.
24719         (trim2): Use it to avoid a "may be used uninitialized" warning.
24720
24721         Fix doc typo.
24722         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24723
24724 2008-05-19  Bruno Haible  <bruno@clisp.org>
24725
24726         * doc/glibc-functions/getpass.texi: Document limits of other
24727         implementations.
24728
24729 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24730             Bruno Haible <bruno@clisp.org>
24731
24732         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24733
24734 2008-05-18  Bruno Haible  <bruno@clisp.org>
24735
24736         * modules/propername: New file, from GNU gettext.
24737         * lib/propername.h: New file, from GNU gettext.
24738         * lib/propername.c: New file, from GNU gettext.
24739         * MODULES.html.sh (Internationalization functions): Add propername.
24740
24741 2008-05-16  Jim Meyering  <meyering@redhat.com>
24742             Bruno Haible  <bruno@clisp.org>
24743
24744         Avoid some warnings from "gcc -Wshadow".
24745         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24746
24747 2008-05-15  Eric Blake  <ebb9@byu.net>
24748
24749         Extend previous patch to cygwin 1.7.0.
24750         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24751         fast implementation in cygwin >= 1.7.0.
24752         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24753         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24754
24755 2008-05-15  Bruno Haible  <bruno@clisp.org>
24756
24757         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24758         implementation in glibc >= 2.9.
24759         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24761
24762 2008-05-15  Bruno Haible  <bruno@clisp.org>
24763
24764         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24765         (Unicode string functions): Add unilbrk/*.
24766         Reported by Karl Berry.
24767
24768 2008-05-15  Eric Blake  <ebb9@byu.net>
24769
24770         Fix violation of <stdbool.h> replacement in regex.
24771         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24772         * lib/regexec.c (re_search_internal): Likewise.
24773         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24774
24775 2008-05-15  Jim Meyering  <meyering@redhat.com>
24776
24777         avoid distracting test output when git or cvs is not found
24778         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24779         * tests/test-vc-list-files-git.sh: Likewise.
24780
24781 2008-05-15  Eric Blake  <ebb9@byu.net>
24782
24783         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24784         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24785         glibc version.
24786         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24787         * doc/posix-functions/strstr.texi (strstr): Likewise.
24788         * lib/str-two-way.h (MAX): Sychronize with glibc.
24789
24790 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24791
24792         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24793         opr.ctx_type.
24794         (calc_first): Initialize constraint field.
24795         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24796         Fix grammar.
24797         (duplicate_node): Merge constraint field for all node types.
24798         (calc_eclosure_iter): Look at constraint field for all node types.
24799         * lib/regex_internal.c (create_cd_newstate): Don't look at
24800         opr.ctx_type.
24801
24802 2008-05-14  Bruno Haible  <bruno@clisp.org>
24803
24804         Help GCC to do better code generation.
24805         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24806         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24807         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24808         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24809         Declare with attribute 'malloc' if supported.
24810
24811 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24812
24813         use "echo STR|wc -c" rather than unportable "expr length STR"
24814         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24815         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24816
24817 2008-05-14  Jim Meyering  <meyering@redhat.com>
24818
24819         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24820         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24821         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24822         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24823         via Collin Lasse.
24824
24825 2008-05-14  Eric Blake  <ebb9@byu.net>
24826
24827         Avoid quadratic growth in gl_LIBSOURCES.
24828         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24829         Suggested by Bruno Haible.
24830
24831         Test xmemdup0.
24832         * modules/xmemdup0-tests: New file.
24833         * tests/test-xmemdup0.c: Likewise.
24834
24835 2008-05-13  Eric Blake  <ebb9@byu.net>
24836
24837         Split xmemdup0 into its own module.
24838         * modules/xmemdup0: New file.
24839         * lib/xmemdup0.h: Likewise.
24840         * lib/xmemdup0.c: Likewise.
24841         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24842         * lib/xalloc.h (xmemdup0): Remove.
24843         * lib/xmalloc.c (xmemdup0): Likewise.
24844
24845 2008-05-13  Eric Blake  <ebb9@byu.net>
24846             Bruno Haible  <bruno@clisp.org>
24847
24848         Reduce number of forks required during autoconf.
24849         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24850         and gl_LIBSOURCES_DIR.
24851         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24852         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24853         m4_syscmd per file.
24854         <m4_foreach_w>: Move...
24855         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24856
24857 2008-05-13  Eric Blake  <ebb9@byu.net>
24858
24859         * gnulib-tool: Fix various comment typos.
24860
24861 2008-05-12  Bruno Haible  <bruno@clisp.org>
24862
24863         Tailor the linebreaking algorithm.
24864         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24865
24866 2008-05-12  Bruno Haible  <bruno@clisp.org>
24867
24868         Update to Unicode 5.0.0.
24869         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24870         LBP_JV, LBP_JT. Redistribute values.
24871         (unilbrk_table): Change size.
24872         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24873         Unicode TR#14 rev. 22.
24874         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24875         LBP_JV, LBP_JT. Redistribute values.
24876         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24877         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24878         Update.
24879         * lib/unilbrk/lbrkprop1.h: Regenerated.
24880         * lib/unilbrk/lbrkprop2.h: Regenerated.
24881         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24882         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24883         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24884         Likewise.
24885         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24886         Likewise.
24887         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24888         result.
24889         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24890         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24891         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24892         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24893         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24894         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24895
24896 2008-05-11  Bruno Haible  <bruno@clisp.org>
24897
24898         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24899
24900 2008-05-11  Bruno Haible  <bruno@clisp.org>
24901
24902         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24903         * modules/unilbrk/gen-lbrk: New file.
24904
24905 2008-05-11  Bruno Haible  <bruno@clisp.org>
24906
24907         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24908         * m4/sha512.m4 (gl_SHA512): Likewise.
24909
24910 2008-05-11  Jim Meyering  <meyering@redhat.com>
24911
24912         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24913         * modules/crypto/sha256: New file.
24914         * modules/crypto/sha512: Likewise.
24915         * lib/sha256.c: Likewise.
24916         * lib/sha256.h: Likewise.
24917         * lib/sha512.c: Likewise.
24918         * lib/sha512.h: Likewise.
24919         * lib/u64.h: Likewise.
24920         * m4/sha256.m4: Likewise.
24921         * m4/sha512.m4: Likewise.
24922         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24923
24924 2008-05-10  Bruno Haible  <bruno@clisp.org>
24925
24926         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24927         (Input/Output <stdio.h>): Add xprintf.
24928         (Signal handling <signal.h>): Add strsignal.
24929         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24930         (Core language properties): Add func.
24931         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24932         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24933         strings.
24934         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24935         (Input/output): New section.
24936         (File system functions): Add openat-die, stat-macros.
24937         (Networking functions): Add sockets.
24938         (Unicode string functions): Add unictype/*.
24939         (Support for building libraries and executables): Add gperf.
24940         (Support for building documentation): Add agpl-3.0.
24941         (Misc): Add nocrash.
24942
24943 2008-05-10  Bruno Haible  <bruno@clisp.org>
24944
24945         * modules/unictype/gen-ctype: New file.
24946
24947 2008-05-10  Jim Meyering  <meyering@redhat.com>
24948
24949         Make chdir-safer.c more efficient on a system with no symlinks.
24950         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24951         also if ELOOP is zero.  Suggested by Bruno Haible.
24952
24953         Make chdir-safer.c slightly safer.
24954         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24955         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24956
24957         Avoid compile failure on systems without ELOOP (like mingw).
24958         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24959         Reported by Bruno Haible.
24960
24961 2008-05-10  Bruno Haible  <bruno@clisp.org>
24962
24963         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24964         (is_utf8_encoding): Use a case-insensitive comparison.
24965         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24966         streq.
24967
24968 2008-05-10  Bruno Haible  <bruno@clisp.org>
24969
24970         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24971         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24972         * lib/unilbrk/ulc-common.h (iconv_string_length,
24973         iconv_string_keeping_offsets): Remove declarations.
24974         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24975         Don't include <iconv.h>, streq.h, xsize.h.
24976         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24977         conversion.
24978         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24979         <iconv.h>, streq.h, xsize.h.
24980         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24981         conversion.
24982         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24983         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24984         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24985         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24986
24987 2008-05-10  Bruno Haible  <bruno@clisp.org>
24988
24989         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24990         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24991
24992         * modules/unilbrk/u32-width-linebreaks-tests: New file.
24993         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24994
24995         * modules/unilbrk/u16-width-linebreaks-tests: New file.
24996         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24997
24998         * modules/unilbrk/u8-width-linebreaks-tests: New file.
24999         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
25000
25001         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
25002         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
25003
25004         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
25005         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
25006
25007         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
25008         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
25009
25010         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25011         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25012
25013 2008-05-10  Bruno Haible  <bruno@clisp.org>
25014
25015         Split up 'linebreak' module.
25016         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25017         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25018         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25019         modifications.
25020         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25021         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25022         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25023         lib/linebreak.c.
25024         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25025         lib/linebreak.c.
25026         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25027         lib/linebreak.c.
25028         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25029         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25030         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25031         lib/linebreak.c.
25032         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25033         lib/linebreak.c.
25034         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25035         lib/linebreak.c.
25036         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25037         lib/linebreak.c.
25038         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25039         lib/linebreak.c.
25040         * modules/unilbrk/base: New file.
25041         * modules/unilbrk/tables: New file.
25042         * modules/unilbrk/u8-possible-linebreaks: New file.
25043         * modules/unilbrk/u16-possible-linebreaks: New file.
25044         * modules/unilbrk/u32-possible-linebreaks: New file.
25045         * modules/unilbrk/ulc-common: New file.
25046         * modules/unilbrk/ulc-possible-linebreaks: New file.
25047         * modules/unilbrk/u8-width-linebreaks: New file.
25048         * modules/unilbrk/u16-width-linebreaks: New file.
25049         * modules/unilbrk/u32-width-linebreaks: New file.
25050         * modules/unilbrk/ulc-width-linebreaks: New file.
25051         * lib/linebreak.h: Remove file.
25052         * lib/linebreak.c: Remove file.
25053         * m4/linebreak.m4: Remove file.
25054         * modules/linebreak: Remove file.
25055         * NEWS: Mention the changes.
25056
25057 2008-05-09  Eric Blake  <ebb9@byu.net>
25058
25059         Add xmemdup0.
25060         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25061         implementation.
25062         * lib/xmalloc.c (xmemdup0): New C implementation.
25063
25064 2008-05-08  Bruno Haible  <bruno@clisp.org>
25065
25066         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25067
25068 2008-05-07  Eric Blake  <ebb9@byu.net>
25069
25070         Support cross-compilation of <wctype.h>.
25071         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25072         AC_CACHE_CHECK.
25073
25074 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25075
25076         * build-aux/vc-list-files: Add support for bzr.
25077
25078 2008-05-03  Jim Meyering  <meyering@redhat.com>
25079
25080         avoid failed assertion with tight malloc
25081         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25082
25083 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25084
25085         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25086         are needed from arpa/inet.h.
25087         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25088         Reported by Bruno Haible.
25089
25090 2008-05-02  Jim Meyering  <meyering@redhat.com>
25091
25092         avoid compilation error on FreeBSD 6
25093         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25094
25095 2008-05-01  Jim Meyering  <meyering@redhat.com>
25096
25097         useless-if-before-free: correct --help's exit status description
25098         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25099         for one or more matches, etc.  Reported by Bruno Haible.
25100
25101         vc-list-files: make the stand-alone gnulib test work
25102         * modules/vc-list-files-tests (configure.ac):
25103         Define and AC_SUBST abs_aux_dir.
25104         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25105         $(abs_top_srcdir) to each script and having each of them
25106         duplicate the work of setting PATH, set PATH here, using
25107         the new variable, abs_aux_dir instead.
25108         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25109         * tests/test-vc-list-files-git.sh: Likewise.
25110         Reported by Bruno Haible.
25111
25112 2008-05-01  Bruno Haible  <bruno@clisp.org>
25113
25114         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25115         reallocation. Rename 'done' to 'found_delimiter'.
25116
25117 2008-05-01  Jim Meyering  <meyering@redhat.com>
25118
25119         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25120         * build-aux/vc-list-files: Use `...`, not $(...).
25121
25122 2008-04-30  Jim Meyering  <meyering@redhat.com>
25123
25124         add tests for vc-list-files
25125         * modules/vc-list-files-tests: New module.
25126         * tests/test-vc-list-files-cvs.sh: New file.
25127         * tests/test-vc-list-files-git.sh: New file.
25128
25129         avoid a warning from gcc
25130         * lib/getndelim2.c (IF_LINT): Define.
25131         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25132
25133         vc-list-files: work properly with build-aux/cvsu, too
25134         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25135         to all cvs-based clauses.
25136
25137         vc-list-files: work properly in the CVS+awk case, too
25138         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25139
25140         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25141         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25142         take more than one file argument, so .  Add quotes, just in case $dir
25143         ever contains a shell meta-character.  Prompted by Soren Hansen in
25144         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25145
25146 2008-04-29  Eric Blake  <ebb9@byu.net>
25147
25148         Optimize getndelim2 to use block operations when possible.
25149         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25150         freadseek, and memchr2.
25151         * lib/getndelim2.c (getndelim2): Use them for block reads.
25152
25153 2008-04-29  Bruno Haible  <bruno@clisp.org>
25154
25155         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25156         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25157         * modules/inet_ntop (Depends-on): Add extensions.
25158         * modules/inet_pton (Depends-on): Likewise.
25159         Reported by Simon Josefsson.
25160
25161 2008-04-29  Jim Meyering  <meyering@redhat.com>
25162
25163         When the is more than one match in a block, match all of them.
25164         * build-aux/useless-if-before-free: Iterate through each block
25165         until there are no more matches.
25166
25167         Fix broken useless-if-before-free script.
25168         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25169         the expression to match cast of argument to free-like function.
25170
25171 2008-04-29  Eric Blake  <ebb9@byu.net>
25172
25173         Use new header.
25174         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25175
25176 2008-04-29  Jim Meyering  <meyering@redhat.com>
25177
25178         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25179         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25180         by gnulib to exist and to declare e.g., inet_ntop.
25181         Don't include "inet_ntop.h", now removed.
25182
25183         * m4/arpa_inet_h.m4: Remove trailing blanks.
25184
25185 2008-04-29  Eric Blake  <ebb9@byu.net>
25186
25187         Silence valgrind on safe reads beyond potential array bounds.
25188         * lib/rawmemchr.valgrind: New file.
25189         * lib/strchrnul.valgrind: Likewise.
25190         * modules/rawmemchr (Files): Distribute new file.
25191         * modules/strchrnul (Files): Likewise.
25192         Suggested by Bruno Haible.
25193
25194 2008-04-29  Bruno Haible  <bruno@clisp.org>
25195
25196         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25197         (inet_ntop, inet_pton): Change portability warning's wording.
25198         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25199         Invoke gl_CHECK_NEXT_HEADERS.
25200         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25201         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25202         set ARPA_INET_H.
25203         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25204         * modules/arpa_inet (Description): No longer only for systems that
25205         lack it.
25206         (Depends-on): Add include_next.
25207         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25208         HAVE_ARPA_INET_H.
25209
25210 2008-04-29  Jim Meyering  <meyering@redhat.com>
25211
25212         * modules/mkdir (License): Re-license as LGPLv2+.
25213
25214 2008-04-29  Bruno Haible  <bruno@clisp.org>
25215
25216         * modules/rawmemchr (Maintainer): Set to Eric.
25217         * modules/strchrnul (Maintainer): Likewise.
25218
25219 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25220
25221         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25222         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25223
25224         * modules/arpa_inet (arpa/inet.h): Use them.
25225
25226 2008-04-28  Eric Blake  <ebb9@byu.net>
25227
25228         Test getndelim2.
25229         * modules/getndelim2-tests: New file.
25230         * tests/test-getndelim2.c: Likewise.
25231         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25232         stream.
25233         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25234
25235         * MODULES.html.sh: Document new module.
25236
25237 2008-04-20  Bruno Haible  <bruno@clisp.org>
25238
25239         * lib/c-stack.c (die): Use raise.
25240         * modules/c-stack (Depends-on): Add raise.
25241
25242 2008-04-28  Bruno Haible  <bruno@clisp.org>
25243
25244         Expect rpmatch to be declared.
25245         * lib/yesno.c (rpmatch): Remove declaration.
25246
25247         Declare rpmatch.
25248         * lib/stdlib.in.h (rpmatch): New declaration.
25249         * lib/rpmatch.c: Include <stdlib.h> first.
25250         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25251         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25253         HAVE_RPMATCH.
25254         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25255         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25256         (Include): Set to <stdlib.h>.
25257         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25258         HAVE_RPMATCH.
25259         * NEWS: Document the change.
25260
25261 2008-04-28  Bruno Haible  <bruno@clisp.org>
25262
25263         Change rpmatch to use nl_langinfo when appropriate.
25264         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25265         (N_): New macro.
25266         (localized_pattern): New function/macro.
25267         (try): Remove match, nomatch arguments. Copy the pattern into safe
25268         memory before caching it.
25269         (rpmatch): Use localized_pattern. Add translator comments.
25270         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25271         Suggested by Eric Blake.
25272         * modules/rpmatch (Depends-on): Add stdbool.
25273
25274 2008-04-28  Eric Blake  <ebb9@byu.net>
25275
25276         Add rawmemchr module, matching glibc.
25277         * modules/string (Makefile.am): New indicator.
25278         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25279         * lib/string.in.h (rawmemchr): Declare when appropriate.
25280         * modules/rawmemchr: New file.
25281         * m4/rawmemchr.m4: Likewise.
25282         * lib/rawmemchr.c: Likewise.
25283         * modules/rawmemchr-tests: Likewise.
25284         * tests/test-rawmemchr.c: Likewise.
25285         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25286         module.
25287         * modules/strchrnul (Depends-on): Add rawmemchr.
25288         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25289
25290         Whitespace cleanup.
25291         * tests/test-strchrnul.c: Reindent.
25292         * lib/strchrnul.c: Likewise.
25293
25294         Optimize and test strchrnul.
25295         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25296         * modules/strchrnul-tests: New file.
25297         * tests/test-strchrnul.c: Likewise.
25298
25299         Remove intprops dependency.
25300         * modules/memchr (Depends-on): Remove intprops.
25301         * modules/memrchr (Depends-on): Likewise.
25302         * modules/memchr2 (Depends-on): Likewise.
25303         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25304         * lib/memrchr.c (__memrchr): Likewise.
25305         * lib/memrchr2.c (memchr2): Likewise.
25306         Reported by Simon Josefsson.
25307
25308 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25309
25310         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25311         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25312
25313 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25314
25315         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25316
25317         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25318
25319         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25320
25321         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25322         declarations.
25323         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25324
25325         * m4/inet_pton.m4: Don't check for header files.
25326
25327         * m4/inet_ntop.m4: Don't check for header files.
25328
25329 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25330
25331         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25332         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25333         trigger for cygwin).
25334         Reported by Bruno Haible  <bruno@clisp.org>.
25335
25336 2008-04-28  Bruno Haible  <bruno@clisp.org>
25337
25338         * doc/posix-functions/strdup.texi: Mention mingw problem.
25339
25340 2008-04-27  Bruno Haible  <bruno@clisp.org>
25341
25342         * modules/stat-time-tests (Depends-on): Add sleep.
25343         * tests/test-stat-time.c (force_unlink): New function.
25344         (cleanup): Use it.
25345         (test_mtime): Remove the ctime related tests.
25346         (test_ctime): New function, containing the ctime related tests.
25347         (main): Call test_ctime, except on native Windows platforms.
25348
25349 2008-04-27  Bruno Haible  <bruno@clisp.org>
25350
25351         * lib/rpmatch.c (rpmatch): Add some comments.
25352         Reported by James Youngman <jay@gnu.org>.
25353
25354 2008-04-27  Bruno Haible  <bruno@clisp.org>
25355
25356         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25357         quiet NaNs.
25358
25359 2008-04-27  Bruno Haible  <bruno@clisp.org>
25360
25361         Make test-yesno.sh work on mingw.
25362         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25363         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25364         (main): Set stdin to binary mode.
25365         * modules/yesno-tests (Depends-on): Add binary-io.
25366
25367 2008-04-27  Bruno Haible  <bruno@clisp.org>
25368
25369         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25370         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25371         argument that lie outside the IEEE 854 domain.
25372         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25373         (gl_ISFINITE): Use it.
25374         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25375
25376 2008-04-27  Bruno Haible  <bruno@clisp.org>
25377
25378         Allow local renaming in config.h.
25379         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25380
25381 2008-04-27  Bruno Haible  <bruno@clisp.org>
25382
25383         * lib/memchr.c (__memchr): Change type of 'i'.
25384         * lib/memchr2.c (memchr2): Likewise.
25385
25386 2008-04-26  Eric Blake  <ebb9@byu.net>
25387         and Bruno Haible  <bruno@clisp.org>
25388
25389         Optimize and test memrchr.
25390         * modules/memrchr (Depends-on): Add intprops.
25391         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25392         * modules/memrchr-tests: New file.
25393         * tests/test-memrchr.c: New file.
25394
25395 2008-04-26  Bruno Haible  <bruno@clisp.org>
25396
25397         Add tentative support for DragonFly BSD.
25398         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25399         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25400         fp.
25401         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25402         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25403         * lib/fpurge.c (fpurge): Likewise.
25404         * lib/freadable.c (freaadable): Likewise.
25405         * lib/freadahead.c (freadahead): Likewise.
25406         * lib/freading.c (freading): Likewise.
25407         * lib/freadptr.c (freadptr): Likewise.
25408         * lib/freadseek.c (freadptrinc): Likewise.
25409         * lib/fseeko.c (fseeko): Likewise.
25410         * lib/fseterr.c (fseterr): Likewise.
25411         * lib/fwritable.c (fwritable): Likewise.
25412         * lib/fwriting.c (fwriting): Likewise.
25413
25414 2008-04-26  Bruno Haible  <bruno@clisp.org>
25415
25416         * lib/stdio-impl.h: New file.
25417         * lib/fbufmode.c: Include stdio-impl.h.
25418         (fbufmode): Use fp_, remove redundant #defines.
25419         * lib/fflush.c: Include stdio-impl.h.
25420         (clear_ungetc_buffer): Remove redundant #defines.
25421         * lib/fpurge.c: Include stdio-impl.h.
25422         (fpurge): Remove redundant #defines.
25423         * lib/freadable.c: Include stdio-impl.h.
25424         (freadable): Remove redundant #defines.
25425         * lib/freadahead.c: Include stdio-impl.h.
25426         (freadahead): Remove redundant #defines.
25427         * lib/freading.c: Include stdio-impl.h.
25428         (freading): Remove redundant #defines.
25429         * lib/freadptr.c: Include stdio-impl.h.
25430         (freadptr): Remove redundant #defines.
25431         * lib/freadseek.c: Include stdio-impl.h.
25432         (freadptrinc): Remove redundant #defines.
25433         * lib/fseeko.c: Include stdio-impl.h.
25434         (rpl_fseeko): Remove redundant #defines.
25435         * lib/fseterr.c: Include stdio-impl.h.
25436         (fseterr): Remove redundant #defines.
25437         * lib/fwritable.c: Include stdio-impl.h.
25438         (fwritable: Remove redundant #defines.
25439         * lib/fwriting.c: Include stdio-impl.h.
25440         (fwriting): Remove redundant #defines.
25441         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25442         * modules/fflush (Files): Likewise.
25443         * modules/fpurge (Files): Likewise.
25444         * modules/freadable (Files): Likewise.
25445         * modules/freadahead (Files): Likewise.
25446         * modules/freading (Files): Likewise.
25447         * modules/freadptr (Files): Likewise.
25448         * modules/freadseek (Files): Likewise.
25449         * modules/fseeko (Files): Likewise.
25450         * modules/fseterr (Files): Likewise.
25451         * modules/fwritable (Files): Likewise.
25452         * modules/fwriting (Files): Likewise.
25453
25454 2008-04-26  Bruno Haible  <bruno@clisp.org>
25455
25456         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25457         restore_seek_optimization, update_fpos_cache): New functions, extracted
25458         from rpl_fflush.
25459         (rpl_fflush): Use them.
25460         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25461         (gl_REPLACE_FFLUSH): Use it.
25462
25463 2008-04-26  Bruno Haible  <bruno@clisp.org>
25464
25465         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25466         on Solaris.
25467         * tests/test-xstrtoimax.sh: Likewise.
25468         * tests/test-xstrtoumax.sh: Likewise.
25469         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25470
25471 2008-04-26  Bruno Haible  <bruno@clisp.org>
25472
25473         * modules/memchr-tests: New file.
25474         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25475
25476 2008-04-26  Eric Blake  <ebb9@byu.net>
25477             Bruno Haible  <bruno@clisp.org>
25478
25479         * lib/memchr.c: Include intprops.h.
25480         (__memchr): Optimize parallel detection of matching bytes. Rename local
25481         variables. Add explanatory comments.
25482
25483 2008-04-26  Bruno Haible  <bruno@clisp.org>
25484
25485         Fix module 'memchr', broken since 2000-10-28.
25486         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25487
25488 2008-04-26  Bruno Haible  <bruno@clisp.org>
25489
25490         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25491         comments.
25492
25493 2008-04-25  Eric Blake  <ebb9@byu.net>
25494
25495         Use native fstatat on cygwin 1.7.0.
25496         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25497         first.
25498
25499 2008-04-23  Eric Blake  <ebb9@byu.net>
25500
25501         Improve memchr2 performance.
25502         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25503         NUL bytes.
25504         * modules/memchr2 (Depends-on): Use intprops.h.
25505
25506 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25507
25508         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25509         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25510         <blp@cs.stanford.edu>.
25511
25512 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25513
25514         * lib/arpa_inet.in.h: New file.
25515
25516         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25517         (Makefile.am): Sed in substitute header file.
25518
25519         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25520         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25521
25522         * modules/inet_ntop (configure.ac): Use
25523         gl_ARPA_INET_MODULE_INDICATOR.
25524
25525         * modules/inet_pton (configure.ac): Use
25526         gl_ARPA_INET_MODULE_INDICATOR.
25527
25528 2008-04-22  Jim Meyering  <meyering@redhat.com>
25529
25530         * modules/verify (License): Re-license as LGPLv2+.
25531
25532 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25533
25534         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25535         parameter to void* as per POSIX standard (MinGW uses char*).
25536
25537 2008-04-21  Bruno Haible  <bruno@clisp.org>
25538
25539         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25540         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25541         Define to replacements if REPLACE_ISWCNTRL is 1.
25542         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25543         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25544         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25545         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25546         what it fixes.
25547         * doc/posix-functions/iswalpha.texi: Likewise.
25548         * doc/posix-functions/iswblank.texi: Likewise.
25549         * doc/posix-functions/iswcntrl.texi: Likewise.
25550         * doc/posix-functions/iswdigit.texi: Likewise.
25551         * doc/posix-functions/iswgraph.texi: Likewise.
25552         * doc/posix-functions/iswlower.texi: Likewise.
25553         * doc/posix-functions/iswprint.texi: Likewise.
25554         * doc/posix-functions/iswpunct.texi: Likewise.
25555         * doc/posix-functions/iswspace.texi: Likewise.
25556         * doc/posix-functions/iswupper.texi: Likewise.
25557         * doc/posix-functions/iswxdigit.texi: Likewise.
25558         Reported by Alain Guibert.
25559
25560 2008-04-21  Bruno Haible  <bruno@clisp.org>
25561
25562         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25563         Patch by Alain Guibert.
25564
25565 2008-04-21  Bruno Haible  <bruno@clisp.org>
25566
25567         Fix test failures on mingw.
25568         * tests/test-xstrtol.c (print_no_progname): New function.
25569         (main): Install it in error_print_progname hook.
25570         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25571         * tests/test-xstrtoimax.sh: Likewise.
25572         * tests/test-xstrtoumax.sh: Likewise.
25573
25574 2008-04-21  Bruno Haible  <bruno@clisp.org>
25575
25576         Fix test failure on mingw.
25577         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25578
25579 2008-04-21  Bruno Haible  <bruno@clisp.org>
25580
25581         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25582         Actually assign a value.
25583
25584 2008-04-20  Bruno Haible  <bruno@clisp.org>
25585
25586         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25587         take 2.
25588         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25589         'canonicalize-lgpl' module is also used.
25590         * lib/canonicalize-lgpl.c: Undo last change.
25591         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25592
25593 2008-04-20  Bruno Haible  <bruno@clisp.org>
25594
25595         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25596         config.h. Provide _mkdir based fallback for mingw.
25597         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25598         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25599         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25600         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25601         rather than defining mkdir in config.h.
25602         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25603         (gl_SYS_STAT_H_DEFAULTS): New macro.
25604         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25605         HAVE_IO_H any more.
25606         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25607         HAVE_DECL_MKDIR and HAVE_IO_H.
25608
25609 2008-04-20  Bruno Haible  <bruno@clisp.org>
25610
25611         * lib/isapipe.c: Port to native Windows platforms.
25612
25613 2008-04-20  Bruno Haible  <bruno@clisp.org>
25614
25615         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25616
25617 2008-04-21  Eric Blake  <ebb9@byu.net>
25618
25619         Work around preprocessors that don't handle UINTMAX_MAX.
25620         * lib/memchr2.c (memchr2): Avoid embedded #if.
25621         Reported by Alain Guibert, fix suggested by Bruno Haible.
25622
25623 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25624
25625         * doc/posix-functions/strftime.texi (strftime): Explain better
25626         Windows incompatibility.  Suggested by Micah Cowan
25627         <micah@cowan.name>.
25628
25629 2008-04-20  Bruno Haible  <bruno@clisp.org>
25630
25631         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25632         unistr/u8-mblen.
25633
25634 2008-04-20  Bruno Haible  <bruno@clisp.org>
25635
25636         Fix test failure on platforms with non-GNU iconv.
25637         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25638         (U_TO_U8): Use it, rather than u16_to_u8.
25639         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25640         units at the end of the input string.
25641         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25642
25643 2008-04-20  Bruno Haible  <bruno@clisp.org>
25644
25645         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25646         when the resulting length is 0.
25647         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25648
25649 2008-04-20  Bruno Haible  <bruno@clisp.org>
25650
25651         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25652         works.
25653         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25654
25655 2008-04-20  Bruno Haible  <bruno@clisp.org>
25656
25657         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25658         * modules/tsearch-tests (configure.ac): Test for initstate function.
25659
25660 2008-04-20  Bruno Haible  <bruno@clisp.org>
25661
25662         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25663         for nlink_t if missing.
25664         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25665
25666 2008-04-19  Bruno Haible  <bruno@clisp.org>
25667
25668         Work around snprintf bug on Linux libc5.
25669         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25670         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25671         gl_SNPRINTF_SIZE1.
25672         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25673         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25674         that test failed.
25675         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25676         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25677         * modules/snprintf (Files): Add m4/printf.m4.
25678         * modules/vsnprintf (Files): Likewise.
25679         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25680         * doc/posix-functions/vsnprintf.texi: Likewise.
25681
25682 2008-04-19  Bruno Haible  <bruno@clisp.org>
25683
25684         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25685         from 0.0058 to less than 10^-7.
25686
25687 2008-04-19  Bruno Haible  <bruno@clisp.org>
25688
25689         Fix rounding when a precision is given.
25690         * lib/vasnprintf.c (is_borderline): New function.
25691         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25692         9...9x.
25693         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25694         %e, %g.
25695         * tests/test-vasprintf-posix.c (test_function): Likewise.
25696         * tests/test-snprintf-posix.h (test_function): Likewise.
25697         * tests/test-sprintf-posix.h (test_function): Likewise.
25698         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25699         * tests/test-printf-posix.h (test_function): Likewise.
25700         * tests/test-printf-posix.output: Update.
25701         Reported by John Darrington <john@darrington.wattle.id.au> via
25702         Ben Pfaff <blp@cs.stanford.edu>.
25703
25704 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25705
25706         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25707         Suggested by Bruno Haible <bruno@clisp.org>.
25708
25709 2008-04-17  Bruno Haible  <bruno@clisp.org>
25710
25711         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25712         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25713         implementation.
25714         Patch by Bruce Merry <bmerry@gmail.com>.
25715
25716 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25717
25718         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25719         doesn't work under Windows.
25720
25721 2008-04-16  Bruno Haible  <bruno@clisp.org>
25722
25723         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25724         New macros.
25725         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25726         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25727         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25728         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25729         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25730         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25731         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25732         macros.
25733         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25734         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25735         Northern Sotho, Uighur.
25736
25737 2008-04-16  Bruno Haible  <bruno@clisp.org>
25738
25739         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25740         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25741         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25742         Reported by Daniel Bergström <daniel@octocode.com>.
25743
25744 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25745             Bruno Haible  <bruno@clisp.org>
25746
25747         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25748         function.
25749         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25750         New functions, mostly extracted from gl_locale_name_default.
25751         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25752
25753 2008-04-16  Eric Blake  <ebb9@byu.net>
25754
25755         Adjust strtod detection to catch glibc 2.7 bug.
25756         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25757         Reported by John Gatewood Ham.
25758
25759 2008-04-16  Bruno Haible  <bruno@clisp.org>
25760
25761         Add tentative support for Linux libc5.
25762         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25763         * lib/fpurge.c (fpurge): Likewise.
25764         * lib/freadable.c (freadable): Likewise.
25765         * lib/freadahead.c (freadahead): Likewise.
25766         * lib/freading.c (freading): Likewise.
25767         * lib/freadptr.c (freadptr): Likewise.
25768         * lib/freadseek.c (freadptrinc): Likewise.
25769         * lib/fseeko.c (rpl_fseeko): Likewise.
25770         * lib/fseterr.c (fseterr): Likewise.
25771         * lib/fwritable.c (fwritable): Likewise.
25772         * lib/fwriting.c (fwriting): Likewise.
25773         Reported by Alain Guibert <alguibert+bts@free.fr>.
25774
25775 2008-04-15  Bruno Haible  <bruno@clisp.org>
25776
25777         * modules/mathl (configure.ac): Define module indicator.
25778
25779 2008-04-15  Bruno Haible  <bruno@clisp.org>
25780
25781         * lib/logl.c (logl): Remove unused variables.
25782
25783 2008-04-15  Bruno Haible  <bruno@clisp.org>
25784
25785         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25786         fails.
25787
25788 2008-04-15  Bruno Haible  <bruno@clisp.org>
25789
25790         * lib/trim.c (trim2): Fix argument of isspace() macro.
25791
25792 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25793
25794         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25795         to 0.
25796         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25797
25798 2008-04-14  Bruno Haible  <bruno@clisp.org>
25799
25800         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25801         AC_LANG_PROGRAM argument.
25802         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25803         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25804         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25805         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25806         * m4/math_h.m4 (gl_MATH_H): Likewise.
25807         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25808         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25809         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25810         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25811         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25812         * m4/regex.m4 (gl_REGEX): Likewise.
25813         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25814         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25815         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25816         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25817         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25818         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25819         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25820         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25821
25822 2008-04-14  Jim Meyering  <meyering@redhat.com>
25823
25824         test-strtod: fix typos: s/abs/fabs/
25825         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25826
25827 2008-04-13  Bruno Haible  <bruno@clisp.org>
25828
25829         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25830         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25831         module is also used and while not building the reloc-wrapper.
25832
25833 2008-04-13  Bruno Haible  <bruno@clisp.org>
25834
25835         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25836
25837 2008-04-13  Bruno Haible  <bruno@clisp.org>
25838
25839         Fix AIX compilation failure introduced on 2008-04-02.
25840         * tests/test-frexp.c (exp): Undefine before redefining.
25841         * tests/test-frexpl.c (exp): Likewise.
25842
25843 2008-04-13  Bruno Haible  <bruno@clisp.org>
25844
25845         Work around a HP-UX stdio bug.
25846         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25847         * tests/test-ftello.c (main): Likewise.
25848         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25849         * doc/posix-functions/ftello.texi: Likewise.
25850
25851 2008-04-13  Bruno Haible  <bruno@clisp.org>
25852
25853         Make test-signbit pass on HP-UX/hppa.
25854         * tests/test-signbit.c (minus_zerol): New variable.
25855         (test_signbitl): Use it.
25856
25857 2008-04-13  Bruno Haible  <bruno@clisp.org>
25858
25859         Make truncl work on OSF/1 4.0.
25860         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25861         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25862         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25864         HAVE_DECL_TRUNCL.
25865         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25866         HAVE_DECL_TRUNCL.
25867         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25868
25869 2008-04-13  Bruno Haible  <bruno@clisp.org>
25870
25871         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25872
25873 2008-04-13  Bruno Haible  <bruno@clisp.org>
25874
25875         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25876         expression, so as to avoid HP-UX 11 cc compiler bug.
25877
25878 2008-04-13  Bruno Haible  <bruno@clisp.org>
25879
25880         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25881
25882 2008-04-13  Bruno Haible  <bruno@clisp.org>
25883
25884         * lib/git-merge-changelog.c: Remove empty declaration outside of
25885         functions.
25886
25887 2008-04-13  Bruno Haible  <bruno@clisp.org>
25888
25889         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25890
25891 2008-04-13  Bruno Haible  <bruno@clisp.org>
25892
25893         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25894         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25895         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25896         also if it exists but lacks definitions of the SHUT_* macros.
25897         * modules/sys_socket (Description): Update.
25898         Reported by Elbert Pol <e.pol@chello.nl>.
25899
25900 2008-04-13  Bruno Haible  <bruno@clisp.org>
25901
25902         * lib/localcharset.c (OS2): Don't redefine if already defined.
25903         Reported by Elbert Pol <e.pol@chello.nl>.
25904
25905 2008-04-13  Bruno Haible  <bruno@clisp.org>
25906
25907         * lib/binary-io.h [__EMX__]: Include <io.h>.
25908         Reported by Elbert Pol <e.pol@chello.nl>.
25909
25910 2008-04-12  Bruno Haible  <bruno@clisp.org>
25911
25912         * lib/fpucw.h: Enable the definitions also for x86_64.
25913         Needed for NetBSD/x86_64.
25914         Reported by Thomas Klausner <tk@giga.or.at>.
25915
25916 2008-04-12  Bruno Haible  <bruno@clisp.org>
25917
25918         * tests/test-strtod.c: Include isnand.h.
25919         (main): Use isnand instead of isnan.
25920         Reported by Jim Meyering.
25921
25922 2008-04-12  Bruno Haible  <bruno@clisp.org>
25923
25924         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25925         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25926
25927 2008-04-12  Jim Meyering  <meyering@redhat.com>
25928
25929         * m4/math_h.m4 (gl_MATH_H): Fix typos.
25930
25931 2008-04-12  Bruno Haible  <bruno@clisp.org>
25932
25933         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25934         Reported by Elbert Pol <e.pol@chello.nl>.
25935
25936 2008-04-12  Eric Blake  <ebb9@byu.net>
25937
25938         Work around Solaris 10 math.h bug.
25939         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25940         (gl_MATH_H_DEFAULTS): Set up default.
25941         * modules/math (Makefile.am): Replace new indicators.
25942         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25943         * tests/test-math.c (main): Test this.
25944         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25945         * doc/posix-headers/math.texi (math.h): Mention bug.
25946         Reported by Nelson H. F. Beebe and Jim Meyering.
25947
25948 2008-04-11  Bruno Haible  <bruno@clisp.org>
25949
25950         Adapt to future versions of Apple GCC.
25951         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25952         Reported by Peter O'Gorman <peter@pogma.com>.
25953
25954 2008-04-11  Bruno Haible  <bruno@clisp.org>
25955
25956         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25957
25958 2008-04-11  Bruno Haible  <bruno@clisp.org>
25959
25960         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25961
25962         * modules/getaddrinfo-tests (Makefile.am): Define
25963         test_getaddrinfo_LDADD.
25964
25965 2008-04-11  Bruno Haible  <bruno@clisp.org>
25966
25967         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25968         (init): Fix syntax error.
25969         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25970         is declared.
25971
25972 2008-04-11  Bruno Haible  <bruno@clisp.org>
25973
25974         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25975         * modules/glob (Depends-on): Add stdbool.
25976
25977 2008-04-11  Bruno Haible  <bruno@clisp.org>
25978
25979         * lib/trim.c: Include <string.h>.
25980
25981 2008-04-11  Eric Blake  <ebb9@byu.net>
25982
25983         Avoid compile failure on OS/2.
25984         * lib/regex_internal.h (internal_function): Disable optimization
25985         on OS/2 (__EMX__), where it caused compiler error.
25986         Reported by Elbert Pol.
25987
25988 2008-04-11  Bruno Haible  <bruno@clisp.org>
25989
25990         Flush the standard error stream before aborting. Needed on mingw.
25991         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25992         * tests/test-array_list.c (ASSERT): Likewise.
25993         * tests/test-array_oset.c (ASSERT): Likewise.
25994         * tests/test-avltree_list.c (ASSERT): Likewise.
25995         * tests/test-avltree_oset.c (ASSERT): Likewise.
25996         * tests/test-avltreehash_list.c (ASSERT): Likewise.
25997         * tests/test-binary-io.c (ASSERT): Likewise.
25998         * tests/test-byteswap.c (ASSERT): Likewise.
25999         * tests/test-c-ctype.c (ASSERT): Likewise.
26000         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
26001         * tests/test-c-strcasestr.c (ASSERT): Likewise.
26002         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
26003         * tests/test-c-strstr.c (ASSERT): Likewise.
26004         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
26005         * tests/test-canonicalize.c (ASSERT): Likewise.
26006         * tests/test-carray_list.c (ASSERT): Likewise.
26007         * tests/test-ceilf1.c (ASSERT): Likewise.
26008         * tests/test-ceilf2.c (ASSERT): Likewise.
26009         * tests/test-ceill.c (ASSERT): Likewise.
26010         * tests/test-count-one-bits.c (ASSERT): Likewise.
26011         * tests/test-fbufmode.c (ASSERT): Likewise.
26012         * tests/test-fflush2.c (ASSERT): Likewise.
26013         * tests/test-floorf1.c (ASSERT): Likewise.
26014         * tests/test-floorf2.c (ASSERT): Likewise.
26015         * tests/test-floorl.c (ASSERT): Likewise.
26016         * tests/test-fopen.c (ASSERT): Likewise.
26017         * tests/test-fpending.c (ASSERT): Likewise.
26018         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26019         * tests/test-fpurge.c (ASSERT): Likewise.
26020         * tests/test-freadable.c (ASSERT): Likewise.
26021         * tests/test-freadahead.c (ASSERT): Likewise.
26022         * tests/test-freading.c (ASSERT): Likewise.
26023         * tests/test-freadptr.c (ASSERT): Likewise.
26024         * tests/test-freadptr2.c (ASSERT): Likewise.
26025         * tests/test-freadseek.c (ASSERT): Likewise.
26026         * tests/test-freopen.c (ASSERT): Likewise.
26027         * tests/test-frexp.c (ASSERT): Likewise.
26028         * tests/test-frexpl.c (ASSERT): Likewise.
26029         * tests/test-fseek.c (ASSERT): Likewise.
26030         * tests/test-fseeko.c (ASSERT): Likewise.
26031         * tests/test-fstrcmp.c (ASSERT): Likewise.
26032         * tests/test-ftell.c (ASSERT): Likewise.
26033         * tests/test-ftello.c (ASSERT): Likewise.
26034         * tests/test-func.c (ASSERT): Likewise.
26035         * tests/test-fwritable.c (ASSERT): Likewise.
26036         * tests/test-fwriting.c (ASSERT): Likewise.
26037         * tests/test-getdelim.c (ASSERT): Likewise.
26038         * tests/test-getline.c (ASSERT): Likewise.
26039         * tests/test-i-ring.c (ASSERT): Likewise.
26040         * tests/test-iconv-utf.c (ASSERT): Likewise.
26041         * tests/test-iconv.c (ASSERT): Likewise.
26042         * tests/test-isfinite.c (ASSERT): Likewise.
26043         * tests/test-isnand.c (ASSERT): Likewise.
26044         * tests/test-isnanf.c (ASSERT): Likewise.
26045         * tests/test-isnanl.h (ASSERT): Likewise.
26046         * tests/test-ldexpl.c (ASSERT): Likewise.
26047         * tests/test-linked_list.c (ASSERT): Likewise.
26048         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26049         * tests/test-localename.c (ASSERT): Likewise.
26050         * tests/test-lseek.c (ASSERT): Likewise.
26051         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26052         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26053         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26054         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26055         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26056         * tests/test-mbschr.c (ASSERT): Likewise.
26057         * tests/test-mbscspn.c (ASSERT): Likewise.
26058         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26059         * tests/test-mbspbrk.c (ASSERT): Likewise.
26060         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26061         * tests/test-mbsrchr.c (ASSERT): Likewise.
26062         * tests/test-mbsspn.c (ASSERT): Likewise.
26063         * tests/test-mbsstr1.c (ASSERT): Likewise.
26064         * tests/test-mbsstr2.c (ASSERT): Likewise.
26065         * tests/test-mbsstr3.c (ASSERT): Likewise.
26066         * tests/test-memchr2.c (ASSERT): Likewise.
26067         * tests/test-memmem.c (ASSERT): Likewise.
26068         * tests/test-open.c (ASSERT): Likewise.
26069         * tests/test-printf-frexp.c (ASSERT): Likewise.
26070         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26071         * tests/test-printf-posix.c (ASSERT): Likewise.
26072         * tests/test-quotearg.c (ASSERT): Likewise.
26073         * tests/test-rbtree_list.c (ASSERT): Likewise.
26074         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26075         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26076         * tests/test-round1.c (ASSERT): Likewise.
26077         * tests/test-roundf1.c (ASSERT): Likewise.
26078         * tests/test-roundl.c (ASSERT): Likewise.
26079         * tests/test-signbit.c (ASSERT): Likewise.
26080         * tests/test-sleep.c (ASSERT): Likewise.
26081         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26082         * tests/test-snprintf.c (ASSERT): Likewise.
26083         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26084         * tests/test-stat-time.c (ASSERT): Likewise.
26085         * tests/test-strcasestr.c (ASSERT): Likewise.
26086         * tests/test-strerror.c (ASSERT): Likewise.
26087         * tests/test-striconv.c (ASSERT): Likewise.
26088         * tests/test-striconveh.c (ASSERT): Likewise.
26089         * tests/test-striconveha.c (ASSERT): Likewise.
26090         * tests/test-strsignal.c (ASSERT): Likewise.
26091         * tests/test-strstr.c (ASSERT): Likewise.
26092         * tests/test-strtod.c (ASSERT): Likewise.
26093         * tests/test-trunc1.c (ASSERT): Likewise.
26094         * tests/test-trunc2.c (ASSERT): Likewise.
26095         * tests/test-truncf1.c (ASSERT): Likewise.
26096         * tests/test-truncf2.c (ASSERT): Likewise.
26097         * tests/test-truncl.c (ASSERT): Likewise.
26098         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26099         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26100         * tests/test-vasnprintf.c (ASSERT): Likewise.
26101         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26102         * tests/test-vasprintf.c (ASSERT): Likewise.
26103         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26104         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26105         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26106         * tests/test-vsnprintf.c (ASSERT): Likewise.
26107         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26108         * tests/test-wcwidth.c (ASSERT): Likewise.
26109         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26110         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26111         * tests/test-xvasprintf.c (ASSERT): Likewise.
26112         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26113         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26114         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26115         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26116         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26117         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26118         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26119         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26120         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26121         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26122         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26123         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26124         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26125         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26126         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26127         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26128         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26129         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26130         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26131         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26132         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26133         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26134         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26135         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26136         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26137         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26138         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26139         * tests/unictype/test-combining.c (ASSERT): Likewise.
26140         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26141         * tests/unictype/test-digit.c (ASSERT): Likewise.
26142         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26143         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26144         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26145         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26146         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26147         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26148         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26149         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26150         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26151         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26152         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26153         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26154         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26155         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26156         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26157         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26158         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26159         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26160         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26161         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26162         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26163         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26164         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26165         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26166         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26167         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26168         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26169         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26170         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26171         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26172         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26173         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26174         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26175         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26176         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26177         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26178         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26179         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26180         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26181         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26182         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26183         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26184         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26185         Reported by Eric Blake.
26186
26187 2008-04-11  Bruno Haible  <bruno@clisp.org>
26188
26189         * lib/wchar.in.h: Tweak comment.
26190
26191 2008-04-11  Bruno Haible  <bruno@clisp.org>
26192
26193         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26194         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26195         gl_COMMON.
26196         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26197
26198 2008-04-11  Bruno Haible  <bruno@clisp.org>
26199
26200         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26201
26202 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26203
26204         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26205         of attempting to use non-existing /dev/*random.  Based on patch
26206         from Adam Strzelecki <ono@java.pl> in
26207         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26208
26209 2008-04-08  Bruno Haible  <bruno@clisp.org>
26210
26211         Add tentative support for emx+gcc.
26212         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26213         * lib/fpurge.c (fpurge): Likewise.
26214         * lib/freadable.c (freadable): Likewise.
26215         * lib/freadahead.c (freadahead): Likewise.
26216         * lib/freading.c (freading): Likewise.
26217         * lib/freadptr.c (freadptr): Likewise.
26218         * lib/freadseek.c (freadptrinc): Likewise.
26219         * lib/fseeko.c (rpl_fseeko): Likewise.
26220         * lib/fseterr.c (fseterr): Likewise.
26221         * lib/fwritable.c (fwritable): Likewise.
26222         * lib/fwriting.c (fwriting): Likewise.
26223         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26224
26225 2008-04-09  Eric Blake  <ebb9@byu.net>
26226
26227         Avoid some autoconf warnings.
26228         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26229         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26230         * m4/afs.m4 (gl_AFS): Likewise.
26231         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26232         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26233         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26234         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26235         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26236         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26237         (AC_CHECK_DECLS_ONCE): Likewise.
26238         Rename file...
26239         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26240         gnulib-tool requires autoconf 2.59 or better.
26241         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26242
26243 2008-04-08  Eric Blake  <ebb9@byu.net>
26244
26245         Use 'git describe --match' if present (added in git 1.5.5).
26246         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26247         if possible.
26248
26249 2008-04-08  Bruno Haible  <bruno@clisp.org>
26250
26251         Add tentative support for OpenServer.
26252         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26253         _ptr, _cnt.
26254         * lib/fpurge.c (fpurge): Likewise.
26255         * lib/freadable.c (freadable): Likewise.
26256         * lib/freadahead.c (freadahead): Likewise.
26257         * lib/freading.c (freading): Likewise.
26258         * lib/freadptr.c (freadptr): Likewise.
26259         * lib/freadseek.c (freadptrinc): Likewise.
26260         * lib/fseeko.c (rpl_fseeko): Likewise.
26261         * lib/fseterr.c (fseterr): Likewise.
26262         * lib/fwritable.c (fwritable): Likewise.
26263         * lib/fwriting.c (fwriting): Likewise.
26264         Reported by Roger Cornelius <rac@tenzing.org> and
26265         Brian K. White <brian@aljex.com>.
26266
26267 2008-04-06  Jim Meyering  <meyering@redhat.com>
26268
26269         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26270
26271 2008-04-06  Bruno Haible  <bruno@clisp.org>
26272
26273         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26274         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26275         * tests/test-printf-posix.sh: Likewise.
26276         * tests/test-vfprintf-posix.sh: Likewise.
26277         * tests/test-vprintf-posix.sh: Likewise.
26278         * tests/test-xprintf-posix.sh: Likewise.
26279
26280 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26281
26282         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26283         hide error from 'ls', needed on OS/2.
26284         Report by Elbert Pol <elbert.pol@gmail.com>.
26285
26286 2008-04-04  Eric Blake  <ebb9@byu.net>
26287
26288         Make test-fseeko.c failures meaningful.
26289         * tests/test-fseeko.c: Print line number on failure.
26290         * tests/test-fseek.c: Likewise.
26291         Reported by Nelson H. F. Beebe.
26292
26293         Improve strtod bug detection check.
26294         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26295         required for Solaris 10.
26296         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26297
26298 2008-04-04  Bruno Haible  <bruno@clisp.org>
26299
26300         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26301         by m4/setenv.m4.
26302
26303 2008-04-03  Eric Blake  <ebb9@byu.net>
26304
26305         Ensure sane .version contents.
26306         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26307         version string.
26308         * build-aux/git-version-gen: Improve documentation.
26309
26310         Make GNU make output nicer.
26311         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26312         MAKECMDGOALS to enforce message for all command line targets.  Set
26313         srcdir for use in maint.mk.
26314
26315         Another maintainer tweak.
26316         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26317         a target that regenerates version.
26318
26319 2008-04-03  Jim Meyering  <meyering@redhat.com>
26320
26321         vc-list-files: don't cause coreutils "make po-check" failure
26322         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26323
26324 2008-04-03  Eric Blake  <ebb9@byu.net>
26325
26326         Allow VPATH usage of vc-list-files.
26327         * build-aux/vc-list-files (scriptversion): Add timestamp.
26328         (options): Add --help, --version, -C.
26329         (CVS): Support installed cvsu.
26330
26331 2008-04-02  Bruno Haible  <bruno@clisp.org>
26332
26333         Avoid some "statement with no effect" warnings from gcc.
26334         * tests/test-wctype.c (main): Explicitly ignore unused values.
26335         Reported by Jim Meyering.
26336
26337 2008-04-02  Jim Meyering  <meyering@redhat.com>
26338
26339         Avoid some warnings from "gcc -Wshadow".
26340         * tests/test-frexp.c (exp): Define to a different identifier.
26341         * tests/test-frexpl.c (exp): Likewise.
26342
26343 2008-04-03  Jim Meyering  <meyering@redhat.com>
26344
26345         bootstrap: remove dangling *.[ch] symlinks from lib
26346         * build-aux/bootstrap [dangling symlink removal]: Move find's
26347         -depth option to precede all others, to avoid a warning.
26348         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26349
26350 2008-04-02  Bruno Haible  <bruno@clisp.org>
26351
26352         Avoid some warnings from "gcc -Wshadow".
26353         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26354         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26355         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26356         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26357         Reported by Jim Meyering.
26358
26359 2008-04-01  Bruno Haible  <bruno@clisp.org>
26360
26361         Fix test to work on IRIX 6.5 with cc.
26362         * tests/test-math.c (numeric_equal): New function.
26363         (main): Use it.
26364
26365 2008-04-01  Bruno Haible  <bruno@clisp.org>
26366
26367         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26368
26369 2008-04-01  Bruno Haible  <bruno@clisp.org>
26370
26371         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26372         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26373         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26374         (Depends-on): Remove math.
26375
26376         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26377         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26378         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26379         (Depends-on): Remove math.
26380
26381         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26382         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26383         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26384         (Depends-on): Remove math.
26385         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26386         (Depends-on): Remove math.
26387
26388         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26389         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26390         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26391         (Depends-on): Remove math.
26392         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26393         (Depends-on): Remove math.
26394
26395         * tests/test-round1.c: Include nan.h.
26396         (main): Use NaNd instead of NAN.
26397         * modules/round-tests (Files): Add tests/nan.h.
26398
26399         * tests/test-trunc1.c: Include nan.h.
26400         (main): Use NaNd instead of NAN.
26401         * modules/trunc-tests (Files): Add tests/nan.h.
26402
26403         * tests/test-roundf1.c: Include nan.h.
26404         (main): Use NaNf instead of NAN.
26405         * modules/roundf-tests (Files): Add tests/nan.h.
26406
26407         * tests/test-truncf1.c: Include nan.h.
26408         (main): Use NaNf instead of NAN.
26409         * modules/truncf-tests (Files): Add tests/nan.h.
26410
26411         * tests/test-ceilf1.c: Include nan.h.
26412         (main): Use NaNf instead of NAN.
26413         * modules/ceilf-tests (Files): Add tests/nan.h.
26414
26415         * tests/test-floorf1.c: Include nan.h.
26416         (main): Use NaNf instead of NAN.
26417         * modules/floorf-tests (Files): Add tests/nan.h.
26418
26419         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26420         (main): Use NaNf instead of NAN.
26421         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26422
26423         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26424         (main): Use NaNd instead of NAN.
26425         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26426
26427         * tests/test-frexp.c: Include nan.h.
26428         (main): Use NaNd instead of NAN.
26429         * modules/frexp-tests (Files): Add tests/nan.h.
26430
26431         * lib/isnan.c: Don't include <math.h>.
26432         (FUNC): Don't use NAN macro.
26433         * modules/isnand-nolibm (Depends-on): Remove math.
26434         * modules/isnanf-nolibm (Depends-on): Remove math.
26435         * modules/isnanl (Depends-on): Remove math.
26436         * modules/isnanl-nolibm (Depends-on): Remove math.
26437
26438         * tests/nan.h: New file.
26439
26440 2008-04-01  Eric Blake  <ebb9@byu.net>
26441
26442         Fix typos.
26443         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26444         values to be the right type.
26445
26446         For now, cater to gnulib strtod inaccuracies.
26447         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26448         fractional results.  While not as nice from a QoI perspective, it
26449         is a quicker patch than correctly implementing decimal to binary
26450         rounding.
26451
26452 2008-03-31  Eric Blake  <ebb9@byu.net>
26453
26454         Guarantee a definition of NAN.
26455         * lib/math.in.h (NAN): Define if missing.
26456         * tests/test-math.c (main): Test it.
26457         * doc/posix-headers/math.texi (math.h): Document this.
26458         * lib/isnan.c (rpl_isnand): Use it.
26459         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26460         * tests/test-floorf1.c (NaN): Likewise.
26461         * tests/test-frexp.c (NaN): Likewise.
26462         * tests/test-isnand.c (NaN): Likewise.
26463         * tests/test-isnanf.c (NaN): Likewise.
26464         * tests/test-round1.c (NaN): Likewise.
26465         * tests/test-roundf1.c (NaN): Likewise.
26466         * tests/test-snprintf-posix.h (NaN): Likewise.
26467         * tests/test-sprintf-posix.h (NaN): Likewise.
26468         * tests/test-trunc1.c (NaN): Likewise.
26469         * tests/test-truncf1.c (NaN): Likewise.
26470         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26471         * tests/test-vasprintf-posix.c (NaN): Likewise.
26472         * modules/isnand-nolibm (Depends-on): Add math.
26473         * modules/isnanf-nolibm (Depends-on): Likewise.
26474         * modules/isnanl (Depends-on): Likewise.
26475         * modules/isnanl-nolibm (Depends-on): Likewise.
26476         * modules/snprintf-posix-tests (Depends-on): Likewise.
26477         * modules/sprintf-posix-tests (Depends-on): Likewise.
26478         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26479         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26480         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26481         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26482
26483 2008-03-31  Bruno Haible  <bruno@clisp.org>
26484
26485         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26486         * doc/posix-functions/strtod.texi: Likewise.
26487
26488 2008-03-31  Bruno Haible  <bruno@clisp.org>
26489
26490         * tests/test-strtod.c (main): Don't use C99 syntax.
26491
26492 2008-03-31  Bruno Haible  <bruno@clisp.org>
26493
26494         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26495         Reported by Eric Blake.
26496
26497 2008-03-31  Jim Meyering  <meyering@redhat.com>
26498
26499         Don't compare actual signbit return values.
26500         * tests/test-strtod.c (main): Rather, compare only their
26501         zero/non-zero nature.
26502
26503 2008-03-31  Eric Blake  <ebb9@byu.net>
26504
26505         More strtod documentation.
26506         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26507         failures as distinct bugs.
26508
26509 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26510
26511         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26512         Problem reported by Erik Benada in
26513         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26514
26515 2008-03-30  Bruno Haible  <bruno@clisp.org>
26516
26517         * tests/test-strtod.c: Add comments about which assertion fails on which
26518         platform.
26519         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26520
26521 2008-03-30  Eric Blake  <ebb9@byu.net>
26522
26523         Test signbit behavior on zeros.
26524         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26525         (test_signbitd, test_signbitl): Likewise.
26526
26527         More strtod touchups.
26528         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26529         sign of negative underflow, for now.  Use .5, not .1.
26530         * doc/posix-functions/strtod.texi (strtod): Mention these
26531         limitations.
26532         Reported by Jim Meyering.
26533
26534 2008-03-30  Bruno Haible  <bruno@clisp.org>
26535
26536         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26537         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26538
26539 2008-03-30  Bruno Haible  <bruno@clisp.org>
26540
26541         Avoid failure when attempting to return empty iconv results on some
26542         platforms.
26543         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26544         allocation, don't report ENOMEM when the resulting string is empty.
26545
26546 2008-03-30  Bruno Haible  <bruno@clisp.org>
26547
26548         Fix buffer overrun.
26549         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26550         Don't consider the width for tmp_length. Check count against tmp_length
26551         before doing the padding. Ensure enough allocation during padding.
26552
26553 2008-03-30  Eric Blake  <ebb9@byu.net>
26554
26555         strtod touchups.
26556         * lib/strtod.c (strtod): Avoid compiler warnings.
26557         Reported by Jim Meyering.
26558
26559 2008-03-30  Bruno Haible  <bruno@clisp.org>
26560
26561         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26562         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26563         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26564         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26565         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26566         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26567         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26568         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26569
26570         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26571         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26572         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26573         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26574         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26575         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26576         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26577         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26578
26579         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26580         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26581         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26582         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26583         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26584         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26585         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26586         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26587
26588         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26589         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26590
26591         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26592         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26593
26594         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26595         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26596
26597         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26598         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26599         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26600
26601         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26602         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26603         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26604
26605         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26606         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26607         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26608
26609         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26610         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26611         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26612
26613         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26614         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26615         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26616         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26617         (Depends-on): Add EOVERFLOW.
26618         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26619         (Depends-on): Add EOVERFLOW.
26620         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26621         (Depends-on): Add EOVERFLOW.
26622         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26623         (Depends-on): Add EOVERFLOW.
26624         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26625         (Depends-on): Add EOVERFLOW.
26626         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26627         (Depends-on): Add EOVERFLOW.
26628         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26629         (Depends-on): Add EOVERFLOW.
26630         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26631         (Depends-on): Add EOVERFLOW.
26632
26633         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26634         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26635         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26636
26637         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26638         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26639         * modules/snprintf (Depends-on): Add EOVERFLOW.
26640
26641         * lib/poll.c (EOVERFLOW): Remove fallback.
26642         * modules/poll (Depends-on): Add EOVERFLOW.
26643
26644         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26645         * modules/getugroups (Depends-on): Add EOVERFLOW.
26646
26647         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26648         * modules/getdelim (Depends-on): Add EOVERFLOW.
26649
26650         * lib/ftell.c (EOVERFLOW): Remove fallback.
26651         * modules/ftell (Depends-on): Add EOVERFLOW.
26652
26653         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26654         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26655         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26656
26657         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26658
26659         * modules/EOVERFLOW-tests: New file.
26660         * tests/test-EOVERFLOW.c: New file.
26661
26662         * modules/EOVERFLOW: New file.
26663         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26664
26665 2008-03-30  Bruno Haible  <bruno@clisp.org>
26666
26667         Fix bug introduced on 2007-06-10.
26668         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26669         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26670
26671 2008-03-30  Bruno Haible  <bruno@clisp.org>
26672
26673         Improve freadseek's efficiency after ungetc.
26674         * lib/freadseek.c: Include freadahead.h.
26675         (freadptrinc): New function, extracted from freadseek.
26676         (freadseek): Use it in a loop. Use freadahead to determine the number
26677         of loop iterations.
26678         * modules/freadseek (Depends-on): Add freadahead.
26679         (configure.ac): Require AC_C_INLINE.
26680
26681 2008-03-30  Bruno Haible  <bruno@clisp.org>
26682
26683         * lib/freadseek.c (freadseek): Don't ignore the return value of
26684         freadptr.
26685
26686 2008-03-29  Eric Blake  <ebb9@byu.net>
26687
26688         Add hex float support.
26689         * modules/strtod (Depends-on): Add c-ctype.
26690         (Link): Mention POW_LIB.
26691         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26692         whitespace between 'e' and exponent.
26693         * tests/test-strtod.c (main): Enable hex float tests.
26694         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26695         now provides.
26696
26697         Document various strtod bugs, with some fixes.
26698         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26699         "-0x", "inf", "nan", and hex constants.
26700         * doc/posix-functions/atof.texi (atof): Likewise.
26701         * modules/stdlib (Makefile.am): Support strtod.
26702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26703         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26704         detect additional strtod bugs.
26705         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26706         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26707         bool where appropriate.  Parse 'inf' and 'nan'.
26708         * tests/test-strtod.c: New file.
26709         * modules/strtod (Depends-on): Add stdbool, stdlib.
26710         (configure.ac): Turn on module indicator.
26711         * modules/strtod-tests: New module.
26712
26713 2008-03-29  Eric Blake  <ebb9@byu.net>
26714
26715         Fix ftell on mingw.
26716         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26717         * modules/ftell-tests (Depends-on): Add binary-io.
26718         * modules/ftello-tests (Depends-on): Likewise.
26719         * tests/test-ftell.c (main): Enhance test to cover behavior after
26720         ungetc.  Enforce binary mode.
26721         * tests/test-ftello.c (main): Likewise.
26722
26723         Pass test-freadseek on cygwin.
26724         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26725         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26726         ungetc buffer.
26727
26728         * tests/test-fflush2.c (main): Fix typo.
26729
26730 2008-03-29  Bruno Haible  <bruno@clisp.org>
26731
26732         * tests/test-fflush2.c (main): Temporarily disable the contents of
26733         this test.
26734         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26735         Reported by Eric Blake.
26736
26737 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26738
26739         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26740         (GC_SHA224_DIGEST_SIZE): Add.
26741
26742         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26743         (gc_hash_digest_length): Likewise.
26744         (gc_hash_buffer): Likewise.
26745
26746 2008-03-25  Bruno Haible  <bruno@clisp.org>
26747
26748         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26749         detail which gettext release to use.
26750         Reported by Simon Josefsson.
26751
26752 2008-03-26  Jim Meyering  <meyering@redhat.com>
26753
26754         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26755         * modules/gnumakefile (clean-GNUmakefile): Also, use
26756         test ... && ... || : syntax rather than if-then ... fi.
26757
26758         gnumakefile: Don't double-quote-expand $(VPATH) value.
26759         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26760
26761 2008-03-24  Eric Blake  <ebb9@byu.net>
26762
26763         Alter GNUmakefile to install into top directory.
26764         * modules/maintainer-makefile: Split, and add dependency...
26765         * modules/gnumakefile: to this new module.
26766         * build-aux/GNUmakefile: Move...
26767         * top/GNUmakefile: ...here.
26768         * build-aux/maint.mk: Move...
26769         * top/maint.mk: ...here.
26770         * MODULES.html.sh (Support for maintaining...): Document new
26771         module.
26772
26773 2008-03-23  Bruno Haible  <bruno@clisp.org>
26774
26775         * gnulib-tool: New options --vc-files, --no-vc-files.
26776         (func_usage): Document them.
26777         (vc_files): New variable.
26778         (func_import): Consider vc_files.
26779         (func_create_testdir): Set vc_files to empty.
26780         Suggested by Jim Meyering and Karl Berry.
26781
26782 2008-03-23  Bruno Haible  <bruno@clisp.org>
26783
26784         Fix regex compilation error on HP-UX 11.
26785         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26786         * modules/regex (Files): Add m4/mbstate_t.m4.
26787         Reported by Ton Voon <ton.voon@altinity.com>.
26788
26789 2008-03-23  Bruno Haible  <bruno@clisp.org>
26790
26791         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26792
26793 2008-03-23  Eric Blake  <ebb9@byu.net>
26794             Bruno Haible  <bruno@clisp.org>
26795
26796         Install files from top/ in the destination directory.
26797         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26798         augmentation also for the files from top/.
26799         (func_import, func_create_testdir): Rewrite file names:
26800         top/filename -> filename.
26801
26802 2008-03-23  Bruno Haible  <bruno@clisp.org>
26803
26804         Tweak "gnulib --version" output.
26805         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26806
26807 2008-03-23  Bruno Haible  <bruno@clisp.org>
26808
26809         Tweak "gnulib --version" output.
26810         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26811         rather than contents of ChangeLog, when possible.
26812
26813 2008-03-21  Eric Blake  <ebb9@byu.net>
26814
26815         More --version tweaks.
26816         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26817         date of last ChangeLog entry.
26818
26819 2008-03-21  Jim Meyering  <meyering@redhat.com>
26820
26821         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26822
26823 2008-03-20  Eric Blake  <ebb9@byu.net>
26824
26825         VPATH fix.
26826         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26827
26828 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26829
26830         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26831         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26832
26833 2008-03-20  Eric Blake  <ebb9@byu.net>
26834
26835         Sync GNUmakefile with coreutils.
26836         * build-aux/GNUmakefile (have-Makefile): Rename...
26837         (_have-Makefile): ...to this, for namespace consideration.
26838         (GNUmakefile.cfg): Include, if present.
26839         (_autoreconf): Define a default.
26840         (_is-dist-target): New rule for rebuilds to pick up intra-release
26841         version.
26842         (maint-cfg.mk): Rename...
26843         (cfg.mk): ...to this.
26844
26845 2008-03-18  Jim Meyering  <meyering@redhat.com>
26846
26847         New script and module: mktempd
26848         * MODULES.html.sh (maint+release support): Add mktempd.
26849         * build-aux/mktempd: New file.
26850         * modules/mktempd: New file.
26851
26852 2008-03-15  Jim Meyering  <meyering@redhat.com>
26853
26854         Undo last change.
26855         * lib/sha1.c, lib/md5.c: 63 != ~63.
26856         Reported by Andreas Schwab.
26857
26858         sha1.c, md5.c: Hoist a redundant expression.
26859         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26860         "ctx->buflen" only once, before calling *_process_block.
26861         * lib/md5.c (md5_process_bytes): Likewise.
26862
26863 2008-03-14  Eric Blake  <ebb9@byu.net>
26864
26865         Bump copyright year in files generated by gnulib-tool.
26866         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26867         gnulib-tool, rather than hard-coding it.
26868
26869         Fix 'gnulib-tool --version' output to work with git.
26870         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26871         (startup): ...here.
26872         (func_version): Use it to invoke git-version-gen, rather than
26873         relying on CVS keyword expansion.  Modernize wording.
26874         (cvsdatestamp, last_checkin_date, version): Kill unused
26875         variables.
26876
26877 2008-03-12  Jim Meyering  <meyering@redhat.com>
26878
26879         Recognize optional cast of the argument to free.
26880         * build-aux/useless-if-before-free: Update regexps.
26881
26882         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26883
26884 2008-03-11  Bruno Haible  <bruno@clisp.org>
26885
26886         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26887         by a single package.
26888         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26889         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26890         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26891         Reported by Sam Steingold <sds@gnu.org>.
26892
26893 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26894
26895         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26896         repositories.
26897
26898 2008-03-11  Bruno Haible  <bruno@clisp.org>
26899
26900         Avoid conflicts between local macro definitions.
26901         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26902         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26903
26904 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26905             Bruno Haible  <bruno@clisp.org>
26906
26907         Make va_copy work with some version of xlc on AIX 5.1.
26908         * lib/stdarg.in.h: New file.
26909         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26910         On AIX, use a <stdarg.h> file substitute.
26911         * modules/stdarg (Files): Add lib/stdarg.in.h.
26912         (Depends-on): Add include_next.
26913         (Makefile.am): Build a stdarg.h substitute if requested.
26914         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26915
26916 2008-03-10  Bruno Haible  <bruno@clisp.org>
26917
26918         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26919         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26920         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26921
26922 2008-03-10  Bruno Haible  <bruno@clisp.org>
26923
26924         * modules/stdlib (Depends-on): Add include_next, remove
26925         absolute-header.
26926
26927 2008-03-09  Bruno Haible  <bruno@clisp.org>
26928
26929         * lib/freadahead.h (freadahead): Document more precisely.
26930         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26931         the sum of both buffer sizes.
26932         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26933         * NEWS: Document the change.
26934
26935 2008-03-09  Bruno Haible  <bruno@clisp.org>
26936
26937         Extend freadptr to return also the buffer size.
26938         * lib/freadptr.h (freadptr): Add sizep argument.
26939         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26940         (freadptr): Add sizep argument. Determine buffer size like freadahead
26941         does.
26942         * tests/test-freadptr.c: Don't include freadahead.h.
26943         (main): Adapt for new calling convention of freadptr.
26944         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26945         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26946         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26947         tests/test-freadptr2.sh.
26948         (Depends): Remove freadahead.
26949         (TESTS): Add test-freadptr2.sh.
26950         (check_PROGRAMS): Add test-freadptr2.
26951
26952 2008-03-09  Bruno Haible  <bruno@clisp.org>
26953
26954         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26955         Report and solution by Simon Josefsson.
26956
26957 2008-03-06  Bruno Haible  <bruno@clisp.org>
26958
26959         Make fflush after ungetc work on BSD platforms.
26960         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26961         * tests/test-fflush2.c: New file.
26962         * tests/test-fflush2.sh: New file.
26963         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26964         tests/test-fflush2.c.
26965         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26966         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26967
26968 2008-03-06  Eric Blake  <ebb9@byu.net>
26969
26970         Likewise for ftello.
26971         * modules/ftello (Dependencies): Add extensions.
26972         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26973
26974 2008-03-06  Bruno Haible  <bruno@clisp.org>
26975
26976         * modules/fseeko (Dependencies): Add extensions.
26977         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26978         Needed on glibc systems.
26979
26980 2008-03-06  Bruno Haible  <bruno@clisp.org>
26981
26982         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26983         email address.
26984         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26985
26986 2008-03-06  Bruno Haible  <bruno@clisp.org>
26987
26988         * users.txt: Add libgnupdf.
26989
26990 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26991
26992         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26993         (Header File Substitutes, Function Substitutes,
26994         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26995         (Build robot for gnulib): Fix typo.
26996
26997 2008-03-06  Bruno Haible  <bruno@clisp.org>
26998
26999         * doc/gnulib-tool.texi (VCS Issues): Small updates.
27000         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27001
27002 2008-03-06  Bruno Haible  <bruno@clisp.org>
27003
27004         * doc/func.texi: New file, extracted from doc/gnulib.texi.
27005         * doc/gnulib.texi: Include it.
27006
27007 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27008
27009         * modules/func (License): Change license to unlimited; there was
27010         no LGPL parts in the module anyway.
27011
27012 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27013
27014         * modules/__func__: Renamed to modules/func.
27015         * modules/__func__-tests: Renamed to modules/func-tests.
27016         * tests/test-__func__.c: Renamed to tests/test-func.c.
27017         * m4/__func__.m4: Renamed to m4/func.m4.
27018         * doc/gnulib.texi (__func__): Section renamed to func.
27019         Suggested by Eric Blake <ebb9@byu.net>.
27020
27021 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27022
27023         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27024         about __func__.  Make example self-contained.  Suggested by Eric
27025         Blake <ebb9@byu.net>.
27026
27027         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27028         Suggested by Eric Blake <ebb9@byu.net>.
27029
27030 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27031
27032         * modules/__func__: New file.
27033         * modules/__func__-tests: New file.
27034         * tests/test-__func__.c: New file.
27035         * m4/__func__.m4: New file.
27036         * doc/gnulib.texi (__func__): Document __func__ module.
27037
27038 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27039
27040         * modules/byteswap (License): Re-license as LGPLv2+.
27041
27042 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27043
27044         * doc/Makefile: Add pdf target.
27045
27046 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27047
27048         * modules/inline (License): Use 'unlimited', since there are only
27049         *.m4 files in this module.
27050
27051 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27052             Bruno Haible  <bruno@clisp.org>
27053
27054         Add support for HP C 7.1 on OpenVMS 8.3.
27055         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27056
27057 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27058
27059         Update VMS specifics.
27060         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27061
27062 2008-03-02  Jim Meyering  <meyering@redhat.com>
27063
27064         Remove the last dependency on the "free" module.
27065         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27066         Reported by Bob Proulx.
27067
27068         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27069
27070         Remove useless "if" tests before free.  Deprecate "free" module.
27071         * doc/posix-functions/free.texi: Mention that this
27072         module is no longer useful.
27073         * modules/free (Notice): Say this module is obsolete.
27074         * modules/readutmp (Depends-on): Remove free.
27075         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27076         * lib/putenv.c (putenv): Likewise.
27077         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27078         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27079         * tests/test-c-strcasestr.c (main): Likewise.
27080         * tests/test-c-strstr.c (main): Likewise.
27081         * tests/test-mbscasestr1.c (main): Likewise.
27082         * tests/test-mbscasestr2.c (main): Likewise.
27083         * tests/test-mbsstr1.c (main): Likewise.
27084         * tests/test-mbsstr2.c (main): Likewise.
27085         * tests/test-memmem.c (main): Likewise.
27086         * tests/test-strcasestr.c (main): Likewise.
27087         * tests/test-striconv.c (main): Likewise.
27088         * tests/test-striconveh.c (main): Likewise.
27089         * tests/test-striconveha.c (main): Likewise.
27090         * tests/test-strstr.c (main): Likewise.
27091
27092         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27093
27094         bootstrap: sync from coreutils again
27095         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27096
27097 2008-03-01  Jim Meyering  <meyering@redhat.com>
27098
27099         bootstrap: sync from coreutils
27100         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27101         also when the target doesn't exist.
27102
27103 2008-03-01  Eric Blake  <ebb9@byu.net>
27104
27105         Fix bugs in last patch.
27106         * lib/memchr2.c (memchr2): Fix typo.
27107         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27108         extension.
27109         Reported by Bruce Korb.
27110
27111         New module 'memchr2'.
27112         * modules/memchr2: New file.
27113         * modules/memchr2-tests: Likewise.
27114         * lib/memchr2.h: Likewise.
27115         * lib/memchr2.c: Likewise, based on memchr.c.
27116         * tests/test-memchr2.c: New test.
27117         * MODULES.html.sh (String handling): Add memchr2.
27118
27119 2008-02-29  Bruno Haible  <bruno@clisp.org>
27120
27121         * modules/freadseek-tests: New file.
27122         * tests/test-freadseek.sh: New file.
27123         * tests/test-freadseek.c: New file.
27124
27125         New module 'freadseek'.
27126         * modules/freadseek: New file.
27127         * lib/freadseek.h: New file.
27128         * lib/freadseek.c: New file.
27129         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27130
27131 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27132
27133         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27134         wydawca.
27135
27136         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27137         program_invocation_name and program_invocation_short_name are
27138         present.
27139
27140 2008-02-28  Bruno Haible  <bruno@clisp.org>
27141
27142         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27143         * tests/test-freadptr.sh: Also test non-seekable stdin.
27144
27145 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27146
27147         * build-aux/bootstrap (source_base, m4_base)
27148         (doc_base, tests_base): New variables.
27149         (gnulib_tool_options): Do not hardcode base directories, use
27150         the above variables instead.
27151
27152 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27153
27154         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27155
27156 2008-02-28  Bruno Haible  <bruno@clisp.org>
27157
27158         * modules/freadptr-tests: New file.
27159         * tests/test-freadptr.sh: New file.
27160         * tests/test-freadptr.c: New file.
27161
27162         New module 'freadptr'.
27163         * modules/freadptr: New file.
27164         * lib/freadptr.h: New file.
27165         * lib/freadptr.c: New file.
27166         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27167
27168 2008-02-26  Karl Berry  <karl@freefriends.org>
27169
27170         Sync from Libtool:
27171         * libltdl/argz.c (argz_add, argz_count): New functions.
27172         * libltdl/argz.in.h: Declare them.
27173         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27174
27175 2008-02-22  Bruno Haible  <bruno@clisp.org>
27176
27177         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27178         is a pointer type.  Needed for HP-UX 10.
27179         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27180         * doc/posix-functions/gmtime_r.texi: Likewise.
27181         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27182
27183 2008-02-24  Bruno Haible  <bruno@clisp.org>
27184
27185         * modules/environ-tests: New file.
27186         * tests/test-environ.c: New file.
27187
27188         New module 'environ'.
27189         * modules/environ: New file.
27190         * lib/unistd.in.h (environ): New declaration.
27191         * m4/environ.m4: New file.
27192         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27193         after use.
27194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27195         HAVE_DECL_ENVIRON.
27196         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27197         HAVE_DECL_ENVIRON.
27198         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27199         wrong claim that 'environ' is missing on some systems.
27200         * modules/execute (Depends-on): Add environ.
27201         * lib/execute.c (environ): Remove fallback declaration.
27202         * modules/pipe (Depends-on): Add environ.
27203         * lib/pipe.c (environ): Remove fallback declaration.
27204         * modules/setenv (Depends-on): Add environ.
27205         * lib/setenv.c (environ): Remove fallback declaration.
27206         * modules/unsetenv (Depends-on): Add environ.
27207         * lib/unsetenv.c (environ): Remove fallback declaration.
27208         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27209         m4/environ.m4.
27210         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27211         (gl_PREREQ_UNSETENV): Likewise.
27212
27213 2008-02-24  Bruno Haible  <bruno@clisp.org>
27214
27215         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27216
27217 2008-02-20  Bob Proulx  <bob@proulx.com>
27218
27219         Enable use of older two part flavor 'git describe'.
27220         * build-aux/git-version-gen: If using the older two part flavor of
27221         git version then recreate the third part now present in the
27222         newer three part flavor of git describe.
27223
27224 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27225
27226         * lib/fts.c (fts_build): Typo correction to comment.
27227
27228 2008-02-17  Bruno Haible  <bruno@clisp.org>
27229
27230         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27231         generating no-op conflicts.
27232
27233 2008-02-17  Bruno Haible  <bruno@clisp.org>
27234
27235         Speed up by 10%.
27236         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27237         result_entries, rather than an index-based loop.
27238
27239 2008-02-17  Bruno Haible  <bruno@clisp.org>
27240
27241         Speed up by 25%.
27242         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27243         'hashcode_cached'.
27244         (entry_create): New function.
27245         (entry_hashcode): Use the cached hashcode if possible.
27246         (read_changelog_file, try_split_merged_entry): Use entry_create.
27247
27248 2008-02-17  Bruno Haible  <bruno@clisp.org>
27249
27250         Speed up from O(n^2) to O(n) for long ChangeLog files.
27251         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27252         (read_changelog_file): Change implementation of entries_reversed list
27253         to rbtreehash.
27254         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27255
27256 2008-02-17  Bruno Haible  <bruno@clisp.org>
27257
27258         New option --split-merged-entry.
27259         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27260         (find_paragraph_end, try_split_merged_entry): New functions.
27261         (long_options): Add option --split-merged-entry.
27262         (usage): Document option --split-merged-entry.
27263         (main): Implement option --split-merged-entry.
27264         Reported by Eric Blake.
27265
27266 2008-02-17  Bruno Haible  <bruno@clisp.org>
27267
27268         * lib/git-merge-changelog.c: Include c-strstr.h.
27269         (main): Support the "git pull --rebase" situation.
27270         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27271         Reported by Eric Blake.
27272
27273 2008-02-16  Eric Blake  <ebb9@byu.net>
27274
27275         Avoid doubling \ in common case of "c-maybe" quoting style.
27276         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27277         eliding outer quotes.
27278         * lib/quotearg.h: Document this.
27279         * tests/test-quotearg.c (result_strings, inputs, results_g)
27280         (flag_results, locale_results): Test it by adding a new string to
27281         each test group.
27282         (compare_strings): Test new string.
27283
27284 2008-02-13  Eric Blake  <ebb9@byu.net>
27285
27286         Avoid trigraph quoting in default output.
27287         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27288         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27289         unless explicitly requested.
27290         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27291
27292 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27293
27294         Don't rely on signed integer overflowing to negative value.
27295         * lib/getugroups.c (getugroups): Include <limits.h>.
27296         Instead, compare against INT_MAX, and increment only if the test passes.
27297
27298 2008-02-13  Jim Meyering  <meyering@redhat.com>
27299         and Eric Blake  <ebb9@byu.net>
27300
27301         Avoid shadowing warning and compile errors on Linux.
27302         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27303         forwarding macros on Linux.
27304         (dcgettext): Define a stub, for Linux.
27305         (results_g, main): Avoid warnings.
27306
27307 2008-02-12  Eric Blake  <ebb9@byu.net>
27308
27309         Silence warning in last patch.
27310         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27311
27312         Quotearg part 4: add tests, fix c-maybe colon quoting.
27313         * lib/quotearg.h: Improve documentation.
27314         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27315         escapes when adding outer quotes.  When quoting trigraphs, use
27316         valid C notation.  When quoting NUL, omit extra characters if next
27317         character is not digit.  Alter prototype.
27318         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27319         callers.
27320         * modules/quotearg-tests: New module.
27321         * tests/test-quotearg.c: New test.
27322
27323 2008-02-07  Eric Blake  <ebb9@byu.net>
27324
27325         Quotearg part 3: add flag to control outer quote elision.
27326         * lib/quotearg.h (c_maybe_quoting_style): New style.
27327         (enum quoting_flags): Better documentation of flags.
27328         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27329         c-maybe style.
27330         (quotearg_buffer_restyled): Handle new flag to elide outer
27331         quotes.
27332
27333         Quotearg part 2: add flag that can control NUL elision.
27334         * lib/quotearg.h (set_quoting_flags): New prototype.
27335         * lib/quotearg.c (struct quoting_options): Add flag field.
27336         (set_quoting_flags): New function.
27337         (quotearg_buffer_restyled): Add flags parameter.
27338         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27339         (quotearg_n_options): Set the flag, since length cannot be
27340         returned.
27341         (quoting_options_from_style): Default flags correctly.
27342
27343         Quotearg part 1: more wrappers, restore quotearg_char state.
27344         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27345         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27346         (quotearg_colon_mem): New wrappers.
27347         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27348         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27349         functions.
27350         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27351         (quotearg_colon_mem): New functions.
27352
27353 2008-02-11  Bruno Haible  <bruno@clisp.org>
27354
27355         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27356         library in the current directory: it does not work with parallel make.
27357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27358
27359 2008-02-11  Bruno Haible  <bruno@clisp.org>
27360
27361         * .gitattributes: New file.
27362
27363 2008-02-11  Jim Meyering  <meyering@redhat.com>
27364
27365         useless-if-before-free: Fix reversed exit values.
27366         * build-aux/useless-if-before-free: Use correct values
27367         for EXIT_MATCH and EXIT_NO_MATCH.
27368
27369         * build-aux/useless-if-before-free: Close stdout carefully.
27370
27371 2008-02-10  Bruno Haible  <bruno@clisp.org>
27372
27373         New module 'git-merge-changelog'.
27374         * modules/git-merge-changelog: New file.
27375         * lib/git-merge-changelog.c: New file.
27376
27377 2008-02-10  Jim Meyering  <meyering@redhat.com>
27378
27379         useless-if-before-free: New option: --list (-l).
27380
27381         useless-if-before-free: Don't exit immediately upon open failure.
27382         * build-aux/useless-if-before-free: Exit 2 for errors.
27383         Upon failure to open a file, don't exit immediately.
27384         Rather, just warn and continue with any remaining files.
27385
27386 2008-02-10  Bruno Haible  <bruno@clisp.org>
27387
27388         New abstract list operation 'node_set_value'.
27389         * lib/gl_list.h (gl_list_node_set_value): New function.
27390         (struct gl_list_implementation): New field node_set_value.
27391         * lib/gl_list.c (gl_list_node_set_value): New function.
27392         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27393         (gl_array_list_implementation): Update.
27394         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27395         (gl_carray_list_implementation): Update.
27396         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27397         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27398         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27399         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27400         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27401         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27402         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27403         Update.
27404         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27405         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27406         (gl_sublist_list_implementation): Update.
27407
27408 2008-02-10  Bruno Haible  <bruno@clisp.org>
27409
27410         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27411         Needed when ELEMENT is #defined to 'some_type *'.
27412
27413 2008-02-10  Jim Meyering  <meyering@redhat.com>
27414
27415         New script and module: useless-if-before-free
27416         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27417         * build-aux/useless-if-before-free: New file.
27418         * modules/useless-if-before-free: New file.
27419
27420         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27421
27422         xstrtol_error: Fix typo.
27423         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27424         s/exit_failure/exit_status/.
27425
27426 2008-02-09  Jim Meyering  <meyering@redhat.com>
27427
27428         New script and module: gitlog-to-changelog
27429         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27430         * modules/gitlog-to-changelog: New file.
27431         * build-aux/gitlog-to-changelog: New file.
27432
27433 2008-02-08  Jim Meyering  <meyering@redhat.com>
27434
27435         Avoid two "parameter unused" warnings.
27436         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27437         Mark "st" as used.
27438
27439         Use "git COMMAND", not "git-COMMAND".
27440         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27441         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27442         * build-aux/git-version-gen: Use "git status", not "git-status".
27443
27444 2008-02-07  Bruno Haible  <bruno@clisp.org>
27445
27446         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27447         Avoids a crash on Windows Vista.
27448         Reported by Adam Strzelecki <ono@java.pl> via
27449         Simon Josefsson <simon@josefsson.org>.
27450
27451 2008-02-06  Bruno Haible  <bruno@clisp.org>
27452
27453         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27454         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27455         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27456         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27457         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27458         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27459         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27460         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27461         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27462         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27464         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27465         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27466         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27467         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27468         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27469         left-adjust flag.
27470         * tests/test-snprintf-posix.h (test_function): Likewise.
27471         * tests/test-sprintf-posix.h (test_function): Likewise.
27472         * tests/test-vasprintf-posix.c (test_function): Likewise.
27473         * doc/posix-functions/fprintf.texi: Update.
27474         * doc/posix-functions/printf.texi: Update.
27475         * doc/posix-functions/snprintf.texi: Update.
27476         * doc/posix-functions/sprintf.texi: Update.
27477         * doc/posix-functions/vfprintf.texi: Update.
27478         * doc/posix-functions/vprintf.texi: Update.
27479         * doc/posix-functions/vsnprintf.texi: Update.
27480         * doc/posix-functions/vsprintf.texi: Update.
27481         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27482
27483 2008-02-06  Bruno Haible  <bruno@clisp.org>
27484
27485         Fix bug introduced on 2008-01-26.
27486         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27487
27488 2008-02-06  Bruno Haible  <bruno@clisp.org>
27489
27490         Fix bug introduced on 2007-06-10.
27491         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27492         !NEED_PRINTF_FLAG_ZERO.
27493
27494 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27495
27496         getloadavg: use libperfstat on AIX5
27497         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27498
27499 2008-02-03  Bruno Haible  <bruno@clisp.org>
27500
27501         * lib/diffseq.h: Add comments about required #includes.
27502         Reported by Michael Biggs <gnulib@doubleplum.net>.
27503
27504 2008-02-01  Bruno Haible  <bruno@clisp.org>
27505
27506         * users.txt: Add gnuit.
27507
27508 2008-01-31  Bruno Haible  <bruno@clisp.org>
27509
27510         * lib/md4.c (set_uint32): Mark as inline.
27511         * lib/md5.c (set_uint32): Likewise.
27512         * lib/sha1.c (set_uint32): Likewise.
27513         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27514         * m4/md5.m4 (gl_MD5): Likewise.
27515         * m4/sha1.m4 (gl_SHA1): Likewise.
27516
27517 2008-01-31  Jim Meyering  <meyering@redhat.com>
27518
27519         Use "sizeof VAR", rather than a literal "4".
27520         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27521         * lib/md4.c (md4_read_ctx): Likewise.
27522         * lib/sha1.c (sha1_read_ctx): Likewise.
27523
27524 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27525
27526         * tests/test-sha1.c: New file, based on test-md5.c.
27527
27528         * modules/crypto/sha1-tests: New file.
27529
27530 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27531
27532         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27533
27534 2008-01-31  Jim Meyering  <meyering@redhat.com>
27535
27536         Prefer "sizeof v" over the equivalent "4".
27537         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27538         * lib/md5.c (set_uint32): Likewise.
27539         * lib/sha1.c (set_uint32): Likewise.
27540
27541 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27542
27543         * lib/sha1.c (set_uint32): Mark function as static.
27544
27545 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27546
27547         md2: clarify comments to say that alignment is not required.
27548         * lib/md2.h: Remove warning about alignment in comment.
27549         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27550         never been required.
27551
27552 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27553
27554         md4: adapt alignment constraint fix from sha1.
27555         * lib/md4.c (set_uint32): New function, from sha1.c
27556         (md4_read_ctx): Use it.
27557         (md4_finish_ctx): Doc fix.
27558         * lib/md4.h: Doc fix.
27559
27560 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27561
27562         md5: adapt alignment constraint fix from sha1.
27563         * lib/md5.c (set_uint32): New function, from sha1.c
27564         (md5_read_ctx): Use it.
27565         (md5_finish_ctx): Doc fix.
27566         * lib/md5.h: Doc fix.
27567
27568 2008-01-30  Peter Palfrader  <weasel@debian.org>
27569
27570         sha1: remove the result buffer alignment constraint
27571         * lib/sha1.c (set_uint32): New function.
27572         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27573         constraint.
27574         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27575         * lib/sha1.h: Likewise.
27576
27577 2008-01-30  Andreas Schwab  <schwab@suse.de>
27578             Bruno Haible  <bruno@clisp.org>
27579
27580         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27581         correct definition of LDBL_MIN_EXP.
27582
27583 2008-01-30  Karl Berry  <karl@gnu.org>
27584
27585         * config/srclist-update: try to preserve x bit on updates.
27586         * config/srclistvars.sh: update for karl.
27587
27588 2008-01-29  Jim Meyering  <meyering@redhat.com>
27589
27590         vasnprintf.c: Avoid warning about unused label
27591         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27592         "overflow" label definition and associated code with the
27593         same cpp condition that guards the sole use of that label.
27594
27595 2008-01-26  Bruno Haible  <bruno@clisp.org>
27596
27597         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27598         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27599         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27600         * lib/isnanl-nolibm.h (isnanl): Likewise.
27601         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27602
27603 2008-01-26  Bruno Haible  <bruno@clisp.org>
27604
27605         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27606         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27607
27608 2008-01-26  Bruno Haible  <bruno@clisp.org>
27609
27610         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27611         GCC >= 4.0 built-in.
27612         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27613
27614 2008-01-26  Bruno Haible  <bruno@clisp.org>
27615
27616         Rename isnan, applicable to 'double' only, to isnand.
27617         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27618         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27619         (configure.ac): Update.
27620         (Include): Replace "isnan.h" with "isnand.h".
27621         * m4/isnand.m4: Renamed from m4/isnan.m4.
27622         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27623         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27624         instead of isnan.c.
27625         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27626         instead of HAVE_ISNAN_IN_LIBC.
27627         (isnand): Renamed from isnan.
27628         * lib/isnand.c: New file.
27629         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27630         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27631         (Makefile.am): Update.
27632         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27633         Include isnand.h instead of isnan.h.
27634         (main): Test isnand instead of isnan.
27635         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27636         isnan-nolibm.
27637         * modules/frexp (Depends-on): Likewise.
27638         * modules/frexp-tests (Depends-on): Likewise.
27639         * modules/frexp-nolibm (Depends-on): Likewise.
27640         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27641         * modules/isfinite (Depends-on): Likewise.
27642         * modules/round-tests (Depends-on): Likewise.
27643         * modules/signbit (Depends-on): Likewise.
27644         * modules/signbit-tests (Depends-on): Likewise.
27645         * modules/snprintf-posix (Depends-on): Likewise.
27646         * modules/sprintf-posix (Depends-on): Likewise.
27647         * modules/trunc-tests (Depends-on): Likewise.
27648         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27649         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27650         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27651         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27652         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27653         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27654         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27655         * modules/vasnprintf-posix (Depends-on): Likewise.
27656         * modules/vasprintf-posix (Depends-on): Likewise.
27657         * modules/vfprintf-posix (Depends-on): Likewise.
27658         * modules/vsnprintf-posix (Depends-on): Likewise.
27659         * modules/vsprintf-posix (Depends-on): Likewise.
27660         * lib/frexp.c: Include isnand.h instead of isnan.h.
27661         (ISNAN): Set to isnand instead of isnan.
27662         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27663         (gl_isfinited): Use isnand instead of isnan.
27664         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27665         (gl_signbitd): Use isnand instead of isnan.
27666         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27667         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27668         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27669         (main): Use isnand instead of isnan.
27670         * tests/test-round1.c: Include isnand.h.
27671         (main): Use isnand instead of isnan.
27672         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27673         (ISNAN): Set to isnand instead of isnan.
27674         * tests/test-trunc1.c: Include isnand.h.
27675         (main): Use isnand instead of isnan.
27676         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27677         (equal): Use isnand instead of isnan.
27678         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27679         isnand-nolibm.
27680         * NEWS: Mention the change.
27681
27682 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27683             Bruno Haible  <bruno@clisp.org>
27684
27685         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27686         the GCC builtins for signbits are present and set
27687         REPLACE_SIGNBIT_USING_GCC if so.
27688         * lib/math.in.h (signbit): Define using GCC builtins if
27689         REPLACE_SIGNBIT_USING_GCC is set.
27690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27691         REPLACE_SIGNBIT_USING_GCC.
27692         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27693
27694 2008-01-25  Jim Meyering  <meyering@redhat.com>
27695
27696         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27697         * lib/poll.c: Include <config.h>, not "config.h".
27698         * tests/test-getaddrinfo.c: Likewise.
27699
27700 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27701
27702         * modules/sockets-tests: New file.
27703
27704 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27705
27706         * modules/sockets: New module, can be used to call WSA_Startup and
27707         WSA_Cleanup when needed.
27708
27709         * lib/sockets.h, lib/sockets.c: New files.
27710
27711         * m4/sockets.m4: New file.
27712
27713         * tests/test-sockets.c: New file.
27714
27715 2008-01-19  Bruno Haible  <bruno@clisp.org>
27716
27717         * doc/posix-headers: Renamed from doc/headers.
27718         * doc/posix-functions: Renamed from doc/functions.
27719         * doc/gnulib.texi: Update.
27720
27721 2008-01-19  Bruno Haible  <bruno@clisp.org>
27722
27723         * doc/glibc-functions/strcasestr.texi: Include contents of
27724         doc/functions/strcasestr.texi, fixing the list of platforms.
27725         * doc/functions/strcasestr.texi: Remove file.
27726
27727 2008-01-19  Bruno Haible  <bruno@clisp.org>
27728
27729         * doc/glibc-functions/memmem.texi: Include contents of
27730         doc/functions/memmem.texi.
27731         * doc/functions/memmem.texi: Remove file.
27732
27733 2008-01-18  Bruno Haible  <bruno@clisp.org>
27734
27735         * doc/glibc-functions/*.texi: New files.
27736         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27737         to use the new files.
27738
27739 2008-01-17  Bruno Haible  <bruno@clisp.org>
27740
27741         * tests/test-gethostname.c (main): Fix printf statement.
27742
27743 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27744
27745         * modules/gethostname-tests: New file.
27746
27747         * tests/test-gethostname.c: New file.
27748
27749 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27750
27751         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27752         used by the UNAME case.  Reported by Bruno Haible
27753         <bruno@clisp.org>.
27754
27755 2008-01-17  Eric Blake  <ebb9@byu.net>
27756
27757         Convert c-strcasestr to be more efficient.
27758         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27759         (Depends-on): Add c-strcase, remove malloca, strnlen.
27760         * tests/test-c-strcasestr.c (main): Enhance test.
27761         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27762
27763 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27764
27765         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27766         Use it in creating po/Makevars.
27767
27768 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27769
27770         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27771         Applications that requires it should initialize libgcrypt
27772         manually.
27773
27774 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27775
27776         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27777
27778 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27779
27780         Fix problem with getdate on mingw32 reported by Simon Josefsson
27781         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27782         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27783         tzname", when deciding whether to declare tzname.
27784         * lib/strftime.c (tzname): Likewise.
27785
27786 2008-01-15  Bruno Haible  <bruno@clisp.org>
27787
27788         Work around a MacOS X 10.5 bug in frexpl().
27789         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27790         * doc/functions/frexpl.texi: Document the bug.
27791         Reported by Elias Pipping <pipping@gentoo.org>.
27792
27793 2008-01-14  Eric Blake  <ebb9@byu.net>
27794
27795         Touch up previous patch.
27796         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27797         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27798
27799         Convert strcasestr module to use Two-Way algorithm.
27800         * modules/strcasestr-simple: New module, based on the old
27801         strcasestr, but with Two-Way rather than KMP.
27802         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27803         * lib/string.in.h (rpl_strcasestr): Declare.
27804         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27805         performance.
27806         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27807         * modules/string (Makefile.am): Support strcasestr.
27808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27809         * modules/strcasestr-tests (Depends-on): Check for alarm.
27810         * tests/test-strcasestr.c: Augment test.
27811         * lib/str-two-way.h: Clean up stray macro.
27812         * NEWS: Document new module.
27813         * MODULES.html.sh (string handling): Likewise.
27814         * doc/functions/strcasestr.texi: New file.
27815         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27816         here, since it is not a POSIX function.
27817
27818 2008-01-14  Colin Watson  <cjwatson@debian.org>
27819             Bruno Haible  <bruno@clisp.org>
27820
27821         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27822         works fine; if not, set REPLACE_STRSIGNAL.
27823         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27825         REPLACE_STRSIGNAL.
27826         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27827         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27828         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27829
27830 2008-01-14  Bruno Haible  <bruno@clisp.org>
27831
27832         * modules/strsignal (Include): Change to <string.h>.
27833
27834 2008-01-14  Colin Watson  <cjwatson@debian.org>
27835
27836         * modules/argp (Notice): Add a notice recommending to change
27837         XGETTEXT_OPTIONS.
27838         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27839
27840 2008-01-13  Colin Watson  <cjwatson@debian.org>
27841
27842         * modules/strsignal-tests: New file.
27843         * tests/test-strsignal.c: New file.
27844
27845         * lib/strsignal.c: New file, from glibc with modifications.
27846         * lib/siglist.h: New file, from glibc with modifications.
27847         * lib/string.in.h (strsignal): New declaration.
27848         * m4/strsignal.m4: New file.
27849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27850         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27851         * modules/strsignal: New file.
27852         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27853         HAVE_DECL_STRSIGNAL.
27854
27855 2008-01-13  Bruno Haible  <bruno@clisp.org>
27856
27857         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27858         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27859         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27860         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27861
27862 2008-01-13  Bruno Haible  <bruno@clisp.org>
27863
27864         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27865         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27866         * lib/argp.h (__attribute__): Likewise.
27867         * lib/c-stack.c (__attribute__): Likewise.
27868         * lib/error.h (__attribute__): Likewise.
27869         * lib/fts.c (__attribute__): Likewise.
27870         * lib/openat.h (__attribute__): Likewise.
27871         * lib/stdio.in.h (__attribute__): Likewise.
27872         * lib/string.in.h (__attribute__): Likewise.
27873         * lib/utimens.c (__attribute__): Likewise.
27874         * lib/vasnprintf.h (__attribute__): Likewise.
27875         * lib/xalloc.h (__attribute__): Likewise.
27876         * lib/xprintf.h (__attribute__): Likewise.
27877         * lib/xstrtol.h (__attribute__): Likewise.
27878         * lib/xvasprintf.h (__attribute__): Likewise.
27879
27880 2008-01-12  Bruno Haible  <bruno@clisp.org>
27881
27882         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27883         * doc/glibc-headers/a.out.texi: New file.
27884         * doc/glibc-headers/aliases.texi: New file.
27885         * doc/glibc-headers/alloca.texi: New file.
27886         * doc/glibc-headers/ar.texi: New file.
27887         * doc/glibc-headers/argp.texi: New file.
27888         * doc/glibc-headers/argz.texi: New file.
27889         * doc/glibc-headers/byteswap.texi: New file.
27890         * doc/glibc-headers/crypt.texi: New file.
27891         * doc/glibc-headers/endian.texi: New file.
27892         * doc/glibc-headers/envz.texi: New file.
27893         * doc/glibc-headers/err.texi: New file.
27894         * doc/glibc-headers/error.texi: New file.
27895         * doc/glibc-headers/execinfo.texi: New file.
27896         * doc/glibc-headers/fpu_control.texi: New file.
27897         * doc/glibc-headers/fstab.texi: New file.
27898         * doc/glibc-headers/fts.texi: New file.
27899         * doc/glibc-headers/getopt.texi: New file.
27900         * doc/glibc-headers/ieee754.texi: New file.
27901         * doc/glibc-headers/ifaddrs.texi: New file.
27902         * doc/glibc-headers/libintl.texi: New file.
27903         * doc/glibc-headers/mcheck.texi: New file.
27904         * doc/glibc-headers/mntent.texi: New file.
27905         * doc/glibc-headers/obstack.texi: New file.
27906         * doc/glibc-headers/paths.texi: New file.
27907         * doc/glibc-headers/printf.texi: New file.
27908         * doc/glibc-headers/pty.texi: New file.
27909         * doc/glibc-headers/resolv.texi: New file.
27910         * doc/glibc-headers/shadow.texi: New file.
27911         * doc/glibc-headers/sysexits.texi: New file.
27912         * doc/glibc-headers/ttyent.texi: New file.
27913
27914 2008-01-12  Jim Meyering  <meyering@redhat.com>
27915
27916         announce-gen: emit Gnulib's git-based version string.
27917         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27918         New option --gnulib-version=V, where V is expected to be
27919         the output of running git describe in the gnulib directory.
27920         (get_tool_versions): Request feedback on xdelta.  I suspect it's
27921         not useful, and plan to stop publishing an xdelta file with each
27922         coreutils release.
27923
27924         * build-aux/announce-gen: Also check for lzma-compressed files.
27925
27926 2008-01-11  Bruno Haible  <bruno@clisp.org>
27927
27928         * tests/test-memmem.c (main): Increase maximum allowed time.
27929         * tests/test-strstr.c (main): Likewise.
27930
27931 2008-01-11  Bruno Haible  <bruno@clisp.org>
27932
27933         * doc/functions/memmem.texi: Add more precisions about platforms.
27934         * doc/functions/strstr.texi: Likewise.
27935
27936 2008-01-10  Eric Blake  <ebb9@byu.net>
27937
27938         * m4/strstr.m4: Delete cruft from copy-n-paste.
27939         Reported by Bruno Haible.
27940
27941 2008-01-10  Bruno Haible  <bruno@clisp.org>
27942
27943         Make c-strstr rely on strstr.
27944         * lib/c-strstr.c: Don't include str-kmp.h.
27945         (c_strstr): Define in terms of strstr.
27946         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27947         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27948
27949 2008-01-10  Bruno Haible  <bruno@clisp.org>
27950
27951         * doc/gnulib.texi (String Functions in C Locale): New section.
27952         * doc/c-ctype.texi: New file.
27953         * doc/c-strcase.texi: New file.
27954         * doc/c-strcaseeq.texi: New file.
27955         * doc/c-strcasestr.texi: New file.
27956         * doc/c-strstr.texi: New file.
27957         * doc/c-strtod.texi: New file.
27958         * doc/c-strtold.texi: New file.
27959
27960 2008-01-10  Eric Blake  <ebb9@byu.net>
27961
27962         * lib/relocatable.h: Fix a comment.
27963
27964 2008-01-10  Eric Blake  <ebb9@byu.net>
27965
27966         Share two-way algorithm.
27967         * lib/str-two-way.h: New file, merged from...
27968         * lib/memmem.c: ...here...
27969         * lib/strstr.c: ...and here.
27970         * modules/memmem (Files): Use it.
27971         * modules/strstr (Files): Likewise.
27972
27973         Avoid quadratic strstr implementations.
27974         * lib/strstr.c: New file.
27975         * m4/strstr.m4: Likewise.
27976         * modules/strstr: Likewise.
27977         * modules/strstr-tests: Likewise.
27978         * tests/test-strstr.c: Likewise.
27979         * lib/string.in.h (rpl_strstr): Declare.
27980         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27981         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27982         * modules/string (Makefile.am): Likewise.
27983         * MODULES.html.sh (string handling): Mention new module.
27984         * doc/functions/strstr.texi (strstr): Document the bug.
27985
27986 2008-01-10  Bruno Haible  <bruno@clisp.org>
27987
27988         * lib/relocatable.h (relocate): State whether result is freshly
27989         allocated or not.
27990         * lib/relocatable.c (relocate): Return a freshly allocated string
27991         instead of a pointer to a privately held string.
27992         Reported by Sylvain Beucler <beuc@gnu.org>.
27993
27994 2008-01-10  Colin Watson  <cjwatson@debian.org>
27995
27996         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27997         s/S_ISNLK/S_ISLNK/.
27998
27999 2008-01-09  Bruno Haible  <bruno@clisp.org>
28000
28001         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
28002         and other files.
28003         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
28004         if it's only a guess.
28005         * modules/memmem: Simplify by depending on memmem-simple.
28006
28007 2008-01-09  Bruno Haible  <bruno@clisp.org>
28008
28009         Work around OpenBSD 4.0 tdelete() bug.
28010         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28011         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28012         macros and don't redefine the enum values.
28013         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28014         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28015         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28016
28017 2008-01-09  Bruno Haible  <bruno@clisp.org>
28018
28019         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28020         (main): Don't perform the tests if setlocale did not install a UTF-8
28021         locale. Needed on OpenBSD 4.0.
28022         * modules/wcwidth-tests (Depends-on): Add localcharset.
28023
28024 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28025
28026         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28027         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28028         * NEWS: announce this.
28029         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28030
28031 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28032         and Eric Blake  <ebb9@byu.net>
28033
28034         Add memmem-simple module.
28035         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28036         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28037         * modules/memmem-simple: New file.
28038         * modules/memmem (Description): Tweak.
28039         * MODULES.html.sh (string handling): Mention new module.
28040         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28041         addressed by memmem-simple.
28042         * NEWS: Document the difference.
28043
28044 2008-01-09  Eric Blake  <ebb9@byu.net>
28045
28046         Give gcc some memmem optimization hints.
28047         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28048         (strcasestr): Declare as pure.
28049         * modules/memmem (Maintainer): Claim my implementation.
28050
28051 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28052
28053         Support AIX 6.1 and higher.
28054         * build-aux/config.libpath: Likewise.
28055         * build-aux/config.rpath: Likewise.
28056
28057 2008-01-08  Jim Meyering  <meyering@redhat.com>
28058             Bruno Haible  <bruno@clisp.org>
28059
28060         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28061         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28062         Reported by Peter Fales in
28063         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28064
28065 2008-01-08  Bruno Haible  <bruno@clisp.org>
28066
28067         * modules/unictype/category-of (Depends-on): Add
28068         unictype/category-none.
28069         * modules/unictype/category-and-tests (Depends-on): Add
28070         unictype/category-{L,N,Lu,Nd}.
28071         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28072         * modules/unictype/category-or-tests (Depends-on): Add
28073         unictype/category-{L,N}.
28074         * modules/unictype/category-name-tests (Depends-on): Add
28075         unictype/category-{Z,Nl}.
28076         Reported by Simon Josefsson.
28077
28078 2008-01-08  Bruno Haible  <bruno@clisp.org>
28079
28080         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28081         convention better.
28082         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28083         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28084         Reported by Peter Miller <millerp@canb.auug.org.au>.
28085
28086 2008-01-08  Eric Blake  <ebb9@byu.net>
28087
28088         Rewrite memmem to guarantee linear complexity without malloc.
28089         * lib/memmem.c (memmem): Use Two-Way rather than
28090         Knuth-Morris-Pratt, to allow O(1) space usage.
28091         (critical_factorization, two_way_short_needle)
28092         (two_way_long_needle): New functions.
28093         (knuth_morris_pratt): Delete.
28094         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28095         Add stdint.
28096         * tests/test-memmem.c (main): Add tests for periodic needle and
28097         sublinear performance.
28098         * doc/functions/memmem.texi (memmem): Document other deficiencies
28099         in cygwin and older glibc.
28100
28101 2008-01-08  Bruno Haible  <bruno@clisp.org>
28102
28103         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28104         augmentation.
28105
28106 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28107
28108         Add a configure time option: --disable-acl.
28109         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28110         AC_ARG_ENABLE(acl).
28111
28112 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28113
28114         * tests/test-localename.c: Don't include obsolete "setenv.h".
28115
28116         * modules/localename-tests (Depends-on): Need unsetenv.
28117
28118 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28119
28120         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28121
28122 2008-01-06  Colin Watson  <cjwatson@debian.org>
28123
28124         * users.txt: Add man-db.
28125
28126 2008-01-07  Bruno Haible  <bruno@clisp.org>
28127
28128         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28129         previous section name.
28130
28131 2008-01-07  Bruno Haible  <bruno@clisp.org>
28132
28133         * lib/progname.c (set_program_name): Don't strip off a leading
28134         "lt-" prefix outside a .libs directory.
28135         Suggested by Paul Eggert.
28136
28137 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28138             Bruno Haible  <bruno@clisp.org>
28139
28140         Improve memory cleanup in 'relocatable' module.
28141         * lib/relocatable.h (compute_curr_prefix): Change return type to
28142         'char *'.
28143         * lib/relocatable.c (compute_curr_prefix): Change return type to
28144         'char *'. Free curr_installdir after use.
28145         (relocate): Free curr_prefix_better after use.
28146         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28147
28148 2008-01-01  Bruno Haible  <bruno@clisp.org>
28149
28150         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28151         failure on older glibc systems.
28152         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28153
28154 2008-01-05  Eric Blake  <ebb9@byu.net>
28155
28156         Avoid quadratic system memmem.
28157         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28158         Reported by Ralf Wildenhues.
28159
28160         Fix memmem test for mingw.
28161         * modules/memmem-tests (configure.ac): Check for alarm.
28162         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28163         it.
28164         * doc/functions/memmem.texi: New file.
28165         * doc/gnulib.texi (Function Substitutes): Add memmem.
28166         Reported by Bruno Haible.
28167
28168 2008-01-04  Bruno Haible  <bruno@clisp.org>
28169
28170         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28171         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28172         gl_HEADER_STRING_H_DEFAULTS.
28173
28174 2008-01-04  Eric Blake  <ebb9@byu.net>
28175
28176         Shorten duration of memmem test.
28177         * tests/test-memmem.c (main): Use alarm to declare failure if test
28178         is taking too long.
28179         Reported by Ralf Wildenhues.
28180
28181 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28182
28183         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28184         string, needed by strerror.
28185
28186 2008-01-03  Colin Watson  <cjwatson@debian.org>
28187             Bruno Haible  <bruno@clisp.org>
28188
28189         * doc/gnulib-tool.texi (Localization): New section.
28190
28191 2008-01-02  Bruno Haible  <bruno@clisp.org>
28192
28193         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28194         variables to 'unsigned char *' type.
28195         Reported by Paul Eggert.
28196
28197 2008-01-02  Jim Meyering  <jim@meyering.net>
28198
28199         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28200
28201 2007-12-31  Jim Meyering  <jim@meyering.net>
28202
28203         Avoid use of private FTS type name.
28204         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28205
28206 2007-12-30  Karl Berry  <karl@gnu.org>
28207
28208         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28209         work around defect in Texinfo and/or the standalone Info browser.
28210
28211 2007-12-30  Bruno Haible  <bruno@clisp.org>
28212
28213         Unify 5 copies of the KMP code.
28214         * lib/str-kmp.h: New file.
28215         * lib/c-strcasestr.c: Include str-kmp.h.
28216         (knuth_morris_pratt): Remove function.
28217         (c_strcasestr): Update.
28218         * lib/c-strstr.c: Include str-kmp.h.
28219         (knuth_morris_pratt): Remove function.
28220         (c_strcasestr): Update.
28221         * lib/mbscasestr.c: Include str-kmp.h.
28222         (knuth_morris_pratt_unibyte): Remove function.
28223         * lib/mbsstr.c: Include str-kmp.h.
28224         (knuth_morris_pratt_unibyte): Remove function.
28225         * lib/strcasestr.c: Include str-kmp.h.
28226         (knuth_morris_pratt): Remove function.
28227         (strcasestr): Update.
28228         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28229         * modules/c-strstr (Files): Likewise.
28230         * modules/mbscasestr (Files): Likewise.
28231         * modules/mbsstr (Files): Likewise.
28232         * modules/strcasestr (Files): Likewise.
28233         Suggested by Paul Eggert.
28234
28235 2007-12-30  Bruno Haible  <bruno@clisp.org>
28236
28237         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28238         defined.
28239
28240 2007-12-30  Bruno Haible  <bruno@clisp.org>
28241
28242         * lib/xmalloca.h: Include xalloc.h.
28243         (xnmalloca): New macro.
28244
28245 2007-12-30  Bruno Haible  <bruno@clisp.org>
28246
28247         * lib/malloca.h (nmalloca): New macro.
28248         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28249         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28250         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28251         knuth_morris_pratt_multibyte): Likewise.
28252         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28253         knuth_morris_pratt_multibyte): Likewise.
28254         * lib/memmem.c (knuth_morris_pratt): Likewise.
28255         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28256
28257 2007-12-25  Bruno Haible  <bruno@clisp.org>
28258
28259         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28260         * lib/glob.c: Don't include openat.h.
28261         (link_exists2_p): Add back the code that deals with the
28262         !GLOB_ALTDIRFUNC case.
28263         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28264         let it do the filename concatenation.
28265         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28266         * modules/glob (Depends-on): Remove openat.
28267
28268 2007-12-31  Bruno Haible  <bruno@clisp.org>
28269
28270         * modules/dirfd (License): Change to LGPLv2+.
28271         Approved by Jim Meyering.
28272
28273 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28274
28275         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28276         when multiplying M by sizeof (size_t).
28277
28278 2007-12-10  Martin Lambers  <marlam@marlam.de>
28279
28280         Override getpagesize on mingw.
28281         * lib/getpagesize.c: New file.
28282         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28283         * modules/getpagesize (Files): Add lib/getpagesize.c.
28284         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28286         REPLACE_GETPAGESIZE.
28287         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28288
28289 2007-12-25  Bruno Haible  <bruno@clisp.org>
28290
28291         * modules/localcharset (Notice): New field.
28292         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28293         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28294
28295 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28296             Bruno Haible  <bruno@clisp.org>
28297
28298         Avoid using the syntax symbol() in formatted documentation.
28299         * MODULES.html.sh (func_module): When replacing symbol() with a
28300         hyperlink, remove the parentheses. Show an error if some remain.
28301         Recognize and render the '...' syntax.
28302         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28303         Rework. Add paragraph about GCC's inlining.
28304         * doc/alloca.texi: Likewise.
28305         * doc/error.texi: Remove parentheses from symbol reference.
28306         * doc/gnulib-intro.texi: Likewise.
28307         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28308         * modules/fnmatch (Description): Reword to say "the ... function".
28309         * modules/full-read (Description): Likewise.
28310         * modules/full-write (Description): Likewise.
28311         * modules/safe-read (Description): Likewise.
28312         * modules/safe-write (Description): Likewise.
28313         * modules/strchrnul (Description): Likewise.
28314         * modules/trim (Description): Likewise.
28315         * modules/error (Description): Remove parentheses from symbol
28316         references.
28317         * modules/verror (Description): Likewise.
28318         Reported by Karl Berry.
28319
28320 2007-12-25  Bruno Haible  <bruno@clisp.org>
28321
28322         Fixup after 2007-10-16 commit.
28323         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28324
28325 2007-12-24  Bruno Haible  <bruno@clisp.org>
28326
28327         Make --enable-relocatable work with DESTDIR.
28328         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28329         to compute installdir from destprog.
28330         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28331         also set the RELOC_DESTDIR variable.
28332         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28333
28334 2007-12-24  Bruno Haible  <bruno@clisp.org>
28335
28336         Fix link error due to xalloc_die().
28337         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28338         of xreadlink.
28339         * lib/relocwrapper.c: Update comments.
28340         * build-aux/install-reloc: Remove xreadlink.c from file list.
28341         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28342         xreadlink.c.
28343         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28344
28345 2007-12-24  Bruno Haible  <bruno@clisp.org>
28346
28347         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28348         * lib/setenv.h: Remove file.
28349         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28350         lib/setenv.h.
28351         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28352         (Depends-on): Add stdlib.
28353         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28354         gl_FUNC_UNSETENV.
28355         (Include): Replace setenv.h with <stdlib.h>.
28356         * modules/unsetenv: New file.
28357         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28358         * lib/unsetenv.c: Include <stdlib.h> first.
28359         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28360         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28361         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28362         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28363         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28364         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28366         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28367         * doc/functions/unsetenv.texi: Update.
28368         * modules/xsetenv (Depends-on): Add unsetenv.
28369         * modules/getdate (Depends-on): Likewise.
28370         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28371         * lib/xsetenv.c: Don't include setenv.h.
28372         * lib/getdate.y: Likewise.
28373         * lib/relocwrapper.c: Likewise.
28374         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28375         (Depends-on): Add stdlib.
28376         * NEWS: Mention the changes.
28377         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28378
28379 2007-12-23  Bruno Haible  <bruno@clisp.org>
28380
28381         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28382         indentation.
28383
28384 2007-12-23  Bruno Haible  <bruno@clisp.org>
28385
28386         * lib/c-strcasestr.c: Add more comments.
28387         * lib/c-strstr.c: Likewise.
28388         * lib/mbscasestr.c: Likewise.
28389         * lib/mbsstr.c: Likewise.
28390         * lib/strcasestr.c: Likewise.
28391         * lib/memmem.c: Likewise.
28392
28393 2007-12-23  Bruno Haible  <bruno@clisp.org>
28394
28395         * tests/test-memmem.c: Include <string.h> first.
28396
28397 2007-12-22  Bruno Haible  <bruno@clisp.org>
28398
28399         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28400         the contents of $testsbase.
28401         Reported by Ralf Wildenhues.
28402
28403 2007-12-22  Bruno Haible  <bruno@clisp.org>
28404
28405         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28406         two variables local_ldadd_before, local_ldadd_last.
28407
28408 2007-12-20  Eric Blake  <ebb9@byu.net>
28409
28410         Work around circular library issue when cross-compiling.
28411         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28412         that progname.o does not need to pull in rpl_memcmp.
28413
28414 2007-12-19  Eric Blake  <ebb9@byu.net>
28415
28416         Fix memmem to avoid O(n^2) worst-case complexity.
28417         * lib/memmem.c (knuth_morris_pratt): New function.
28418         (memmem): Use it if first few naive iterations fail.
28419         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28420         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28421         * modules/memchr (License): Likewise.
28422         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28423         malloca.
28424         * tests/test-memmem.c: Rewrite, borrowing ideas from
28425         test-mbsstr1.c; the old version wouldn't even compile!
28426         * modules/memmem-tests: New file.
28427         * lib/string.in.h (rpl_memmem): Add declaration.
28428         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28429         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28430         REPLACE_MEMMEM.
28431
28432 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28433
28434         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28435         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28436         before any system include files, and undef after them all.  This
28437         should fix a problem on VMS reported by John E. Malmberg in
28438         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28439
28440 2007-12-17  Eric Blake  <ebb9@byu.net>
28441
28442         Revert addition of verify, for BSD/OS.
28443         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28444         can't handle large files, for the sake of obsolete platforms.
28445         * modules/fseeko (Depends-on): Remove verify.
28446         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28447         * doc/functions/ftello.texi (ftello): Likewise.
28448         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28449         Reported by Larry Jones.
28450
28451 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28452
28453         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28454         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28455
28456 2007-12-17  Jim Meyering  <meyering@redhat.com>
28457
28458         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28459         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28460         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28461         * modules/getcwd (Depends-on): Add openat.
28462         Reported by Petr Salinger.
28463
28464 2007-12-17  Bruno Haible  <bruno@clisp.org>
28465
28466         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28467         avoid a segmentation fault of the configure test on x86_64 systems.
28468
28469 2007-12-15  Jim Meyering  <meyering@redhat.com>
28470
28471         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28472
28473 2007-12-13  Eric Blake  <ebb9@byu.net>
28474
28475         Another fseek test.
28476         * tests/test-fseek.c (main): Also test ungetc handling.
28477         * tests/test-fseeko.c (main): Likewise.
28478         * modules/fseeko (Depends-on): Add verify.
28479         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28480         large.
28481         Reported by Larry Jones.
28482
28483         Fix fseeko on mingw.
28484         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28485         seek.
28486
28487         Beef up fseek tests.
28488         * tests/test-fseek.c (main): Also test eof handling.
28489         * tests/test-fseeko.c (main): Likewise.
28490         Reported by Larry Jones.
28491
28492 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28493
28494         Fix fseeko on BSD-based platforms.
28495         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28496         successful seek.
28497
28498 2007-12-12  Eric Blake  <ebb9@byu.net>
28499
28500         Allow circular dependency of separate libtests.a
28501         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28502         when use_libtests.
28503
28504 2007-12-11  Eric Blake  <ebb9@byu.net>
28505
28506         Fix bug with -0.0L in previous patch.
28507         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28508         * tests/test-isnan.c (main): Also test on zeroes.
28509         * tests/test-isnanf.c (main): Likewise.
28510         * tests/test-isnanl.h (main): Likewise.
28511
28512         Detect pseudo-denormals on x86 even when cross-compiling.
28513         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28514         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28515         invalid bit patterns that happen to satisfy ==.
28516
28517         Avoid link failures with separate libtests.a.
28518         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28519         last, to satisfy circular dependencies.
28520
28521 2007-12-11  Eric Blake  <ebb9@byu.net>
28522         and Bruno Haible  <bruno@clisp.org>
28523
28524         Fix OpenBSD 4.0 <float.h> handling of long double.
28525         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28526         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28527         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28528
28529 2007-12-11  Jim Meyering  <meyering@redhat.com>
28530
28531         * users.txt: Add libvirt.
28532
28533         Support versions of autoconf prior to 2.59c.
28534         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28535         if it is not already defined.
28536
28537 2007-12-09  Bruno Haible  <bruno@clisp.org>
28538
28539         Let 'gnulib-tool --import' collect sources needed for the tests in
28540         tests/ rather than in lib/.
28541         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28542         argument. If true, add rules to generate libtests.a, and put libtests.a
28543         into $(LDADD). Consider source files in subdirectories and set
28544         uses_subdirs.
28545         (func_emit_initmacro_start, func_emit_initmacro_end,
28546         func_emit_initmacro_done): Pass all arguments explicitly.
28547         (func_import): Determine two module lists main_modules,
28548         testsrelated_modules. Determine use_libtests. Determine two variables
28549         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28550         instead of just sed_transform_lib_file. Determine two variables
28551         main_files and testsrelated_files. Compute 'files' as the union of
28552         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28553         func_add_or_update. In the generated gnulib-comp.m4, collect the
28554         object files for tests/ in different variables than those for lib/.
28555         Substitute LIBTESTS_LIBDEPS.
28556         (func_create_testdir): Combine the uses_subdirs results from
28557         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28558
28559 2007-12-09  Bruno Haible  <bruno@clisp.org>
28560
28561         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28562         the build-aux directory.
28563
28564 2007-12-09  Bruno Haible  <bruno@clisp.org>
28565
28566         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28567         introduced on 2006-09-09.
28568
28569 2007-12-07  Jim Meyering  <meyering@redhat.com>
28570
28571         Let these macros work also with autoconf-2.59.
28572         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28573         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28574         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28575
28576 2007-12-06  Jim Meyering  <meyering@redhat.com>
28577
28578         Avoid a configure-time syntax error in gl_FUNC_ACL.
28579         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28580         function in each branch, before testing the cache variable.
28581
28582 2007-12-04  Eric Blake  <ebb9@byu.net>
28583
28584         Make scripts executable.
28585         * build-aux/config.guess: Add execute permissions.
28586         * build-aux/config.sub: Likewise.
28587         * build-aux/gendocs.sh: Likewise.
28588
28589         Fix frexp on mingw.
28590         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28591         cross-compiling.
28592         * doc/functions/frexp.texi (frexp): Document the bug.
28593
28594         Make cygwin fseeko check more reliable.
28595         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28596         version numbers, rather than unrelated feature check.
28597         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28598         * doc/functions/ftello.texi (ftello): Likewise.
28599         Reported by Bruno Haible.
28600
28601         * m4/strerror.m4: Bump version number.
28602
28603 2007-12-03  Bruno Haible  <bruno@clisp.org>
28604
28605         * doc/functions/mprotect.texi: Mention the mingw problem.
28606
28607 2007-12-03  Eric Blake  <ebb9@byu.net>
28608
28609         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28610         REPLACE_STRERROR is initialized before this macro.
28611
28612 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28613
28614         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28615         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28616         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28617         put -lsec in even for programs other than 'ls'.  This fixes a problem
28618         for gettext reported by Bruno Haible in
28619         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28620         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28621         Add support for Solaris 10.  This isn't efficient, but should get the
28622         job done for now.
28623
28624 2007-12-03  James Youngman  <jay@gnu.org>
28625
28626         * doc/regexprops-generic.texi: change "an close-group" to "a
28627         close-group" and "illegal" to "not allowed".
28628
28629 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28630
28631         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28632         pr_byname.h. Needed for the rare case when the maintainer has done
28633         "make maintainer-clean" in the source directory and then attempts a
28634         build outside the source directory.
28635         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28636         scripts_byname.h.
28637
28638 2007-12-02  Martin Lambers <marlam@marlam.de>
28639             Bruno Haible  <bruno@clisp.org>
28640
28641         * lib/getpagesize.h: Remove file.
28642         * lib/unistd.in.h: Include declaration of getpagesize here.
28643         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28644         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28645         HAVE_SYS_PARAM_H.
28646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28647         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28648         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28649         (Depends-on): Add unistd.
28650         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28651         (Include): Use <unistd.h> instead of getpagesize.h.
28652         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28653         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28654         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28655         gl_GETPAGESIZE invocation, already handled by module dependency.
28656         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28657
28658 2007-12-02  Bruno Haible  <bruno@clisp.org>
28659
28660         * modules/strings-tests: New file.
28661         * tests/test-strings.c: New file.
28662
28663         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28664         * lib/strings.in.h: New file.
28665         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28666         * m4/strings_h.m4: New file.
28667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28668         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28669         * modules/strings: New file.
28670         * modules/string (Makefile.am): Update.
28671         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28672         Reported by Karl Berry.
28673
28674 2007-12-01  Eric Blake  <ebb9@byu.net>
28675
28676         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28677         accomodate fix in cygwin 1.5.25.
28678
28679 2007-12-01  Jim Meyering  <meyering@redhat.com>
28680
28681         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28682         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28683         that would inhibit utf8-optimization of a regexp containing line-
28684         or buffer-anchors, e.g., `^', `$'.
28685
28686 2007-11-30  Bruno Haible  <bruno@clisp.org>
28687
28688         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28689         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28690         glthread_recursive_lock_init.
28691         * lib/lock.c (glthread_recursive_lock_init)
28692         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28693         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28694
28695 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28696
28697         New function qset_acl, like set_acl but with syscall semantics.
28698         * lib/acl.h (qset_acl): New decl.
28699         * lib/acl.c (qset_acl): New function.
28700         (set_acl): Use new function.  Use more-consistent diagnostics.
28701
28702 2007-11-28  Jim Meyering  <meyering@redhat.com>
28703
28704         * modules/physmem (License): Change from GPL to LGPLv2+.
28705
28706 2007-11-26  Bruno Haible  <bruno@clisp.org>
28707
28708         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28709         'long double' type has excess precision.
28710         Reported by Jim Meyering in
28711         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28712
28713 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28714
28715         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28716         Sync from <http://gnu.org/licenses>.
28717         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28718         with license text from same location.
28719         * doc/maintain.texi, doc/standards.texi:  Sync from
28720         <http://savannah.gnu.org/projects/gnustandards>.
28721
28722 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
28723         and Jim Meyering  <meyering@redhat.com>
28724
28725         Adjust getdate' grammar to accept a slightly more regular language.
28726         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28727         Before, the former was rejected.
28728         * lib/getdate.y (digits_to_date_time): New function, factored
28729         out of ...
28730         (number): ...here.  Just call digits_to_date_time.
28731         (hybrid): New non-terminal to handle an <unsigned number,
28732         signed relative offset> sequence consistently.
28733
28734 2007-11-18  Jim Meyering  <meyering@redhat.com>
28735
28736         Pull my changes from coreutils:
28737         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28738         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28739         use of $gnulib_tool_option_extras, so that it's separated from the
28740         preceding argument.
28741
28742         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28743         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28744         parent destination directories before copying a file into place.
28745
28746 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28747
28748         bootstrap: work also with 4-argument variant of AC_INIT
28749         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28750
28751 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28752
28753         Port test-getaddrinfo to Solaris.
28754         Problem reported by Bruno Haible in
28755         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28756         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28757         explanation of setting 'hints'.
28758         Don't reject an implementation merely because it returns EAI_SERVICE.
28759         (EAI_SERVICE): Define to 0 if not defined.
28760
28761 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28762
28763         The license of gnu-make and posix-shell is now "GPLed build tool".
28764         * modules/gnu-make (License): Likewise.
28765         * modules/posix-shell (License): Likewise.
28766
28767         New module posix-shell, for determining a POSIX shell
28768         or perhaps something that is close enough to a POSIX shell.
28769         * m4/posix-shell.m4: New file.
28770         * modules/posix-shell: New file.
28771
28772         * MODULES.html.sh: Mention new module.
28773
28774         New module gnu-make, for determining whether we're using GNU Make.
28775         * m4/gnu-make.m4: New file.
28776         * modules/gnu-make: New file.
28777         * MODULES.html.sh: Mention new module.
28778
28779 2007-11-14  Jim Meyering  <meyering@redhat.com>
28780
28781         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28782         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28783         use this macro to create a function _definition_.
28784         Remove useless "#undef ARGMATCH_DIE".
28785
28786 2007-11-14  Bruno Haible  <bruno@clisp.org>
28787
28788         * lib/config.charset: Update for OpenBSD 4.1.
28789         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28790
28791 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28792
28793         Document 64-bit #if problems in stdint.texi.
28794         * doc/headers/stdint.texi (stdint.h): Mention problems with
28795         64-bit-#if, and how to work around them.
28796
28797         Don't insist on 'long long int' support in the preprocessor.  It
28798         breaks too many things.  For example, PRIdMAX still uses a 'long
28799         long int' format with the latest Sun compiler, even though
28800         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28801         preprocessor problem.  This causes the latest coreutils to dump
28802         core on Solaris 10 sparc with the Sun C compiler.
28803         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28804         the troublesome expressions at configure-time, not at #if-time.
28805         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28806         preprocessor.
28807         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28808         compile-time C checks, done at 'configure'-time.
28809         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28810         * modules/inttypes (Makefile): Substitute the new symbols that
28811         gl_INTTYPES_H now generates.
28812         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28813
28814 2007-11-12  Bruno Haible  <bruno@clisp.org>
28815
28816         Tests for Unicode character classification functions.
28817
28818         * modules/unictype/bidicategory-byname-tests: New file.
28819         * modules/unictype/bidicategory-name-tests: New file.
28820         * modules/unictype/bidicategory-of-tests: New file.
28821         * modules/unictype/bidicategory-test-tests: New file.
28822         * modules/unictype/block-list-tests: New file.
28823         * modules/unictype/block-of-tests: New file.
28824         * modules/unictype/block-test-tests: New file.
28825         * modules/unictype/category-C-tests: New file.
28826         * modules/unictype/category-Cc-tests: New file.
28827         * modules/unictype/category-Cf-tests: New file.
28828         * modules/unictype/category-Cn-tests: New file.
28829         * modules/unictype/category-Co-tests: New file.
28830         * modules/unictype/category-Cs-tests: New file.
28831         * modules/unictype/category-L-tests: New file.
28832         * modules/unictype/category-Ll-tests: New file.
28833         * modules/unictype/category-Lm-tests: New file.
28834         * modules/unictype/category-Lo-tests: New file.
28835         * modules/unictype/category-Lt-tests: New file.
28836         * modules/unictype/category-Lu-tests: New file.
28837         * modules/unictype/category-M-tests: New file.
28838         * modules/unictype/category-Mc-tests: New file.
28839         * modules/unictype/category-Me-tests: New file.
28840         * modules/unictype/category-Mn-tests: New file.
28841         * modules/unictype/category-N-tests: New file.
28842         * modules/unictype/category-Nd-tests: New file.
28843         * modules/unictype/category-Nl-tests: New file.
28844         * modules/unictype/category-No-tests: New file.
28845         * modules/unictype/category-P-tests: New file.
28846         * modules/unictype/category-Pc-tests: New file.
28847         * modules/unictype/category-Pd-tests: New file.
28848         * modules/unictype/category-Pe-tests: New file.
28849         * modules/unictype/category-Pf-tests: New file.
28850         * modules/unictype/category-Pi-tests: New file.
28851         * modules/unictype/category-Po-tests: New file.
28852         * modules/unictype/category-Ps-tests: New file.
28853         * modules/unictype/category-S-tests: New file.
28854         * modules/unictype/category-Sc-tests: New file.
28855         * modules/unictype/category-Sk-tests: New file.
28856         * modules/unictype/category-Sm-tests: New file.
28857         * modules/unictype/category-So-tests: New file.
28858         * modules/unictype/category-Z-tests: New file.
28859         * modules/unictype/category-Zl-tests: New file.
28860         * modules/unictype/category-Zp-tests: New file.
28861         * modules/unictype/category-Zs-tests: New file.
28862         * modules/unictype/category-and-not-tests: New file.
28863         * modules/unictype/category-and-tests: New file.
28864         * modules/unictype/category-byname-tests: New file.
28865         * modules/unictype/category-name-tests: New file.
28866         * modules/unictype/category-none-tests: New file.
28867         * modules/unictype/category-of-tests: New file.
28868         * modules/unictype/category-or-tests: New file.
28869         * modules/unictype/category-test-withtable-tests: New file.
28870         * modules/unictype/combining-class-tests: New file.
28871         * modules/unictype/ctype-alnum-tests: New file.
28872         * modules/unictype/ctype-alpha-tests: New file.
28873         * modules/unictype/ctype-blank-tests: New file.
28874         * modules/unictype/ctype-cntrl-tests: New file.
28875         * modules/unictype/ctype-digit-tests: New file.
28876         * modules/unictype/ctype-graph-tests: New file.
28877         * modules/unictype/ctype-lower-tests: New file.
28878         * modules/unictype/ctype-print-tests: New file.
28879         * modules/unictype/ctype-punct-tests: New file.
28880         * modules/unictype/ctype-space-tests: New file.
28881         * modules/unictype/ctype-upper-tests: New file.
28882         * modules/unictype/ctype-xdigit-tests: New file.
28883         * modules/unictype/decimal-digit-tests: New file.
28884         * modules/unictype/digit-tests: New file.
28885         * modules/unictype/mirror-tests: New file.
28886         * modules/unictype/numeric-tests: New file.
28887         * modules/unictype/property-alphabetic-tests: New file.
28888         * modules/unictype/property-ascii-hex-digit-tests: New file.
28889         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28890         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28891         * modules/unictype/property-bidi-block-separator-tests: New file.
28892         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28893         * modules/unictype/property-bidi-common-separator-tests: New file.
28894         * modules/unictype/property-bidi-control-tests: New file.
28895         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28896         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28897         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28898         * modules/unictype/property-bidi-european-digit-tests: New file.
28899         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28900         * modules/unictype/property-bidi-left-to-right-tests: New file.
28901         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28902         * modules/unictype/property-bidi-other-neutral-tests: New file.
28903         * modules/unictype/property-bidi-pdf-tests: New file.
28904         * modules/unictype/property-bidi-segment-separator-tests: New file.
28905         * modules/unictype/property-bidi-whitespace-tests: New file.
28906         * modules/unictype/property-byname-tests: New file.
28907         * modules/unictype/property-combining-tests: New file.
28908         * modules/unictype/property-composite-tests: New file.
28909         * modules/unictype/property-currency-symbol-tests: New file.
28910         * modules/unictype/property-dash-tests: New file.
28911         * modules/unictype/property-decimal-digit-tests: New file.
28912         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28913         * modules/unictype/property-deprecated-tests: New file.
28914         * modules/unictype/property-diacritic-tests: New file.
28915         * modules/unictype/property-extender-tests: New file.
28916         * modules/unictype/property-format-control-tests: New file.
28917         * modules/unictype/property-grapheme-base-tests: New file.
28918         * modules/unictype/property-grapheme-extend-tests: New file.
28919         * modules/unictype/property-grapheme-link-tests: New file.
28920         * modules/unictype/property-hex-digit-tests: New file.
28921         * modules/unictype/property-hyphen-tests: New file.
28922         * modules/unictype/property-id-continue-tests: New file.
28923         * modules/unictype/property-id-start-tests: New file.
28924         * modules/unictype/property-ideographic-tests: New file.
28925         * modules/unictype/property-ids-binary-operator-tests: New file.
28926         * modules/unictype/property-ids-trinary-operator-tests: New file.
28927         * modules/unictype/property-ignorable-control-tests: New file.
28928         * modules/unictype/property-iso-control-tests: New file.
28929         * modules/unictype/property-join-control-tests: New file.
28930         * modules/unictype/property-left-of-pair-tests: New file.
28931         * modules/unictype/property-line-separator-tests: New file.
28932         * modules/unictype/property-logical-order-exception-tests: New file.
28933         * modules/unictype/property-lowercase-tests: New file.
28934         * modules/unictype/property-math-tests: New file.
28935         * modules/unictype/property-non-break-tests: New file.
28936         * modules/unictype/property-not-a-character-tests: New file.
28937         * modules/unictype/property-numeric-tests: New file.
28938         * modules/unictype/property-other-alphabetic-tests: New file.
28939         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28940         * modules/unictype/property-other-grapheme-extend-tests: New file.
28941         * modules/unictype/property-other-id-continue-tests: New file.
28942         * modules/unictype/property-other-id-start-tests: New file.
28943         * modules/unictype/property-other-lowercase-tests: New file.
28944         * modules/unictype/property-other-math-tests: New file.
28945         * modules/unictype/property-other-uppercase-tests: New file.
28946         * modules/unictype/property-paired-punctuation-tests: New file.
28947         * modules/unictype/property-paragraph-separator-tests: New file.
28948         * modules/unictype/property-pattern-syntax-tests: New file.
28949         * modules/unictype/property-pattern-white-space-tests: New file.
28950         * modules/unictype/property-private-use-tests: New file.
28951         * modules/unictype/property-punctuation-tests: New file.
28952         * modules/unictype/property-quotation-mark-tests: New file.
28953         * modules/unictype/property-radical-tests: New file.
28954         * modules/unictype/property-sentence-terminal-tests: New file.
28955         * modules/unictype/property-soft-dotted-tests: New file.
28956         * modules/unictype/property-space-tests: New file.
28957         * modules/unictype/property-terminal-punctuation-tests: New file.
28958         * modules/unictype/property-test-tests: New file.
28959         * modules/unictype/property-titlecase-tests: New file.
28960         * modules/unictype/property-unassigned-code-value-tests: New file.
28961         * modules/unictype/property-unified-ideograph-tests: New file.
28962         * modules/unictype/property-uppercase-tests: New file.
28963         * modules/unictype/property-variation-selector-tests: New file.
28964         * modules/unictype/property-white-space-tests: New file.
28965         * modules/unictype/property-xid-continue-tests: New file.
28966         * modules/unictype/property-xid-start-tests: New file.
28967         * modules/unictype/property-zero-width-tests: New file.
28968         * modules/unictype/scripts-tests: New file.
28969         * modules/unictype/syntax-c-ident-tests: New file.
28970         * modules/unictype/syntax-c-whitespace-tests: New file.
28971         * modules/unictype/syntax-java-ident-tests: New file.
28972         * modules/unictype/syntax-java-whitespace-tests: New file.
28973         * tests/unictype/test-bidi_byname.c: New file.
28974         * tests/unictype/test-bidi_name.c: New file.
28975         * tests/unictype/test-bidi_of.c: New file.
28976         * tests/unictype/test-bidi_test.c: New file.
28977         * tests/unictype/test-block_list.c: New file.
28978         * tests/unictype/test-block_of.c: New file.
28979         * tests/unictype/test-block_test.c: New file.
28980         * tests/unictype/test-categ_and.c: New file.
28981         * tests/unictype/test-categ_and_not.c: New file.
28982         * tests/unictype/test-categ_byname.c: New file.
28983         * tests/unictype/test-categ_name.c: New file.
28984         * tests/unictype/test-categ_none.c: New file.
28985         * tests/unictype/test-categ_of.c: New file.
28986         * tests/unictype/test-categ_or.c: New file.
28987         * tests/unictype/test-categ_test_withtable.c: New file.
28988         * tests/unictype/test-combining.c: New file.
28989         * tests/unictype/test-decdigit.c: New file.
28990         * tests/unictype/test-digit.c: New file.
28991         * tests/unictype/test-mirror.c: New file.
28992         * tests/unictype/test-numeric.c: New file.
28993         * tests/unictype/test-pr_byname.c: New file.
28994         * tests/unictype/test-pr_test.c: New file.
28995         * tests/unictype/test-predicate-part1.h: New file.
28996         * tests/unictype/test-predicate-part2.h: New file.
28997         * tests/unictype/test-scripts.c: New file.
28998         * tests/unictype/test-sy_c_ident.c: New file.
28999         * tests/unictype/test-sy_java_ident.c: New file.
29000
29001         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
29002         for Unicode 5.0.0.
29003         * tests/unictype/test-categ_Cc.c: Likewise.
29004         * tests/unictype/test-categ_Cf.c: Likewise.
29005         * tests/unictype/test-categ_Cn.c: Likewise.
29006         * tests/unictype/test-categ_Co.c: Likewise.
29007         * tests/unictype/test-categ_Cs.c: Likewise.
29008         * tests/unictype/test-categ_L.c: Likewise.
29009         * tests/unictype/test-categ_Ll.c: Likewise.
29010         * tests/unictype/test-categ_Lm.c: Likewise.
29011         * tests/unictype/test-categ_Lo.c: Likewise.
29012         * tests/unictype/test-categ_Lt.c: Likewise.
29013         * tests/unictype/test-categ_Lu.c: Likewise.
29014         * tests/unictype/test-categ_M.c: Likewise.
29015         * tests/unictype/test-categ_Mc.c: Likewise.
29016         * tests/unictype/test-categ_Me.c: Likewise.
29017         * tests/unictype/test-categ_Mn.c: Likewise.
29018         * tests/unictype/test-categ_N.c: Likewise.
29019         * tests/unictype/test-categ_Nd.c: Likewise.
29020         * tests/unictype/test-categ_Nl.c: Likewise.
29021         * tests/unictype/test-categ_No.c: Likewise.
29022         * tests/unictype/test-categ_P.c: Likewise.
29023         * tests/unictype/test-categ_Pc.c: Likewise.
29024         * tests/unictype/test-categ_Pd.c: Likewise.
29025         * tests/unictype/test-categ_Pe.c: Likewise.
29026         * tests/unictype/test-categ_Pf.c: Likewise.
29027         * tests/unictype/test-categ_Pi.c: Likewise.
29028         * tests/unictype/test-categ_Po.c: Likewise.
29029         * tests/unictype/test-categ_Ps.c: Likewise.
29030         * tests/unictype/test-categ_S.c: Likewise.
29031         * tests/unictype/test-categ_Sc.c: Likewise.
29032         * tests/unictype/test-categ_Sk.c: Likewise.
29033         * tests/unictype/test-categ_Sm.c: Likewise.
29034         * tests/unictype/test-categ_So.c: Likewise.
29035         * tests/unictype/test-categ_Z.c: Likewise.
29036         * tests/unictype/test-categ_Zl.c: Likewise.
29037         * tests/unictype/test-categ_Zp.c: Likewise.
29038         * tests/unictype/test-categ_Zs.c: Likewise.
29039         * tests/unictype/test-ctype_alnum.c: Likewise.
29040         * tests/unictype/test-ctype_alpha.c: Likewise.
29041         * tests/unictype/test-ctype_blank.c: Likewise.
29042         * tests/unictype/test-ctype_cntrl.c: Likewise.
29043         * tests/unictype/test-ctype_digit.c: Likewise.
29044         * tests/unictype/test-ctype_graph.c: Likewise.
29045         * tests/unictype/test-ctype_lower.c: Likewise.
29046         * tests/unictype/test-ctype_print.c: Likewise.
29047         * tests/unictype/test-ctype_punct.c: Likewise.
29048         * tests/unictype/test-ctype_space.c: Likewise.
29049         * tests/unictype/test-ctype_upper.c: Likewise.
29050         * tests/unictype/test-ctype_xdigit.c: Likewise.
29051         * tests/unictype/test-decdigit.h: Likewise.
29052         * tests/unictype/test-digit.h: Likewise.
29053         * tests/unictype/test-numeric.h: Likewise.
29054         * tests/unictype/test-pr_alphabetic.c: Likewise.
29055         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29056         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29057         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29058         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29059         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29060         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29061         * tests/unictype/test-pr_bidi_control.c: Likewise.
29062         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29063         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29064         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29065         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29066         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29067         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29068         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29069         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29070         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29071         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29072         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29073         * tests/unictype/test-pr_combining.c: Likewise.
29074         * tests/unictype/test-pr_composite.c: Likewise.
29075         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29076         * tests/unictype/test-pr_dash.c: Likewise.
29077         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29078         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29079         * tests/unictype/test-pr_deprecated.c: Likewise.
29080         * tests/unictype/test-pr_diacritic.c: Likewise.
29081         * tests/unictype/test-pr_extender.c: Likewise.
29082         * tests/unictype/test-pr_format_control.c: Likewise.
29083         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29084         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29085         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29086         * tests/unictype/test-pr_hex_digit.c: Likewise.
29087         * tests/unictype/test-pr_hyphen.c: Likewise.
29088         * tests/unictype/test-pr_id_continue.c: Likewise.
29089         * tests/unictype/test-pr_id_start.c: Likewise.
29090         * tests/unictype/test-pr_ideographic.c: Likewise.
29091         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29092         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29093         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29094         * tests/unictype/test-pr_iso_control.c: Likewise.
29095         * tests/unictype/test-pr_join_control.c: Likewise.
29096         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29097         * tests/unictype/test-pr_line_separator.c: Likewise.
29098         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29099         * tests/unictype/test-pr_lowercase.c: Likewise.
29100         * tests/unictype/test-pr_math.c: Likewise.
29101         * tests/unictype/test-pr_non_break.c: Likewise.
29102         * tests/unictype/test-pr_not_a_character.c: Likewise.
29103         * tests/unictype/test-pr_numeric.c: Likewise.
29104         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29105         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29106         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29107         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29108         * tests/unictype/test-pr_other_id_start.c: Likewise.
29109         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29110         * tests/unictype/test-pr_other_math.c: Likewise.
29111         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29112         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29113         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29114         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29115         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29116         * tests/unictype/test-pr_private_use.c: Likewise.
29117         * tests/unictype/test-pr_punctuation.c: Likewise.
29118         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29119         * tests/unictype/test-pr_radical.c: Likewise.
29120         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29121         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29122         * tests/unictype/test-pr_space.c: Likewise.
29123         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29124         * tests/unictype/test-pr_titlecase.c: Likewise.
29125         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29126         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29127         * tests/unictype/test-pr_uppercase.c: Likewise.
29128         * tests/unictype/test-pr_variation_selector.c: Likewise.
29129         * tests/unictype/test-pr_white_space.c: Likewise.
29130         * tests/unictype/test-pr_xid_continue.c: Likewise.
29131         * tests/unictype/test-pr_xid_start.c: Likewise.
29132         * tests/unictype/test-pr_zero_width.c: Likewise.
29133         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29134         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29135
29136 2007-11-12  Bruno Haible  <bruno@clisp.org>
29137
29138         Unicode character classification functions.
29139         * lib/unictype.h: New file.
29140         * modules/unictype/base: New file.
29141         * modules/unictype/category-L: New file.
29142         * modules/unictype/category-Lu: New file.
29143         * modules/unictype/category-Ll: New file.
29144         * modules/unictype/category-Lt: New file.
29145         * modules/unictype/category-Lm: New file.
29146         * modules/unictype/category-Lo: New file.
29147         * modules/unictype/category-M: New file.
29148         * modules/unictype/category-Mn: New file.
29149         * modules/unictype/category-Mc: New file.
29150         * modules/unictype/category-Me: New file.
29151         * modules/unictype/category-N: New file.
29152         * modules/unictype/category-Nd: New file.
29153         * modules/unictype/category-Nl: New file.
29154         * modules/unictype/category-No: New file.
29155         * modules/unictype/category-P: New file.
29156         * modules/unictype/category-Pc: New file.
29157         * modules/unictype/category-Pd: New file.
29158         * modules/unictype/category-Ps: New file.
29159         * modules/unictype/category-Pe: New file.
29160         * modules/unictype/category-Pi: New file.
29161         * modules/unictype/category-Pf: New file.
29162         * modules/unictype/category-Po: New file.
29163         * modules/unictype/category-S: New file.
29164         * modules/unictype/category-Sm: New file.
29165         * modules/unictype/category-Sc: New file.
29166         * modules/unictype/category-Sk: New file.
29167         * modules/unictype/category-So: New file.
29168         * modules/unictype/category-Z: New file.
29169         * modules/unictype/category-Zs: New file.
29170         * modules/unictype/category-Zl: New file.
29171         * modules/unictype/category-Zp: New file.
29172         * modules/unictype/category-C: New file.
29173         * modules/unictype/category-Cc: New file.
29174         * modules/unictype/category-Cf: New file.
29175         * modules/unictype/category-Cs: New file.
29176         * modules/unictype/category-Co: New file.
29177         * modules/unictype/category-Cn: New file.
29178         * modules/unictype/category-or: New file.
29179         * modules/unictype/category-of: New file.
29180         * modules/unictype/category-test: New file.
29181         * modules/unictype/category-test-withtable: New file.
29182         * modules/unictype/category-byname: New file.
29183         * modules/unictype/category-none: New file.
29184         * modules/unictype/category-and: New file.
29185         * modules/unictype/category-and-not: New file.
29186         * modules/unictype/category-name: New file.
29187         * modules/unictype/combining-class: New file.
29188         * modules/unictype/category-all: New file.
29189         * modules/unictype/bidicategory-all: New file.
29190         * modules/unictype/bidicategory-byname: New file.
29191         * modules/unictype/bidicategory-name: New file.
29192         * modules/unictype/bidicategory-of: New file.
29193         * modules/unictype/bidicategory-test: New file.
29194         * modules/unictype/decimal-digit: New file.
29195         * modules/unictype/digit: New file.
29196         * modules/unictype/numeric: New file.
29197         * modules/unictype/mirror: New file.
29198         * modules/unictype/property-white-space: New file.
29199         * modules/unictype/property-alphabetic: New file.
29200         * modules/unictype/property-other-alphabetic: New file.
29201         * modules/unictype/property-not-a-character: New file.
29202         * modules/unictype/property-default-ignorable-code-point: New file.
29203         * modules/unictype/property-other-default-ignorable-code-point: New
29204         file.
29205         * modules/unictype/property-deprecated: New file.
29206         * modules/unictype/property-logical-order-exception: New file.
29207         * modules/unictype/property-variation-selector: New file.
29208         * modules/unictype/property-private-use: New file.
29209         * modules/unictype/property-unassigned-code-value: New file.
29210         * modules/unictype/property-uppercase: New file.
29211         * modules/unictype/property-other-uppercase: New file.
29212         * modules/unictype/property-lowercase: New file.
29213         * modules/unictype/property-other-lowercase: New file.
29214         * modules/unictype/property-titlecase: New file.
29215         * modules/unictype/property-soft-dotted: New file.
29216         * modules/unictype/property-id-start: New file.
29217         * modules/unictype/property-other-id-start: New file.
29218         * modules/unictype/property-id-continue: New file.
29219         * modules/unictype/property-other-id-continue: New file.
29220         * modules/unictype/property-xid-start: New file.
29221         * modules/unictype/property-xid-continue: New file.
29222         * modules/unictype/property-pattern-white-space: New file.
29223         * modules/unictype/property-pattern-syntax: New file.
29224         * modules/unictype/property-join-control: New file.
29225         * modules/unictype/property-grapheme-base: New file.
29226         * modules/unictype/property-grapheme-extend: New file.
29227         * modules/unictype/property-other-grapheme-extend: New file.
29228         * modules/unictype/property-grapheme-link: New file.
29229         * modules/unictype/property-bidi-control: New file.
29230         * modules/unictype/property-bidi-left-to-right: New file.
29231         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29232         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29233         * modules/unictype/property-bidi-european-digit: New file.
29234         * modules/unictype/property-bidi-eur-num-separator: New file.
29235         * modules/unictype/property-bidi-eur-num-terminator: New file.
29236         * modules/unictype/property-bidi-arabic-digit: New file.
29237         * modules/unictype/property-bidi-common-separator: New file.
29238         * modules/unictype/property-bidi-block-separator: New file.
29239         * modules/unictype/property-bidi-segment-separator: New file.
29240         * modules/unictype/property-bidi-whitespace: New file.
29241         * modules/unictype/property-bidi-non-spacing-mark: New file.
29242         * modules/unictype/property-bidi-boundary-neutral: New file.
29243         * modules/unictype/property-bidi-pdf: New file.
29244         * modules/unictype/property-bidi-embedding-or-override: New file.
29245         * modules/unictype/property-bidi-other-neutral: New file.
29246         * modules/unictype/property-hex-digit: New file.
29247         * modules/unictype/property-ascii-hex-digit: New file.
29248         * modules/unictype/property-ideographic: New file.
29249         * modules/unictype/property-unified-ideograph: New file.
29250         * modules/unictype/property-radical: New file.
29251         * modules/unictype/property-ids-binary-operator: New file.
29252         * modules/unictype/property-ids-trinary-operator: New file.
29253         * modules/unictype/property-zero-width: New file.
29254         * modules/unictype/property-space: New file.
29255         * modules/unictype/property-non-break: New file.
29256         * modules/unictype/property-iso-control: New file.
29257         * modules/unictype/property-format-control: New file.
29258         * modules/unictype/property-dash: New file.
29259         * modules/unictype/property-hyphen: New file.
29260         * modules/unictype/property-punctuation: New file.
29261         * modules/unictype/property-line-separator: New file.
29262         * modules/unictype/property-paragraph-separator: New file.
29263         * modules/unictype/property-quotation-mark: New file.
29264         * modules/unictype/property-sentence-terminal: New file.
29265         * modules/unictype/property-terminal-punctuation: New file.
29266         * modules/unictype/property-currency-symbol: New file.
29267         * modules/unictype/property-math: New file.
29268         * modules/unictype/property-other-math: New file.
29269         * modules/unictype/property-paired-punctuation: New file.
29270         * modules/unictype/property-left-of-pair: New file.
29271         * modules/unictype/property-combining: New file.
29272         * modules/unictype/property-composite: New file.
29273         * modules/unictype/property-decimal-digit: New file.
29274         * modules/unictype/property-numeric: New file.
29275         * modules/unictype/property-diacritic: New file.
29276         * modules/unictype/property-extender: New file.
29277         * modules/unictype/property-ignorable-control: New file.
29278         * modules/unictype/property-test: New file.
29279         * modules/unictype/property-byname: New file.
29280         * modules/unictype/property-all: New file.
29281         * modules/unictype/scripts: New file.
29282         * modules/unictype/scripts-all: New file.
29283         * modules/unictype/block-of: New file.
29284         * modules/unictype/block-test: New file.
29285         * modules/unictype/block-list: New file.
29286         * modules/unictype/block-all: New file.
29287         * modules/unictype/syntax-c-whitespace: New file.
29288         * modules/unictype/syntax-java-whitespace: New file.
29289         * modules/unictype/syntax-c-ident: New file.
29290         * modules/unictype/syntax-java-ident: New file.
29291         * modules/unictype/ctype-alnum: New file.
29292         * modules/unictype/ctype-alpha: New file.
29293         * modules/unictype/ctype-cntrl: New file.
29294         * modules/unictype/ctype-digit: New file.
29295         * modules/unictype/ctype-graph: New file.
29296         * modules/unictype/ctype-lower: New file.
29297         * modules/unictype/ctype-print: New file.
29298         * modules/unictype/ctype-punct: New file.
29299         * modules/unictype/ctype-space: New file.
29300         * modules/unictype/ctype-upper: New file.
29301         * modules/unictype/ctype-xdigit: New file.
29302         * modules/unictype/ctype-blank: New file.
29303         * lib/unictype/bidi_byname.c: New file.
29304         * lib/unictype/bidi_name.c: New file.
29305         * lib/unictype/bidi_of.c: New file.
29306         * lib/unictype/bidi_test.c: New file.
29307         * lib/unictype/bitmap.h: New file.
29308         * lib/unictype/block_test.c: New file.
29309         * lib/unictype/blocks.c: New file.
29310         * lib/unictype/categ_C.c: New file.
29311         * lib/unictype/categ_Cc.c: New file.
29312         * lib/unictype/categ_Cf.c: New file.
29313         * lib/unictype/categ_Cn.c: New file.
29314         * lib/unictype/categ_Co.c: New file.
29315         * lib/unictype/categ_Cs.c: New file.
29316         * lib/unictype/categ_L.c: New file.
29317         * lib/unictype/categ_Ll.c: New file.
29318         * lib/unictype/categ_Lm.c: New file.
29319         * lib/unictype/categ_Lo.c: New file.
29320         * lib/unictype/categ_Lt.c: New file.
29321         * lib/unictype/categ_Lu.c: New file.
29322         * lib/unictype/categ_M.c: New file.
29323         * lib/unictype/categ_Mc.c: New file.
29324         * lib/unictype/categ_Me.c: New file.
29325         * lib/unictype/categ_Mn.c: New file.
29326         * lib/unictype/categ_N.c: New file.
29327         * lib/unictype/categ_Nd.c: New file.
29328         * lib/unictype/categ_Nl.c: New file.
29329         * lib/unictype/categ_No.c: New file.
29330         * lib/unictype/categ_P.c: New file.
29331         * lib/unictype/categ_Pc.c: New file.
29332         * lib/unictype/categ_Pd.c: New file.
29333         * lib/unictype/categ_Pe.c: New file.
29334         * lib/unictype/categ_Pf.c: New file.
29335         * lib/unictype/categ_Pi.c: New file.
29336         * lib/unictype/categ_Po.c: New file.
29337         * lib/unictype/categ_Ps.c: New file.
29338         * lib/unictype/categ_S.c: New file.
29339         * lib/unictype/categ_Sc.c: New file.
29340         * lib/unictype/categ_Sk.c: New file.
29341         * lib/unictype/categ_Sm.c: New file.
29342         * lib/unictype/categ_So.c: New file.
29343         * lib/unictype/categ_Z.c: New file.
29344         * lib/unictype/categ_Zl.c: New file.
29345         * lib/unictype/categ_Zp.c: New file.
29346         * lib/unictype/categ_Zs.c: New file.
29347         * lib/unictype/categ_and.c: New file.
29348         * lib/unictype/categ_and_not.c: New file.
29349         * lib/unictype/categ_byname.c: New file.
29350         * lib/unictype/categ_name.c: New file.
29351         * lib/unictype/categ_none.c: New file.
29352         * lib/unictype/categ_of.c: New file.
29353         * lib/unictype/categ_or.c: New file.
29354         * lib/unictype/categ_test.c: New file.
29355         * lib/unictype/combining.c: New file.
29356         * lib/unictype/ctype_alnum.c: New file.
29357         * lib/unictype/ctype_alpha.c: New file.
29358         * lib/unictype/ctype_blank.c: New file.
29359         * lib/unictype/ctype_cntrl.c: New file.
29360         * lib/unictype/ctype_digit.c: New file.
29361         * lib/unictype/ctype_graph.c: New file.
29362         * lib/unictype/ctype_lower.c: New file.
29363         * lib/unictype/ctype_print.c: New file.
29364         * lib/unictype/ctype_punct.c: New file.
29365         * lib/unictype/ctype_space.c: New file.
29366         * lib/unictype/ctype_upper.c: New file.
29367         * lib/unictype/ctype_xdigit.c: New file.
29368         * lib/unictype/decdigit.c: New file.
29369         * lib/unictype/digit.c: New file.
29370         * lib/unictype/identsyntaxmap.h: New file.
29371         * lib/unictype/mirror.c: New file.
29372         * lib/unictype/numeric.c: New file.
29373         * lib/unictype/pr_alphabetic.c: New file.
29374         * lib/unictype/pr_ascii_hex_digit.c: New file.
29375         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29376         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29377         * lib/unictype/pr_bidi_block_separator.c: New file.
29378         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29379         * lib/unictype/pr_bidi_common_separator.c: New file.
29380         * lib/unictype/pr_bidi_control.c: New file.
29381         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29382         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29383         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29384         * lib/unictype/pr_bidi_european_digit.c: New file.
29385         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29386         * lib/unictype/pr_bidi_left_to_right.c: New file.
29387         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29388         * lib/unictype/pr_bidi_other_neutral.c: New file.
29389         * lib/unictype/pr_bidi_pdf.c: New file.
29390         * lib/unictype/pr_bidi_segment_separator.c: New file.
29391         * lib/unictype/pr_bidi_whitespace.c: New file.
29392         * lib/unictype/pr_byname.c: New file.
29393         * lib/unictype/pr_byname.gperf: New file.
29394         * lib/unictype/pr_combining.c: New file.
29395         * lib/unictype/pr_composite.c: New file.
29396         * lib/unictype/pr_currency_symbol.c: New file.
29397         * lib/unictype/pr_dash.c: New file.
29398         * lib/unictype/pr_decimal_digit.c: New file.
29399         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29400         * lib/unictype/pr_deprecated.c: New file.
29401         * lib/unictype/pr_diacritic.c: New file.
29402         * lib/unictype/pr_extender.c: New file.
29403         * lib/unictype/pr_format_control.c: New file.
29404         * lib/unictype/pr_grapheme_base.c: New file.
29405         * lib/unictype/pr_grapheme_extend.c: New file.
29406         * lib/unictype/pr_grapheme_link.c: New file.
29407         * lib/unictype/pr_hex_digit.c: New file.
29408         * lib/unictype/pr_hyphen.c: New file.
29409         * lib/unictype/pr_id_continue.c: New file.
29410         * lib/unictype/pr_id_start.c: New file.
29411         * lib/unictype/pr_ideographic.c: New file.
29412         * lib/unictype/pr_ids_binary_operator.c: New file.
29413         * lib/unictype/pr_ids_trinary_operator.c: New file.
29414         * lib/unictype/pr_ignorable_control.c: New file.
29415         * lib/unictype/pr_iso_control.c: New file.
29416         * lib/unictype/pr_join_control.c: New file.
29417         * lib/unictype/pr_left_of_pair.c: New file.
29418         * lib/unictype/pr_line_separator.c: New file.
29419         * lib/unictype/pr_logical_order_exception.c: New file.
29420         * lib/unictype/pr_lowercase.c: New file.
29421         * lib/unictype/pr_math.c: New file.
29422         * lib/unictype/pr_non_break.c: New file.
29423         * lib/unictype/pr_not_a_character.c: New file.
29424         * lib/unictype/pr_numeric.c: New file.
29425         * lib/unictype/pr_other_alphabetic.c: New file.
29426         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29427         * lib/unictype/pr_other_grapheme_extend.c: New file.
29428         * lib/unictype/pr_other_id_continue.c: New file.
29429         * lib/unictype/pr_other_id_start.c: New file.
29430         * lib/unictype/pr_other_lowercase.c: New file.
29431         * lib/unictype/pr_other_math.c: New file.
29432         * lib/unictype/pr_other_uppercase.c: New file.
29433         * lib/unictype/pr_paired_punctuation.c: New file.
29434         * lib/unictype/pr_paragraph_separator.c: New file.
29435         * lib/unictype/pr_pattern_syntax.c: New file.
29436         * lib/unictype/pr_pattern_white_space.c: New file.
29437         * lib/unictype/pr_private_use.c: New file.
29438         * lib/unictype/pr_punctuation.c: New file.
29439         * lib/unictype/pr_quotation_mark.c: New file.
29440         * lib/unictype/pr_radical.c: New file.
29441         * lib/unictype/pr_sentence_terminal.c: New file.
29442         * lib/unictype/pr_soft_dotted.c: New file.
29443         * lib/unictype/pr_space.c: New file.
29444         * lib/unictype/pr_terminal_punctuation.c: New file.
29445         * lib/unictype/pr_test.c: New file.
29446         * lib/unictype/pr_titlecase.c: New file.
29447         * lib/unictype/pr_unassigned_code_value.c: New file.
29448         * lib/unictype/pr_unified_ideograph.c: New file.
29449         * lib/unictype/pr_uppercase.c: New file.
29450         * lib/unictype/pr_variation_selector.c: New file.
29451         * lib/unictype/pr_white_space.c: New file.
29452         * lib/unictype/pr_xid_continue.c: New file.
29453         * lib/unictype/pr_xid_start.c: New file.
29454         * lib/unictype/pr_zero_width.c: New file.
29455         * lib/unictype/scripts.c: New file.
29456         * lib/unictype/sy_c_ident.c: New file.
29457         * lib/unictype/sy_c_whitespace.c: New file.
29458         * lib/unictype/sy_java_ident.c: New file.
29459         * lib/unictype/sy_java_whitespace.c: New file.
29460
29461         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29462         Unicode 5.0.0.
29463         * lib/unictype/blocks.h: Likewise.
29464         * lib/unictype/categ_C.h: Likewise.
29465         * lib/unictype/categ_Cc.h: Likewise.
29466         * lib/unictype/categ_Cf.h: Likewise.
29467         * lib/unictype/categ_Cn.h: Likewise.
29468         * lib/unictype/categ_Co.h: Likewise.
29469         * lib/unictype/categ_Cs.h: Likewise.
29470         * lib/unictype/categ_L.h: Likewise.
29471         * lib/unictype/categ_Ll.h: Likewise.
29472         * lib/unictype/categ_Lm.h: Likewise.
29473         * lib/unictype/categ_Lo.h: Likewise.
29474         * lib/unictype/categ_Lt.h: Likewise.
29475         * lib/unictype/categ_Lu.h: Likewise.
29476         * lib/unictype/categ_M.h: Likewise.
29477         * lib/unictype/categ_Mc.h: Likewise.
29478         * lib/unictype/categ_Me.h: Likewise.
29479         * lib/unictype/categ_Mn.h: Likewise.
29480         * lib/unictype/categ_N.h: Likewise.
29481         * lib/unictype/categ_Nd.h: Likewise.
29482         * lib/unictype/categ_Nl.h: Likewise.
29483         * lib/unictype/categ_No.h: Likewise.
29484         * lib/unictype/categ_P.h: Likewise.
29485         * lib/unictype/categ_Pc.h: Likewise.
29486         * lib/unictype/categ_Pd.h: Likewise.
29487         * lib/unictype/categ_Pe.h: Likewise.
29488         * lib/unictype/categ_Pf.h: Likewise.
29489         * lib/unictype/categ_Pi.h: Likewise.
29490         * lib/unictype/categ_Po.h: Likewise.
29491         * lib/unictype/categ_Ps.h: Likewise.
29492         * lib/unictype/categ_S.h: Likewise.
29493         * lib/unictype/categ_Sc.h: Likewise.
29494         * lib/unictype/categ_Sk.h: Likewise.
29495         * lib/unictype/categ_Sm.h: Likewise.
29496         * lib/unictype/categ_So.h: Likewise.
29497         * lib/unictype/categ_Z.h: Likewise.
29498         * lib/unictype/categ_Zl.h: Likewise.
29499         * lib/unictype/categ_Zp.h: Likewise.
29500         * lib/unictype/categ_Zs.h: Likewise.
29501         * lib/unictype/categ_of.h: Likewise.
29502         * lib/unictype/combining.h: Likewise.
29503         * lib/unictype/ctype_alnum.h: Likewise.
29504         * lib/unictype/ctype_alpha.h: Likewise.
29505         * lib/unictype/ctype_blank.h: Likewise.
29506         * lib/unictype/ctype_cntrl.h: Likewise.
29507         * lib/unictype/ctype_digit.h: Likewise.
29508         * lib/unictype/ctype_graph.h: Likewise.
29509         * lib/unictype/ctype_lower.h: Likewise.
29510         * lib/unictype/ctype_print.h: Likewise.
29511         * lib/unictype/ctype_punct.h: Likewise.
29512         * lib/unictype/ctype_space.h: Likewise.
29513         * lib/unictype/ctype_upper.h: Likewise.
29514         * lib/unictype/ctype_xdigit.h: Likewise.
29515         * lib/unictype/decdigit.h: Likewise.
29516         * lib/unictype/digit.h: Likewise.
29517         * lib/unictype/mirror.h: Likewise.
29518         * lib/unictype/numeric.h: Likewise.
29519         * lib/unictype/pr_alphabetic.h: Likewise.
29520         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29521         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29522         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29523         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29524         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29525         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29526         * lib/unictype/pr_bidi_control.h: Likewise.
29527         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29528         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29529         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29530         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29531         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29532         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29533         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29534         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29535         * lib/unictype/pr_bidi_pdf.h: Likewise.
29536         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29537         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29538         * lib/unictype/pr_combining.h: Likewise.
29539         * lib/unictype/pr_composite.h: Likewise.
29540         * lib/unictype/pr_currency_symbol.h: Likewise.
29541         * lib/unictype/pr_dash.h: Likewise.
29542         * lib/unictype/pr_decimal_digit.h: Likewise.
29543         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29544         * lib/unictype/pr_deprecated.h: Likewise.
29545         * lib/unictype/pr_diacritic.h: Likewise.
29546         * lib/unictype/pr_extender.h: Likewise.
29547         * lib/unictype/pr_format_control.h: Likewise.
29548         * lib/unictype/pr_grapheme_base.h: Likewise.
29549         * lib/unictype/pr_grapheme_extend.h: Likewise.
29550         * lib/unictype/pr_grapheme_link.h: Likewise.
29551         * lib/unictype/pr_hex_digit.h: Likewise.
29552         * lib/unictype/pr_hyphen.h: Likewise.
29553         * lib/unictype/pr_id_continue.h: Likewise.
29554         * lib/unictype/pr_id_start.h: Likewise.
29555         * lib/unictype/pr_ideographic.h: Likewise.
29556         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29557         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29558         * lib/unictype/pr_ignorable_control.h: Likewise.
29559         * lib/unictype/pr_iso_control.h: Likewise.
29560         * lib/unictype/pr_join_control.h: Likewise.
29561         * lib/unictype/pr_left_of_pair.h: Likewise.
29562         * lib/unictype/pr_line_separator.h: Likewise.
29563         * lib/unictype/pr_logical_order_exception.h: Likewise.
29564         * lib/unictype/pr_lowercase.h: Likewise.
29565         * lib/unictype/pr_math.h: Likewise.
29566         * lib/unictype/pr_non_break.h: Likewise.
29567         * lib/unictype/pr_not_a_character.h: Likewise.
29568         * lib/unictype/pr_numeric.h: Likewise.
29569         * lib/unictype/pr_other_alphabetic.h: Likewise.
29570         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29571         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29572         * lib/unictype/pr_other_id_continue.h: Likewise.
29573         * lib/unictype/pr_other_id_start.h: Likewise.
29574         * lib/unictype/pr_other_lowercase.h: Likewise.
29575         * lib/unictype/pr_other_math.h: Likewise.
29576         * lib/unictype/pr_other_uppercase.h: Likewise.
29577         * lib/unictype/pr_paired_punctuation.h: Likewise.
29578         * lib/unictype/pr_paragraph_separator.h: Likewise.
29579         * lib/unictype/pr_pattern_syntax.h: Likewise.
29580         * lib/unictype/pr_pattern_white_space.h: Likewise.
29581         * lib/unictype/pr_private_use.h: Likewise.
29582         * lib/unictype/pr_punctuation.h: Likewise.
29583         * lib/unictype/pr_quotation_mark.h: Likewise.
29584         * lib/unictype/pr_radical.h: Likewise.
29585         * lib/unictype/pr_sentence_terminal.h: Likewise.
29586         * lib/unictype/pr_soft_dotted.h: Likewise.
29587         * lib/unictype/pr_space.h: Likewise.
29588         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29589         * lib/unictype/pr_titlecase.h: Likewise.
29590         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29591         * lib/unictype/pr_unified_ideograph.h: Likewise.
29592         * lib/unictype/pr_uppercase.h: Likewise.
29593         * lib/unictype/pr_variation_selector.h: Likewise.
29594         * lib/unictype/pr_white_space.h: Likewise.
29595         * lib/unictype/pr_xid_continue.h: Likewise.
29596         * lib/unictype/pr_xid_start.h: Likewise.
29597         * lib/unictype/pr_zero_width.h: Likewise.
29598         * lib/unictype/scripts.h: Likewise.
29599         * lib/unictype/scripts_byname.gperf: Likewise.
29600         * lib/unictype/sy_c_ident.h: Likewise.
29601         * lib/unictype/sy_c_whitespace.h: Likewise.
29602         * lib/unictype/sy_java_ident.h: Likewise.
29603         * lib/unictype/sy_java_whitespace.h: Likewise.
29604
29605         * lib/unictype/Makefile: New file.
29606         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29607         glibc.
29608         * lib/unictype/3level.h: New file, copied from glibc.
29609         * lib/unictype/3levelbit.h: New file.
29610
29611 2007-11-11  Bruno Haible  <bruno@clisp.org>
29612
29613         * modules/gperf: New file.
29614         * modules/iconv_open (Depends-on): Add it.
29615         (Makefile.am): Remove the GPERF definition.
29616
29617 2007-11-11  Bruno Haible  <bruno@clisp.org>
29618
29619         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29620         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29621
29622 2007-11-11  Bruno Haible  <bruno@clisp.org>
29623
29624         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29625         (usage): Remove function.
29626
29627 2007-11-11  Bruno Haible  <bruno@clisp.org>
29628
29629         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29630         gl_FUNC_CEILF_LIBS.
29631         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29632         gl_FUNC_CEIL_LIBS.
29633         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29634         gl_FUNC_CEILL_LIBS.
29635         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29636         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29637         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29638
29639 2007-11-11  Bruno Haible  <bruno@clisp.org>
29640
29641         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29642         roundf were declared but do not exist on functions.
29643         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29644         roundl were declared but do not exist on functions.
29645         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29646         HAVE_FLOORL_AND_CEILL, respectively.
29647         Needed for Sun C on Solaris 10.
29648
29649 2007-11-11  Bruno Haible  <bruno@clisp.org>
29650
29651         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29652         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29653         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29654         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29655         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29656         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29657         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29658         HAVE_DECL_ROUNDF.
29659         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29660         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29662         of HAVE_DECL_ROUND*.
29663         * modules/math (Makefile.am): Update.
29664
29665 2007-11-10  Bruno Haible  <bruno@clisp.org>
29666
29667         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29668         ptrdiff_t as m4/intl.m4.
29669
29670 2007-11-10  Jim Meyering  <meyering@redhat.com>
29671
29672         Avoid link failure for the argmatch test.
29673         * tests/test-argmatch.c (usage): Define function to avoid a link
29674         failure: argmatch_die requires a usage function.
29675
29676 2007-11-09  Bruno Haible  <bruno@clisp.org>
29677
29678         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29679         * doc/functions/vsnprintf.texi: Likewise.
29680         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29681         with a size argument < 2.
29682
29683 2007-11-09  Bruno Haible  <bruno@clisp.org>
29684
29685         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29686         buffer. Fixes an inefficiency introduced on 2007-11-03.
29687
29688 2007-11-09  Bruno Haible  <bruno@clisp.org>
29689
29690         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29691         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29692
29693 2007-11-08  Jim Meyering  <meyering@redhat.com>
29694
29695         Change cache variable name prefix "jm_" to "gl_" everywhere.
29696         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29697         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29698         * m4/uptime.m4: s/gl_/jm_/
29699
29700 2007-11-07  Bruno Haible  <bruno@clisp.org>
29701
29702         Update to GNU gettext 0.17.
29703         * m4/intl.m4: Update to GNU gettext 0.17.
29704         * m4/po.m4: Likewise.
29705         * modules/gettext (Files): Remove m4/ulonglong.m4.
29706         (configure.ac): Require gettext infrastructure from version 0.17.
29707
29708 2007-11-06  Bruno Haible  <bruno@clisp.org>
29709
29710         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29711         symbolic values are not defined in a public header.
29712         * lib/freadable.c (freadable) [QNX]: Likewise.
29713         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29714         * lib/freading.c (freading) [QNX]: Likewise.
29715         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29716         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29717         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29718         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29719         Reported by Alain Magloire.
29720
29721         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29722
29723 2007-11-05  Bruno Haible  <bruno@clisp.org>
29724
29725         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29726         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29727         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29728         Reported by Eric Blake.
29729
29730 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29731             Bruno Haible  <bruno@clisp.org>
29732
29733         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29734         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29735         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29736         (malloc): Undefine also before including <stdlib.h>.
29737         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29738         Needed on OSF/1 4.0.
29739
29740 2007-11-05  Jim Meyering  <meyering@redhat.com>
29741
29742         git-version-gen: sync from coreutils.
29743         * build-aux/git-version-gen: Add comments.
29744         Change the first '-' to '.' in the snapshot version string,
29745         e.g., 6.9-377-08144 -> 6.9.377-08144
29746         Remove first parameter.
29747         Don't declare a version "-dirty" merely because a time
29748         stamp has changed.
29749
29750 2007-11-04  Bruno Haible  <bruno@clisp.org>
29751
29752         * lib/lock.h: Protect all macro definitions containing an 'if'
29753         statement through a "do { ... } while (0)".
29754         * lib/tls.h: Likewise.
29755
29756 2007-11-04  Bruno Haible  <bruno@clisp.org>
29757
29758         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29759
29760 2007-11-04  Bruno Haible  <bruno@clisp.org>
29761
29762         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29763         * modules/fprintf-posix (Depends-on): Add nocrash.
29764         * modules/snprintf-posix (Depends-on): Likewise.
29765         * modules/sprintf-posix (Depends-on): Likewise.
29766         * modules/vasnprintf-posix (Depends-on): Likewise.
29767         * modules/vasprintf-posix (Depends-on): Likewise.
29768         * modules/vfprintf-posix (Depends-on): Likewise.
29769         * modules/vsnprintf-posix (Depends-on): Likewise.
29770         * modules/vsprintf-posix (Depends-on): Likewise.
29771         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29772         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29773         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29774         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29775         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29776         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29777         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29778
29779 2007-11-04  Bruno Haible  <bruno@clisp.org>
29780
29781         * modules/nocrash: New file.
29782         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29783         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29784
29785 2007-11-04  Bruno Haible  <bruno@clisp.org>
29786
29787         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29788         precision handling.
29789         * tests/test-vasprintf-posix.c (test_function): Likewise.
29790         * tests/test-snprintf-posix.h (test_function): Likewise.
29791         * tests/test-sprintf-posix.h (test_function): Likewise.
29792
29793         Fix *printf behaviour for large precisions on mingw and BeOS.
29794         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29795         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29797         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29798         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29799         gl_PRINTF_PRECISION and test its result. Invoke
29800         gl_PREREQ_VASNPRINTF_PRECISION.
29801         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29802         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29803         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29804         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29805         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29806         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29807         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29808         * doc/functions/fprintf.texi: Update.
29809         * doc/functions/printf.texi: Update.
29810         * doc/functions/snprintf.texi: Update.
29811         * doc/functions/sprintf.texi: Update.
29812         * doc/functions/vfprintf.texi: Update.
29813         * doc/functions/vprintf.texi: Update.
29814         * doc/functions/vsnprintf.texi: Update.
29815         * doc/functions/vsprintf.texi: Update.
29816
29817 2007-11-04  Bruno Haible  <bruno@clisp.org>
29818
29819         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29820
29821 2007-11-04  Bruno Haible  <bruno@clisp.org>
29822
29823         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29824         Reported by Sylvain Beucler <beuc@gnu.org>.
29825
29826 2007-11-03  Bruno Haible  <bruno@clisp.org>
29827
29828         * tests/test-fprintf-posix2.sh: New file.
29829         * tests/test-fprintf-posix2.c: New file.
29830         * modules/fprintf-posix-tests (Files): Add them.
29831         (TESTS): Add test-fprintf-posix2.sh.
29832         (configure.ac): Check for getrlimit and setrlimit.
29833         (check_PROGRAMS): Add test-fprintf-posix2.
29834
29835         * tests/test-printf-posix2.sh: New file.
29836         * tests/test-printf-posix2.c: New file.
29837         * modules/printf-posix-tests (Files): Add them.
29838         (TESTS): Add test-printf-posix2.sh.
29839         (configure.ac): Check for getrlimit and setrlimit.
29840         (check_PROGRAMS): Add test-printf-posix2.
29841
29842         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29843         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29844         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29845         (decode_double): New function, copied from decode_long_double.
29846         (scale10_round_decimal_decoded): New function, extracted from
29847         scale10_round_decimal_long_double.
29848         (scale10_round_decimal_long_double): Use it.
29849         (scale10_round_decimal_double): New function.
29850         (floorlog10): New function.
29851         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29853         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29854         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29855         gl_PRINTF_ENOMEM and test its result. Invoke
29856         gl_PREREQ_VASNPRINTF_ENOMEM.
29857         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29858         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29859         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29860         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29861         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29862         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29863         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29864         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29865         * modules/snprintf-posix (Depends-on): Likewise.
29866         * modules/sprintf-posix (Depends-on): Likewise.
29867         * modules/vasnprintf-posix (Depends-on): Likewise.
29868         * modules/vasprintf-posix (Depends-on): Likewise.
29869         * modules/vfprintf-posix (Depends-on): Likewise.
29870         * modules/vsnprintf-posix (Depends-on): Likewise.
29871         * modules/vsprintf-posix (Depends-on): Likewise.
29872         * doc/functions/fprintf.texi: Update.
29873         * doc/functions/printf.texi: Update.
29874         * doc/functions/snprintf.texi: Update.
29875         * doc/functions/sprintf.texi: Update.
29876         * doc/functions/vfprintf.texi: Update.
29877         * doc/functions/vprintf.texi: Update.
29878         * doc/functions/vsnprintf.texi: Update.
29879         * doc/functions/vsprintf.texi: Update.
29880
29881 2007-11-03  Bruno Haible  <bruno@clisp.org>
29882
29883         * modules/frexp-nolibm-tests: New file.
29884
29885         * modules/frexp-nolibm: New file.
29886         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29887
29888 2007-11-03  Bruno Haible  <bruno@clisp.org>
29889
29890         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29891         value is C99 compliant.
29892         Needed for OSF/1 5.1.
29893
29894 2007-11-03  Bruno Haible  <bruno@clisp.org>
29895
29896         Fix out-of-memory handling of vasnprintf.
29897         * lib/printf-parse.c: Include <errno.h>.
29898         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29899         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29900         is already set.
29901
29902 2007-11-02  Eric Blake  <ebb9@byu.net>
29903
29904         Fix tests on cygwin.
29905         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29906
29907 2007-11-01  Bruno Haible  <bruno@clisp.org>
29908
29909         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29910         warning.
29911         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29912         needed for POSIX compatibility.
29913
29914 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29915
29916         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29917         for compatibility with GNU.
29918
29919 2007-11-01  Bruno Haible  <bruno@clisp.org>
29920
29921         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29922         (putenv): Renamed from rpl_putenv. Change argument type from
29923         'const char *' to 'char *'.
29924         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29925         of defining putenv in config.h, just set REPLACE_PUTENV.
29926         * modules/putenv (Depends-on): Add stdlib.
29927         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29928         (Include): Use <stdlib.h>.
29929         * lib/stdlib.in.h (putenv): New declaration.
29930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29931         REPLACE_PUTENV.
29932         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29933         REPLACE_PUTENV.
29934         Needed for MacOS X 10.5.0.
29935         Reported by Peter O'Gorman <peter@pogma.com>.
29936
29937 2007-11-01  Jim Meyering  <meyering@redhat.com>
29938
29939         Treat an empty date string exactly like "0".
29940         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29941         if the remaining date string (to be parsed) is empty, use "0".
29942         Reported by Mischa Molhoek and discussed in this thread:
29943         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29944
29945 2007-10-31  Bruno Haible  <bruno@clisp.org>
29946
29947         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29948         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29949         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29950         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29951         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29952         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29953
29954 2007-10-31  Bruno Haible  <bruno@clisp.org>
29955
29956         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29957         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29958         (AC_TYPE_LONG_LONG_INT): Use it.
29959         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29960         it as well.
29961         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29962         to m4/longlong.m4.
29963         * modules/stdint (Files): Remove m4/ulonglong.m4.
29964         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29965         m4/ulonglong.m4.
29966         * modules/strtoumax (Files): Likewise.
29967
29968 2007-10-30  Bruno Haible  <bruno@clisp.org>
29969
29970         * modules/xvasprintf-posix: New file.
29971         Suggested by Eric Blake.
29972
29973 2007-10-30  Bruno Haible  <bruno@clisp.org>
29974
29975         * modules/xprintf-posix-tests: New file.
29976         * tests/test-xprintf-posix.sh: New file.
29977         * tests/test-xprintf-posix.c: New file.
29978         * tests/test-xfprintf-posix.c: New file.
29979
29980         * modules/xprintf-posix: New file.
29981
29982 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29983
29984         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29985         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29986         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29987
29988 2007-10-29  Bruno Haible  <bruno@clisp.org>
29989
29990         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29991         contain the special marker '_cv_'.
29992         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29993         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29994         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29995         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29996         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29997         Reported by Ralf Wildenhues.
29998
29999 2007-10-29  Bruno Haible  <bruno@clisp.org>
30000
30001         * gnulib-tool (func_import): When --lgpl is not specified, set
30002         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
30003         GPLv3.
30004         Reported by Simon Josefsson.
30005
30006 2007-10-28  Bruno Haible  <bruno@clisp.org>
30007
30008         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
30009         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
30010         HAVE_DECL_ISFINITE.
30011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30012         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30013         HAVE_DECL_ISFINITE.
30014
30015 2007-10-28  Bruno Haible  <bruno@clisp.org>
30016
30017         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30018         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30019
30020 2007-10-28  Bruno Haible  <bruno@clisp.org>
30021
30022         Fix link errors with Sun C 5.0 on Solaris 10.
30023         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30024         function is declared but not present in the compiler's libm.
30025         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30026         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30027         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30028         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30029         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30030         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30031         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30033         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30034         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30035         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30036         HAVE_DECL_FLOORL.
30037
30038 2007-10-28  Bruno Haible  <bruno@clisp.org>
30039
30040         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30041         gl_FUNC_FLOORL. Cache the result.
30042         (gl_FUNC_FLOORL): Use it.
30043         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30044         gl_FUNC_CEILL. Cache the result.
30045         (gl_FUNC_CEILL): Use it.
30046
30047         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30048         gl_FUNC_FLOOR. Cache the result.
30049         (gl_FUNC_FLOOR): Use it.
30050         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30051         gl_FUNC_CEIL. Cache the result.
30052         (gl_FUNC_CEIL): Use it.
30053
30054         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30055         gl_FUNC_FLOORF. Cache the result.
30056         (gl_FUNC_FLOORF): Use it.
30057         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30058         gl_FUNC_CEILF. Cache the result.
30059         (gl_FUNC_CEILF): Use it.
30060
30061 2007-10-28  Bruno Haible  <bruno@clisp.org>
30062
30063         * gnulib-tool: Allow specifying the LGPL version number through
30064         --lgpl=2 or --lgpl=3.
30065         (func_usage): Document --lgpl with argument.
30066         Handle --lgpl=... arguments.
30067         (func_import): Recognize also gl_LGPL calls with an argument. When
30068         --lgpl=2 is used and the module's license is just LGPL, report an
30069         error. Set sed_transform_lib_file according to the lgpl variable. In
30070         the generated files, use --lgpl or gl_LGPL invocations with argument,
30071         if necessary.
30072         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30073         an LGPv2+ license.
30074         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30075         gl_LGPL macro.
30076
30077 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30078             Bruno Haible  <bruno@clisp.org>
30079
30080         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30081         (u16_uctomb_aux): Likewise.
30082         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30083         !HAVE_INLINE.
30084         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30085
30086 2007-10-28  Bruno Haible  <bruno@clisp.org>
30087
30088         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30089         Invoke AM_GETTEXT_OPTION if it exists.
30090         * modules/vasprintf: Likewise.
30091         * modules/verror: Likewise.
30092         * modules/xprintf: Likewise.
30093         * modules/xvasprintf: Likewise.
30094
30095 2007-10-27  Ben Pfaff  <blp@gnu.org>
30096
30097         * lib/math.in.h: Define isfinite macro and prototypes for
30098         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30099         implementations.
30100         * m4/math_h.m4: New substitutions for isfinite module.
30101         * lib/isfinite.c: New file.
30102         * m4/isfinite.m4: New file.
30103         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30104         * modules/isfinite: New file.
30105         * modules/isfinite-tests: New file.
30106         * tests/tests-isfinite.c: New file.
30107         * doc/functions/isfinite.texi: Mention isfinite module.
30108         * MODULES.html.sh: Mention new module.
30109
30110 2007-10-27  Ben Pfaff  <blp@gnu.org>
30111
30112         Ralf Wildenhues reported that Tru64 4.0D declares the round
30113         functions but does not have definitions.
30114         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30115         cannot be found in any library, set the output variable to
30116         "missing" instead of "".
30117         * m4/round.m4: Also use our substitute if we cannot find round in
30118         any library, even if it is declared.
30119         * m4/roundf.m4: Likewise for roundf.
30120         * m4/roundl.m4: Likewise for roundl.
30121         * lib/math.in.h: Undefine roundf, round, roundl before defining
30122         their replacements, to allow for hypothetical systems where these
30123         may be defined as macros but not available in libraries.
30124
30125 2007-10-27  Bruno Haible  <bruno@clisp.org>
30126
30127         * doc/gnulib.texi: Invoke @firstparagraphindent.
30128         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30129         changes in gnulib.
30130         (Source changes): New section.
30131
30132 2007-10-26  Bruno Haible  <bruno@clisp.org>
30133
30134         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30135         borrowed from autoconf.
30136
30137 2007-10-26  Bruno Haible  <bruno@clisp.org>
30138
30139         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30140         strerror returned the empty string. Needed on HP-UX 11.00.
30141
30142 2007-10-24  Micah Cowan  <micah@cowan.name>
30143
30144         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30145         * build-aux/bootstrap: Remove support for now-unnecessary option,
30146         --cvs-user, and envvars CVS_USER, CVS_RSH.
30147
30148 2007-10-24  Jim Meyering  <meyering@redhat.com>
30149
30150         Avoid diagnostics from sha1sum when there is no cached checksum.
30151         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30152         if the po.s1 file hasn't been created yet.
30153
30154         * build-aux/bootstrap: Sync from coreutils:
30155         2007-10-24  Jim Meyering  <meyering@redhat.com>
30156         Get gnulib from the git repository, not from an obsolete cvs one.
30157         * build-aux/bootstrap: Suggestion from Micah Cowan.
30158         2007-10-04  Jim Meyering  <jim@meyering.net>
30159         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30160         (update_po_files): Work also when there are no .po files in po/.
30161
30162 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30163
30164         * README: Append ".git" to git and cg examples.
30165         Problem reported by Benoit Sigoure.
30166
30167 2007-10-23  Micah Cowan  <micah@cowan.name>
30168
30169         * users.txt: Add wget.
30170
30171 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30172
30173         Fix linking of some unistdio tests on FreeBSD.
30174         * modules/unistdio/u16-vsnprintf-tests
30175         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30176         * modules/unistdio/u16-vsprintf-tests
30177         (test_u16_vsnprintf1_LDADD): Likewise.
30178         * modules/unistdio/u32-vsnprintf-tests
30179         (test_u32_vsnprintf1_LDADD): Likewise.
30180         * modules/unistdio/u32-vsprintf-tests
30181         (test_u32_vsprintf1_LDADD): Likewise.
30182         * modules/unistdio/u8-vsnprintf-tests
30183         (test_u8_vsnprintf1_LDADD): Likewise.
30184         * modules/unistdio/u8-vsprintf-tests
30185         (test_u8_vsprintf1_LDADD): Likewise.
30186         * modules/unistdio/ulc-vsnprintf-tests
30187         (test_ulc_vsnprintf1_LDADD): Likewise.
30188         * modules/unistdio/ulc-vsprintf-tests
30189         (test_ulc_vsprintf1_LDADD): Likewise.
30190
30191         Fix linking of some uniconv tests on FreeBSD.
30192         * modules/uniconv/u16-conv-from-enc-tests
30193         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30194         * modules/uniconv/u16-conv-to-enc-tests
30195         (test_u16_conv_to_enc_LDADD): Likewise.
30196         * modules/uniconv/u16-strconv-from-enc-tests
30197         (test_u16_strconv_from_enc_LDADD): Likewise.
30198         * modules/uniconv/u16-strconv-to-enc-tests
30199         (test_u16_strconv_to_enc_LDADD): Likewise.
30200         * modules/uniconv/u32-conv-from-enc-tests
30201         (test_u32_conv_from_enc_LDADD): Likewise.
30202         * modules/uniconv/u32-conv-to-enc-tests
30203         (test_u32_conv_to_enc_LDADD): Likewise.
30204         * modules/uniconv/u32-strconv-from-enc-tests
30205         (test_u32_strconv_from_enc_LDADD): Likewise.
30206         * modules/uniconv/u32-strconv-to-enc-tests
30207         (test_u32_strconv_to_enc_LDADD): Likewise.
30208         * modules/uniconv/u8-conv-from-enc-tests
30209         (test_u8_conv_from_enc_LDADD): Likewise.
30210         * modules/uniconv/u8-conv-to-enc-tests
30211         (test_u8_conv_to_enc_LDADD): Likewise.
30212         * modules/uniconv/u8-strconv-from-enc-tests
30213         (test_u8_strconv_from_enc_LDADD): Likewise.
30214         * modules/uniconv/u8-strconv-to-enc-tests
30215         (test_u8_strconv_to_enc_LDADD): Likewise.
30216
30217 2007-10-22  Bruno Haible  <bruno@clisp.org>
30218
30219         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30220         size.
30221
30222 2007-10-22  Eric Blake  <ebb9@byu.net>
30223
30224         Tweak x*printf documentation.
30225         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30226         variable name and comments.
30227         Suggested by Bruno Haible.
30228
30229 2007-10-22  Bruno Haible  <bruno@clisp.org>
30230
30231         * lib/acl.c (copy_acl): Fix file name in comment.
30232
30233 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30234
30235         Fix Tru64 problem with stdbool.h.
30236         * lib/stdbool.in.h (false, true):
30237         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30238         Don't declare as an enum in this situation; it runs afoul of Tru64.
30239         Problem reported by Steven M. Schweda in
30240         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30241
30242 2007-10-22  Eric Blake  <ebb9@byu.net>
30243
30244         Also wrap vf?printf.
30245         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30246         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30247         (xvprintf, xvfprintf): New functions.
30248
30249 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30250
30251         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30252         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30253
30254         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30255         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30256
30257 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30258
30259         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30260         by Bruno Haible.
30261
30262 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30263
30264         * lib/getloadavg.c
30265         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30266         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30267
30268         * tests/test-i-ring.c: Work for C89.
30269
30270 2007-10-22  Bruno Haible  <bruno@clisp.org>
30271
30272         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30273         -1u, in preprocessor expression, so that we don't test for the bug
30274         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30275         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30276
30277 2007-10-22  Eric Blake  <ebb9@byu.net>
30278
30279         * tests/test-yesno.sh: Silence stderr during test.
30280
30281 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30282
30283         * modules/crypto/gc-camellia: New file.
30284
30285         * m4/gc-camellia.m4: New file.
30286
30287         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30288
30289         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30290
30291 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30292
30293         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30294         --help to stdout.  Reported by sms@antinode.org (Steven
30295         M. Schweda).
30296
30297 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30298
30299         * users.txt: Fix link to libksba.
30300
30301 2007-10-21  Ben Pfaff  <blp@gnu.org>
30302
30303         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30304         round.c roundf implementation that depends on floorf and ceilf to
30305         be tested unconditionally.
30306
30307 2007-10-21  Ben Pfaff  <blp@gnu.org>
30308
30309         * m4/check-libm-func.m4: Removed.
30310         * m4/check-math-lib.m4: New file.
30311         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30312         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30313         definition and lack of AC_LIBOBJ([roundf]).
30314         * m4/roundl.m4: Ditto, and similarly for roundl.
30315         * modules/round: Reference new m4 file.
30316         * modules/roundf: Ditto.
30317         * modules/roundl: Ditto.
30318         * tests/test-round2.c (main): Use ROUND instead of round.
30319         Bug report from Bruno Haible.
30320
30321 2007-10-21  Bruno Haible  <bruno@clisp.org>
30322
30323         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30324         context.
30325
30326 2007-10-21  Bruno Haible  <bruno@clisp.org>
30327
30328         * tests/test-wcwidth.c (main): Allow negative result for some control
30329         characters.
30330
30331         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30332         Needed on OSF/1 5.1.
30333
30334 2007-10-21  Bruno Haible  <bruno@clisp.org>
30335
30336         * tests/test-floorf1.c: Include isnanf.h.
30337         (main): Use isnanf() instead of isnan().
30338         * tests/test-ceilf1.c: Include isnanf.h.
30339         (main): Use isnanf() instead of isnan().
30340         * tests/test-truncf1.c: Include isnanf.h.
30341         (main): Use isnanf() instead of isnan().
30342         * tests/test-roundf1.c: Include isnanf.h.
30343         (main): Use isnanf() instead of isnan().
30344
30345 2007-10-21  Eric Blake  <ebb9@byu.net>
30346
30347         * users.txt: Update URL for m4.
30348
30349 2007-10-21  Bruno Haible  <bruno@clisp.org>
30350
30351         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30352
30353 2007-10-21  Bruno Haible  <bruno@clisp.org>
30354
30355         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30356         Git's management files if the CVS files are not present.
30357
30358 2007-10-20  Bruno Haible  <bruno@clisp.org>
30359
30360         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30361         gcc-3.4.x.
30362
30363 2007-10-20  Ben Pfaff  <blp@gnu.org>
30364
30365         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30366         implementations.
30367         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30368         * lib/round.c: New file.
30369         * lib/roundf.c: New file.
30370         * lib/roundl.c: New file.
30371         * m4/round.m4: New file.
30372         * m4/roundf.m4: New file.
30373         * m4/roundl.m4: New file.
30374         * m4/check-libm-func-m4: New file.
30375         * modules/math: Replace round, roundf, roundl related @VARS@ in
30376         math.in.h.
30377         * modules/round: New file.
30378         * modules/round-tests: New file.
30379         * modules/roundf: New file.
30380         * modules/roundf-tests: New file.
30381         * modules/roundl: New file.
30382         * modules/roundl-tests: New file.
30383         * tests/test-round1.c: New file.
30384         * tests/test-round2.c: New file.
30385         * tests/test-roundf1.c: New file.
30386         * tests/test-roundf2.c: New file.
30387         * tests/test-roundl.c: New file.
30388         * doc/functions/round.texi: Mention round module.
30389         * doc/functions/roundf.texi: Mention roundf module.
30390         * doc/functions/roundl.texi: Mention roundl module.
30391         * MODULES.html.sh: Mention new modules.
30392         Thanks to Bruno Haible for suggestions.
30393
30394 2007-10-20  Jim Meyering  <meyering@redhat.com>
30395
30396         * lib/xprintf.c: Include <config.h> unconditionally.
30397
30398         Change xprintf's license to GPL.
30399         * modules/xprintf (License): s/LGPL/GPL/, since this module
30400         depends on modules (exit and exitfail) which are GPL.
30401         Suggestion from Bruno Haible.
30402
30403         xprintf fixes.
30404         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30405         Use a clearer diagnostic.
30406         Patch from Bruno Haible.
30407
30408 2007-10-20  Bruno Haible  <bruno@clisp.org>
30409
30410         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30411         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30412         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30413
30414 2007-10-20  Bruno Haible  <bruno@clisp.org>
30415
30416         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30417         precision in the comparison result > x - 1 or similar.
30418         * tests/test-ceilf2.c (correct_result_p): Likewise.
30419         * tests/test-truncf2.c (correct_result_p): Likewise.
30420         * tests/test-trunc2.c (correct_result_p): Likewise.
30421         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30422
30423 2007-10-20  Bruno Haible  <bruno@clisp.org>
30424
30425         * modules/ceil: New file.
30426         * m4/ceil.m4: New file.
30427         * doc/functions/ceil.texi: Mention the 'ceil' module.
30428
30429 2007-10-20  Bruno Haible  <bruno@clisp.org>
30430
30431         * modules/floor: New file.
30432         * m4/floor.m4: New file.
30433         * doc/functions/floor.texi: Mention the 'floor' module.
30434
30435 2007-10-20  Bruno Haible  <bruno@clisp.org>
30436
30437         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30438         of %a.
30439         * modules/floorf-tests (Depends-on): Likewise.
30440         * modules/truncf-tests (Depends-on): Likewise.
30441         * modules/trunc-tests (Depends-on): Likewise.
30442         Reported by Ben Pfaff.
30443
30444 2007-10-19  Jim Meyering  <meyering@redhat.com>
30445
30446         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30447         Don't bother testing specific errno values.  Just test ferror.
30448
30449         New module: xprintf
30450         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30451
30452 2007-10-19  Bruno Haible  <bruno@clisp.org>
30453
30454         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30455         syntax.
30456         * modules/javaexec (Makefile.am): Likewise.
30457         * modules/relocatable-prog (Makefile.am): Likewise.
30458         Suggested by Jim Meyering.
30459
30460 2007-10-18  Bruno Haible  <bruno@clisp.org>
30461
30462         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30463         Reported by Jim Meyering.
30464
30465 2007-10-18  Eric Blake  <ebb9@byu.net>
30466
30467         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30468
30469 2007-10-18  Bruno Haible  <bruno@clisp.org>
30470
30471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30472         the format string into writable memory. Needed in Fortify conditions.
30473
30474 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30475             Bruno Haible  <bruno@clisp.org>
30476
30477         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30478         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30479         * modules/trim (Depends-on): Add mbchar.
30480         (configure.ac): Add gl_FUNC_MBRTOWC.
30481         (Makefile.am): Augment lib_SOURCES.
30482
30483 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30484
30485         Modify glob.c to use fstatat and dirfd, to simplify it.
30486         Suggested by Eric Blake.
30487         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30488         Don't include <stdbool.h>; not used.
30489         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30490         (link_exists_p): Simplify implementation, since we can now assume
30491         dirfd and fstatat.
30492         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30493
30494 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30495
30496         * gnulib-tool (func_get_dependencies): Fix sed script to
30497         match only tests.
30498
30499 2007-10-17  Bruno Haible  <bruno@clisp.org>
30500
30501         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30502         allow locale names without encoding suffix.
30503         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30504         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30505
30506 2007-10-16  Bruno Haible  <bruno@clisp.org>
30507
30508         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30509         * lib/getgroups.c (getgroups): Likewise.
30510         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30511
30512 2007-10-16  Bruno Haible  <bruno@clisp.org>
30513
30514         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30515         * modules/malloc-posix (License): Likewise.
30516         * modules/realloc-posix (License): Likewise.
30517         * modules/calloc-posix (License): Likewise.
30518         * modules/intprops (License): Change from GPL to LGPL, with
30519         Paul Eggert's approval.
30520
30521 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30522
30523         Merge glibc changes into lib/glob.c.
30524
30525         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30526         2007-10-15 04:59:03 UTC.  Here are the changes:
30527
30528         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30529
30530         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30531
30532         * lib/glob.c: Add some branch prediction throughout.
30533
30534         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30535
30536         [BZ #5103]
30537         * lib/glob.c (glob): Recognize patterns starting \/.
30538
30539         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30540
30541         [BZ #3996]
30542         * lib/glob.c (attribute_hidden): Define if not defined.
30543         (glob): Unescape dirname, filename or username when needed and not
30544         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30545         is NULL.  Handle unescaped [ in pattern without closing ].
30546         Don't pass GLOB_CHECK down to recursive glob for directories.
30547         (__glob_pattern_type): New function.
30548         (__glob_pattern_p): Implement using __glob_pattern_type.
30549         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30550         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30551         Remove unreachable code.
30552
30553         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30554
30555         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30556         explain why there are no leaks.
30557
30558         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30559
30560         [BZ #3253]
30561         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30562         time, rather allocate increasingly bigger arrays of pointers, if
30563         possible with alloca, if too large with malloc.
30564
30565 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30566
30567         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30568         Problem reported by H.Merijn Brand in
30569         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30570         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30571         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30572
30573 2007-10-15  Bruno Haible  <bruno@clisp.org>
30574
30575         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30576         with explicit rpl_ prefix.
30577         * lib/fopen.c (fopen): Likewise.
30578         * lib/freopen.c (freopen): Likewise.
30579         * lib/iconv.c (iconv): Likewise.
30580         * lib/iconv_close.c (iconv_close): Likewise.
30581
30582 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30583
30584         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30585
30586 2007-10-15  Bruno Haible  <bruno@clisp.org>
30587
30588         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30589         <stddef.h> instead of <stdlib.h> since we only need NULL.
30590         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30591
30592 2007-10-15  Bruno Haible  <bruno@clisp.org>
30593
30594         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30595         Replace paragraph talking about LIBOBJS.
30596         Reported by Colin Watson <cjwatson@debian.org>.
30597
30598 2007-10-15  Bruno Haible  <bruno@clisp.org>
30599
30600         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30601         <stdlib.h> before using NULL.
30602
30603 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30604
30605         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30606         Reported by Albert Chin <china@thewrittenword.com>.
30607
30608 2007-10-14  Bruno Haible  <bruno@clisp.org>
30609
30610         * modules/iconv_open-utf-tests: New file.
30611         * tests/test-iconv-utf.c: New file.
30612
30613         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30614         * modules/iconv_open-utf: New file.
30615         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30616         (iconv, iconv_close): New declarations.
30617         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30618         be defined.
30619         (iconv_open): Add special handling of conversion between UTF-8 and
30620         UTF-{16,32}{BE,LE}.
30621         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30622         * lib/iconv_close.c: New file.
30623         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30624         gl_FUNC_ICONV_OPEN.
30625         (gl_FUNC_ICONV_OPEN): Use it.
30626         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30627         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30628         and REPLACE_ICONV_UTF.
30629         * modules/iconv_open (Depends-on): Add c-strcase.
30630         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30631         ICONV_CONST.
30632         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30633
30634 2007-10-13  Albert Chin  <china@thewrittenword.com>
30635             Bruno Haible  <bruno@clisp.org>
30636
30637         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30638         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30639
30640 2007-10-13  Bruno Haible  <bruno@clisp.org>
30641
30642         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30643         defined, use the ISO C99 inline semantics.
30644         * lib/argp.h (ARGP_EI): Likewise.
30645
30646 2007-10-13  Bruno Haible  <bruno@clisp.org>
30647
30648         Handle 'inline' change in gcc 4.3.0.
30649         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30650         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30651         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30652         argp_fmtstream_point): Disable 'extern' declaration if the function
30653         definition is going to be provided inline.
30654         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30655         semantics, not the ISO C99 inline semantics.
30656         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30657         'extern' declaration if the function definition is going to be provided
30658         inline.
30659         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30660         the GNU C inline semantics, not the ISO C99 inline semantics. With
30661         GCC 4.2, avoid a warning.
30662
30663 2007-10-13  Bruno Haible  <bruno@clisp.org>
30664
30665         * lib/freading.h (freading): Enable the use of __freading for
30666         glibc >= 2.7.
30667         * lib/freading.c (freading): Likewise.
30668
30669 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30670
30671         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30672         "warning: C99 inline functions are not supported; using GNU89".
30673
30674 2007-10-12  Bruno Haible  <bruno@clisp.org>
30675
30676         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30677         of 2.
30678         * tests/test-ceilf2.c: New file.
30679         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30680
30681         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30682         * modules/ceilf-tests: Update.
30683
30684 2007-10-12  Bruno Haible  <bruno@clisp.org>
30685
30686         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30687         of 2.
30688         * tests/test-floorf2.c: New file.
30689         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30690
30691         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30692         * modules/floorf-tests: Update.
30693
30694 2007-10-12  Bruno Haible  <bruno@clisp.org>
30695
30696         * tests/test-trunc2.c: New file.
30697         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30698
30699         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30700         * modules/trunc-tests: Update.
30701
30702 2007-10-12  Bruno Haible  <bruno@clisp.org>
30703
30704         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30705         of 2.
30706         * tests/test-truncf2.c: New file.
30707         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30708
30709         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30710         * modules/truncf-tests: Update.
30711
30712 2007-10-11  Eric Blake  <ebb9@byu.net>
30713
30714         Don't claim strerror is broken on Interix.
30715         * doc/functions/strerror.texi (strerror): Known broken systems are
30716         now Solaris 8, and not Interix.
30717         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30718         Interix on cross-compile.
30719         Reported by Martin Koeppe in
30720         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30721
30722 2007-10-11  Bruno Haible  <bruno@clisp.org>
30723
30724         * modules/i-ring-tests: New file.
30725         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30726         instead of assert.
30727
30728 2007-10-11  Bruno Haible  <bruno@clisp.org>
30729
30730         * modules/filenamecat-tests: New file.
30731         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30732         * lib/filenamecat.c: Remove test code.
30733
30734 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30735
30736         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30737
30738         * lib/strerror.c: Include <string.h> always, to test interface,
30739         and to remove the need for the dummy.
30740         Include intprops.h to compute width instead of doing it ourselves
30741         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30742         (strerror): Define it to return NULL if there's no system strerror.
30743         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30744         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30745         ancient pre-strerror Unix systems well any more.  Saying "unknown
30746         system error" is enough.
30747         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30748         simpler strerror.c implementation.
30749         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30750         Simplify the tests to reflect the simpler strerror implementation.
30751         * modules/strerror (Depends-on): Add intprops.
30752
30753 2007-10-09  Eric Blake  <ebb9@byu.net>
30754
30755         Silence test-fpending.
30756         * modules/fpending-tests (Files): Add wrapper script.
30757         * tests/test-fpending.sh: New file.
30758
30759 2007-10-09  Bruno Haible  <bruno@clisp.org>
30760
30761         * MODULES.html.sh (func_module): Don't create a hyperlink for
30762         function names like 'printf_frexp'.
30763         (Misc): Add crc, memxor.
30764         (Characteristics of floating types): New section.
30765         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30766         isnanf-nolibm, signbit, trunc, truncf, truncl.
30767         (Enhancements for ISO C 99 functions): New subsection Input/output.
30768         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30769         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30770         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30771         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30772         (Enhancements for POSIX:2001 functions): Add chdir-long.
30773         (File system functions): Add areadlink, chdir-safer, read-file.
30774         Remove cycle-check.
30775         (File system as inode set): New section.
30776         (Date and time): Add gethrxtime.
30777         (Multithreading): Add openmp.
30778         (Internationalization functions): Add localename.
30779         (Unicode string functions): Add unistr/u*-mbsnlen.
30780         (Support for maintaining and releasing projects): Add git-version-gen.
30781         (Lone files): Remove directories.
30782
30783 2007-10-08  Ben Pfaff  <blp@gnu.org>
30784
30785         * lib/xmalloca.h: Fix typo in comment.
30786
30787 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30788
30789         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30790         when avoiding problems with integer overflow.  Use a portable test
30791         instead.
30792
30793 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30794
30795         * modules/dummy (License): Change to LGPLv2+.
30796         * modules/float (License): Likewise
30797         * modules/realloc (License): Likewise
30798         * modules/stdlib (License): Likewise
30799
30800 2007-10-07  Bruno Haible  <bruno@clisp.org>
30801
30802         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30803         * floor.c (TWO_MANT_DIG): Likewise.
30804         * ceil.c (TWO_MANT_DIG): Likewise.
30805         Reported by Ben Pfaff.
30806
30807 2007-10-07  Bruno Haible  <bruno@clisp.org>
30808
30809         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30810         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30811         * lib/frexp.c (FUNC): Likewise.
30812         * lib/printf-frexp.h (printf_frexp): Likewise.
30813         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30814         * lib/printf-frexp.c (FUNC): Likewise.
30815         Suggested by Jim Meyering.
30816
30817 2007-10-07  Jim Meyering  <meyering@redhat.com>
30818
30819         Make xnanosleep's integer overflow test more robust.
30820         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30821         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30822
30823 2007-10-07  Bruno Haible  <bruno@clisp.org>
30824
30825         * NEWS: Mention the license change.
30826
30827         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30828         abbreviations in the modules files.
30829
30830         Change copyright notice from GPLv2+ to GPLv3+.
30831         * README: Change copyright notice.
30832         * MODULES.html.sh: Likewise.
30833         * build-aux/bootstrap.conf: Likewise.
30834         * build-aux/config.libpath: Likewise.
30835         * build-aux/csharpcomp.sh.in: Likewise.
30836         * build-aux/csharpexec.sh.in: Likewise.
30837         * build-aux/install-reloc: Likewise.
30838         * build-aux/javacomp.sh.in: Likewise.
30839         * build-aux/javaexec.sh.in: Likewise.
30840         * build-aux/ldd.sh.in: Likewise.
30841         * build-aux/reloc-ldflags: Likewise.
30842         * build-aux/relocatable.sh.in: Likewise.
30843         * build-aux/x-to-1.in: Likewise.
30844         * check-module: Likewise.
30845         * config/srclistvars.sh: Likewise.
30846         * gnulib-tool: Likewise.
30847         * lib/acl-internal.h: Likewise.
30848         * lib/acl.c: Likewise.
30849         * lib/acl.h: Likewise.
30850         * lib/acl_entries.c: Likewise.
30851         * lib/areadlink-with-size.c: Likewise.
30852         * lib/areadlink.c: Likewise.
30853         * lib/areadlink.h: Likewise.
30854         * lib/argmatch.c: Likewise.
30855         * lib/argmatch.h: Likewise.
30856         * lib/argp-ba.c: Likewise.
30857         * lib/argp-eexst.c: Likewise.
30858         * lib/argp-fmtstream.c: Likewise.
30859         * lib/argp-fmtstream.h: Likewise.
30860         * lib/argp-fs-xinl.c: Likewise.
30861         * lib/argp-help.c: Likewise.
30862         * lib/argp-namefrob.h: Likewise.
30863         * lib/argp-parse.c: Likewise.
30864         * lib/argp-pin.c: Likewise.
30865         * lib/argp-pv.c: Likewise.
30866         * lib/argp-pvh.c: Likewise.
30867         * lib/argp-xinl.c: Likewise.
30868         * lib/argp.h: Likewise.
30869         * lib/at-func.c: Likewise.
30870         * lib/atanl.c: Likewise.
30871         * lib/backupfile.c: Likewise.
30872         * lib/backupfile.h: Likewise.
30873         * lib/basename.c: Likewise.
30874         * lib/binary-io.h: Likewise.
30875         * lib/byteswap.in.h: Likewise.
30876         * lib/c-stack.c: Likewise.
30877         * lib/c-stack.h: Likewise.
30878         * lib/c-strcasestr.c: Likewise.
30879         * lib/c-strcasestr.h: Likewise.
30880         * lib/c-strstr.c: Likewise.
30881         * lib/c-strstr.h: Likewise.
30882         * lib/c-strtod.c: Likewise.
30883         * lib/calloc.c: Likewise.
30884         * lib/canon-host.c: Likewise.
30885         * lib/canon-host.h: Likewise.
30886         * lib/canonicalize-lgpl.c: Likewise.
30887         * lib/canonicalize.c: Likewise.
30888         * lib/canonicalize.h: Likewise.
30889         * lib/ceil.c: Likewise.
30890         * lib/ceilf.c: Likewise.
30891         * lib/ceill.c: Likewise.
30892         * lib/chdir-long.c: Likewise.
30893         * lib/chdir-long.h: Likewise.
30894         * lib/chdir-safer.c: Likewise.
30895         * lib/chdir-safer.h: Likewise.
30896         * lib/chown.c: Likewise.
30897         * lib/classpath.c: Likewise.
30898         * lib/classpath.h: Likewise.
30899         * lib/clean-temp.c: Likewise.
30900         * lib/clean-temp.h: Likewise.
30901         * lib/cloexec.c: Likewise.
30902         * lib/close-stream.c: Likewise.
30903         * lib/closein.c: Likewise.
30904         * lib/closein.h: Likewise.
30905         * lib/closeout.c: Likewise.
30906         * lib/closeout.h: Likewise.
30907         * lib/concat-filename.c: Likewise.
30908         * lib/copy-file.c: Likewise.
30909         * lib/copy-file.h: Likewise.
30910         * lib/count-one-bits.h: Likewise.
30911         * lib/crc.c: Likewise.
30912         * lib/crc.h: Likewise.
30913         * lib/creat-safer.c: Likewise.
30914         * lib/csharpcomp.c: Likewise.
30915         * lib/csharpcomp.h: Likewise.
30916         * lib/csharpexec.c: Likewise.
30917         * lib/csharpexec.h: Likewise.
30918         * lib/cycle-check.c: Likewise.
30919         * lib/cycle-check.h: Likewise.
30920         * lib/diacrit.c: Likewise.
30921         * lib/diacrit.h: Likewise.
30922         * lib/diffseq.h: Likewise.
30923         * lib/dirchownmod.c: Likewise.
30924         * lib/dirent.in.h: Likewise.
30925         * lib/dirfd.c: Likewise.
30926         * lib/dirfd.h: Likewise.
30927         * lib/dirname.c: Likewise.
30928         * lib/dirname.h: Likewise.
30929         * lib/dummy.c: Likewise.
30930         * lib/dup-safer.c: Likewise.
30931         * lib/dup2.c: Likewise.
30932         * lib/eealloc.h: Likewise.
30933         * lib/error.c: Likewise.
30934         * lib/error.h: Likewise.
30935         * lib/euidaccess.c: Likewise.
30936         * lib/exclude.c: Likewise.
30937         * lib/exclude.h: Likewise.
30938         * lib/execute.c: Likewise.
30939         * lib/execute.h: Likewise.
30940         * lib/exitfail.c: Likewise.
30941         * lib/exitfail.h: Likewise.
30942         * lib/expl.c: Likewise.
30943         * lib/fatal-signal.c: Likewise.
30944         * lib/fatal-signal.h: Likewise.
30945         * lib/fbufmode.c: Likewise.
30946         * lib/fbufmode.h: Likewise.
30947         * lib/fchdir.c: Likewise.
30948         * lib/fchmodat.c: Likewise.
30949         * lib/fchownat.c: Likewise.
30950         * lib/fcntl--.h: Likewise.
30951         * lib/fcntl-safer.h: Likewise.
30952         * lib/fcntl.in.h: Likewise.
30953         * lib/fd-safer.c: Likewise.
30954         * lib/fflush.c: Likewise.
30955         * lib/file-has-acl.c: Likewise.
30956         * lib/file-set.c: Likewise.
30957         * lib/file-type.c: Likewise.
30958         * lib/file-type.h: Likewise.
30959         * lib/fileblocks.c: Likewise.
30960         * lib/filemode.c: Likewise.
30961         * lib/filemode.h: Likewise.
30962         * lib/filename.h: Likewise.
30963         * lib/filenamecat.c: Likewise.
30964         * lib/filenamecat.h: Likewise.
30965         * lib/findprog.c: Likewise.
30966         * lib/findprog.h: Likewise.
30967         * lib/float.in.h: Likewise.
30968         * lib/floor.c: Likewise.
30969         * lib/floorf.c: Likewise.
30970         * lib/floorl.c: Likewise.
30971         * lib/fopen-safer.c: Likewise.
30972         * lib/fopen.c: Likewise.
30973         * lib/fpending.c: Likewise.
30974         * lib/fpending.h: Likewise.
30975         * lib/fprintf.c: Likewise.
30976         * lib/fprintftime.h: Likewise.
30977         * lib/fpucw.h: Likewise.
30978         * lib/fpurge.c: Likewise.
30979         * lib/fpurge.h: Likewise.
30980         * lib/freadable.c: Likewise.
30981         * lib/freadable.h: Likewise.
30982         * lib/freadahead.c: Likewise.
30983         * lib/freadahead.h: Likewise.
30984         * lib/freading.c: Likewise.
30985         * lib/freading.h: Likewise.
30986         * lib/free.c: Likewise.
30987         * lib/freopen.c: Likewise.
30988         * lib/frexp.c: Likewise.
30989         * lib/frexpl.c: Likewise.
30990         * lib/fseek.c: Likewise.
30991         * lib/fseterr.c: Likewise.
30992         * lib/fseterr.h: Likewise.
30993         * lib/fstatat.c: Likewise.
30994         * lib/fstrcmp.c: Likewise.
30995         * lib/fstrcmp.h: Likewise.
30996         * lib/fsusage.c: Likewise.
30997         * lib/fsusage.h: Likewise.
30998         * lib/ftell.c: Likewise.
30999         * lib/ftello.c: Likewise.
31000         * lib/fts-cycle.c: Likewise.
31001         * lib/fts.c: Likewise.
31002         * lib/fts_.h: Likewise.
31003         * lib/full-read.c: Likewise.
31004         * lib/full-read.h: Likewise.
31005         * lib/full-write.c: Likewise.
31006         * lib/full-write.h: Likewise.
31007         * lib/fwritable.c: Likewise.
31008         * lib/fwritable.h: Likewise.
31009         * lib/fwriteerror.c: Likewise.
31010         * lib/fwriteerror.h: Likewise.
31011         * lib/fwriting.c: Likewise.
31012         * lib/fwriting.h: Likewise.
31013         * lib/gcd.c: Likewise.
31014         * lib/gcd.h: Likewise.
31015         * lib/getcwd.c: Likewise.
31016         * lib/getdate.h: Likewise.
31017         * lib/getdate.y: Likewise.
31018         * lib/getdomainname.c: Likewise.
31019         * lib/getdomainname.h: Likewise.
31020         * lib/getgroups.c: Likewise.
31021         * lib/gethostname.c: Likewise.
31022         * lib/gethrxtime.c: Likewise.
31023         * lib/gethrxtime.h: Likewise.
31024         * lib/getloadavg.c: Likewise.
31025         * lib/getndelim2.c: Likewise.
31026         * lib/getndelim2.h: Likewise.
31027         * lib/getnline.c: Likewise.
31028         * lib/getnline.h: Likewise.
31029         * lib/getopt.c: Likewise.
31030         * lib/getopt.in.h: Likewise.
31031         * lib/getopt1.c: Likewise.
31032         * lib/getopt_int.h: Likewise.
31033         * lib/getpagesize.h: Likewise.
31034         * lib/getsubopt.c: Likewise.
31035         * lib/gettime.c: Likewise.
31036         * lib/getugroups.c: Likewise.
31037         * lib/getugroups.h: Likewise.
31038         * lib/getusershell.c: Likewise.
31039         * lib/gl_anyavltree_list1.h: Likewise.
31040         * lib/gl_anyavltree_list2.h: Likewise.
31041         * lib/gl_anyhash_list1.h: Likewise.
31042         * lib/gl_anyhash_list2.h: Likewise.
31043         * lib/gl_anylinked_list1.h: Likewise.
31044         * lib/gl_anylinked_list2.h: Likewise.
31045         * lib/gl_anyrbtree_list1.h: Likewise.
31046         * lib/gl_anyrbtree_list2.h: Likewise.
31047         * lib/gl_anytree_list1.h: Likewise.
31048         * lib/gl_anytree_list2.h: Likewise.
31049         * lib/gl_anytree_oset.h: Likewise.
31050         * lib/gl_anytreehash_list1.h: Likewise.
31051         * lib/gl_anytreehash_list2.h: Likewise.
31052         * lib/gl_array_list.c: Likewise.
31053         * lib/gl_array_list.h: Likewise.
31054         * lib/gl_array_oset.c: Likewise.
31055         * lib/gl_array_oset.h: Likewise.
31056         * lib/gl_avltree_list.c: Likewise.
31057         * lib/gl_avltree_list.h: Likewise.
31058         * lib/gl_avltree_oset.c: Likewise.
31059         * lib/gl_avltree_oset.h: Likewise.
31060         * lib/gl_avltreehash_list.c: Likewise.
31061         * lib/gl_avltreehash_list.h: Likewise.
31062         * lib/gl_carray_list.c: Likewise.
31063         * lib/gl_carray_list.h: Likewise.
31064         * lib/gl_linked_list.c: Likewise.
31065         * lib/gl_linked_list.h: Likewise.
31066         * lib/gl_linkedhash_list.c: Likewise.
31067         * lib/gl_linkedhash_list.h: Likewise.
31068         * lib/gl_list.c: Likewise.
31069         * lib/gl_list.h: Likewise.
31070         * lib/gl_oset.c: Likewise.
31071         * lib/gl_oset.h: Likewise.
31072         * lib/gl_rbtree_list.c: Likewise.
31073         * lib/gl_rbtree_list.h: Likewise.
31074         * lib/gl_rbtree_oset.c: Likewise.
31075         * lib/gl_rbtree_oset.h: Likewise.
31076         * lib/gl_rbtreehash_list.c: Likewise.
31077         * lib/gl_rbtreehash_list.h: Likewise.
31078         * lib/gl_sublist.c: Likewise.
31079         * lib/gl_sublist.h: Likewise.
31080         * lib/group-member.c: Likewise.
31081         * lib/group-member.h: Likewise.
31082         * lib/hard-locale.c: Likewise.
31083         * lib/hard-locale.h: Likewise.
31084         * lib/hash-pjw.c: Likewise.
31085         * lib/hash-pjw.h: Likewise.
31086         * lib/hash-triple.c: Likewise.
31087         * lib/hash.c: Likewise.
31088         * lib/hash.h: Likewise.
31089         * lib/human.c: Likewise.
31090         * lib/human.h: Likewise.
31091         * lib/i-ring.c: Likewise.
31092         * lib/i-ring.h: Likewise.
31093         * lib/idcache.c: Likewise.
31094         * lib/imaxabs.c: Likewise.
31095         * lib/imaxdiv.c: Likewise.
31096         * lib/inet_pton.c: Likewise.
31097         * lib/inet_pton.h: Likewise.
31098         * lib/intprops.h: Likewise.
31099         * lib/inttostr.c: Likewise.
31100         * lib/inttostr.h: Likewise.
31101         * lib/inttypes.in.h: Likewise.
31102         * lib/isapipe.c: Likewise.
31103         * lib/isdir.c: Likewise.
31104         * lib/isnan.c: Likewise.
31105         * lib/isnan.h: Likewise.
31106         * lib/isnanf.c: Likewise.
31107         * lib/isnanf.h: Likewise.
31108         * lib/isnanl-nolibm.h: Likewise.
31109         * lib/isnanl.c: Likewise.
31110         * lib/isnanl.h: Likewise.
31111         * lib/javacomp.c: Likewise.
31112         * lib/javacomp.h: Likewise.
31113         * lib/javaexec.c: Likewise.
31114         * lib/javaexec.h: Likewise.
31115         * lib/javaversion.c: Likewise.
31116         * lib/javaversion.h: Likewise.
31117         * lib/javaversion.java: Likewise.
31118         * lib/lbrkprop.h: Likewise.
31119         * lib/lchmod.h: Likewise.
31120         * lib/lchown.c: Likewise.
31121         * lib/ldexpl.c: Likewise.
31122         * lib/linebreak.c: Likewise.
31123         * lib/linebreak.h: Likewise.
31124         * lib/linebuffer.c: Likewise.
31125         * lib/linebuffer.h: Likewise.
31126         * lib/locale.in.h: Likewise.
31127         * lib/logl.c: Likewise.
31128         * lib/long-options.c: Likewise.
31129         * lib/long-options.h: Likewise.
31130         * lib/lstat.c: Likewise.
31131         * lib/lstat.h: Likewise.
31132         * lib/math.in.h: Likewise.
31133         * lib/mbchar.c: Likewise.
31134         * lib/mbchar.h: Likewise.
31135         * lib/mbfile.h: Likewise.
31136         * lib/mbiter.h: Likewise.
31137         * lib/mbscasecmp.c: Likewise.
31138         * lib/mbscasestr.c: Likewise.
31139         * lib/mbschr.c: Likewise.
31140         * lib/mbscspn.c: Likewise.
31141         * lib/mbslen.c: Likewise.
31142         * lib/mbsncasecmp.c: Likewise.
31143         * lib/mbsnlen.c: Likewise.
31144         * lib/mbspbrk.c: Likewise.
31145         * lib/mbspcasecmp.c: Likewise.
31146         * lib/mbsrchr.c: Likewise.
31147         * lib/mbssep.c: Likewise.
31148         * lib/mbsspn.c: Likewise.
31149         * lib/mbsstr.c: Likewise.
31150         * lib/mbstok_r.c: Likewise.
31151         * lib/mbswidth.c: Likewise.
31152         * lib/mbswidth.h: Likewise.
31153         * lib/mbuiter.h: Likewise.
31154         * lib/memcasecmp.c: Likewise.
31155         * lib/memcasecmp.h: Likewise.
31156         * lib/memchr.c: Likewise.
31157         * lib/memcmp.c: Likewise.
31158         * lib/memcoll.c: Likewise.
31159         * lib/memcoll.h: Likewise.
31160         * lib/memcpy.c: Likewise.
31161         * lib/memrchr.c: Likewise.
31162         * lib/mkancesdirs.c: Likewise.
31163         * lib/mkdir-p.c: Likewise.
31164         * lib/mkdir-p.h: Likewise.
31165         * lib/mkdir.c: Likewise.
31166         * lib/mkdirat.c: Likewise.
31167         * lib/mkdtemp.c: Likewise.
31168         * lib/mkstemp-safer.c: Likewise.
31169         * lib/mkstemp.c: Likewise.
31170         * lib/modechange.c: Likewise.
31171         * lib/modechange.h: Likewise.
31172         * lib/mountlist.c: Likewise.
31173         * lib/mountlist.h: Likewise.
31174         * lib/mpsort.c: Likewise.
31175         * lib/nanosleep.c: Likewise.
31176         * lib/obstack.c: Likewise.
31177         * lib/obstack.h: Likewise.
31178         * lib/open-safer.c: Likewise.
31179         * lib/open.c: Likewise.
31180         * lib/openat-die.c: Likewise.
31181         * lib/openat-priv.h: Likewise.
31182         * lib/openat-proc.c: Likewise.
31183         * lib/openat.c: Likewise.
31184         * lib/openat.h: Likewise.
31185         * lib/pagealign_alloc.c: Likewise.
31186         * lib/pagealign_alloc.h: Likewise.
31187         * lib/physmem.c: Likewise.
31188         * lib/physmem.h: Likewise.
31189         * lib/pipe-safer.c: Likewise.
31190         * lib/pipe.c: Likewise.
31191         * lib/pipe.h: Likewise.
31192         * lib/posixtm.c: Likewise.
31193         * lib/posixtm.h: Likewise.
31194         * lib/posixver.c: Likewise.
31195         * lib/printf-frexp.c: Likewise.
31196         * lib/printf-frexp.h: Likewise.
31197         * lib/printf-frexpl.c: Likewise.
31198         * lib/printf-frexpl.h: Likewise.
31199         * lib/printf.c: Likewise.
31200         * lib/progname.c: Likewise.
31201         * lib/progname.h: Likewise.
31202         * lib/progreloc.c: Likewise.
31203         * lib/putenv.c: Likewise.
31204         * lib/quote.c: Likewise.
31205         * lib/quote.h: Likewise.
31206         * lib/quotearg.c: Likewise.
31207         * lib/quotearg.h: Likewise.
31208         * lib/raise.c: Likewise.
31209         * lib/readline.c: Likewise.
31210         * lib/readline.h: Likewise.
31211         * lib/readlink.c: Likewise.
31212         * lib/readtokens.c: Likewise.
31213         * lib/readtokens.h: Likewise.
31214         * lib/readtokens0.c: Likewise.
31215         * lib/readtokens0.h: Likewise.
31216         * lib/readutmp.c: Likewise.
31217         * lib/readutmp.h: Likewise.
31218         * lib/realloc.c: Likewise.
31219         * lib/relocwrapper.c: Likewise.
31220         * lib/rename-dest-slash.c: Likewise.
31221         * lib/rename.c: Likewise.
31222         * lib/rmdir.c: Likewise.
31223         * lib/rpmatch.c: Likewise.
31224         * lib/safe-read.c: Likewise.
31225         * lib/safe-read.h: Likewise.
31226         * lib/safe-write.c: Likewise.
31227         * lib/safe-write.h: Likewise.
31228         * lib/same-inode.h: Likewise.
31229         * lib/same.c: Likewise.
31230         * lib/same.h: Likewise.
31231         * lib/save-cwd.c: Likewise.
31232         * lib/save-cwd.h: Likewise.
31233         * lib/savedir.c: Likewise.
31234         * lib/savedir.h: Likewise.
31235         * lib/savewd.c: Likewise.
31236         * lib/savewd.h: Likewise.
31237         * lib/search.in.h: Likewise.
31238         * lib/setenv.c: Likewise.
31239         * lib/setenv.h: Likewise.
31240         * lib/settime.c: Likewise.
31241         * lib/sh-quote.c: Likewise.
31242         * lib/sh-quote.h: Likewise.
31243         * lib/sig2str.c: Likewise.
31244         * lib/sig2str.h: Likewise.
31245         * lib/signal.in.h: Likewise.
31246         * lib/signbitd.c: Likewise.
31247         * lib/signbitf.c: Likewise.
31248         * lib/signbitl.c: Likewise.
31249         * lib/sigprocmask.c: Likewise.
31250         * lib/sincosl.c: Likewise.
31251         * lib/sleep.c: Likewise.
31252         * lib/sprintf.c: Likewise.
31253         * lib/sqrtl.c: Likewise.
31254         * lib/stat-time.h: Likewise.
31255         * lib/stdio--.h: Likewise.
31256         * lib/stdio-safer.h: Likewise.
31257         * lib/stdlib--.h: Likewise.
31258         * lib/stdlib-safer.h: Likewise.
31259         * lib/stdlib.in.h: Likewise.
31260         * lib/stpcpy.c: Likewise.
31261         * lib/stpncpy.c: Likewise.
31262         * lib/strchrnul.c: Likewise.
31263         * lib/strcspn.c: Likewise.
31264         * lib/strerror.c: Likewise.
31265         * lib/strftime.c: Likewise.
31266         * lib/strftime.h: Likewise.
31267         * lib/striconveh.c: Likewise.
31268         * lib/striconveh.h: Likewise.
31269         * lib/striconveha.c: Likewise.
31270         * lib/striconveha.h: Likewise.
31271         * lib/stripslash.c: Likewise.
31272         * lib/strnlen1.c: Likewise.
31273         * lib/strnlen1.h: Likewise.
31274         * lib/strtod.c: Likewise.
31275         * lib/strtoimax.c: Likewise.
31276         * lib/strtok_r.c: Likewise.
31277         * lib/strtol.c: Likewise.
31278         * lib/strtoll.c: Likewise.
31279         * lib/strtoul.c: Likewise.
31280         * lib/strtoull.c: Likewise.
31281         * lib/sysexits.in.h: Likewise.
31282         * lib/tempname.c: Likewise.
31283         * lib/tempname.h: Likewise.
31284         * lib/timespec.h: Likewise.
31285         * lib/tls.c: Likewise.
31286         * lib/tls.h: Likewise.
31287         * lib/tmpdir.c: Likewise.
31288         * lib/tmpdir.h: Likewise.
31289         * lib/tmpfile-safer.c: Likewise.
31290         * lib/tmpfile.c: Likewise.
31291         * lib/trigl.c: Likewise.
31292         * lib/trigl.h: Likewise.
31293         * lib/trim.c: Likewise.
31294         * lib/trim.h: Likewise.
31295         * lib/trunc.c: Likewise.
31296         * lib/truncf.c: Likewise.
31297         * lib/truncl.c: Likewise.
31298         * lib/tsearch.c: Likewise.
31299         * lib/unicodeio.c: Likewise.
31300         * lib/unicodeio.h: Likewise.
31301         * lib/unistd--.h: Likewise.
31302         * lib/unistd-safer.h: Likewise.
31303         * lib/unistdio/ulc-fprintf.c: Likewise.
31304         * lib/unistdio/ulc-vfprintf.c: Likewise.
31305         * lib/unlinkdir.c: Likewise.
31306         * lib/unlinkdir.h: Likewise.
31307         * lib/unlocked-io.h: Likewise.
31308         * lib/unsetenv.c: Likewise.
31309         * lib/userspec.c: Likewise.
31310         * lib/utime.c: Likewise.
31311         * lib/utimecmp.c: Likewise.
31312         * lib/utimecmp.h: Likewise.
31313         * lib/utimens.c: Likewise.
31314         * lib/verify.h: Likewise.
31315         * lib/verror.c: Likewise.
31316         * lib/verror.h: Likewise.
31317         * lib/version-etc-fsf.c: Likewise.
31318         * lib/version-etc.c: Likewise.
31319         * lib/version-etc.h: Likewise.
31320         * lib/vfprintf.c: Likewise.
31321         * lib/vprintf.c: Likewise.
31322         * lib/vsprintf.c: Likewise.
31323         * lib/w32spawn.h: Likewise.
31324         * lib/wait-process.c: Likewise.
31325         * lib/wait-process.h: Likewise.
31326         * lib/wcwidth.c: Likewise.
31327         * lib/write-any-file.c: Likewise.
31328         * lib/xalloc-die.c: Likewise.
31329         * lib/xalloc.h: Likewise.
31330         * lib/xasprintf.c: Likewise.
31331         * lib/xgetcwd.c: Likewise.
31332         * lib/xgetcwd.h: Likewise.
31333         * lib/xgetdomainname.c: Likewise.
31334         * lib/xgetdomainname.h: Likewise.
31335         * lib/xgethostname.c: Likewise.
31336         * lib/xmalloc.c: Likewise.
31337         * lib/xmalloca.c: Likewise.
31338         * lib/xmalloca.h: Likewise.
31339         * lib/xmemcoll.c: Likewise.
31340         * lib/xnanosleep.c: Likewise.
31341         * lib/xreadlink.c: Likewise.
31342         * lib/xreadlink.h: Likewise.
31343         * lib/xsetenv.c: Likewise.
31344         * lib/xsetenv.h: Likewise.
31345         * lib/xstriconv.c: Likewise.
31346         * lib/xstriconv.h: Likewise.
31347         * lib/xstrndup.c: Likewise.
31348         * lib/xstrndup.h: Likewise.
31349         * lib/xstrtod.c: Likewise.
31350         * lib/xstrtod.h: Likewise.
31351         * lib/xstrtol-error.c: Likewise.
31352         * lib/xstrtol.c: Likewise.
31353         * lib/xstrtol.h: Likewise.
31354         * lib/xtime.h: Likewise.
31355         * lib/xvasprintf.c: Likewise.
31356         * lib/xvasprintf.h: Likewise.
31357         * lib/yesno.c: Likewise.
31358         * lib/yesno.h: Likewise.
31359         * posix-modules: Likewise.
31360         * tests/test-alloca-opt.c: Likewise.
31361         * tests/test-arcfour.c: Likewise.
31362         * tests/test-arctwo.c: Likewise.
31363         * tests/test-argmatch.c: Likewise.
31364         * tests/test-argp-2.sh: Likewise.
31365         * tests/test-argp.c: Likewise.
31366         * tests/test-arpa_inet.c: Likewise.
31367         * tests/test-array_list.c: Likewise.
31368         * tests/test-array_oset.c: Likewise.
31369         * tests/test-atexit.c: Likewise.
31370         * tests/test-avltree_list.c: Likewise.
31371         * tests/test-avltree_oset.c: Likewise.
31372         * tests/test-avltreehash_list.c: Likewise.
31373         * tests/test-base64.c: Likewise.
31374         * tests/test-binary-io.c: Likewise.
31375         * tests/test-byteswap.c: Likewise.
31376         * tests/test-c-ctype.c: Likewise.
31377         * tests/test-c-strcasecmp.c: Likewise.
31378         * tests/test-c-strcasestr.c: Likewise.
31379         * tests/test-c-strncasecmp.c: Likewise.
31380         * tests/test-c-strstr.c: Likewise.
31381         * tests/test-canonicalize-lgpl.c: Likewise.
31382         * tests/test-canonicalize.c: Likewise.
31383         * tests/test-carray_list.c: Likewise.
31384         * tests/test-ceilf.c: Likewise.
31385         * tests/test-ceill.c: Likewise.
31386         * tests/test-count-one-bits.c: Likewise.
31387         * tests/test-crc.c: Likewise.
31388         * tests/test-dirname.c: Likewise.
31389         * tests/test-fbufmode.c: Likewise.
31390         * tests/test-fcntl.c: Likewise.
31391         * tests/test-fflush.c: Likewise.
31392         * tests/test-floorf.c: Likewise.
31393         * tests/test-floorl.c: Likewise.
31394         * tests/test-fopen.c: Likewise.
31395         * tests/test-fprintf-posix.c: Likewise.
31396         * tests/test-fprintf-posix.h: Likewise.
31397         * tests/test-fpurge.c: Likewise.
31398         * tests/test-freadable.c: Likewise.
31399         * tests/test-freadahead.c: Likewise.
31400         * tests/test-freading.c: Likewise.
31401         * tests/test-freopen.c: Likewise.
31402         * tests/test-frexp.c: Likewise.
31403         * tests/test-frexpl.c: Likewise.
31404         * tests/test-fseek.c: Likewise.
31405         * tests/test-fseeko.c: Likewise.
31406         * tests/test-fseterr.c: Likewise.
31407         * tests/test-fstrcmp.c: Likewise.
31408         * tests/test-ftell.c: Likewise.
31409         * tests/test-ftello.c: Likewise.
31410         * tests/test-fwritable.c: Likewise.
31411         * tests/test-fwriting.c: Likewise.
31412         * tests/test-getaddrinfo.c: Likewise.
31413         * tests/test-getpass.c: Likewise.
31414         * tests/test-gettimeofday.c: Likewise.
31415         * tests/test-hmac-md5.c: Likewise.
31416         * tests/test-hmac-sha1.c: Likewise.
31417         * tests/test-iconv.c: Likewise.
31418         * tests/test-iconvme.c: Likewise.
31419         * tests/test-inttypes.c: Likewise.
31420         * tests/test-isnan.c: Likewise.
31421         * tests/test-isnanf.c: Likewise.
31422         * tests/test-isnanl-nolibm.c: Likewise.
31423         * tests/test-isnanl.c: Likewise.
31424         * tests/test-isnanl.h: Likewise.
31425         * tests/test-ldexpl.c: Likewise.
31426         * tests/test-linked_list.c: Likewise.
31427         * tests/test-linkedhash_list.c: Likewise.
31428         * tests/test-locale.c: Likewise.
31429         * tests/test-localename.c: Likewise.
31430         * tests/test-lock.c: Likewise.
31431         * tests/test-lseek.c: Likewise.
31432         * tests/test-malloca.c: Likewise.
31433         * tests/test-math.c: Likewise.
31434         * tests/test-mbscasecmp.c: Likewise.
31435         * tests/test-mbscasestr1.c: Likewise.
31436         * tests/test-mbscasestr2.c: Likewise.
31437         * tests/test-mbscasestr3.c: Likewise.
31438         * tests/test-mbscasestr4.c: Likewise.
31439         * tests/test-mbschr.c: Likewise.
31440         * tests/test-mbscspn.c: Likewise.
31441         * tests/test-mbsncasecmp.c: Likewise.
31442         * tests/test-mbspbrk.c: Likewise.
31443         * tests/test-mbspcasecmp.c: Likewise.
31444         * tests/test-mbsrchr.c: Likewise.
31445         * tests/test-mbsspn.c: Likewise.
31446         * tests/test-mbsstr1.c: Likewise.
31447         * tests/test-mbsstr2.c: Likewise.
31448         * tests/test-mbsstr3.c: Likewise.
31449         * tests/test-md5.c: Likewise.
31450         * tests/test-memmem.c: Likewise.
31451         * tests/test-netinet_in.c: Likewise.
31452         * tests/test-open.c: Likewise.
31453         * tests/test-printf-frexp.c: Likewise.
31454         * tests/test-printf-frexpl.c: Likewise.
31455         * tests/test-printf-posix.c: Likewise.
31456         * tests/test-printf-posix.h: Likewise.
31457         * tests/test-rbtree_list.c: Likewise.
31458         * tests/test-rbtree_oset.c: Likewise.
31459         * tests/test-rbtreehash_list.c: Likewise.
31460         * tests/test-read-file.c: Likewise.
31461         * tests/test-rijndael.c: Likewise.
31462         * tests/test-search.c: Likewise.
31463         * tests/test-signbit.c: Likewise.
31464         * tests/test-sleep.c: Likewise.
31465         * tests/test-snprintf-posix.c: Likewise.
31466         * tests/test-snprintf-posix.h: Likewise.
31467         * tests/test-snprintf.c: Likewise.
31468         * tests/test-sprintf-posix.c: Likewise.
31469         * tests/test-sprintf-posix.h: Likewise.
31470         * tests/test-stat-time.c: Likewise.
31471         * tests/test-stdbool.c: Likewise.
31472         * tests/test-stdint.c: Likewise.
31473         * tests/test-stdio.c: Likewise.
31474         * tests/test-stdlib.c: Likewise.
31475         * tests/test-stpncpy.c: Likewise.
31476         * tests/test-strcasestr.c: Likewise.
31477         * tests/test-striconv.c: Likewise.
31478         * tests/test-striconveh.c: Likewise.
31479         * tests/test-striconveha.c: Likewise.
31480         * tests/test-string.c: Likewise.
31481         * tests/test-sys_select.c: Likewise.
31482         * tests/test-sys_socket.c: Likewise.
31483         * tests/test-sys_stat.c: Likewise.
31484         * tests/test-sys_time.c: Likewise.
31485         * tests/test-sysexits.c: Likewise.
31486         * tests/test-time.c: Likewise.
31487         * tests/test-tls.c: Likewise.
31488         * tests/test-trunc.c: Likewise.
31489         * tests/test-truncf.c: Likewise.
31490         * tests/test-truncl.c: Likewise.
31491         * tests/test-unistd.c: Likewise.
31492         * tests/test-vasnprintf-posix.c: Likewise.
31493         * tests/test-vasnprintf-posix2.c: Likewise.
31494         * tests/test-vasnprintf.c: Likewise.
31495         * tests/test-vasprintf-posix.c: Likewise.
31496         * tests/test-vasprintf.c: Likewise.
31497         * tests/test-verify.c: Likewise.
31498         * tests/test-vfprintf-posix.c: Likewise.
31499         * tests/test-vprintf-posix.c: Likewise.
31500         * tests/test-vsnprintf-posix.c: Likewise.
31501         * tests/test-vsnprintf.c: Likewise.
31502         * tests/test-vsprintf-posix.c: Likewise.
31503         * tests/test-wchar.c: Likewise.
31504         * tests/test-wctype.c: Likewise.
31505         * tests/test-wcwidth.c: Likewise.
31506         * tests/test-xstrtol.c: Likewise.
31507         * tests/test-xvasprintf.c: Likewise.
31508         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31509         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31510         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31511         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31512         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31513         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31514         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31515         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31516         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31517         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31518         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31519         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31520         * tests/uniname/test-uninames.c: Likewise.
31521         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31522         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31523         * tests/unistdio/test-u16-printf1.h: Likewise.
31524         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31525         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31526         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31527         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31528         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31529         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31530         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31531         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31532         * tests/unistdio/test-u32-printf1.h: Likewise.
31533         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31534         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31535         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31536         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31537         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31538         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31539         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31540         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31541         * tests/unistdio/test-u8-printf1.h: Likewise.
31542         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31543         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31544         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31545         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31546         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31547         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31548         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31549         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31550         * tests/unistdio/test-ulc-printf1.h: Likewise.
31551         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31552         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31553         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31554         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31555         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31556         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31557         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31558         * tests/uniwidth/test-u16-width.c: Likewise.
31559         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31560         * tests/uniwidth/test-u32-width.c: Likewise.
31561         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31562         * tests/uniwidth/test-u8-width.c: Likewise.
31563         * tests/uniwidth/test-uc_width.c: Likewise.
31564         * config/srclist-update: Likewise.
31565         (fixlicense): Update to GPLv3+.
31566
31567         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31568         * tests/test-tsearch.c: Change copyright notice.
31569
31570         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31571         * lib/c-strcaseeq.h: Change copyright notice.
31572         * lib/streq.h: Likewise.
31573         * lib/uniconv.h: Likewise.
31574         * lib/uniconv/u-conv-from-enc.h: Likewise.
31575         * lib/uniconv/u-conv-to-enc.h: Likewise.
31576         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31577         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31578         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31579         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31580         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31581         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31582         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31583         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31584         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31585         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31586         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31587         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31588         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31589         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31590         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31591         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31592         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31593         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31594         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31595         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31596         * lib/uniname.h: Likewise.
31597         * lib/uniname/uniname.c: Likewise.
31598         * lib/unistdio.h: Likewise.
31599         * lib/unistdio/u-asnprintf.h: Likewise.
31600         * lib/unistdio/u-asprintf.h: Likewise.
31601         * lib/unistdio/u-printf-args.c: Likewise.
31602         * lib/unistdio/u-printf-args.h: Likewise.
31603         * lib/unistdio/u-printf-parse.h: Likewise.
31604         * lib/unistdio/u-snprintf.h: Likewise.
31605         * lib/unistdio/u-sprintf.h: Likewise.
31606         * lib/unistdio/u-vasprintf.h: Likewise.
31607         * lib/unistdio/u-vsnprintf.h: Likewise.
31608         * lib/unistdio/u-vsprintf.h: Likewise.
31609         * lib/unistdio/u16-asnprintf.c: Likewise.
31610         * lib/unistdio/u16-asprintf.c: Likewise.
31611         * lib/unistdio/u16-printf-parse.c: Likewise.
31612         * lib/unistdio/u16-snprintf.c: Likewise.
31613         * lib/unistdio/u16-sprintf.c: Likewise.
31614         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31615         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31616         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31617         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31618         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31619         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31620         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31621         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31622         * lib/unistdio/u16-vasnprintf.c: Likewise.
31623         * lib/unistdio/u16-vasprintf.c: Likewise.
31624         * lib/unistdio/u16-vsnprintf.c: Likewise.
31625         * lib/unistdio/u16-vsprintf.c: Likewise.
31626         * lib/unistdio/u32-asnprintf.c: Likewise.
31627         * lib/unistdio/u32-asprintf.c: Likewise.
31628         * lib/unistdio/u32-printf-parse.c: Likewise.
31629         * lib/unistdio/u32-snprintf.c: Likewise.
31630         * lib/unistdio/u32-sprintf.c: Likewise.
31631         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31632         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31633         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31634         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31635         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31636         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31637         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31638         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31639         * lib/unistdio/u32-vasnprintf.c: Likewise.
31640         * lib/unistdio/u32-vasprintf.c: Likewise.
31641         * lib/unistdio/u32-vsnprintf.c: Likewise.
31642         * lib/unistdio/u32-vsprintf.c: Likewise.
31643         * lib/unistdio/u8-asnprintf.c: Likewise.
31644         * lib/unistdio/u8-asprintf.c: Likewise.
31645         * lib/unistdio/u8-printf-parse.c: Likewise.
31646         * lib/unistdio/u8-snprintf.c: Likewise.
31647         * lib/unistdio/u8-sprintf.c: Likewise.
31648         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31649         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31650         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31651         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31652         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31653         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31654         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31655         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31656         * lib/unistdio/u8-vasnprintf.c: Likewise.
31657         * lib/unistdio/u8-vasprintf.c: Likewise.
31658         * lib/unistdio/u8-vsnprintf.c: Likewise.
31659         * lib/unistdio/u8-vsprintf.c: Likewise.
31660         * lib/unistdio/ulc-asnprintf.c: Likewise.
31661         * lib/unistdio/ulc-asprintf.c: Likewise.
31662         * lib/unistdio/ulc-printf-parse.c: Likewise.
31663         * lib/unistdio/ulc-snprintf.c: Likewise.
31664         * lib/unistdio/ulc-sprintf.c: Likewise.
31665         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31666         * lib/unistdio/ulc-vasprintf.c: Likewise.
31667         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31668         * lib/unistdio/ulc-vsprintf.c: Likewise.
31669         * lib/unistr.h: Likewise.
31670         * lib/unistr/u-cpy-alloc.h: Likewise.
31671         * lib/unistr/u-cpy.h: Likewise.
31672         * lib/unistr/u-endswith.h: Likewise.
31673         * lib/unistr/u-move.h: Likewise.
31674         * lib/unistr/u-set.h: Likewise.
31675         * lib/unistr/u-startswith.h: Likewise.
31676         * lib/unistr/u-stpcpy.h: Likewise.
31677         * lib/unistr/u-stpncpy.h: Likewise.
31678         * lib/unistr/u-strcat.h: Likewise.
31679         * lib/unistr/u-strcpy.h: Likewise.
31680         * lib/unistr/u-strcspn.h: Likewise.
31681         * lib/unistr/u-strdup.h: Likewise.
31682         * lib/unistr/u-strlen.h: Likewise.
31683         * lib/unistr/u-strncat.h: Likewise.
31684         * lib/unistr/u-strncpy.h: Likewise.
31685         * lib/unistr/u-strnlen.h: Likewise.
31686         * lib/unistr/u-strpbrk.h: Likewise.
31687         * lib/unistr/u-strspn.h: Likewise.
31688         * lib/unistr/u-strstr.h: Likewise.
31689         * lib/unistr/u-strtok.h: Likewise.
31690         * lib/unistr/u16-check.c: Likewise.
31691         * lib/unistr/u16-chr.c: Likewise.
31692         * lib/unistr/u16-cmp.c: Likewise.
31693         * lib/unistr/u16-cpy-alloc.c: Likewise.
31694         * lib/unistr/u16-cpy.c: Likewise.
31695         * lib/unistr/u16-endswith.c: Likewise.
31696         * lib/unistr/u16-mblen.c: Likewise.
31697         * lib/unistr/u16-mbsnlen.c: Likewise.
31698         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31699         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31700         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31701         * lib/unistr/u16-mbtouc.c: Likewise.
31702         * lib/unistr/u16-mbtoucr.c: Likewise.
31703         * lib/unistr/u16-move.c: Likewise.
31704         * lib/unistr/u16-next.c: Likewise.
31705         * lib/unistr/u16-prev.c: Likewise.
31706         * lib/unistr/u16-set.c: Likewise.
31707         * lib/unistr/u16-startswith.c: Likewise.
31708         * lib/unistr/u16-stpcpy.c: Likewise.
31709         * lib/unistr/u16-stpncpy.c: Likewise.
31710         * lib/unistr/u16-strcat.c: Likewise.
31711         * lib/unistr/u16-strchr.c: Likewise.
31712         * lib/unistr/u16-strcmp.c: Likewise.
31713         * lib/unistr/u16-strcpy.c: Likewise.
31714         * lib/unistr/u16-strcspn.c: Likewise.
31715         * lib/unistr/u16-strdup.c: Likewise.
31716         * lib/unistr/u16-strlen.c: Likewise.
31717         * lib/unistr/u16-strmblen.c: Likewise.
31718         * lib/unistr/u16-strmbtouc.c: Likewise.
31719         * lib/unistr/u16-strncat.c: Likewise.
31720         * lib/unistr/u16-strncmp.c: Likewise.
31721         * lib/unistr/u16-strncpy.c: Likewise.
31722         * lib/unistr/u16-strnlen.c: Likewise.
31723         * lib/unistr/u16-strpbrk.c: Likewise.
31724         * lib/unistr/u16-strrchr.c: Likewise.
31725         * lib/unistr/u16-strspn.c: Likewise.
31726         * lib/unistr/u16-strstr.c: Likewise.
31727         * lib/unistr/u16-strtok.c: Likewise.
31728         * lib/unistr/u16-to-u32.c: Likewise.
31729         * lib/unistr/u16-to-u8.c: Likewise.
31730         * lib/unistr/u16-uctomb-aux.c: Likewise.
31731         * lib/unistr/u16-uctomb.c: Likewise.
31732         * lib/unistr/u32-check.c: Likewise.
31733         * lib/unistr/u32-chr.c: Likewise.
31734         * lib/unistr/u32-cmp.c: Likewise.
31735         * lib/unistr/u32-cpy-alloc.c: Likewise.
31736         * lib/unistr/u32-cpy.c: Likewise.
31737         * lib/unistr/u32-endswith.c: Likewise.
31738         * lib/unistr/u32-mblen.c: Likewise.
31739         * lib/unistr/u32-mbsnlen.c: Likewise.
31740         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31741         * lib/unistr/u32-mbtouc.c: Likewise.
31742         * lib/unistr/u32-mbtoucr.c: Likewise.
31743         * lib/unistr/u32-move.c: Likewise.
31744         * lib/unistr/u32-next.c: Likewise.
31745         * lib/unistr/u32-prev.c: Likewise.
31746         * lib/unistr/u32-set.c: Likewise.
31747         * lib/unistr/u32-startswith.c: Likewise.
31748         * lib/unistr/u32-stpcpy.c: Likewise.
31749         * lib/unistr/u32-stpncpy.c: Likewise.
31750         * lib/unistr/u32-strcat.c: Likewise.
31751         * lib/unistr/u32-strchr.c: Likewise.
31752         * lib/unistr/u32-strcmp.c: Likewise.
31753         * lib/unistr/u32-strcpy.c: Likewise.
31754         * lib/unistr/u32-strcspn.c: Likewise.
31755         * lib/unistr/u32-strdup.c: Likewise.
31756         * lib/unistr/u32-strlen.c: Likewise.
31757         * lib/unistr/u32-strmblen.c: Likewise.
31758         * lib/unistr/u32-strmbtouc.c: Likewise.
31759         * lib/unistr/u32-strncat.c: Likewise.
31760         * lib/unistr/u32-strncmp.c: Likewise.
31761         * lib/unistr/u32-strncpy.c: Likewise.
31762         * lib/unistr/u32-strnlen.c: Likewise.
31763         * lib/unistr/u32-strpbrk.c: Likewise.
31764         * lib/unistr/u32-strrchr.c: Likewise.
31765         * lib/unistr/u32-strspn.c: Likewise.
31766         * lib/unistr/u32-strstr.c: Likewise.
31767         * lib/unistr/u32-strtok.c: Likewise.
31768         * lib/unistr/u32-to-u16.c: Likewise.
31769         * lib/unistr/u32-to-u8.c: Likewise.
31770         * lib/unistr/u32-uctomb.c: Likewise.
31771         * lib/unistr/u8-check.c: Likewise.
31772         * lib/unistr/u8-chr.c: Likewise.
31773         * lib/unistr/u8-cmp.c: Likewise.
31774         * lib/unistr/u8-cpy-alloc.c: Likewise.
31775         * lib/unistr/u8-cpy.c: Likewise.
31776         * lib/unistr/u8-endswith.c: Likewise.
31777         * lib/unistr/u8-mblen.c: Likewise.
31778         * lib/unistr/u8-mbsnlen.c: Likewise.
31779         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31780         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31781         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31782         * lib/unistr/u8-mbtouc.c: Likewise.
31783         * lib/unistr/u8-mbtoucr.c: Likewise.
31784         * lib/unistr/u8-move.c: Likewise.
31785         * lib/unistr/u8-next.c: Likewise.
31786         * lib/unistr/u8-prev.c: Likewise.
31787         * lib/unistr/u8-set.c: Likewise.
31788         * lib/unistr/u8-startswith.c: Likewise.
31789         * lib/unistr/u8-stpcpy.c: Likewise.
31790         * lib/unistr/u8-stpncpy.c: Likewise.
31791         * lib/unistr/u8-strcat.c: Likewise.
31792         * lib/unistr/u8-strchr.c: Likewise.
31793         * lib/unistr/u8-strcmp.c: Likewise.
31794         * lib/unistr/u8-strcpy.c: Likewise.
31795         * lib/unistr/u8-strcspn.c: Likewise.
31796         * lib/unistr/u8-strdup.c: Likewise.
31797         * lib/unistr/u8-strlen.c: Likewise.
31798         * lib/unistr/u8-strmblen.c: Likewise.
31799         * lib/unistr/u8-strmbtouc.c: Likewise.
31800         * lib/unistr/u8-strncat.c: Likewise.
31801         * lib/unistr/u8-strncmp.c: Likewise.
31802         * lib/unistr/u8-strncpy.c: Likewise.
31803         * lib/unistr/u8-strnlen.c: Likewise.
31804         * lib/unistr/u8-strpbrk.c: Likewise.
31805         * lib/unistr/u8-strrchr.c: Likewise.
31806         * lib/unistr/u8-strspn.c: Likewise.
31807         * lib/unistr/u8-strstr.c: Likewise.
31808         * lib/unistr/u8-strtok.c: Likewise.
31809         * lib/unistr/u8-to-u16.c: Likewise.
31810         * lib/unistr/u8-to-u32.c: Likewise.
31811         * lib/unistr/u8-uctomb-aux.c: Likewise.
31812         * lib/unistr/u8-uctomb.c: Likewise.
31813         * lib/unitypes.h: Likewise.
31814         * lib/uniwidth.h: Likewise.
31815         * lib/uniwidth/cjk.h: Likewise.
31816         * lib/uniwidth/u16-strwidth.c: Likewise.
31817         * lib/uniwidth/u16-width.c: Likewise.
31818         * lib/uniwidth/u32-strwidth.c: Likewise.
31819         * lib/uniwidth/u32-width.c: Likewise.
31820         * lib/uniwidth/u8-strwidth.c: Likewise.
31821         * lib/uniwidth/u8-width.c: Likewise.
31822         * lib/uniwidth/width.c: Likewise.
31823
31824 2007-10-07  Bruno Haible  <bruno@clisp.org>
31825
31826         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31827         The file is still under LGPL (see modules/inttypes).
31828
31829 2007-10-06  Bruno Haible  <bruno@clisp.org>
31830
31831         * modules/trunc (Dependencies): Add 'extensions'.
31832         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31833         Reported by Ben Pfaff <blp@gnu.org>.
31834
31835 2007-10-06  Bruno Haible  <bruno@clisp.org>
31836
31837         * modules/freopen-tests: New file.
31838         * tests/test-freopen.c: New file.
31839
31840         * modules/fopen-tests: New file.
31841         * tests/test-fopen.c: New file.
31842
31843         * modules/fopen: New file.
31844         * lib/fopen.c: New file.
31845         * m4/fopen.m4: New file.
31846         * modules/freopen: New file.
31847         * lib/freopen.c: New file.
31848         * m4/freopen.m4: New file.
31849         * lib/stdio.in.h (fopen, freopen): New declarations.
31850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31851         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31852         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31853         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31854         * doc/functions/fopen.texi: Mention the 'fopen' module.
31855         * doc/functions/freopen.texi: Mention the 'freopen' module.
31856
31857 2007-10-06  Bruno Haible  <bruno@clisp.org>
31858
31859         * modules/open-tests: New file.
31860         * tests/test-open.c: New file.
31861
31862         * modules/open: New file.
31863         * lib/open.c: New file.
31864         * m4/open.m4: New file.
31865         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31866         lib/open.c does.
31867         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31868         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31869         macros.
31870         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31871         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31872         REPLACE_OPEN.
31873         * doc/functions/open.texi: Mention the 'open' module.
31874
31875 2007-10-04  Bruno Haible  <bruno@clisp.org>
31876
31877         * modules/ceill-tests: New file.
31878         * tests/test-ceill.c: New file.
31879
31880         * modules/ceill: New file.
31881         * lib/ceill.c: Replace entire file.
31882         * m4/ceill.m4: New file.
31883         * lib/math.in.h (ceill): Replace declaration.
31884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31885         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31886         * doc/functions/ceill.texi: Mention the 'ceill' module.
31887         * modules/mathl (Files): Remove lib/ceill.c.
31888         (Depends-on): Add ceill.
31889
31890 2007-10-04  Bruno Haible  <bruno@clisp.org>
31891
31892         * modules/ceilf-tests: New file.
31893         * tests/test-ceilf.c: New file.
31894
31895         * modules/ceilf: New file.
31896         * lib/ceil.c: New file.
31897         * lib/ceilf.c: New file.
31898         * m4/ceilf.m4: New file.
31899         * lib/math.in.h (ceilf): New declaration.
31900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31901         HAVE_DECL_CEILF.
31902         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31903         HAVE_DECL_CEILF.
31904         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31905
31906 2007-10-04  Bruno Haible  <bruno@clisp.org>
31907
31908         * modules/floorl-tests: New file.
31909         * tests/test-floorl.c: New file.
31910
31911         * modules/floorl: New file.
31912         * lib/floorl.c: Replace entire file.
31913         * m4/floorl.m4: New file.
31914         * lib/math.in.h (floorl): Replace declaration.
31915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31916         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31917         * doc/functions/floorl.texi: Mention the 'floorl' module.
31918         * modules/mathl (Files): Remove lib/floorl.c.
31919         (Depends-on): Add floorl.
31920
31921 2007-10-04  Bruno Haible  <bruno@clisp.org>
31922
31923         * modules/floorf-tests: New file.
31924         * tests/test-floorf.c: New file.
31925
31926         * modules/floorf: New file.
31927         * lib/floor.c: New file.
31928         * lib/floorf.c: New file.
31929         * m4/floorf.m4: New file.
31930         * lib/math.in.h (floorf): New declaration.
31931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31932         HAVE_DECL_FLOORF.
31933         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31934         HAVE_DECL_FLOORF.
31935         * doc/functions/floorf.texi: Mention the 'floorf' module.
31936
31937 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31938             Bruno Haible  <bruno@clisp.org>
31939
31940         Advertise for the Git server instead of the CVS server.
31941         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31942         repository instead of the CVS one.
31943         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31944         about all VCS systems generically.
31945         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31946
31947 2007-10-04  Bruno Haible  <bruno@clisp.org>
31948
31949         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31950         means.
31951         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31952
31953 2007-10-04  Bruno Haible  <bruno@clisp.org>
31954
31955         * modules/truncl-tests: New file.
31956         * tests/test-truncl.c: New file.
31957
31958         * modules/truncl: New file.
31959         * lib/truncl.c: New file.
31960         * m4/truncl.m4: New file.
31961         * lib/math.in.h (truncl): New declaration.
31962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31963         HAVE_DECL_TRUNCL.
31964         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31965         HAVE_DECL_TRUNCL.
31966         * doc/functions/truncl.texi: Mention the 'truncl' module.
31967
31968 2007-10-04  Bruno Haible  <bruno@clisp.org>
31969
31970         * modules/truncf-tests: New file.
31971         * tests/test-truncf.c: New file.
31972
31973         * modules/truncf: New file.
31974         * lib/trunc.c: Make paramerizable through USE_* macros.
31975         * lib/truncf.c: New file.
31976         * m4/truncf.m4: New file.
31977         * lib/math.in.h (truncf): New declaration.
31978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31979         HAVE_DECL_TRUNCF.
31980         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31981         HAVE_DECL_TRUNCF.
31982         * doc/functions/truncf.texi: Mention the 'truncf' module.
31983
31984 2007-10-03  Bruno Haible  <bruno@clisp.org>
31985
31986         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31987         augmentation also for tests modules.
31988         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31989         * modules/atexit-tests (Makefile.am): Likewise.
31990         * modules/binary-io-tests (Makefile.am): Likewise.
31991         * modules/c-strcase-tests (Makefile.am): Likewise.
31992         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31993         * modules/canonicalize-tests (Makefile.am): Likewise.
31994         * modules/closein-tests (Makefile.am): Likewise.
31995         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31996         * modules/freadahead-tests (Makefile.am): Likewise.
31997         * modules/fseek-tests (Makefile.am): Likewise.
31998         * modules/fseeko-tests (Makefile.am): Likewise.
31999         * modules/ftell-tests (Makefile.am): Likewise.
32000         * modules/ftello-tests (Makefile.am): Likewise.
32001         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
32002         * modules/isnanl-tests (Makefile.am): Likewise.
32003         * modules/lseek-tests (Makefile.am): Likewise.
32004         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32005         * modules/mbscasestr-tests (Makefile.am): Likewise.
32006         * modules/mbschr-tests (Makefile.am): Likewise.
32007         * modules/mbscspn-tests (Makefile.am): Likewise.
32008         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32009         * modules/mbspbrk-tests (Makefile.am): Likewise.
32010         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32011         * modules/mbsrchr-tests (Makefile.am): Likewise.
32012         * modules/mbsspn-tests (Makefile.am): Likewise.
32013         * modules/mbsstr-tests (Makefile.am): Likewise.
32014         * modules/printf-posix-tests (Makefile.am): Likewise.
32015         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32016         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32017         * modules/tsearch-tests (Makefile.am): Likewise.
32018         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32019         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32020         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32021         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32022         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32023         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32024         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32025         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32026         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32027         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32028         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32029         * modules/xstrtol-tests (Makefile.am): Likewise.
32030         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32031         * modules/yesno-tests (Makefile.am): Likewise.
32032
32033 2007-10-03  Bruno Haible  <bruno@clisp.org>
32034
32035         * modules/trunc-tests: New file.
32036         * tests/test-trunc.c: New file.
32037
32038         * modules/trunc: New file.
32039         * lib/trunc.c: New file.
32040         * m4/trunc.m4: New file.
32041         * lib/math.in.h (trunc): New declaration.
32042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32043         HAVE_DECL_TRUNC.
32044         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32045         HAVE_DECL_TRUNC.
32046         * doc/functions/trunc.texi: Mention the 'trunc' module.
32047
32048 2007-10-03  Bruno Haible  <bruno@clisp.org>
32049
32050         * tests/test-fpending.c: New file, mostly copied
32051         from coreutils/lib/t-fpending.c.
32052         * modules/fpending-tests: New file.
32053
32054 2007-10-03  Bruno Haible  <bruno@clisp.org>
32055
32056         Port the stdio extensions to QNX (untested).
32057         * lib/fseterr.c (fseterr): Add support for QNX.
32058         * lib/fbufmode.c (fbufmode): Likewise.
32059         * lib/freadable.c (freadable): Likewise.
32060         * lib/fwritable.c (fwritable): Likewise.
32061         * lib/freading.c (freading): Likewise.
32062         * lib/fwriting.c (fwriting): Likewise.
32063         * lib/freadahead.c (freadahed): Likewise.
32064         * lib/fpurge.c (fpurge): Likewise.
32065         * lib/fseeko.c (rpl_fseeko): Likewise.
32066
32067 2007-10-03  Bruno Haible  <bruno@clisp.org>
32068             Jim Meyering  <jim@meyering.net>
32069             Eric Blake  <ebb9@byu.net>
32070
32071         * doc/relocatable.texi: Use @command instead of @program.
32072
32073 2007-10-02  Jim Meyering  <jim@meyering.net>
32074
32075         Perform one more "_.h" -> ".in.h" substitution.
32076         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32077         instead of unistd_.h here, too.
32078
32079 2007-10-01  Bruno Haible  <bruno@clisp.org>
32080
32081         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32082         Needed for the alloca-opt module.
32083
32084 2007-09-30  Bruno Haible  <bruno@clisp.org>
32085
32086         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32087         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32088         alloca_.h.
32089         * lib/argz.in.h: Renamed from lib/argz_.h.
32090         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32091         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32092         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32093         byteswap_.h.
32094         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32095         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32096         dirent_.h.
32097         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32098         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32099         fcntl_.h.
32100         * lib/float.in.h: Renamed from lib/float_.h.
32101         * modules/float (Files, Makefile.am): Use float.in.h instead of
32102         float_.h.
32103         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32104         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32105         fnmatch_.h.
32106         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32107         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32108         getopt_.h.
32109         * lib/glob.in.h: Renamed from lib/glob_.h.
32110         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32111         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32112         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32113         iconv_.h.
32114         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32115         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32116         inttypes_.h.
32117         * lib/locale.in.h: Renamed from lib/locale_.h.
32118         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32119         locale_.h.
32120         * lib/math.in.h: Renamed from lib/math_.h.
32121         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32122         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32123         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32124         of netinet_in_.h. Add dependency.
32125         * lib/poll.in.h: Renamed from lib/poll_.h.
32126         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32127         * lib/search.in.h: Renamed from lib/search_.h.
32128         * modules/search (Files, Makefile.am): Use search.in.h instead of
32129         search_.h.
32130         * lib/signal.in.h: Renamed from lib/signal_.h.
32131         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32132         _signal.h.
32133         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32134         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32135         stdbool_.h.
32136         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32137         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32138         stdint_.h.
32139         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32140         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32141         stdio_.h.
32142         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32143         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32144         stdlib_.h.
32145         * lib/string.in.h: Renamed from lib/string_.h.
32146         * modules/string (Files, Makefile.am): Use string.in.h instead of
32147         string_.h.
32148         * doc/gnulib-tool.texi (Initial import): Update.
32149         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32150         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32151         of sys_select_.h. Add dependency.
32152         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32153         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32154         of sys_socket_.h.
32155         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32156         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32157         sys_stat_.h.
32158         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32159         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32160         sys_time_.h.
32161         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32162         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32163         sysexits_.h.
32164         * lib/time.in.h: Renamed from lib/time_.h.
32165         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32166         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32167         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32168         unistd_.h.
32169         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32170         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32171         wchar_.h.
32172         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32173         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32174         wctype_.h.
32175         * build-aux/bootstrap (slurp): Update.
32176         * lib/.cppi-disable: Update.
32177
32178 2007-09-30  Bruno Haible  <bruno@clisp.org>
32179
32180         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32181         Needed on BeOS.
32182
32183 2007-09-30  Bruno Haible  <bruno@clisp.org>
32184
32185         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32186
32187 2007-09-29  Bruno Haible  <bruno@clisp.org>
32188
32189         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32190
32191 2007-09-29  Bruno Haible  <bruno@clisp.org>
32192
32193         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32194         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32195         * build-aux/install-reloc: Compile also areadlink.c.
32196         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32197
32198 2007-09-29  Bruno Haible  <bruno@clisp.org>
32199
32200         * gnulib-tool (func_emit_initmacro_done): Indentation.
32201
32202 2007-09-29  Bruno Haible  <bruno@clisp.org>
32203
32204         * README: Add CVS checkout update instructions.
32205         Info from Bob Proulx <bob@proulx.com>.
32206
32207 2007-09-28  Eric Blake  <ebb9@byu.net>
32208
32209         Provide move-if-change.
32210         * build-aux/move-if-change: New file, based on best practice
32211         rather than any canonical upstream location.
32212
32213 2007-09-28  Jim Meyering  <jim@meyering.net>
32214
32215         Fix canonicalize loop-detection corner case.
32216         Do not attempt to stat the symlink values stored via seen_triple.
32217         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32218         on linux-2.6.18, (but not 2.6.22).
32219         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32220         triple_compare.  The former compares dev,ino,filename, while the latter
32221         would actually stat dirname(filename) when dev and ino were equal.
32222         * lib/hash-triple.c: Install <string.h>.
32223         (STREQ): Define.
32224         (triple_compare_ino_str): New function.
32225         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32226
32227 2007-09-28  Eric Blake  <ebb9@byu.net>
32228
32229         Enforce that AC_REPLACE_FUNCS files exist.
32230         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32231         override check for typos.
32232
32233         Fix test-closein on Solaris 10.
32234         * tests/test-closein.c (main): Don't assume stdin can be inherited
32235         closed on all systems.
32236         * tests/test-closein.sh: Likewise.
32237         Reported by Piotr Tarnowski.
32238
32239 2007-09-28  Jim Meyering  <jim@meyering.net>
32240
32241         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32242
32243 2007-09-27  Jim Meyering  <jim@meyering.net>
32244
32245         canonicalize: Avoid a false-positive cycle failure.
32246         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32247         Sort.  Remove cycle-check.
32248         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32249         not cycle-check.h.
32250         (seen_triple): New function.
32251         (canonicalize_filename_mode): Use it instead of cycle-check.
32252         * tests/test-canonicalize.c: Add a test for this bug.
32253         * tests/test-canonicalize.sh: Set up and run the test.
32254
32255         New module, file-set, from coreutils.
32256         * modules/file-set: Define it.
32257         * lib/file-set.c, lib/file-set.h: Implement.
32258
32259         New module, hash-triple, from coreutils.
32260         * modules/hash-triple: Define it.
32261         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32262
32263 2007-09-25  Eric Blake  <ebb9@byu.net>
32264
32265         Fix strerror on Interix.
32266         * lib/string_.h (strerror): Declare replacement.
32267         * doc/functions/strerror.texi (strerror): Document the Interix
32268         shortcoming.
32269         * modules/string (Makefile.am): Support new hooks.
32270         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32271         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32272         gl_FUNC_STRERROR_SEPARATE.
32273         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32274         * lib/strerror.c (rpl_strerror): Provide replacement.
32275         * modules/strerror (Depends-on): Add string.
32276         (configure.ac): Detect use of module.
32277         * tests/test-strerror.c: New file.
32278         * modules/strerror-tests: New test module.
32279         * modules/argp (Depends-on): Add strerror.
32280         * modules/error (Depends-on): Likewise.
32281         Reported by Martin Koeppe.
32282
32283 2007-09-24  Bruno Haible  <bruno@clisp.org>
32284
32285         * README: Update git instructions.
32286
32287 2007-09-24  Eric Blake  <ebb9@byu.net>
32288
32289         Revert fpending breakage from 2007-09-08.
32290         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32291         __fpending.c.
32292
32293 2007-09-24  Jim Meyering  <jim@meyering.net>
32294
32295         filenamecat.c: Add a test.
32296         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32297         showing how the function works when DIR is the empty string.
32298
32299 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32300
32301         * tests/test-canonicalize.sh: Turn on executable bit.
32302
32303 2007-09-19  Eric Blake  <ebb9@byu.net>
32304
32305         * README: Update CVS instructions.
32306
32307 2007-09-18  Bruno Haible  <bruno@clisp.org>
32308
32309         * modules/areadlink: New file.
32310         * lib/areadlink.h (areadlink): New declaration.
32311         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32312
32313 2007-09-17  Jim Meyering  <jim@meyering.net>
32314
32315         * lib/savewd.c (ESTALE) [!defined]: Define.
32316         Reported to be required on Interix by Martin Koeppe.
32317
32318 2007-09-17  Bruno Haible  <bruno@clisp.org>
32319
32320         * gnulib-tool (func_version): Use $version.
32321
32322 2007-09-16  Bruno Haible  <bruno@clisp.org>
32323
32324         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32325         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32326         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32327         Reported by Greg Schafer <gschafer@zip.com.au>.
32328
32329 2007-09-15  Bruno Haible  <bruno@clisp.org>
32330
32331         * gnulib-tool (sed): Try a little harder to make bash understand the
32332         alias.
32333         Reported by Bruce Korb <bruce.korb@gmail.com>.
32334
32335 2007-09-13  Eric Blake  <ebb9@byu.net>
32336
32337         * ChangeLog: Remove conflict markers.
32338
32339 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32340
32341         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32342         Reported by Bruno Haible <bruno@clisp.org>.
32343
32344 2007-09-12  Bruno Haible  <bruno@clisp.org>
32345
32346         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32347         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32348         is not defined.
32349
32350 2007-09-12  Eric Blake  <ebb9@byu.net>
32351
32352         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32353         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32354         Autoconf definition.
32355         * modules/euidaccess (Depends-on): Add extensions, for
32356         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32357         * modules/fnmatch (Depends-on): Likewise.
32358         * modules/getaddrinfo (Depends-on): Likewise.
32359         * modules/getdelim (Depends-on): Likewise.
32360         * modules/getline (Depends-on): Likewise.
32361         * modules/getsubopt (Depends-on): Likewise.
32362         * modules/gettext (Depends-on): Likewise.
32363         * modules/group-member (Depends-on): Likewise.
32364         * modules/mbchar (Depends-on): Likewise.
32365         * modules/memmem (Depends-on): Likewise.
32366         * modules/mempcpy (Depends-on): Likewise.
32367         * modules/memrchr (Depends-on): Likewise.
32368         * modules/pagealign_alloc (Depends-on): Likewise.
32369         * modules/readutmp (Depends-on): Likewise.
32370         * modules/stpcpy (Depends-on): Likewise.
32371         * modules/stpncpy (Depends-on): Likewise.
32372         * modules/strchrnul (Depends-on): Likewise.
32373         * modules/strndup (Depends-on): Likewise.
32374         * modules/strsep (Depends-on): Likewise.
32375         * modules/strverscmp (Depends-on): Likewise.
32376         * modules/vasprintf (Depends-on): Likewise.
32377         * modules/wcwidth (Depends-on): Likewise.
32378         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32379         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32380         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32381         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32382         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32383         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32384         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32385         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32386         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32387         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32388         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32389         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32390         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32391         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32392         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32393         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32394         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32395         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32396         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32397         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32398         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32399         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32400         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32401         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32402         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32404         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32405         so that lock.m4 can be used in gettext without extensions module.
32406
32407 2007-09-11  Bruno Haible  <bruno@clisp.org>
32408
32409         * m4/isc-posix.m4: Remove file.
32410         Suggested by Eric Blake.
32411
32412 2007-09-11  Eric Blake  <ebb9@byu.net>
32413
32414         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32415
32416 2007-09-10  Bruno Haible  <bruno@clisp.org>
32417
32418         * posix-modules: Fix typo in error message.
32419         Reported by Matt <mkraai@beckman.com>.
32420
32421 2007-09-09  Bruno Haible  <bruno@clisp.org>
32422
32423         * doc/functions/getdelim.texi: Update list of platforms lacking the
32424         function.
32425         * doc/functions/getline.texi: Likewise.
32426
32427 2007-09-09  Jim Meyering  <jim@meyering.net>
32428
32429         * lib/hash.c (hash_initialize): Detect calloc failure.
32430         Reported by Bruno Haible.
32431
32432 2007-09-09  Bruno Haible  <bruno@clisp.org>
32433
32434         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32435         malloc or realloc fails.
32436
32437 2007-09-09  Bruno Haible  <bruno@clisp.org>
32438
32439         * modules/getcwd (Depends-on): Add malloc-posix.
32440         * modules/glob (Depends-on): Likewise.
32441         * modules/putenv (Depends-on): Likewise.
32442         * modules/strdup (Depends-on): Likewise.
32443         * modules/getdelim (Depends-on): Add realloc-posix.
32444         * modules/read-file (Depends-on): Likewise.
32445
32446 2007-09-09  Bruno Haible  <bruno@clisp.org>
32447
32448         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32449         (gl_FUNC_MALLOC_POSIX): Require it.
32450         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32451         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32452         * modules/realloc (Files): Add m4/malloc.m4.
32453         * modules/calloc (Files): Likewise.
32454
32455 2007-09-09  Bruno Haible  <bruno@clisp.org>
32456
32457         * modules/malloc-posix: New file.
32458         * modules/malloc (Depends-on): Add malloc-posix.
32459         * lib/malloc.c: Include errno.h.
32460         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32461         and a POSIX-compatible malloc into a single function. Set ENOMEM
32462         when returning NULL.
32463         * m4/malloc.m4: New file.
32464         * doc/functions/malloc.texi: Mention the malloc-posix module.
32465         * lib/stdlib_.h (malloc): New declaration.
32466         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32467         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32468         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32469         and HAVE_MALLOC_POSIX.
32470
32471 2007-09-09  Bruno Haible  <bruno@clisp.org>
32472
32473         * modules/realloc-posix: New file.
32474         * modules/realloc (Depends-on): Add realloc-posix.
32475         * lib/realloc.c: Include errno.h.
32476         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32477         and a POSIX-compatible realloc into a single function. Set ENOMEM
32478         when returning NULL.
32479         * m4/realloc.m4: New file.
32480         * doc/functions/realloc.texi: Mention the realloc-posix module.
32481         * lib/stdlib_.h (realloc): New declaration.
32482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32483         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32484         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32485         and HAVE_REALLOC_POSIX.
32486
32487 2007-09-09  Bruno Haible  <bruno@clisp.org>
32488
32489         * modules/calloc-posix: New file.
32490         * modules/calloc (Depends-on): Add calloc-posix.
32491         * lib/calloc.c: Include errno.h.
32492         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32493         and a POSIX-compatible calloc into a single function. Set ENOMEM
32494         when returning NULL.
32495         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32496         * doc/functions/calloc.texi: Mention the calloc-posix module.
32497         * lib/stdlib_.h (calloc): New declaration.
32498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32499         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32500         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32501         and HAVE_CALLOC_POSIX.
32502
32503 2007-09-09  Bruno Haible  <bruno@clisp.org>
32504
32505         Allow for modules to show an arbitrary notice.
32506         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32507         * gnulib-tool: New option --extract-notice.
32508         (func_usage): Document it.
32509         (sed_extract_prog): Update.
32510         (func_get_notice): New function.
32511         (func_modules_notice): New function.
32512         (func_import, func_create_testdir): Invoke it.
32513         Suggested by Jim Meyering.
32514
32515 2007-09-09  Bruno Haible  <bruno@clisp.org>
32516
32517         * gnulib-tool: New options --verbose, --quiet.
32518         (func_usage): Document them.
32519         (verbose): New variable.
32520         (func_execute_command): New function.
32521         (func_import): Don't show the module list and the file list if
32522         $verbose < 0.
32523         (func_create_testdir): Likewise. Use func_execute_command.
32524         (func_create_megatestdir): Use func_execute_command.
32525
32526 2007-09-08  Bruno Haible  <bruno@clisp.org>
32527
32528         * gnulib-tool (func_import): Prefer rsync over wget when available,
32529         for fetching the PO files.
32530
32531 2007-09-08  Bruno Haible  <bruno@clisp.org>
32532
32533         * posix-modules: New file. Portions copied from gnulib-tool.
32534         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32535
32536 2007-09-08  Jim Meyering  <jim@meyering.net>
32537
32538         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32539         * lib/fpending.h: Rename from __fpending.h.
32540         * lib/fpending.c: Rename from __fpending.c.
32541         Include "fpending.h", not "__fpending.h".
32542         * lib/__fpending.h, lib/__fpending.c: Remove files.
32543         * modules/fpending (Files): Reflect new file names.
32544         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32545
32546 2007-09-08  Bruno Haible  <bruno@clisp.org>
32547
32548         * m4/inttypes-h.m4: Remove stub file.
32549
32550 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32551
32552         * doc/headers/stdint.texi: Discuss #include_next issue.
32553
32554 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32555
32556         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32557
32558 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32559
32560         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32561         in variable name.
32562
32563 2007-09-03  Jim Meyering  <jim@meyering.net>
32564
32565         New module: git-version-gen.
32566         * modules/git-version-gen: New file.
32567
32568         Import changes from coreutils for bootstrap script.
32569
32570         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32571
32572         bootstrap: uses rsync to download the .po files
32573         * build-aux/bootstrap (po_download_command_format): New global.
32574         (download_po_files): Use rsync.
32575         (update_po_files): Don't remove .po files after download,
32576         so future rsync runs can take advantage of the copies.
32577
32578         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32579
32580         Solve the unnecessary-.po-file-regeneration problem once and for all.
32581         * build-aux/bootstrap (download_po_files): New function, renamed from
32582         get_translations.  Now, downloads, but doesn't update LINGUAS.
32583         (update_po_files): New function.
32584
32585         bootstrap: Ignore more.
32586         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32587         uniwidth to e.g., lib/.gitignore.
32588         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32589
32590         * build-aux/bootstrap: New setting: vc_ignore.
32591         (insert_sorted_if_absent): Create $file if absent.
32592         Adapt to new, possibly empty, list: $vc_ignore.
32593
32594         bootstrap: generate more ignorable names
32595         * build-aux/bootstrap (slurp): When generating ignorable names,
32596         also map .sin to .sed, .gperf to .c, and .y to .c.
32597
32598 2007-09-03  Jim Meyering  <jim@meyering.net>
32599
32600         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32601         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32602
32603 2007-09-02  Bruno Haible  <bruno@clisp.org>
32604
32605         Fix mis-recognition of 'mcs' on QNX 6.
32606         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32607         output contains the string "Mono".
32608         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32609         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32610
32611 2007-09-01  Bruno Haible  <bruno@clisp.org>
32612
32613         Fix collision between uniwidth/* and linebreak modules.
32614         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32615         u32_width): Remove declarations.
32616         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32617         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32618         streq3, streq2, streq1, streq0): Remove functions.
32619         (STREQ): Remove macro.
32620         (is_cjk_encoding): Remove function.
32621         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32622         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32623         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32624         * NEWS: Document the change.
32625
32626 2007-09-01  Bruno Haible  <bruno@clisp.org>
32627
32628         * lib/streq.h: Add double-inclusion guard.
32629
32630 2007-09-01  Karl Berry  <karl@gnu.org>
32631
32632         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32633
32634 2007-08-28  Jim Meyering  <jim@meyering.net>
32635
32636         Rename mreadlink_with_size to areadlink_with_size.
32637         * NEWS: Document the change.
32638         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32639         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32640         * lib/mreadlink.h: Rename this to...
32641         * lib/areadlink.h: ...this.
32642         * modules/mreadlink-with-size: Rename this to...
32643         * modules/areadlink-with-size: ...this.
32644         * lib/canonicalize.c: Reflect the renaming.
32645         * modules/canonicalize: Likewise.
32646
32647 2007-08-26  Bruno Haible  <bruno@clisp.org>
32648
32649         * gnulib-tool (func_import): When deciding which files to remove,
32650         consider also dangling symbolic links.
32651         Reported by Eric Blake.
32652
32653 2007-08-26  Bruno Haible  <bruno@clisp.org>
32654
32655         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32656
32657 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32658
32659         * lib/readline.c: Don't include getline.h, the prototype is now
32660         found in stdio.h.
32661
32662 2007-08-23  Jim Meyering  <jim@meyering.net>
32663
32664         Getdelim touchup.
32665         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32666         around the funlockfile call, since funlockfile never sets errno.
32667         Don't set errno upon failed realloc.
32668
32669 2007-08-22  Eric Blake  <ebb9@byu.net>
32670
32671         Getline touchups.
32672         * lib/getdelim.c (getdelim): Revert regression that required *n to
32673         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32674         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32675         getdelim, rather than whether implementation is missing.
32676         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32677         * lib/stdio_.h (getline): Also declare if replacement is
32678         required.
32679         * doc/functions/getdelim.texi: New file.
32680         * doc/functions/getline.texi: Likewise.
32681         * doc/gnulib.texi (Function Substitutes): Add new files.
32682         Reported by Bruno Haible.
32683
32684 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32685
32686         * users.txt: Add Guile.
32687
32688 2007-08-22  Eric Blake  <ebb9@byu.net>
32689
32690         * tests/test-getdelim.c (main): Use remove, not unlink.
32691         * tests/test-getline.c (main): Likewise.
32692
32693         Move getline and getdelim into stdio.h, per POSIX 200x.
32694         * modules/getline (Files): Remove getline.h.
32695         (Depends-on): Add stdio.
32696         (configure.ac): Add module indicator.
32697         * modules/getdelim (Files): Remove getdelim.h.
32698         (Depends-on): Add stdio.
32699         (configure.ac): Add module indicator.
32700         * modules/stdio (Makefile.am): Work with new indicators.
32701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32702         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32703         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32704         * lib/getdelim.h: Delete.
32705         * lib/getline.h: Delete.
32706         * lib/stdio_.h (getdelim, getline): Declare.
32707         * modules/getdelim-tests: New module.
32708         * modules/getline-tests: Likewise.
32709         * tests/test-getdelim.c: New file.
32710         * tests/test-getline.c: Likewise.
32711         * NEWS: Document the change.
32712         * lib/getline.c: Update choice of header.
32713         * lib/csharpcomp.c: Likewise.
32714         * lib/getpass.c: Likewise.
32715         * lib/javacomp.c: Likewise.
32716         * lib/javaversion.c: Likewise.
32717         * lib/yesno.c: Likewise.
32718         * lib/getdelim.c: Likewise.
32719         (getdelim): Set errno on failure, and avoid memory leak.
32720
32721 2007-08-19  Bruno Haible  <bruno@clisp.org>
32722
32723         * modules/closein (Depends-on): Add freadahead.
32724         * lib/closein.c: Include freadahead.h.
32725         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32726         is zero.
32727
32728 2007-08-19  Bruno Haible  <bruno@clisp.org>
32729
32730         * modules/freadahead-tests: New file.
32731         * tests/test-freadahead.sh: New file.
32732         * tests/test-freadahead.c: New file.
32733
32734         * modules/freadahead: New file.
32735         * lib/freadahead.h: New file.
32736         * lib/freadahead.c: New file.
32737         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32738         fbufmode, fpurge, freadable, fwritable.
32739
32740 2007-08-19  Eric Blake  <ebb9@byu.net>
32741
32742         Test yesno in combination with closein.
32743         * lib/yesno.c (yesno): Document use of stdin.
32744         * modules/yesno-tests (Files): New module.
32745         * tests/test-yesno.c (main): New file.
32746         * tests/test-yesno.sh: Likewise.
32747
32748 2007-08-19  Bruno Haible  <bruno@clisp.org>
32749
32750         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32751         * lib/fseeko.c (rpl_fseeko): Likewise.
32752         * lib/fseterr.c (fseterr): Likewise.
32753
32754 2007-08-19  Bruno Haible  <bruno@clisp.org>
32755
32756         * tests/test-lseek.c (main): Disable a test for BeOS.
32757         * doc/functions/lseek.texi: Document the BeOS bug.
32758
32759 2007-08-19  Bruno Haible  <bruno@clisp.org>
32760             Eric Blake  <ebb9@byu.net>
32761
32762         * lib/lseek.c: Include <sys/stat.h>.
32763         (rpl_lseek): Add workaround code also for Unix platforms.
32764         Needed for BeOS.
32765         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32766         * doc/functions/lseek.texi: Document BeOS definiency.
32767
32768 2007-08-18  Bruno Haible  <bruno@clisp.org>
32769
32770         * modules/fstrcmp-tests: New file.
32771         * tests/test-fstrcmp.c: New file.
32772
32773 2007-08-18  Bruno Haible  <bruno@clisp.org>
32774
32775         * modules/fstrcmp: New file, from GNU gettext with modifications.
32776         * lib/fstrcmp.h: New file, from GNU gettext.
32777         * lib/fstrcmp.c: New file, from GNU gettext.
32778         * MODULES.html.sh (String handling): Add fstrcmp.
32779
32780 2007-08-18  Bruno Haible  <bruno@clisp.org>
32781
32782         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32783         'bool'.
32784         (diag, compareseq): Remove const from the ctxt argument.
32785         (USE_HEURISTIC): Undefine at the end.
32786
32787 2007-08-18  Jim Meyering  <jim@meyering.net>
32788
32789         New file: lib/idcache.h
32790         * NEWS: Mention the addition.
32791         * modules/idcache (Files): Add lib/idcache.h
32792         * lib/idcache.c: Include "idcache.h".
32793         Don't include <sys/types.h>.
32794         Add a FIXME comment.
32795         Move file-scoped "static" declarations to the top.
32796         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32797
32798 2007-08-17  Bruno Haible  <bruno@clisp.org>
32799         and Paul Eggert  <eggert@cs.ucla.edu>
32800
32801         * MODULES.html.sh: Add diffseq.
32802         * modules/diffseq: New file.
32803         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32804         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32805
32806 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32807
32808         Import changes from coreutils for bootstrap script.
32809
32810         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32811
32812         * build-aux/bootstrap (slurp): Work even in environments where
32813         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32814         current code does not slurp files whose names start with ".", and
32815         this looks like it might be a troublesome area.
32816
32817         2007-07-11  Jim Meyering  <jim@meyering.net>
32818
32819         If there's a GPL vN copyright comment, require that N == 3.
32820
32821         2007-07-08  Jim Meyering  <jim@meyering.net>
32822
32823         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32824         * build-aux/bootstrap (mam_template): Move definition out of loop.
32825
32826         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32827
32828         * build-aux/bootstrap (symlink_to_dir): Rename function from
32829         symlink_to_gnulib.  Add a directory parameter.  Update all
32830         callers.
32831         (cp_mark_as_generated): Also check for -- and link to -- files in
32832         gl/.
32833
32834         2007-07-08  Jim Meyering  <jim@meyering.net>
32835
32836         Adapt to deeper hierarchy in gnulib.
32837         * build-aux/bootstrap (symlink_to_dir): If the destination
32838         directory doesn't exist, create it. This is required at least for
32839         "lib/uniwidth/cjk.h".
32840
32841         2007-05-15  Jim Meyering  <jim@meyering.net>
32842
32843         * build-aux/bootstrap: Now that generated Makefile.am files
32844         are no longer under version control, they must be created at
32845         bootstrap time.
32846
32847 2007-08-14  Ben Pfaff  <blp@gnu.org>
32848
32849         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32850
32851 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32852
32853         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32854         given the changes below.
32855         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32856         even on hosts that have padding bits beyond the supported 64.
32857
32858 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32859
32860         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32861         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32862         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32863         depends on it.
32864         (xstrtol_error): Remove.
32865         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32866         but with a different signature.
32867         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32868         * lib/xstrtol-error.c: Include exitfail.h.
32869         (xstrtol_fatal): New function, with a different signature from the
32870         old xstrtol_error, so that the caller need not worry about passing
32871         in an exit status, or about storage management of the option argument.
32872         (xstrtol_error): Now a static function.  Redo signature to
32873         implement xstrtol_fatal.  Output the correct number of hyphens in
32874         front of the option so that the caller need not worry about
32875         storage management.
32876         (N_): New macro.
32877         (_): Remove; not used now.
32878         * modules/xstrtol: Depend on getopt.
32879         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32880         of old STRTOL_FATAL_ERROR macro.
32881         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32882         of test program.
32883         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32884         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32885
32886 2007-08-08  Eric Blake  <ebb9@byu.net>
32887
32888         * lib/xstrtol-error.c: Add missing include.
32889
32890         Move xstrtol messages into gnulib domain, when --pobase is used.
32891         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32892         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32893         * modules/xstrtol (Files): Distribute new file.
32894         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32895         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32896         * tests/test-xstrtol.c: ...into new file.
32897         * tests/test-xstrtoul.c: Also test xstrtoul.
32898         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32899         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32900         * tests/test-xstrtol.sh: Drive the tests.
32901         * tests/test-xstrtoimax.sh: Likewise.
32902         * tests/test-xstrtoumax.sh: Likewise.
32903         * modules/xstrtol-tests: New module.
32904         * modules/xstrtoimax-tests: Likewise.
32905         * modules/xstrtoumax-tests: Likewise.
32906
32907 2007-08-08  Jim Meyering  <jim@meyering.net>
32908
32909         New function: mfile_name_concat.
32910         * lib/filenamecat.c (mfile_name_concat): New function, just like
32911         file_name_concat, but return NULL upon failure rather than exiting
32912         with a diagnostic.
32913         * lib/filenamecat.h: Declare it.
32914
32915 2007-08-07  Bruno Haible  <bruno@clisp.org>
32916
32917         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32918         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32919         warning from gcc.
32920         Reported by Eric Blake.
32921
32922 2007-08-07  Simon Josefsson  <simon@josefsson.org>
32923
32924         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32925         * modules/crypto/arcfour (License): Likewise.
32926         * modules/crypto/des-tests (License): Likewise.
32927         * modules/crypto/gc-arctwo-tests (License): Likewise.
32928         * modules/crypto/gc-des-tests (License): Likewise.
32929         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32930         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32931         * modules/crypto/gc-md2-tests (License): Likewise.
32932         * modules/crypto/gc-md4-tests (License): Likewise.
32933         * modules/crypto/gc-md5-tests (License): Likewise.
32934         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32935         * modules/crypto/gc-rijndael-tests (License): Likewise.
32936         * modules/crypto/gc-sha1-tests (License): Likewise.
32937         * modules/crypto/gc-tests (License): Likewise.
32938         * modules/crypto/hmac-md5 (License): Likewise.
32939         * modules/crypto/hmac-sha1 (License): Likewise.
32940         * modules/crypto/md2-tests (License): Likewise.
32941         * modules/crypto/md4-tests (License): Likewise.
32942         * modules/crypto/md5 (License): Likewise.
32943         * modules/crypto/rijndael (License): Likewise.
32944         * modules/crypto/sha1 (License): Likewise.
32945         * modules/memxor (License): Likewise.
32946
32947 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32948         and Bruno Haible  <bruno@clisp.org>
32949
32950         * NEWS: Describe interface changes to human, xstrtol.
32951         * lib/human.h: Include <xstrtol.h>.
32952         (human_options): Return enum strtol_error, not int.  Remove
32953         bool arg; take int * instead.
32954         * lib/human.c: Don't include "gettext.h".
32955         (_): Remove; no longer used.
32956         Don't include <xstrtol.h>, since human.h does it.
32957         (human_options): Adjust to abovementioned interface changes.
32958         Do not report error to stderr; that's now the caller's
32959         responsibility.
32960         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32961         interface change.
32962         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32963         Str, Argument_type_string.  All uses changed.  Put " argument"
32964         in diagnostics to make them clearer.  Change wording of suffix
32965         message for clarity.
32966         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32967         Argument_type_string.
32968         (STRTOL_FATAL_WARN): Remove; no longer used.
32969         * modules/human (Depends-on): Remove gettext-h.
32970
32971 2007-08-06  Simon Josefsson  <simon@josefsson.org>
32972
32973         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32974
32975 2007-07-31  Bruno Haible  <bruno@clisp.org>
32976
32977         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32978         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32979         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32980
32981 2007-07-31  Bruno Haible  <bruno@clisp.org>
32982
32983         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32984         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32985
32986 2007-07-30  Bruno Haible  <bruno@clisp.org>
32987
32988         * modules/base64 (License): Use the synonymous term "LGPLv2+".
32989         * modules/c-ctype (License): Likewise.
32990         * modules/c-strcase (License): Likewise.
32991         * modules/check-version (License): Likewise.
32992         * modules/iconv (License): Likewise.
32993         * modules/iconv_open (License): Likewise.
32994         * modules/read-file (License): Likewise.
32995         * modules/striconv (License): Likewise.
32996         * modules/strverscmp (License): Likewise.
32997         * modules/vasprintf (License): Likewise.
32998         * modules/crypto/des (License): Likewise.
32999         * modules/crypto/gc (License): Likewise.
33000         * modules/crypto/gc-arcfour (License): Likewise.
33001         * modules/crypto/gc-arctwo (License): Likewise.
33002         * modules/crypto/gc-des (License): Likewise.
33003         * modules/crypto/gc-hmac-md5 (License): Likewise.
33004         * modules/crypto/gc-hmac-sha1 (License): Likewise.
33005         * modules/crypto/gc-md2 (License): Likewise.
33006         * modules/crypto/gc-md4 (License): Likewise.
33007         * modules/crypto/gc-md5 (License): Likewise.
33008         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
33009         * modules/crypto/gc-random (License): Likewise.
33010         * modules/crypto/gc-rijndael (License): Likewise.
33011         * modules/crypto/gc-sha1 (License): Likewise.
33012         * modules/crypto/md2 (License): Likewise.
33013         * modules/crypto/md4 (License): Likewise.
33014
33015 2007-07-30  Jim Meyering  <jim@meyering.net>
33016
33017         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33018         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33019         it has valid stat data.  This bug would cause du not to count the
33020         sizes of inaccessible directories.
33021         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33022         in <http://bugzilla.redhat.com/250077>.
33023
33024 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33025             Bruno Haible  <bruno@clisp.org>
33026
33027         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33028         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33029         #include_next, gives a diagnostic about it, but reports no error in
33030         the exit code.
33031         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33032
33033 2007-07-24  Ben Pfaff  <blp@gnu.org>
33034
33035         Improve name: "count-one-bits" is better than "popcount".
33036         * MODULES.html.sh: Update name.
33037         * lib/popcount.h: Renamed lib/count-one-bits.h.
33038         (popcount): Renamed count_one_bits.
33039         (popcountl): Renamed count_one_bits_l.
33040         (popcountll): Renamed count_one_bits_ll.
33041         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33042         * modules/popcount: Renamed module/count-one-bits.
33043         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33044         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33045
33046 2007-07-23  Ben Pfaff  <blp@gnu.org>
33047
33048         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33049         better code generation, and add U to large constants to avoid
33050         warnings, in non-GCC case.
33051         Suggested by Bruno Haible.
33052
33053 2007-07-23  Ben Pfaff  <blp@gnu.org>
33054
33055         * lib/popcount.h: Use verify_true instead of if...abort.
33056         * modules/popcount: Depend on verify module.
33057         Suggested by Jim Meyering.
33058
33059 2007-07-23  Bruno Haible  <bruno@clisp.org>
33060
33061         * gnulib-tool (func_import): Create a .cvsignore file also when the
33062         directory is not yet in CVS but the toplevel directory is. When
33063         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33064         Reported by Karl Berry.
33065
33066 2007-07-22  Ben Pfaff  <blp@gnu.org>
33067
33068         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33069         case.
33070         Suggested by Eric Blake.
33071
33072 2007-07-22  Ben Pfaff  <blp@gnu.org>
33073
33074         New module: popcount.
33075         * MODULES.html.sh: Add popcount.
33076         * modules/popcount: New file.
33077         * modules/popcount-tests: New file.
33078         * tests/test-popcount.c: New file.
33079         * lib/popcount.h: New file.
33080         * m4/popcount.m4: New file.
33081
33082 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33083
33084         * build-aux/announce-gen: Update to GPLv3.
33085
33086         * build-aux/config.guess: Update from config.
33087
33088 2007-07-21  Bruno Haible  <bruno@clisp.org>
33089
33090         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33091         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33092
33093 2007-07-20  Jim Meyering  <jim@meyering.net>
33094
33095         * check-module: Diagnose a self-dependency.
33096
33097 2007-07-19  Bruno Haible  <bruno@clisp.org>
33098
33099         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33100         empty.
33101         Reported by Eric Blake.
33102
33103 2007-07-18  Bruno Haible  <bruno@clisp.org>
33104
33105         * gnulib-tool: New options --po-base, --po-domain.
33106         (func_usage): Document them.
33107         (pobase, po_domain): New variables.
33108         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33109         DEFAULT_TEXT_DOMAIN.
33110         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33111         (func_import): Consider pobase and po_domain. Create a po/ directory.
33112         (func_create_testdir): Set pobase and po_domain to empty.
33113         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33114         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33115
33116 2007-07-18  Bruno Haible  <bruno@clisp.org>
33117
33118         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33119         EXTRA_DIST augmentation for files in build-aux/.
33120
33121 2007-07-16  Bruno Haible  <bruno@clisp.org>
33122
33123         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33124         * modules/getdelim (License): Likewise.
33125
33126 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33127
33128         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33129         * modules/d-type (License): Likewise.
33130         * modules/extensions (License): Likewise.
33131         * modules/fnmatch (License): Likewise.
33132         * modules/fseeko (License): Likewise.
33133         * modules/getaddrinfo (License): Likewise.
33134         * modules/getline (License): Likewise.
33135         * modules/getlogin_r (License): Likewise.
33136         * modules/getpass (License): Likewise.
33137         * modules/gettimeofday (License): Likewise.
33138         * modules/glob (License): Likewise.
33139         * modules/inet_ntop (License): Likewise.
33140         * modules/malloc (License): Likewise.
33141         * modules/malloca (License): Likewise.
33142         * modules/memmem (License): Likewise.
33143         * modules/mempcpy (License): Likewise.
33144         * modules/memset (License): Likewise.
33145         * modules/minmax (License): Likewise.
33146         * modules/mktime (License): Likewise.
33147         * modules/netinet_in (License): Likewise.
33148         * modules/pathmax (License): Likewise.
33149         * modules/poll (License): Likewise.
33150         * modules/regex (License): Likewise.
33151         * modules/snprintf (License): Likewise.
33152         * modules/stdbool (License): Likewise.
33153         * modules/stdint (License): Likewise.
33154         * modules/stdio (License): Likewise.
33155         * modules/strcase (License): Likewise.
33156         * modules/strcasestr (License): Likewise.
33157         * modules/strdup (License): Likewise.
33158         * modules/string (License): Likewise.
33159         * modules/strndup (License): Likewise.
33160         * modules/strnlen (License): Likewise.
33161         * modules/strpbrk (License): Likewise.
33162         * modules/strptime (License): Likewise.
33163         * modules/strsep (License): Likewise.
33164         * modules/sys_select (License): Likewise.
33165         * modules/sys_socket (License): Likewise.
33166         * modules/sys_stat (License): Likewise.
33167         * modules/sys_time (License): Likewise.
33168         * modules/time (License): Likewise.
33169         * modules/time_r (License): Likewise.
33170         * modules/timegm (License): Likewise.
33171         * modules/unistd (License): Likewise.
33172         * modules/vsnprintf (License): Likewise.
33173         * modules/wctype (License): Likewise.
33174
33175 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33176
33177         * modules/argz (License): LGPLv2+.
33178
33179 2007-07-15  Karl Berry  <karl@gnu.org>
33180
33181         * doc/gnulib.texi: revise node structure per new fdl.texi.
33182
33183 2007-07-14  Bruno Haible  <bruno@clisp.org>
33184
33185         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33186         the output file.
33187         * lib/uniname/uninames.h: Regenerated.
33188
33189 2007-07-14  Karl Berry  <karl@gnu.org>
33190
33191         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33192         omitting sectioning and index commands.
33193
33194 2007-07-13  Bruno Haible  <bruno@clisp.org>
33195
33196         New gnulib-tool option --more-symlinks.
33197         * gnulib-tool (func_usage): Document --more-symlinks.
33198         (do_copyrights): New variable.
33199         Recognize option --more-symlinks.
33200         (func_import): Don't add a copyright notice transform to
33201         sed_transform_lib_file if do_copyrights is empty.
33202
33203 2007-07-13  Bruno Haible  <bruno@clisp.org>
33204
33205         * lib/vasnprintf.c (decimal_point_char): Define also if
33206         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33207         && !NEED_PRINTF_DIRECTIVE_A.
33208         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33209         Gary V. Vaughan <gary@gnu.org>.
33210
33211 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33212
33213         * lib/inttypes_.h: Undo previous change, since it was fixed
33214         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33215
33216 2007-07-13  Bruno Haible  <bruno@clisp.org>
33217
33218         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33219         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33220
33221 2007-07-13  Jim Meyering  <jim@meyering.net>
33222
33223         df: Don't fail for Tru64's "file-on-file mount".
33224         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33225         so we fall through and use statfs instead.  Details here:
33226         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33227         Reported by Albert Chin.
33228
33229 2007-07-13  Bruno Haible  <bruno@clisp.org>
33230
33231         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33232         * modules/configmake (License): Likewise.
33233         * modules/gettext (License): Likewise.
33234         * modules/gettext-h (License): Likewise.
33235         * modules/include_next (License): Likewise.
33236         * modules/link-warning (License): Likewise.
33237         * modules/localcharset (License): Likewise.
33238         * modules/localename (License): Likewise.
33239         * modules/lock (License): Likewise.
33240         * modules/relocatable-lib-lgpl (License): Likewise.
33241         * modules/size_max (License): Likewise.
33242         * modules/vasnprintf (License): Likewise.
33243         * modules/wchar (License): Likewise.
33244         * modules/xsize (License): Likewise.
33245
33246 2007-07-13  Bruno Haible  <bruno@clisp.org>
33247
33248         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33249         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33250
33251 2007-07-12  Bruno Haible  <bruno@clisp.org>
33252
33253         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33254         in the modules files.
33255
33256 2007-07-11  Karl Berry  <karl@gnu.org>
33257
33258         * MODULES.html.sh (func_module): use
33259          sed -e '\|^'"${includefile}"'$|d'
33260          instead of /.../d, to avoid errors on $includefile's containing /.
33261
33262 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33263
33264         * gnulib-tool (func_import): Avoid duplication of --avoid
33265         statements
33266         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33267         names to `_' in variable names.
33268
33269 2007-07-10  Eric Blake  <ebb9@byu.net>
33270
33271         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33272         * NEWS: Document this change.
33273
33274 2007-07-08  Bruno Haible  <bruno@clisp.org>
33275
33276         Update to Unicode 5.0.
33277         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33278         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33279         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33280         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33281         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33282         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33283         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33284         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33285         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33286         U+10A3F, U+1D242..U+1D244.
33287         (nonspacing_table_ind): Update.
33288         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33289         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33290
33291 2007-07-08  Bruno Haible  <bruno@clisp.org>
33292
33293         Update to Unicode 5.0.
33294         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33295         code transform. Extend the name index field of unicode_name_to_code and
33296         unicode_code_to_name from 16 to 24 bits.
33297         * lib/uniname/uniname.c (unicode_character_name,
33298         unicode_name_character): Add the range 0x12xxx to the code transform.
33299         * lib/uniname/uninames.h: Regenerated.
33300         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33301
33302 2007-07-07  Bruno Haible  <bruno@clisp.org>
33303
33304         * modules/wcwidth-tests: New file.
33305         * tests/test-wcwidth.c: New file.
33306
33307         Work around MacOS X wcwidth() bug.
33308         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33309         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33310         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33311         original wcwidth in non-UTF-8 locales.
33312         * modules/wcwidth (Depends-on): Add localcharset, streq,
33313         uniwidth/width.
33314         * doc/functions/wcwidth.texi: Update.
33315
33316 2007-07-07  Bruno Haible  <bruno@clisp.org>
33317
33318         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33319         (wcwidth): New declaration.
33320         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33321         macros.
33322         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33323         here. Prepare for creating <wchar.h> unconditionally.
33324         * modules/wchar (Depends-on): Add link-warning.
33325         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33326         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33327         * lib/wcwidth.h: Remove file.
33328         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33329         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33330         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33331         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33332         (Include): Replace wcwidth.h with <wchar.h>.
33333         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33334         * lib/mbchar.h: Don't include wcwidth.h.
33335         * lib/mbswidth.c: Likewise.
33336         * NEWS: Mention the change.
33337
33338 2007-07-07  Bruno Haible  <bruno@clisp.org>
33339
33340         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33341         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33342         definition with an external declaration.
33343         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33344         defined as a function. Remove AC_C_INLINE requirement.
33345         * modules/wcwidth (Files): Add lib/wcwidth.c.
33346         (Makefile.am): Remove redundant statement.
33347
33348 2007-07-07  Bruno Haible  <bruno@clisp.org>
33349
33350         * MODULES.html.sh (Unicode string functions): Add the new modules.
33351
33352         * tests/uniwidth/test-u32-strwidth.c: New file.
33353         * modules/uniwidth/u32-strwidth-tests: New file.
33354
33355         * lib/uniwidth/u32-strwidth.c: New file.
33356         * modules/uniwidth/u32-strwidth: New file.
33357
33358         * tests/uniwidth/test-u16-strwidth.c: New file.
33359         * modules/uniwidth/u16-strwidth-tests: New file.
33360
33361         * lib/uniwidth/u16-strwidth.c: New file.
33362         * modules/uniwidth/u16-strwidth: New file.
33363
33364         * tests/uniwidth/test-u8-strwidth.c: New file.
33365         * modules/uniwidth/u8-strwidth-tests: New file.
33366
33367         * lib/uniwidth/u8-strwidth.c: New file.
33368         * modules/uniwidth/u8-strwidth: New file.
33369
33370         * tests/uniwidth/test-u32-width.c: New file.
33371         * modules/uniwidth/u32-width-tests: New file.
33372
33373         * lib/uniwidth/u32-width.c: New file.
33374         * modules/uniwidth/u32-width: New file.
33375
33376         * tests/uniwidth/test-u16-width.c: New file.
33377         * modules/uniwidth/u16-width-tests: New file.
33378
33379         * lib/uniwidth/u16-width.c: New file.
33380         * modules/uniwidth/u16-width: New file.
33381
33382         * tests/uniwidth/test-u8-width.c: New file.
33383         * modules/uniwidth/u8-width-tests: New file.
33384
33385         * lib/uniwidth/u8-width.c: New file.
33386         * modules/uniwidth/u8-width: New file.
33387
33388         * tests/uniwidth/test-uc_width.c: New file.
33389         * modules/uniwidth/width-tests: New file.
33390
33391         * lib/uniwidth/width.c: New file, from GNU libiconv.
33392         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33393         * modules/uniwidth/width: New file.
33394
33395         * lib/uniwidth.h: New file, from GNU libiconv.
33396         * modules/uniwidth/base: New file.
33397
33398 2007-07-07  Bruno Haible  <bruno@clisp.org>
33399
33400         * lib/uniname.h: New file, from GNU gettext.
33401         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33402         * lib/uniname/uninames.h: New file, from GNU gettext.
33403         * lib/uniname/uniname.c: New file, from GNU gettext.
33404         * tests/uniname/test-uninames.sh: New file.
33405         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33406         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33407         * modules/uniname/base: New file.
33408         * modules/uniname/uniname: New file.
33409         * modules/uniname/uniname-tests: New file.
33410         * MODULES.html.sh (Unicode string functions): Add the new modules.
33411
33412 2007-07-06  Bruno Haible  <bruno@clisp.org>
33413
33414         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33415
33416 2007-07-06  Bruno Haible  <bruno@clisp.org>
33417
33418         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33419         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33420         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33421         include <sys/time.h>.
33422         Reported by Eric Blake.
33423
33424 2007-07-06  Eric Blake  <ebb9@byu.net>
33425
33426         Fix testing canonicalize on cygwin.
33427         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33428         Revert patch from 2007-06-19.
33429         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33430         canonicalize module is also in use.
33431         * tests/test-canonicalize.c: New file.
33432         * tests/test-canonicalize.sh: Likewise.
33433         * modules/canonicalize-tests: Likewise.
33434
33435 2007-07-06  Jim Meyering  <jim@meyering.net>
33436
33437         * lib/getugroups.c (getugroups): Detect getgrent failure.
33438         Adjust comment to reflect reality: this function may return -1.
33439
33440 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33441
33442         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33443         the new TP address.
33444         (usage): Fix typo
33445         (gnulib_mk): New variable.
33446
33447 2007-07-05  Jim Meyering  <jim@meyering.net>
33448
33449         Don't let endgrent clobber errno, no matter how improbable.
33450         * lib/getugroups.c (getugroups): Save and restore errno around
33451         endgrent call.
33452
33453         Close the group DB even when failing with 2^31 or more members.
33454         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33455
33456 2007-07-04  Jim Meyering  <jim@meyering.net>
33457
33458         * lib/getugroups.h: New file.
33459         * lib/getugroups.c: Include "getugroups.h".
33460         Remove uses of "register" keyword.
33461         Move local variable, "cp", down into scope where used.
33462         Give "username" parameter the "const" attribute.
33463         * modules/getugroups (Files): Add lib/getugroups.h
33464
33465 2007-07-04  Karl Berry  <karl@gnu.org>
33466
33467         * MODULES.html.sh (func_all_modules): Complete rename of
33468         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33469
33470 2007-07-02  Bruno Haible  <bruno@clisp.org>
33471
33472         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33473         mode, when inttypes.h comes from gnulib.
33474         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33475
33476 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33477
33478         * NEWS: Mention lgpl module name change.
33479
33480         * modules/lgpl-2.1: Renamed from lgpl.
33481
33482         * NEWS: Mention gpl module name change.
33483
33484         * modules/gpl-3.0: New file, based on gpl-2.0.
33485
33486         * modules/gpl-2.0: Renamed from gpl.
33487
33488         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33489         doc/gpl-2.0.texi.
33490
33491 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33492
33493         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33494         #define __STDC_LIMIT_MACROS temporarily while including
33495         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33496         Problem reported by Joel E. Denny in
33497         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33498
33499 2007-07-01  Bruno Haible  <bruno@clisp.org>
33500
33501         * lib/unistdio.h: New file.
33502         * lib/unistdio/u-asnprintf.h: New file.
33503         * lib/unistdio/u-asprintf.h: New file.
33504         * lib/unistdio/u-printf-args.c: New file.
33505         * lib/unistdio/u-printf-args.h: New file.
33506         * lib/unistdio/u-printf-parse.h: New file.
33507         * lib/unistdio/u-snprintf.h: New file.
33508         * lib/unistdio/u-sprintf.h: New file.
33509         * lib/unistdio/u-vasprintf.h: New file.
33510         * lib/unistdio/u-vsnprintf.h: New file.
33511         * lib/unistdio/u-vsprintf.h: New file.
33512         * lib/unistdio/ulc-asnprintf.c: New file.
33513         * lib/unistdio/ulc-asprintf.c: New file.
33514         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33515         * lib/unistdio/ulc-printf-parse.c: New file.
33516         * lib/unistdio/ulc-snprintf.c: New file.
33517         * lib/unistdio/ulc-sprintf.c: New file.
33518         * lib/unistdio/ulc-vasnprintf.c: New file.
33519         * lib/unistdio/ulc-vasprintf.c: New file.
33520         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33521         * lib/unistdio/ulc-vsnprintf.c: New file.
33522         * lib/unistdio/ulc-vsprintf.c: New file.
33523         * lib/unistdio/u8-asnprintf.c: New file.
33524         * lib/unistdio/u8-asprintf.c: New file.
33525         * lib/unistdio/u8-printf-parse.c: New file.
33526         * lib/unistdio/u8-snprintf.c: New file.
33527         * lib/unistdio/u8-sprintf.c: New file.
33528         * lib/unistdio/u8-vasnprintf.c: New file.
33529         * lib/unistdio/u8-vasprintf.c: New file.
33530         * lib/unistdio/u8-vsnprintf.c: New file.
33531         * lib/unistdio/u8-vsprintf.c: New file.
33532         * lib/unistdio/u8-u8-asnprintf.c: New file.
33533         * lib/unistdio/u8-u8-asprintf.c: New file.
33534         * lib/unistdio/u8-u8-snprintf.c: New file.
33535         * lib/unistdio/u8-u8-sprintf.c: New file.
33536         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33537         * lib/unistdio/u8-u8-vasprintf.c: New file.
33538         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33539         * lib/unistdio/u8-u8-vsprintf.c: New file.
33540         * lib/unistdio/u16-asnprintf.c: New file.
33541         * lib/unistdio/u16-asprintf.c: New file.
33542         * lib/unistdio/u16-printf-parse.c: New file.
33543         * lib/unistdio/u16-snprintf.c: New file.
33544         * lib/unistdio/u16-sprintf.c: New file.
33545         * lib/unistdio/u16-vasnprintf.c: New file.
33546         * lib/unistdio/u16-vasprintf.c: New file.
33547         * lib/unistdio/u16-vsnprintf.c: New file.
33548         * lib/unistdio/u16-vsprintf.c: New file.
33549         * lib/unistdio/u16-u16-asnprintf.c: New file.
33550         * lib/unistdio/u16-u16-asprintf.c: New file.
33551         * lib/unistdio/u16-u16-snprintf.c: New file.
33552         * lib/unistdio/u16-u16-sprintf.c: New file.
33553         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33554         * lib/unistdio/u16-u16-vasprintf.c: New file.
33555         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33556         * lib/unistdio/u16-u16-vsprintf.c: New file.
33557         * lib/unistdio/u32-asnprintf.c: New file.
33558         * lib/unistdio/u32-asprintf.c: New file.
33559         * lib/unistdio/u32-printf-parse.c: New file.
33560         * lib/unistdio/u32-snprintf.c: New file.
33561         * lib/unistdio/u32-sprintf.c: New file.
33562         * lib/unistdio/u32-vasnprintf.c: New file.
33563         * lib/unistdio/u32-vasprintf.c: New file.
33564         * lib/unistdio/u32-vsnprintf.c: New file.
33565         * lib/unistdio/u32-vsprintf.c: New file.
33566         * lib/unistdio/u32-u32-asnprintf.c: New file.
33567         * lib/unistdio/u32-u32-asprintf.c: New file.
33568         * lib/unistdio/u32-u32-snprintf.c: New file.
33569         * lib/unistdio/u32-u32-sprintf.c: New file.
33570         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33571         * lib/unistdio/u32-u32-vasprintf.c: New file.
33572         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33573         * lib/unistdio/u32-u32-vsprintf.c: New file.
33574         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33575         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33576         * tests/unistdio/test-ulc-printf1.h: New file.
33577         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33578         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33579         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33580         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33581         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33582         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33583         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33584         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33585         * tests/unistdio/test-u8-asnprintf1.c: New file.
33586         * tests/unistdio/test-u8-asnprintf1.h: New file.
33587         * tests/unistdio/test-u8-printf1.h: New file.
33588         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33589         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33590         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33591         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33592         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33593         * tests/unistdio/test-u8-vasprintf1.c: New file.
33594         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33595         * tests/unistdio/test-u8-vsprintf1.c: New file.
33596         * tests/unistdio/test-u16-asnprintf1.c: New file.
33597         * tests/unistdio/test-u16-asnprintf1.h: New file.
33598         * tests/unistdio/test-u16-printf1.h: New file.
33599         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33600         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33601         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33602         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33603         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33604         * tests/unistdio/test-u16-vasprintf1.c: New file.
33605         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33606         * tests/unistdio/test-u16-vsprintf1.c: New file.
33607         * tests/unistdio/test-u32-asnprintf1.c: New file.
33608         * tests/unistdio/test-u32-asnprintf1.h: New file.
33609         * tests/unistdio/test-u32-printf1.h: New file.
33610         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33611         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33612         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33613         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33614         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33615         * tests/unistdio/test-u32-vasprintf1.c: New file.
33616         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33617         * tests/unistdio/test-u32-vsprintf1.c: New file.
33618         * modules/unistdio/base: New file.
33619         * modules/unistdio/u-printf-args: New file.
33620         * modules/unistdio/ulc-asnprintf: New file.
33621         * modules/unistdio/ulc-asprintf: New file.
33622         * modules/unistdio/ulc-fprintf: New file.
33623         * modules/unistdio/ulc-printf-parse: New file.
33624         * modules/unistdio/ulc-snprintf: New file.
33625         * modules/unistdio/ulc-sprintf: New file.
33626         * modules/unistdio/ulc-vasnprintf: New file.
33627         * modules/unistdio/ulc-vasprintf: New file.
33628         * modules/unistdio/ulc-vfprintf: New file.
33629         * modules/unistdio/ulc-vsnprintf: New file.
33630         * modules/unistdio/ulc-vsprintf: New file.
33631         * modules/unistdio/u8-asnprintf: New file.
33632         * modules/unistdio/u8-asprintf: New file.
33633         * modules/unistdio/u8-printf-parse: New file.
33634         * modules/unistdio/u8-snprintf: New file.
33635         * modules/unistdio/u8-sprintf: New file.
33636         * modules/unistdio/u8-vasnprintf: New file.
33637         * modules/unistdio/u8-vasprintf: New file.
33638         * modules/unistdio/u8-vsnprintf: New file.
33639         * modules/unistdio/u8-vsprintf: New file.
33640         * modules/unistdio/u8-u8-asnprintf: New file.
33641         * modules/unistdio/u8-u8-asprintf: New file.
33642         * modules/unistdio/u8-u8-snprintf: New file.
33643         * modules/unistdio/u8-u8-sprintf: New file.
33644         * modules/unistdio/u8-u8-vasnprintf: New file.
33645         * modules/unistdio/u8-u8-vasprintf: New file.
33646         * modules/unistdio/u8-u8-vsnprintf: New file.
33647         * modules/unistdio/u8-u8-vsprintf: New file.
33648         * modules/unistdio/u16-asnprintf: New file.
33649         * modules/unistdio/u16-asprintf: New file.
33650         * modules/unistdio/u16-printf-parse: New file.
33651         * modules/unistdio/u16-snprintf: New file.
33652         * modules/unistdio/u16-sprintf: New file.
33653         * modules/unistdio/u16-vasnprintf: New file.
33654         * modules/unistdio/u16-vasprintf: New file.
33655         * modules/unistdio/u16-vsnprintf: New file.
33656         * modules/unistdio/u16-vsprintf: New file.
33657         * modules/unistdio/u16-u16-asnprintf: New file.
33658         * modules/unistdio/u16-u16-asprintf: New file.
33659         * modules/unistdio/u16-u16-snprintf: New file.
33660         * modules/unistdio/u16-u16-sprintf: New file.
33661         * modules/unistdio/u16-u16-vasnprintf: New file.
33662         * modules/unistdio/u16-u16-vasprintf: New file.
33663         * modules/unistdio/u16-u16-vsnprintf: New file.
33664         * modules/unistdio/u16-u16-vsprintf: New file.
33665         * modules/unistdio/u32-asnprintf: New file.
33666         * modules/unistdio/u32-asprintf: New file.
33667         * modules/unistdio/u32-printf-parse: New file.
33668         * modules/unistdio/u32-snprintf: New file.
33669         * modules/unistdio/u32-sprintf: New file.
33670         * modules/unistdio/u32-vasnprintf: New file.
33671         * modules/unistdio/u32-vasprintf: New file.
33672         * modules/unistdio/u32-vsnprintf: New file.
33673         * modules/unistdio/u32-vsprintf: New file.
33674         * modules/unistdio/u32-u32-asnprintf: New file.
33675         * modules/unistdio/u32-u32-asprintf: New file.
33676         * modules/unistdio/u32-u32-snprintf: New file.
33677         * modules/unistdio/u32-u32-sprintf: New file.
33678         * modules/unistdio/u32-u32-vasnprintf: New file.
33679         * modules/unistdio/u32-u32-vasprintf: New file.
33680         * modules/unistdio/u32-u32-vsnprintf: New file.
33681         * modules/unistdio/u32-u32-vsprintf: New file.
33682         * modules/unistdio/ulc-asnprintf-tests: New file.
33683         * modules/unistdio/ulc-vasnprintf-tests: New file.
33684         * modules/unistdio/ulc-vasprintf-tests: New file.
33685         * modules/unistdio/ulc-vsnprintf-tests: New file.
33686         * modules/unistdio/ulc-vsprintf-tests: New file.
33687         * modules/unistdio/u8-asnprintf-tests: New file.
33688         * modules/unistdio/u8-vasnprintf-tests: New file.
33689         * modules/unistdio/u8-vasprintf-tests: New file.
33690         * modules/unistdio/u8-vsnprintf-tests: New file.
33691         * modules/unistdio/u8-vsprintf-tests: New file.
33692         * modules/unistdio/u16-asnprintf-tests: New file.
33693         * modules/unistdio/u16-vasnprintf-tests: New file.
33694         * modules/unistdio/u16-vasprintf-tests: New file.
33695         * modules/unistdio/u16-vsnprintf-tests: New file.
33696         * modules/unistdio/u16-vsprintf-tests: New file.
33697         * modules/unistdio/u32-asnprintf-tests: New file.
33698         * modules/unistdio/u32-vasnprintf-tests: New file.
33699         * modules/unistdio/u32-vasprintf-tests: New file.
33700         * modules/unistdio/u32-vsnprintf-tests: New file.
33701         * modules/unistdio/u32-vsprintf-tests: New file.
33702         * MODULES.html.sh (Unicode string functions): Add the new modules.
33703
33704 2007-07-01  Bruno Haible  <bruno@clisp.org>
33705
33706         * lib/sprintf.c (sprintf): Limit the available length estimation,
33707         to avoid address wraparound.
33708         * lib/vsprintf.c (vsprintf): Likewise.
33709         * modules/sprintf-posix (Dependencies): Add stdint.
33710         * modules/vsprintf-posix (Dependencies): Likewise.
33711
33712 2007-07-01  Bruno Haible  <bruno@clisp.org>
33713
33714         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33715         Windows PATH as well. Conservative double-quoting. Comments.
33716
33717 2007-07-01  Bruno Haible  <bruno@clisp.org>
33718             Eric Blake  <ebb9@byu.net>
33719             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33720
33721         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33722         empty components in $PATH, denoting '.'.
33723
33724 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33725
33726         * gnulib-tool: Fix indentation.
33727         (func_create_megatestdir): Likewise.
33728         Report by Bruno Haible.
33729
33730 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33731
33732         Sync from Automake.
33733         * build-aux/gnupload: Fix shell portability issues with for loops.
33734         Report by Karl Berry.
33735
33736 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33737
33738         * build-aux/maint.mk (POURL): Use translationproject.org.
33739
33740 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33741             Bruno Haible  <bruno@clisp.org>
33742
33743         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33744         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33745         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33746         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33747         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33748
33749 2007-06-27  Bruno Haible  <bruno@clisp.org>
33750
33751         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33752         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33753
33754 2007-06-26  Karl Berry  <karl@gnu.org>
33755
33756         * MODULES.html.sh: remove xreadlink-with-size.
33757
33758 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33759
33760         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33761         method that I hope also handles the double-include problem noted
33762         by Bruno Haible in
33763         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33764
33765 2007-06-23  Bruno Haible  <bruno@clisp.org>
33766
33767         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33768         Don't let the 'mostlyclean' target fail if the last subdirectory could
33769         not be removed.
33770         Reported by Karl Berry.
33771
33772 2007-06-23  Bruno Haible  <bruno@clisp.org>
33773
33774         * gnulib-tool (echo): Add a speedier workaround for ksh.
33775         * tests/test-echo.sh: Likewise.
33776
33777 2007-06-23  Bruno Haible  <bruno@clisp.org>
33778
33779         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33780         * tests/test-echo.sh: Likewise.
33781
33782 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33783
33784         * gnulib-tool (IFS): Initialize early, so we don't set it to
33785         empty later.
33786         (self_abspathname): Rewrite algorithm to set it, reindent.
33787         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33788         (func_create_megatestdir): Merge some sed scripts.
33789
33790 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33791
33792         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33793         exposed by Sun Studio 11 cc on Solaris 8.
33794
33795 2007-06-22  Bruno Haible  <bruno@clisp.org>
33796
33797         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33798         backslashes.
33799         * tests/test-echo.sh: New file.
33800
33801 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33802
33803         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33804         simplify `sed_replace_build_aux' scripts, they are portable but
33805         echoing them with `echo' is not.
33806         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33807
33808 2007-06-21  Karl Berry  <karl@gnu.org>
33809
33810         * config/srclist.txt: guess we can't handle the licenses via
33811         srclist at the moment.
33812
33813 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33814
33815         * MODULES.html.sh: Add include_next.
33816         * modules/include_next: New file.
33817
33818 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33819
33820         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33821         INCLUDE_NEXT.
33822         (gl_CHECK_NEXT_HEADERS): New macro.
33823         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33824         the obsolescent gl_ABSOLUTE_HEADER.
33825         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33826         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33827         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33828         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33829         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33830         * m4/math_h.m4 (gl_MATH_H): Likewise.
33831         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33832         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33833         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33834         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33835         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33836         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33837         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33838         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33839         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33840         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33841         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33842         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33843         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33844         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33845         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33846         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33847         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33848         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33849         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33850         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33851         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33852         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33853         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33854         * lib/float_.h: Likewise.
33855         * lib/inttypes_.h: Likewise.
33856         * lib/math_.h: Likewise.
33857         * lib/search_.h: Likewise.
33858         * lib/signal_.h: Likewise.
33859         * lib/stdint_.h: Likewise.
33860         * lib/stdio_.h: Likewise.
33861         * lib/stdlib_.h: Likewise.
33862         * lib/string_.h: Likewise.
33863         * lib/sys_stat_.h: Likewise.
33864         * lib/sys_time_.h: Likewise.
33865         * lib/time_.h: Likewise.
33866         * lib/unistd_.h: Likewise.
33867         * lib/wchar_.h: Likewise.
33868         * lib/wctype_.h: Likewise.
33869         * lib/dirent_.h: Likewise.
33870         * lib/iconv_.h: Likewise.
33871         * lib/locale_.h: Likewise.
33872         * lib/netinet_in_.h: Likewise.
33873         * lib/sys_select_.h: Likewise.
33874         * lib/sys_socket_.h: Likewise.
33875         * lib/sysexits_.h: Likewise.
33876         * modules/fcntl (Depends-on): Depend on include_next, not
33877         absolute_header.
33878         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33879         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33880         * modules/fchdir: Likewise.
33881         * modules/float: Likewise.
33882         * modules/iconv_open: Likewise.
33883         * modules/inttypes: Likewise.
33884         * modules/locale: Likewise.
33885         * modules/math: Likewise.
33886         * modules/netinet_in: Likewise.
33887         * modules/search: Likewise.
33888         * modules/signal: Likewise.
33889         * modules/stdint: Likewise.
33890         * modules/stdio: Likewise.
33891         * modules/stdlib: Likewise.
33892         * modules/string: Likewise.
33893         * modules/sys_select: Likewise.
33894         * modules/sys_socket: Likewise.
33895         * modules/sys_stat: Likewise.
33896         * modules/sys_time: Likewise.
33897         * modules/sysexits: Likewise.
33898         * modules/time: Likewise.
33899         * modules/unistd: Likewise.
33900         * modules/wchar: Likewise.
33901         * modules/wctype: Likewise.
33902         * modules/sys_stat: Change maintainer to "all".
33903         * modules/unistd: Likewise.
33904
33905 2007-06-20  Karl Berry  <karl@gnu.org>
33906
33907         * config/srclist.txt: track www changes in license files.
33908
33909 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33910
33911         * build-aux/bootstrap: Remove stray dot.
33912         Make sure build_aux settings are honored when linking
33913         gnulib_extra_files.
33914
33915 2007-06-19  Eric Blake  <ebb9@byu.net>
33916
33917         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33918         Allow compilation on cygwin.
33919
33920 2007-06-19  Jim Meyering  <jim@meyering.net>
33921
33922         xreadlink-with-size: Remove module.  No longer used.
33923         Ex-callers now use xreadlink or mreadlink-with-size.
33924         * modules/xreadlink-with-size: Remove module.
33925         * lib/xreadlink-with-size.c: Remove file.
33926         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33927         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
33928         just before the function definition *is* accurate.
33929
33930         Eliminate one way canonicalize_filename_mode could exit.
33931         * lib/canonicalize.c (canonicalize_filename_mode):
33932         Use mreadlink_with_size, not xreadlink_with_size.
33933
33934 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33935
33936         Detect porting problems to FreeBSD/arm, which has time_t wider than
33937         long int.  Original problem reported for GNU diff by Xin Li in
33938         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33939         * modules/getdate (Depends-on): Add intprops, verify.
33940         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33941         is an integer type no wider than long int.
33942
33943 2007-06-18  Jim Meyering  <jim@meyering.net>
33944
33945         New module: mreadlink-with-size.
33946         * MODULES.html.sh: Add mreadlink-with-size.
33947         * modules/mreadlink-with-size: New module
33948         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33949         not xreadlink-with-size.
33950         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33951
33952 2007-06-16  Bruno Haible  <bruno@clisp.org>
33953
33954         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33955         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33956         Reported by Gary V. Vaughan <gary@gnu.org>.
33957
33958 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33959
33960         Revamp lchown so that it lives in unistd.h where it belongs.
33961         * lib/lchown.h: Remove.
33962         * lib/dirchownmod.c: Don't include lib/lchown.h.
33963         * lib/fchownat.c: Likewise.
33964         * lib/openat.c: Likewise.
33965         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33966         does not follow symlinks.
33967         (EOPNOTSUPP): Define if not defined.
33968         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33969         is defined to 0.
33970         (lchown): New decl.
33971         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33972         Do not check for lchown decl.
33973         Set REPLACE_LCHOWN.
33974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33975         REPLACE_LCHOWN.
33976         * modules/chown: Make it clear it follows symlinks.
33977         * modules/lchown: Make it clear it doesn't follow symlinks.
33978         (Files): Remove lib/lchown.h
33979         (Depends-on): Add unistd.
33980         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33981         (Include): Include <unistd.h>, not "lchown.h".
33982         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33983         REPLACE_LCHOWN.
33984
33985 2007-06-15  Jim Meyering  <jim@meyering.net>
33986
33987         Change license (GPL to LGPL) of fsusage and dependents.
33988         * modules/fsusage (License): Change to LGPL.
33989         * modules/full-read (License): Likewise.
33990         * modules/full-write (License): Likewise.
33991         * modules/safe-read (License): Likewise.
33992         * modules/safe-write (License): Likewise.
33993
33994 2007-06-14  Ben Pfaff  <blp@gnu.org>
33995
33996         Missing part of allocsa -> malloca transition.
33997         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33998         gl_MALLOCA.
33999
34000 2007-06-12  Bruno Haible  <bruno@clisp.org>
34001
34002         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
34003         to ia64, x86_64, i386.
34004         Reported by Eric Blake.
34005
34006 2007-06-12  Bruno Haible  <bruno@clisp.org>
34007
34008         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
34009         cross-compiling to x86_64.
34010
34011 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34012
34013         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34014         glitch reported by Ralf Wildenhues in
34015         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34016
34017         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34018         Vin Shelton.
34019
34020 2007-06-11  Bruno Haible  <bruno@clisp.org>
34021
34022         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34023         replacement string.
34024         Reported by Eric Blake.
34025
34026 2007-06-10  Bruno Haible  <bruno@clisp.org>
34027
34028         Prepare vasnprintf code for use with Unicode strings.
34029         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34030         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34031         TYPE_U32_STRING.
34032         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34033         a_u32_string variants.
34034         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34035         * lib/printf-args.c: Don't include config.h and the specification
34036         header if PRINTF_FETCHARGS is already defined.
34037         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34038         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34039         TYPE_U16_STRING, TYPE_U32_STRING.
34040         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34041         u16_directive, u16_directives, u32_directive, u32_directives): New
34042         types.
34043         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34044         New declarations.
34045         * lib/printf-parse.c: Don't include config.h and the specification
34046         header if PRINTF_PARSE is already defined. Eliminate the set of
34047         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34048         them now. Include c-ctype.h.
34049         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34050         directive and CHAR_T_ONLY_ASCII.
34051         * lib/vasnprintf.c: Don't include config.h and the specification header
34052         if VASNPRINTF is already defined.
34053         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34054         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34055         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34056         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34057         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34058         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34059         code accordingly.
34060         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34061         pad_ourselves also in this case, with the 'c' and 's' directives, and
34062         with a different notion of "width".
34063         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34064
34065 2007-06-10  Bruno Haible  <bruno@clisp.org>
34066
34067         * modules/unistr/u32-mbsnlen: New file.
34068         * lib/unistr/u32-mbsnlen.c: New file.
34069
34070         * modules/unistr/u16-mbsnlen: New file.
34071         * lib/unistr/u16-mbsnlen.c: New file.
34072
34073         * modules/unistr/u8-mbsnlen: New file.
34074         * lib/unistr/u8-mbsnlen.c: New file.
34075
34076         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34077         declarations.
34078
34079 2007-06-10  Bruno Haible  <bruno@clisp.org>
34080
34081         * lib/string_.h (mbsnlen): New declaration.
34082         * lib/mbsnlen.c: New file.
34083         * m4/mbsnlen.m4: New file.
34084         * modules/mbsnlen: New file.
34085         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34086         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34087         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34088
34089 2007-06-10  Bruno Haible  <bruno@clisp.org>
34090
34091         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34092
34093 2007-06-10  Bruno Haible  <bruno@clisp.org>
34094
34095         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34096         * lib/mbuiter.h: Likewise.
34097
34098 2007-06-10  Bruno Haible  <bruno@clisp.org>
34099
34100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34101         declaration.
34102
34103 2007-06-10  Karl Berry  <karl@gnu.org>
34104
34105         * config/srclist.txt: remove gettext entries, Bruno prefers
34106         to update individually.
34107
34108 2007-06-10  Bruno Haible  <bruno@clisp.org>
34109
34110         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34111         'maxlen'. Ensure only length + width bytes are allocated, not
34112         length + 1 + width.
34113
34114 2007-06-09  Bruno Haible  <bruno@clisp.org>
34115
34116         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34117         (CHAR_T): Remove macro.
34118         (VASNPRINTF): Update.
34119
34120 2007-06-09  Bruno Haible  <bruno@clisp.org>
34121
34122         * MODULES.html.sh (Unicode string functions): Add the new modules.
34123
34124         * modules/uniconv/u32-conv-to-enc: New file.
34125         * lib/uniconv/u32-conv-to-enc.c: New file.
34126         * modules/uniconv/u32-conv-to-enc-tests: New file.
34127         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34128
34129         * modules/uniconv/u16-conv-to-enc: New file.
34130         * lib/uniconv/u16-conv-to-enc.c: New file.
34131         * lib/uniconv/u-conv-to-enc.h: New file.
34132         * modules/uniconv/u16-conv-to-enc-tests: New file.
34133         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34134
34135         * modules/uniconv/u8-conv-to-enc: New file.
34136         * lib/uniconv/u8-conv-to-enc.c: New file.
34137         * modules/uniconv/u8-conv-to-enc-tests: New file.
34138         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34139
34140         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34141         u32_conv_to_encoding): New declarations.
34142
34143 2007-06-09  Bruno Haible  <bruno@clisp.org>
34144
34145         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34146
34147 2007-06-09  Bruno Haible  <bruno@clisp.org>
34148
34149         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34150         * modules/malloca: Renamed from modules/allocsa, updated.
34151         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34152         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34153         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34154         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34155         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34156         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34157         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34158         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34159         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34160         * modules/c-strcasestr (Depends-on): Update.
34161         * lib/c-strcasestr.c: Update.
34162         * modules/c-strstr (Depends-on): Update.
34163         * lib/c-strstr.c: Update.
34164         * modules/canonicalize-lgpl (Depends-on): Update.
34165         * lib/canonicalize-lgpl.c: Update.
34166         * modules/clean-temp (Depends-on): Update.
34167         * lib/clean-temp.c: Update.
34168         * modules/csharpcomp (Depends-on): Update.
34169         * lib/csharpcomp.c: Update.
34170         * modules/csharpexec (Depends-on): Update.
34171         * lib/csharpexec.c: Update.
34172         * modules/javacomp (Depends-on): Update.
34173         * lib/javacomp.c: Update.
34174         * modules/javaexec (Depends-on): Update.
34175         * lib/javaexec.c: Update.
34176         * modules/mbscasestr (Depends-on): Update.
34177         * lib/mbscasestr.c: Update.
34178         * modules/mbsstr (Depends-on): Update.
34179         * lib/mbsstr.c: Update.
34180         * modules/setenv (Depends-on): Update.
34181         * lib/setenv.c: Update.
34182         * modules/strcasestr (Depends-on): Update.
34183         * lib/strcasestr.c: Update.
34184         * modules/striconveha (Depends-on): Update.
34185         * lib/striconveha.c: Update.
34186         * modules/relocatable-prog-wrapper (Files): Update.
34187         * lib/relocwrapper.c: Update.
34188         * build-aux/install-reloc: Update.
34189         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34190
34191 2007-06-08  Bruno Haible  <bruno@clisp.org>
34192
34193         Port to uClibc.
34194         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34195         * lib/fpurge.c (fpurge): Likewise.
34196         * lib/freading.c (freading): Likewise.
34197         * lib/fseeko.c (rpl_fseeko): Likewise.
34198         * lib/fseterr.c (fseterr): Likewise.
34199         * lib/fwriting.c (fwriting): Likewise.
34200         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34201
34202 2007-06-08  Bruno Haible  <bruno@clisp.org>
34203
34204         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34205         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34206         * modules/gettext (Files): Add m4/intlmacosx.m4.
34207
34208 2007-06-07  Bruno Haible  <bruno@clisp.org>
34209
34210         * modules/localename-tests: New file.
34211         * tests/test-localename.c: New file.
34212
34213         New module 'localename'.
34214         * lib/localename.h: New file.
34215         * lib/localename.c: New file, from GNU gettext.
34216         * m4/localename.m4: New file.
34217         * modules/localename: New file.
34218
34219 2007-06-07  Bruno Haible  <bruno@clisp.org>
34220
34221         Work around the lack of <wchar.h> on some builds of uClibc.
34222         * doc/headers/wchar.texi: Update.
34223         * lib/wchar_.h: Include <wchar.h> only if it exists.
34224         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34225         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34226         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34227         doesn't exist.
34228         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34229         * modules/mbfile (Depends-on): Add wchar.
34230         * modules/mbiter (Depends-on): Likewise.
34231         * modules/mbuiter (Depends-on): Likewise.
34232         Reported by Simon Josefsson.
34233
34234 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34235
34236         Work around problem reported by Steven M. Schweda in
34237         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34238         Tru64 5.1B with the Compaq compiler environment installed declares
34239         an 'isblank' function but does not define it in the C library.
34240         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34241         * lib/regex_internal.h (isblank): Likewise.
34242         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34243         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34244
34245 2007-06-05  Bruno Haible  <bruno@clisp.org>
34246
34247         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34248         ia64.
34249         * modules/printf-safe: New file.
34250         * modules/fprintf-posix (Depends-on): Add printf-safe.
34251         * modules/printf-posix (Depends-on): Likewise.
34252         * modules/snprintf-posix (Depends-on): Likewise.
34253         * modules/sprintf-posix (Depends-on): Likewise.
34254         * modules/vasnprintf-posix (Depends-on): Likewise.
34255         * modules/vasprintf-posix (Depends-on): Likewise.
34256         * modules/vfprintf-posix (Depends-on): Likewise.
34257         * modules/vprintf-posix (Depends-on): Likewise.
34258         * modules/vsnprintf-posix (Depends-on): Likewise.
34259         * modules/vsprintf-posix (Depends-on): Likewise.
34260         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34261         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34262         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34263         "no" on i386, x86_64, ia64.
34264         * tests/test-snprintf-posix.h (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-sprintf-posix.h (LDBL80_WORDS): New macro.
34268         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34269         on i386, x86_64, ia64.
34270         * tests/test-vasnprintf-posix.c: Include float.h.
34271         (LDBL80_WORDS): New macro.
34272         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34273         on i386, x86_64, ia64.
34274         * tests/test-vasprintf-posix.c: Include float.h.
34275         (LDBL80_WORDS): New macro.
34276         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34277         on i386, x86_64, ia64.
34278         * tests/test-snprintf-posix.c: Include float.h.
34279         * tests/test-sprintf-posix.c: Likewise.
34280         * tests/test-vsnprintf-posix.c: Likewise.
34281         * tests/test-vsprintf-posix.c: Likewise.
34282
34283 2007-06-05  Bruno Haible  <bruno@clisp.org>
34284
34285         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34286         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34287         non-IEEE numbers on i386, x86_64, ia64.
34288         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34289         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34290         * tests/test-isnanl.h: Include float.h.
34291         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34292
34293 2007-06-05  Bruno Haible  <bruno@clisp.org>
34294
34295         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34296         also the %a / %A. Handle the %a / %A code before this extra handling.
34297
34298 2007-06-05  Bruno Haible  <bruno@clisp.org>
34299
34300         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34301         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34302
34303 2007-06-05  Bruno Haible  <bruno@clisp.org>
34304
34305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34306         typo in variable name.
34307
34308 2007-06-05  Eric Blake  <ebb9@byu.net>
34309
34310         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34311         Reported by Simon Josefsson.
34312
34313 2007-06-04  Bruno Haible  <bruno@clisp.org>
34314
34315         Avoid test failures on some PowerPC platforms.
34316         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34317         Define differently for PowerPC.
34318         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34319         Reported by Gary V. Vaughan <gary@gnu.org>.
34320
34321 2007-06-02  Bruno Haible  <bruno@clisp.org>
34322
34323         Fix test-stdint failure on FreeBSD/ia64.
34324         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34325         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34326         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34327         * doc/headers/stdint.texi: Update.
34328
34329 2007-06-01  Bruno Haible  <bruno@clisp.org>
34330
34331         * tests/test-binary-io.c (main): Pass a third argument to open().
34332         Reported by Gary V. Vaughan <gary@gnu.org>.
34333
34334 2007-06-01  Bruno Haible  <bruno@clisp.org>
34335
34336         * doc/functions/frexpl.texi: Update for mingw.
34337
34338 2007-06-01  Bruno Haible  <bruno@clisp.org>
34339
34340         * tests/test-lseek.c (main): Disable test of errno for invalid third
34341         argument.
34342         * doc/functions/lseek.texi: Update.
34343         Reported by Gary V. Vaughan <gary@gnu.org>.
34344
34345 2007-05-28  Bruno Haible  <bruno@clisp.org>
34346
34347         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34348
34349 2007-05-31  Eric Blake  <ebb9@byu.net>
34350
34351         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34352         cross compiling.
34353
34354 2007-05-30  Eric Blake  <ebb9@byu.net>
34355         and Bruno Haible  <bruno@clisp.org>
34356
34357         Work around mingw test failures exposed by m4-1.4.9b.
34358         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34359         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34360         moment.
34361
34362 2007-05-30  Bruno Haible  <bruno@clisp.org>
34363
34364         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34365         assuming that they are closed. Needed on HP-UX 11.
34366
34367 2007-05-29  Bruno Haible  <bruno@clisp.org>
34368
34369         Fix a problem with #include_next.
34370         * lib/dirent_.h: Split the double-inclusion guard.
34371         * lib/fcntl_.h: Likewise.
34372         * lib/float_.h: Likewise.
34373         * lib/iconv_.h: Likewise.
34374         * lib/inttypes_.h: Likewise.
34375         * lib/locale_.h: Likewise.
34376         * lib/math_.h: Likewise.
34377         * lib/netinet_in_.h: Likewise.
34378         * lib/search_.h: Likewise.
34379         * lib/signal_.h: Likewise.
34380         * lib/stdint_.h: Likewise.
34381         * lib/stdio_.h: Likewise.
34382         * lib/stdlib_.h: Likewise.
34383         * lib/string_.h: Likewise.
34384         * lib/sys_select_.h: Likewise.
34385         * lib/sys_socket_.h: Likewise.
34386         * lib/sys_stat_.h: Likewise.
34387         * lib/sys_time_.h: Likewise.
34388         * lib/sysexits_.h: Likewise.
34389         * lib/time_.h: Likewise.
34390         * lib/unistd_.h: Likewise.
34391         * lib/wchar_.h: Likewise.
34392         * lib/wctype_.h: Likewise.
34393
34394 2007-05-29  Bruno Haible  <bruno@clisp.org>
34395
34396         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34397         for the moment.
34398
34399 2007-05-29  Bruno Haible  <bruno@clisp.org>
34400
34401         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34402         invocation.
34403         Reported by Eric Blake.
34404
34405 2007-05-29  Bruno Haible  <bruno@clisp.org>
34406
34407         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34408         compiling case.
34409
34410 2007-05-29  Eric Blake  <ebb9@byu.net>
34411             Bruno Haible  <bruno@clisp.org>
34412
34413         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34414         cross compiles.
34415
34416 2007-05-28  Eric Blake  <ebb9@byu.net>
34417
34418         * modules/closein-tests (test_closein_LDADD): Support test on
34419         cygwin with libtool.
34420
34421 2007-05-28  Bruno Haible  <bruno@clisp.org>
34422
34423         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34424         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34425         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34426         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34427         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34428         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34429         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34430         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34431         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34432
34433 2007-05-28  Eric Blake  <ebb9@byu.net>
34434
34435         Unconditionally include <config.h> in unit tests.
34436         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34437         * tests/test-allocsa.c, tests/test-arcfour.c,
34438         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34439         tests/test-array_list.c, tests/test-array_oset.c,
34440         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34441         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34442         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34443         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34444         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34445         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34446         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34447         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34448         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34449         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34450         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34451         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34452         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34453         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34454         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34455         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34456         test-md5.c, test-memmem.c, test-printf-posix.c,
34457         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34458         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34459         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34460         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34461         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34462         test-vasnprintf-posix2.c, test-vasnprintf.c,
34463         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34464         test-vfprintf-posix.c, test-vprintf-posix.c,
34465         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34466         test-xvasprintf.c: Likewise.
34467
34468 2007-05-28  Bruno Haible  <bruno@clisp.org>
34469
34470         * gnulib-tool (func_import): Remember the --with-tests command-line
34471         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34472         Reported by Eric Blake.
34473
34474 2007-05-28  Bruno Haible  <bruno@clisp.org>
34475
34476         * modules/ftell-tests: New file.
34477         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34478         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34479
34480         * lib/ftell.c: New file.
34481         * modules/ftell: New file.
34482         * m4/ftell.m4: New file.
34483         * doc/functions/ftell.texi: Update.
34484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34485         REPLACE_FTELL.
34486         * lib/stdio_.h (rpl_ftell): New declaration.
34487         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34488         REPLACE_FTELL.
34489
34490 2007-05-28  Eric Blake  <ebb9@byu.net>
34491
34492         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34493
34494 2007-05-28  Bruno Haible  <bruno@clisp.org>
34495
34496         * modules/fseek-tests: New file.
34497         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34498         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34499
34500         * lib/fseek.c: New file.
34501         * modules/fseek: New file.
34502         * m4/fseek.m4: New file.
34503         * doc/functions/fseek.texi: Update.
34504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34505         REPLACE_FSEEK.
34506         * lib/stdio_.h (rpl_fseek): New declaration.
34507         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34508         REPLACE_FSEEK.
34509
34510 2007-05-28  Bruno Haible  <bruno@clisp.org>
34511
34512         * lib/stdio_.h (fflush): More comments.
34513
34514 2007-05-28  Bruno Haible  <bruno@clisp.org>
34515
34516         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34517         runtime test.
34518
34519 2007-05-28  Eric Blake  <ebb9@byu.net>
34520
34521         Improve lseek module.
34522         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34523         * lib/unistd_.h (lseek): Scale back link warning message.
34524         * tests/test-lseek.c: Beef up test.
34525         * tests/test-lseek.sh: Exercise more facets of lseek.
34526         Reported by Bruno Haible.
34527
34528 2007-05-28  Bruno Haible  <bruno@clisp.org>
34529
34530         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34531         to define.
34532
34533 2007-05-27  Bruno Haible  <bruno@clisp.org>
34534
34535         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34536
34537 2007-05-27  Bruno Haible  <bruno@clisp.org>
34538
34539         * modules/openmp: New file.
34540         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34541         Noah Misch.
34542
34543 2007-05-26  Bruno Haible  <bruno@clisp.org>
34544
34545         * modules/chdir-long (Depends-on): Add fchdir.
34546         * modules/chdir-safer (Depends-on): Likewise.
34547         * modules/fts (Depends-on): Likewise.
34548         * modules/fts-lgpl (Depends-on): Likewise.
34549         * modules/openat (Depends-on): Likewise.
34550         * modules/savewd (Depends-on): Likewise.
34551
34552 2007-05-24  Eric Blake  <ebb9@byu.net>
34553
34554         Fix lseek on mingw.
34555         * modules/lseek: New module.
34556         * m4/lseek.m4: New file.
34557         * lib/lseek.c: New file.
34558         * modules/lseek-tests: New file.
34559         * tests/test-lseek.c: New file.
34560         * tests/test-lseek.sh: New file.
34561         * MODULES.html.sh: Document lseek module.
34562         * modules/fflush (Depends-on): Add lseek, fseeko.
34563         * modules/fseeko (Depends-on): Likewise.
34564         * modules/ftello (Depends-on): Likewise.
34565         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34566         broken.
34567         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34568         broken.
34569         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34570         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34571         * lib/ftello.c (rpl_ftello): Likewise.
34572         * tests/test-fseeko.c (main): Test this.
34573         * tests/test-fseeko.sh: Likewise.
34574         * tests/test-ftello.c (main): Likewise.
34575         * tests/test-ftello.sh: Likewise.
34576         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34577         implies replacing fseek.
34578         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34579         HAVE_FTELLO.
34580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34581         * modules/unistd (Makefile.am): Likewise.
34582         * lib/unistd_.h (lseek): Declare a replacement.
34583         * doc/functions/lseek.texi (lseek): Document this fix.
34584         * doc/functions/fseek.texi (fseek): Likewise.
34585         * doc/functions/ftell.texi (ftell): Likewise.
34586
34587 2007-05-24  Bruno Haible  <bruno@clisp.org>
34588
34589         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34590         in the printed representation of a NaN.
34591         * tests/test-vasprintf-posix.c (test_function): Likewise.
34592         * tests/test-snprintf-posix.h (test_function): Likewise.
34593         * tests/test-sprintf-posix.h (test_function): Likewise.
34594         Reported by Eric Blake.
34595
34596 2007-05-23  Eric Blake  <ebb9@byu.net>
34597
34598         Fix fseeko/ftello on cygwin 1.5.24.
34599         * doc/functions/fseeko.texi (fseeko): Document the fix.
34600         * doc/functions/ftello.texi (ftello): Document the fix.
34601         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34602         * doc/functions/stdout.text (stdout): New file.
34603         * doc/functions/stderr.text (stderr): New file.
34604         * doc/gnulib.texi (Function Substitutes): Use new files.
34605         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34606         prior to 1.7.0.
34607         * tests/test-ftello.c (main): Likewise for ftello.
34608         * tests/test-fseeko.sh: New file.
34609         * tests/test-ftello.sh: New file.
34610         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34611         with seekable stdin.
34612         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34613         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34614         (gl_REPLACE_FSEEKO): New macro.
34615         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34616         * modules/fseeko (Files): Distribute fseeko.c.
34617         * modules/ftello (Files): Distribute ftello.c.
34618         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34619         mode.
34620         * lib/ftello.c (rpl_ftello): New file.
34621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34622         fseeko, ftello.
34623         (gl_STDIN_LARGE_OFFSET): New macro.
34624         * modules/stdio (Makefile.am): Perform the replacement.
34625         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34626
34627 2007-05-23  Bruno Haible  <bruno@clisp.org>
34628
34629         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34630         GNULIB_POSIXCHECK is defined.
34631
34632 2007-05-21  Bruno Haible  <bruno@clisp.org>
34633
34634         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34635         Check also the output for NaN arguments. When cross-compiling, guess
34636         no on IRIX.
34637         * lib/vasnprintf.c: Update comments.
34638         * tests/test-vasnprintf-posix.c (strisnan): New function.
34639         (test_function): Use it.
34640         * tests/test-vasprintf-posix.c (strisnan): New function.
34641         (test_function): Use it.
34642         * tests/test-snprintf-posix.h (strisnan): New function.
34643         (test_function): Use it.
34644         * tests/test-sprintf-posix.h (strisnan): New function.
34645         (test_function): Use it.
34646         Reported by Eric Blake.
34647
34648 2007-05-20  Bruno Haible  <bruno@clisp.org>
34649
34650         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34651         numbers that fails on BeOS.
34652         * doc/functions/frexpl.texi: Update.
34653
34654 2007-05-20  Jim Meyering  <jim@meyering.net>
34655
34656         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34657         forced upon us by glibc-2.6.
34658
34659 2007-05-20  Bruno Haible  <bruno@clisp.org>
34660
34661         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34662         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34663         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34664         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34665         NEED_PRINTF_INFINITE.
34666         (is_infinitel): New function.
34667         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34668         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34669         gl_PREREQ_VASNPRINTF_INFINITE.
34670         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34671         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34672         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34673         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34674         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34675         gl_PREREQ_VASNPRINTF_INFINITE.
34676         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34677         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34678         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34679         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34680         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34681         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34682         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34683         * doc/functions/fprintf.texi: Update.
34684         * doc/functions/printf.texi: Update.
34685         * doc/functions/snprintf.texi: Update.
34686         * doc/functions/sprintf.texi: Update.
34687         * doc/functions/vfprintf.texi: Update.
34688         * doc/functions/vprintf.texi: Update.
34689         * doc/functions/vsnprintf.texi: Update.
34690         * doc/functions/vsprintf.texi: Update.
34691
34692 2007-05-20  Bruno Haible  <bruno@clisp.org>
34693
34694         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34695         was not found in libc.
34696         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34697
34698 2007-05-20  Bruno Haible  <bruno@clisp.org>
34699
34700         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34701         printed as "-nan" instead of "nan".
34702         * tests/test-vasprintf-posix.c (test_function): Likewise.
34703         * tests/test-snprintf-posix.h (test_function): Likewise.
34704         * tests/test-sprintf-posix.h (test_function): Likewise.
34705         Needed for HP-UX 11.
34706
34707 2007-05-20  Jim Meyering  <jim@meyering.net>
34708
34709         Fix buggy test for the fchownat-deref bug.
34710         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34711         symlink required for the run-test.  Without it, this test would
34712         always declare that fchownat doesn't work, and client code would
34713         unnecessarily use the replacement function with fixed libc.
34714         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34715         Reported by Greg Schafer.
34716
34717 2007-05-19  Bruno Haible  <bruno@clisp.org>
34718
34719         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34720         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34721         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34722         Needed for IRIX 6.5 and Solaris 2.5.1.
34723
34724 2007-05-19  Bruno Haible  <bruno@clisp.org>
34725
34726         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34727         (test_function): Skip tests involving -0.0 on platforms where
34728         -0.0 = 0.0.
34729         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34730         (test_function): Skip tests involving -0.0 on platforms where
34731         -0.0 = 0.0.
34732         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34733         (test_function): Skip tests involving -0.0 on platforms where
34734         -0.0 = 0.0.
34735         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34736         (test_function): Skip tests involving -0.0 on platforms where
34737         -0.0 = 0.0.
34738         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34739         tests.
34740         * tests/test-printf-posix.h (test_function): Likewise.
34741         * tests/test-printf-posix.output: Remove all -0.0 related results.
34742         Needed for IRIX 6.5.
34743
34744 2007-05-19  Bruno Haible  <bruno@clisp.org>
34745
34746         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34747         printed as "nan0x7fffffff" instead of "nan".
34748         * tests/test-vasprintf-posix.c (test_function): Likewise.
34749         * tests/test-snprintf-posix.h (test_function): Likewise.
34750         * tests/test-sprintf-posix.h (test_function): Likewise.
34751         * tests/test-fprintf-posix.h (NaN): Remove macro.
34752         (test_function): Remove all NaN related tests.
34753         * tests/test-printf-posix.h (NaN): Remove macro.
34754         (test_function): Remove all NaN related tests.
34755         * tests/test-printf-posix.output: Remove all NaN related results.
34756         Needed for IRIX 6.5.
34757
34758 2007-05-19  Bruno Haible  <bruno@clisp.org>
34759
34760         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34761         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34762
34763 2007-05-19  Bruno Haible  <bruno@clisp.org>
34764
34765         * lib/float_.h: New file.
34766         * m4/float_h.m4: New file.
34767         * modules/float: New file.
34768         * modules/isnanl (Dependencies): Add float.
34769         * modules/isnanl-nolibm (Dependencies): Likewise.
34770         * modules/mathl (Dependencies): Likewise.
34771         * modules/printf-frexpl (Dependencies): Likewise.
34772         * modules/signbit (Dependencies): Likewise.
34773         * modules/vasnprintf (Dependencies): Likewise.
34774         * doc/headers/float.texi: Update.
34775
34776 2007-05-19  Jim Meyering  <jim@meyering.net>
34777
34778         * lib/utimens.c (gl_futimens): Rename from futimens,
34779         now that glibc-2.6 declares futimens.
34780         * lib/utimens.h: Likewise.
34781
34782 2007-05-19  Bruno Haible  <bruno@clisp.org>
34783
34784         Avoid test failures on mingw.
34785         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34786         * tests/test-printf-posix.sh: Likewise.
34787         * tests/test-vfprintf-posix.sh: Likewise.
34788         * tests/test-vprintf-posix.sh: Likewise.
34789
34790 2007-05-19  Bruno Haible  <bruno@clisp.org>
34791
34792         Fix *printf result for NaN, Inf, -0.0 on mingw.
34793         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34794         * lib/vasnprintf.c: Include math.h and isnan.h.
34795         (is_infinite_or_zero): New function.
34796         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34797         values in the %f, %F, %e, %E, %g, %G directives.
34798         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34800         gl_PRINTF_INFINITE and test its result. Invoke
34801         gl_PREREQ_VASNPRINTF_INFINITE.
34802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34809         * doc/functions/fprintf.texi: Update.
34810         * doc/functions/printf.texi: Update.
34811         * doc/functions/snprintf.texi: Update.
34812         * doc/functions/sprintf.texi: Update.
34813         * doc/functions/vfprintf.texi: Update.
34814         * doc/functions/vprintf.texi: Update.
34815         * doc/functions/vsnprintf.texi: Update.
34816         * doc/functions/vsprintf.texi: Update.
34817
34818 2007-05-19  Bruno Haible  <bruno@clisp.org>
34819
34820         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34821         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34822         Instead of multiplying with 10^k, set extra_zeroes to k.
34823         (scale10_round_long_double): Remove function.
34824
34825 2007-05-18  Bruno Haible  <bruno@clisp.org>
34826
34827         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34828         introduced on 2007-05-06.
34829
34830 2007-05-18  Bruno Haible  <bruno@clisp.org>
34831
34832         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34833         %g directives.
34834         * tests/test-vasprintf-posix.c (test_function): Likewise.
34835         * tests/test-snprintf-posix.h (test_function): Likewise.
34836         * tests/test-sprintf-posix.h (test_function): Likewise.
34837
34838 2007-05-18  Bruno Haible  <bruno@clisp.org>
34839
34840         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34841         (strmatch): New function.
34842         (test_function): Test the %f directive on numbers of various exponents.
34843         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34844         (strmatch): New function.
34845         (test_function): Test the %f directive on numbers of various exponents.
34846         * tests/test-snprintf-posix.h (strmatch): New function.
34847         (test_function): Test the %f directive on numbers of various exponents.
34848         * tests/test-sprintf-posix.h (strmatch): New function.
34849         (test_function): Test the %f directive on numbers of various exponents.
34850         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34851         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34852         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34853         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34854
34855 2007-05-18  Bruno Haible  <bruno@clisp.org>
34856
34857         Add support for 'long double' number output.
34858         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34859         * lib/vasnprintf.c: Include math.h and float+.h.
34860         (mp_limb_t): New type.
34861         (GMP_LIMB_BITS): New macro.
34862         (mp_twolimb_t): New type.
34863         (GMP_TWOLIMB_BITS): New macro.
34864         (mpn_t): New type.
34865         (multiply, divide, convert_to_decimal, decode_long_double,
34866         scale10_round_long_double, scale10_round_decimal_long_double,
34867         floorlog10l): New functions.
34868         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34869         for the %f, %F, %e, %E, %g, %G directives.
34870         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34871         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34872         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34873         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34874         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34875         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34876         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34877         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34878         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34879         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34880         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34881         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34882         * modules/snprintf-posix (Depends-on): Likewise.
34883         * modules/sprintf-posix (Depends-on): Likewise.
34884         * modules/vasnprintf-posix (Depends-on): Likewise.
34885         * modules/vasprintf-posix (Depends-on): Likewise.
34886         * modules/vfprintf-posix (Depends-on): Likewise.
34887         * modules/vsnprintf-posix (Depends-on): Likewise.
34888         * modules/vsprintf-posix (Depends-on): Likewise.
34889         * modules/vasnprintf (Files): Add lib/float+.h.
34890         * doc/functions/fprintf.texi: Update.
34891         * doc/functions/printf.texi: Update.
34892         * doc/functions/snprintf.texi: Update.
34893         * doc/functions/sprintf.texi: Update.
34894         * doc/functions/vfprintf.texi: Update.
34895         * doc/functions/vprintf.texi: Update.
34896         * doc/functions/vsnprintf.texi: Update.
34897         * doc/functions/vsprintf.texi: Update.
34898
34899 2007-05-18  Bruno Haible  <bruno@clisp.org>
34900
34901         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34902
34903 2007-05-18  Bruno Haible  <bruno@clisp.org>
34904
34905         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34906         for printing 64-bit integers. Needed for mingw.
34907
34908 2007-05-18  Bruno Haible  <bruno@clisp.org>
34909
34910         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34911         gl_FUNC_FREXPL_WORKS.
34912         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34913
34914 2007-05-18  Bruno Haible  <bruno@clisp.org>
34915
34916         * modules/frexpl-nolibm-tests: New file.
34917
34918         * modules/frexpl-nolibm: New file.
34919         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34920
34921 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34922
34923         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34924         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34925         GCC 4.2, which otherwise issues a lot of warnings.
34926         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34927         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34928         Likewise.
34929         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34930         * modules/iconv_open (iconv.h): Likewise.
34931         * modules/locale (locale.h): Likewise.
34932         * modules/netinet_in (netinet/in.h): Likewise.
34933         * modules/sys_select (sys_select.h): Likewise.
34934         * modules/sys_socket (sys/socket.h): Likewise.
34935         * modules/sys_stat (sys/stat.h): Likewise.
34936         * modules/sysexits (sysexits.h): Likewise.
34937         * modules/unistd (unistd.h): Likewise.
34938
34939 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34940
34941         * modules/closein-tests (Makefile.am): Distribute
34942         `test-closein.sh'.
34943
34944 2007-05-17  Bruno Haible  <bruno@clisp.org>
34945
34946         * tests/test-printf-posix.output: Renamed from
34947         tests/test-fprintf-posix.out.
34948         * modules/fprintf-posix-tests: Update.
34949         * modules/printf-posix-tests: Update.
34950         * modules/vfprintf-posix-tests: Update.
34951         * modules/vprintf-posix-tests: Update.
34952         * tests/test-fprintf-posix.sh: Update.
34953         * tests/test-printf-posix.sh: Update.
34954         * tests/test-vfprintf-posix.sh: Update.
34955         * tests/test-vprintf-posix.sh: Update.
34956         Reported by Ralf Wildenhues.
34957
34958 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34959
34960         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34961         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34962         GCC 4.2, which otherwise issues a lot of warnings.
34963         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34964         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34965         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34966         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34967         it should no longer be needed.
34968         * lib/string_.h: Likewise.
34969         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34970         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34971         * modules/inttypes (inttypes.h): Likewise.
34972         * modules/math (math.h): Likewise.
34973         * modules/search (search.h): Likewise.
34974         * modules/signal (signal.h): Likewise.
34975         * modules/stdint (stdint.h): Likewise.
34976         * modules/stdio (stdio.h): Likewise.
34977         * modules/stdlib (stdlib.h): Likewise.
34978         * modules/string (string.h): Likewise.
34979         * modules/sys_time (sys/time.h): Likewise.
34980         * modules/time (time.h): Likewise.
34981         * modules/wchar (wchar.h): Likewise.
34982         * modules/wctype (wtype.h): Likewise.
34983
34984 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34985
34986         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34987
34988 2007-05-13  Bruno Haible  <bruno@clisp.org>
34989
34990         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34991         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34992         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34993         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34994         (gl_PREREQ_STRTOK_R): Don't require it here.
34995
34996 2007-05-13  Bruno Haible  <bruno@clisp.org>
34997
34998         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34999         when used in C++ mode.
35000
35001 2007-05-12  Bruno Haible  <bruno@clisp.org>
35002
35003         * lib/linebuffer.h: Tweak doc.
35004         * lib/linebuffer.c: Likewise.
35005
35006 2007-05-12  James Youngman  <jay@gnu.org>
35007
35008         * lib/linebuffer.c (readlinebuffer_delim): New function,
35009         like readlinebuffer, but use a caller-specified delimiter.
35010         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35011         as the delimiter.
35012         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35013
35014 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35015
35016         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35017         * modules/openat (Files): Remove openat-die.c.
35018         (Depends-on): Add openat-die.
35019         * modules/openat-die: New module.
35020
35021 2007-05-06  Bruno Haible  <bruno@clisp.org>
35022
35023         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35024         Update with info about Cygwin.
35025         * doc/functions/fprintf.texi: Update.
35026         * doc/functions/printf.texi: Update.
35027         * doc/functions/snprintf.texi: Update.
35028         * doc/functions/sprintf.texi: Update.
35029         * doc/functions/vfprintf.texi: Update.
35030         * doc/functions/vprintf.texi: Update.
35031         * doc/functions/vsnprintf.texi: Update.
35032         * doc/functions/vsprintf.texi: Update.
35033         Reported by Eric Blake.
35034
35035 2007-05-06  Bruno Haible  <bruno@clisp.org>
35036
35037         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35038         padding ourselves for the floating-point directives.
35039         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35040         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35041         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35042         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35043         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35044         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35045         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35046         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35047         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35048         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35049         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35050         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35051         * tests/test-snprintf-posix.h (test_function): Also check the width
35052         and some flags in the %f directive.
35053         * tests/test-sprintf-posix.h (test_function): Likewise.
35054         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35055         * tests/test-vasprintf-posix.c (test_function): Likewise.
35056         * doc/functions/fprintf.texi: Update.
35057         * doc/functions/printf.texi: Update.
35058         * doc/functions/snprintf.texi: Update.
35059         * doc/functions/sprintf.texi: Update.
35060         * doc/functions/vfprintf.texi: Update.
35061         * doc/functions/vprintf.texi: Update.
35062         * doc/functions/vsnprintf.texi: Update.
35063         * doc/functions/vsprintf.texi: Update.
35064
35065 2007-05-06  Bruno Haible  <bruno@clisp.org>
35066
35067         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35068         pass the ' flag character to sprintf or snprintf.
35069         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35070         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35071         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35072         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35073         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35074         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35075         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35076         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35077         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35078         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35079         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35080         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35081         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35082         flag.
35083         * tests/test-sprintf-posix.h (test_function): Likewise.
35084         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35085         * tests/test-vasprintf-posix.c (test_function): Likewise.
35086         * doc/functions/fprintf.texi: Update.
35087         * doc/functions/printf.texi: Update.
35088         * doc/functions/snprintf.texi: Update.
35089         * doc/functions/sprintf.texi: Update.
35090         * doc/functions/vfprintf.texi: Update.
35091         * doc/functions/vprintf.texi: Update.
35092         * doc/functions/vsnprintf.texi: Update.
35093         * doc/functions/vsprintf.texi: Update.
35094
35095 2007-05-01  Bruno Haible  <bruno@clisp.org>
35096
35097         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35098
35099 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35100
35101         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35102         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35103
35104 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35105
35106         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35107         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35108         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35109
35110 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35111
35112         * lib/argp-help.c (struct hol_entry): New member `ord'.
35113         (HOL_ENTRY_PTRCMP): Use ord for comparison
35114         (hol_sort): Initialize ord.
35115
35116 2007-05-01  Bruno Haible  <bruno@clisp.org>
35117
35118         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35119         Reported by Eric Blake.
35120         * doc/gnulib.texi (Function Substitutes): Update.
35121
35122 2007-05-01  Bruno Haible  <bruno@clisp.org>
35123
35124         * doc/functions.texi: Remove file, now redundant through
35125         doc/functions/*.texi.
35126
35127 2007-05-01  Bruno Haible  <bruno@clisp.org>
35128
35129         * modules/argp (Depends-on): Add sleep.
35130
35131 2007-05-01  Bruno Haible  <bruno@clisp.org>
35132
35133         * modules/sleep-tests: New file.
35134         * tests/test-sleep.c: New file.
35135
35136         * modules/sleep: New file.
35137         * lib/sleep.c: New file.
35138         * m4/sleep.m4: New file.
35139         * lib/unistd_.h (sleep): New declaration.
35140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35141         HAVE_SLEEP.
35142         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35143         * doc/functions/sleep.texi: Document the sleep module.
35144
35145 2007-05-01  Bruno Haible  <bruno@clisp.org>
35146
35147         * lib/sigprocmask.h: Remove file.
35148         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35149         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35150         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35151         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35152         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35153         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35154         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35155         HAVE_SIGSET_T as a shell variable.
35156         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35157         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35158         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35159         (Depends-on): Add signal. Remove verify.
35160         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35161         (Include): Mention <signal.h> instead of sigprocmask.h.
35162         * NEWS: Mention the change.
35163         * lib/fatal-signal.c: Don't include sigprocmask.h.
35164
35165 2007-05-01  Bruno Haible  <bruno@clisp.org>
35166
35167         * modules/signal: New file.
35168         * lib/signal_.h: New file.
35169         * m4/signal_h.m4: New file.
35170
35171 2007-05-01  Bruno Haible  <bruno@clisp.org>
35172
35173         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35174         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35175         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35176         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35177
35178 2007-05-01  Bruno Haible  <bruno@clisp.org>
35179
35180         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35181         configure time.
35182         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35183         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35184         * modules/sys_stat (Makefile.am): Substitute their values into
35185         sys/stat.h.
35186
35187 2007-05-01  Bruno Haible  <bruno@clisp.org>
35188
35189         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35190         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35191         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35192
35193 2007-05-01  Bruno Haible  <bruno@clisp.org>
35194
35195         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35196         'assert' module here.
35197
35198 2007-05-01  Bruno Haible  <bruno@clisp.org>
35199
35200         * doc/functions/*.texi: New files.
35201         * doc/functions/google-ranking.txt: New file.
35202         * doc/gnulib.texi (Function Substitutes): New chapter.
35203         (ctime, inet_ntoa): Remove sections.
35204         * doc/ctime.texi: Remove file.
35205         * doc/inet_ntoa.texi: Remove file.
35206         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35207         dependencies.
35208         (%.info): New rule, specifying a --reference-limit.
35209
35210 2007-05-01  Bruno Haible  <bruno@clisp.org>
35211
35212         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35213
35214 2007-05-01  Bruno Haible  <bruno@clisp.org>
35215
35216         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35217         the portability of 'mkdir' to mingw systems.
35218
35219 2007-05-01  Bruno Haible  <bruno@clisp.org>
35220
35221         * doc/headers/google-ranking.txt: New file.
35222
35223 2007-04-30  Eric Blake  <ebb9@byu.net>
35224
35225         Prefer fseeko to fseek.
35226         * modules/getpass (Depends-on): Add fseeko.
35227         * lib/getpass.c (getpass): Use fseeko, not fseek.
35228
35229 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35230
35231         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35232         assumes the sorting is stable, while most qsort implementations
35233         are not.  Use argument addresses to ensure they never compare as
35234         equal.
35235
35236         * tests/test-argp-2.sh (usage-indent test): Fix output
35237         (func_compare): Restore diff options
35238         * tests/test-argp.c: Restore #include "progname.h"
35239
35240 2007-04-29  Bruno Haible  <bruno@clisp.org>
35241
35242         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35243         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35244         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35246         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35247         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35248         (TESTS, check_PROGRAMS): Add test-snprintf.
35249         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35250         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35251         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35252         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35253         assertions that fail on HP-UX, OSF/1, or IRIX.
35254         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35255
35256 2007-04-29  Bruno Haible  <bruno@clisp.org>
35257
35258         * MODULES.html.sh (posix_functions): Remove 'contents'.
35259
35260 2007-04-29  Karl Berry  <karl@gnu.org>
35261
35262         * config/srclist.txt (gendocs_template_min): new entry.
35263
35264 2007-04-29  Bruno Haible  <bruno@clisp.org>
35265
35266         Work around fpurge bug on BSD systems.
35267         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35268         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35269         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35270         fpurge to rpl_fpurge if the system already has this function.
35271         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35272         the case where the system already has this function. Correct invariants
35273         on BSD systems.
35274         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35275         BSD systems.
35276
35277 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35278
35279         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35280         proposed by Sven Verdoolaege.
35281
35282         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35283         options.
35284         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35285         (usage and help tests): Update
35286
35287 2007-04-29  Bruno Haible  <bruno@clisp.org>
35288
35289         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35290         Print more information in case of failure. Disable a test on BeOS.
35291
35292 2007-04-29  Bruno Haible  <bruno@clisp.org>
35293
35294         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35295         This helps debugging on systems on which no gdb is available.
35296
35297 2007-04-29  Bruno Haible  <bruno@clisp.org>
35298
35299         * lib/freading.h: Improve comments.
35300         * lib/fwriting.h: Likewise.
35301         * tests/test-freading.c (main): Don't check freading immediately after
35302         repositioning. Needed for glibc.
35303
35304 2007-04-29  Bruno Haible  <bruno@clisp.org>
35305
35306         * lib/freading.c (freading): Trivial simplification.
35307
35308 2007-04-28  Bruno Haible  <bruno@clisp.org>
35309
35310         * tests/test-fwriting.c (main): Also test the interaction between
35311         fflush and fwriting.
35312         * modules/fwriting-tests (Depends-on): Add fflush.
35313
35314         * tests/test-freading.c (main): Also test the interaction between
35315         fflush and freading.
35316         * modules/freading-tests (Depends-on): Add fflush.
35317
35318 2007-04-28  Bruno Haible  <bruno@clisp.org>
35319
35320         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35321         fseeko and ftello.
35322         Suggested by Eric Blake.
35323
35324 2007-04-28  Jim Meyering  <jim@meyering.net>
35325
35326         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35327         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35328         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35329
35330 2007-04-27  Eric Blake  <ebb9@byu.net>
35331
35332         * doc/headers/assert.texi (assert.h): Document assert module use.
35333
35334 2007-04-27  Bruno Haible  <bruno@clisp.org>
35335
35336         * doc/headers/*.texi: New files.
35337         * doc/gnulib.texi (Header File Substitutes): New chapter.
35338         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35339         dependencies.
35340         (standards.info ,standards.html, standards.dvi): Update dependencies.
35341         (mostlyclean, clean): New targets.
35342
35343 2007-04-27  Bruno Haible  <bruno@clisp.org>
35344
35345         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35346         * modules/sysexits (Files, Makefile.am): Update.
35347
35348         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35349         * modules/sys_socket (Files, Makefile.am): Update.
35350
35351         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35352         * modules/sys_stat (Files, Makefile.am): Update.
35353
35354 2007-04-27  Eric Blake  <ebb9@byu.net>
35355
35356         * lib/freading.h: Improve comments.
35357         * lib/fwriting.h: Likewise.
35358         * lib/fflush.c: Likewise.
35359
35360         Fix closein for mingw.
35361         * modules/closein-tests: Add tests for closein.
35362         * tests/test-closein.c: New file.
35363         * tests/test-closein.sh: Likewise.
35364         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35365         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35366
35367 2007-04-27  Bruno Haible  <bruno@clisp.org>
35368
35369         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35370         version is < 6.
35371         * lib/math_.h [__DECC]: Likewise.
35372         * lib/stdio_.h [__DECC]: Likewise.
35373         * lib/stdlib_.h [__DECC]: Likewise.
35374         * lib/string_.h [__DECC]: Likewise.
35375         * lib/time_.h [__DECC]: Likewise.
35376         * lib/wchar_.h [__DECC]: Likewise.
35377         * lib/wctype_.h [__DECC]: Likewise.
35378
35379 2007-04-27  Bruno Haible  <bruno@clisp.org>
35380
35381         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35382
35383 2007-04-27  Bruno Haible  <bruno@clisp.org>
35384
35385         * lib/fflush.c: Add comments.
35386         * modules/fpurge-tests (Depends-on): Add fflush.
35387         * modules/freadable-tests (Depends-on): Likewise.
35388         * modules/fwritable-tests (Depends-on): Likewise.
35389
35390 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35391
35392         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35393         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35394         Report by Bruno Haible <bruno@clisp.org>.
35395
35396 2007-04-26  Eric Blake  <ebb9@byu.net>
35397
35398         Fix fflush on mingw.
35399         * modules/fflush (Depends-on): Add freading.
35400         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35401         but unread data.
35402
35403 2007-04-26  Eric Blake  <ebb9@byu.net>
35404         and Bruno Haible  <bruno@clisp.org>
35405
35406         Implement freading and fwriting.
35407         * lib/freading.c: New file.
35408         * lib/freading.h: Likewise.
35409         * m4/freading.m4: Likewise.
35410         * modules/freading: Likewise.
35411         * modules/freading-tests: Likewise.
35412         * tests/test-freading.c: Likewise.
35413         * lib/fwriting.c: New file.
35414         * lib/fwriting.h: Likewise.
35415         * m4/fwriting.m4: Likewise.
35416         * modules/fwriting: Likewise.
35417         * modules/fwriting-tests: Likewise.
35418         * tests/test-fwriting.c: Likewise.
35419         * MODULES.html.sh (File stream based Input/Output): Mention them.
35420
35421 2007-04-26  Bruno Haible  <bruno@clisp.org>
35422
35423         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35424         'long' when we assume it.
35425         Suggested by Eric Blake.
35426
35427 2007-04-26  Bruno Haible  <bruno@clisp.org>
35428
35429         Ensure fseeko, ftello are declared on glibc systems.
35430         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35431         * modules/fseeko (configure.ac-early): Likewise.
35432         * modules/ftello (configure.ac-early): Likewise.
35433         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35434         AC_FUNC_FSEEKO for this.
35435         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35436         (gl_CHECK_FSEEKO): Remove macro.
35437
35438 2007-04-26  Bruno Haible  <bruno@clisp.org>
35439
35440         * tests/test-fflush.c (main): Also check the ftell result after
35441         fflush and fseek/fseeko.
35442         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35443         file descriptor position cache in the stream.
35444         * lib/fseeko.c (rpl_fseeko): Likewise.
35445
35446 2007-04-26  Bruno Haible  <bruno@clisp.org>
35447
35448         * modules/fflush-tests (Depends-on): Add fseeko.
35449
35450 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35451             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35452
35453         * lib/argz_.h: ensure error_t definition is obtained in same
35454         mechanism system argz.h would have.
35455         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35456         argz facilities are known bad.  Err on the side of caution if
35457         cross-compiling.
35458
35459 2007-04-25  Eric Blake  <ebb9@byu.net>
35460
35461         * lib/fpurge.c (includes): Use stdlib.h for free.
35462         * tests/test-fflush.c (main): Also test fflush-fseeko.
35463
35464 2007-04-25  Bruno Haible  <bruno@clisp.org>
35465
35466         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35467         * lib/fseeko.c: New file.
35468         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35469         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35470         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35471         gl_FUNC_FSEEKO.
35472         (gl_FUNC_FSEEKO): Invoke it.
35473         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35474         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35475         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35476
35477 2007-04-25  Bruno Haible  <bruno@clisp.org>
35478
35479         * modules/fflush (Depends-on): Add ftello.
35480
35481 2007-04-25  Bruno Haible  <bruno@clisp.org>
35482
35483         * modules/ftello-tests: New file.
35484         * tests/test-ftello.c: New file.
35485
35486         * modules/ftello: New file.
35487         * m4/ftello.m4: New file.
35488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35489         HAVE_FTELLO.
35490         * lib/stdio_.h (ftello): New declaration.
35491         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35492         HAVE_FTELLO.
35493
35494 2007-04-25  Bruno Haible  <bruno@clisp.org>
35495
35496         * modules/fseeko-tests: New file.
35497         * tests/test-fseeko.c: New file.
35498
35499         * modules/fseeko: New file.
35500         * m4/fseeko.m4: New file.
35501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35502         HAVE_FSEEKO.
35503         * lib/stdio_.h (fseeko): New declaration.
35504         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35505         HAVE_FSEEKO.
35506
35507 2007-04-25  Bruno Haible  <bruno@clisp.org>
35508
35509         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35510
35511 2007-04-25  Bruno Haible  <bruno@clisp.org>
35512
35513         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35514         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35515         * tests/test-unistd.c: Likewise.
35516         * tests/test-fcntl.c: Likewise.
35517
35518 2007-04-23  Eric Blake  <ebb9@byu.net>
35519
35520         * lib/fflush.c: Fix missing include.
35521         Reported by Bruno Haible.
35522
35523 2007-04-23  Bruno Haible  <bruno@clisp.org>
35524
35525         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35526         Reported by Eric Blake.
35527
35528 2007-04-23  Bruno Haible  <bruno@clisp.org>
35529
35530         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35531
35532 2007-04-23  Bruno Haible  <bruno@clisp.org>
35533
35534         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35535
35536 2007-04-23  Bruno Haible  <bruno@clisp.org>
35537
35538         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35539         Needed on HP-UX 11.
35540
35541 2007-04-16  Eric Blake  <ebb9@byu.net>
35542
35543         Make fflush rely on fpurge.
35544         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35545         open coding all variants.
35546         * modules/fflush (Depends-on): Add fpurge and unistd.
35547         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35548         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35549
35550         Fix --with-tests compilation on cygwin.
35551         * modules/argmatch-tests (Makefile.am): List gnulib library first
35552         in LDADD.
35553         * modules/argp-tests (Makefile.am): Likewise.
35554         * modules/array-list-tests (Makefile.am): Likewise.
35555         * modules/array-oset-tests (Makefile.am): Likewise.
35556         * modules/avltree-list-tests (Makefile.am): Likewise.
35557         * modules/avltree-oset-tests (Makefile.am): Likewise.
35558         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35559         * modules/carray-list-tests (Makefile.am): Likewise.
35560         * modules/dirname-tests (Makefile.am): Likewise.
35561         * modules/frexp-tests (Makefile.am): Likewise.
35562         * modules/isnanl-tests (Makefile.am): Likewise.
35563         * modules/linked-list-tests (Makefile.am): Likewise.
35564         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35565         * modules/lock-tests (Makefile.am): Likewise.
35566         * modules/rbtree-list-tests (Makefile.am): Likewise.
35567         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35568         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35569         * modules/tls-tests (Makefile.am): Likewise.
35570         * modules/tsearch-tests (Makefile.am): Likewise.
35571         * modules/xvasprintf-tests (Makefile.am): Likewise.
35572
35573         Fix fpurge for cygwin.
35574         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35575         value.
35576         * modules/fpurge-tests (Depends-on): Clean up trash.
35577
35578 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35579
35580         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35581
35582         * m4/autobuild.m4: Re-indent.
35583
35584 2007-04-13  Bruno Haible  <bruno@clisp.org>
35585
35586         * modules/fpurge-tests: New file.
35587         * tests/test-fpurge.c: New file.
35588
35589         * modules/fpurge: New file.
35590         * lib/fpurge.h: New file.
35591         * lib/fpurge.c: New file.
35592         * m4/fpurge.m4: New file.
35593
35594 2007-04-13  Bruno Haible  <bruno@clisp.org>
35595
35596         * modules/fbufmode-tests: New file.
35597         * tests/test-fbufmode.c: New file.
35598
35599         * modules/fbufmode: New file.
35600         * lib/fbufmode.h: New file.
35601         * lib/fbufmode.c: New file.
35602         * m4/fbufmode.m4: New file.
35603
35604 2007-04-13  Bruno Haible  <bruno@clisp.org>
35605
35606         * modules/fwritable-tests: New file.
35607         * tests/test-fwritable.c: New file.
35608
35609         * modules/fwritable: New file.
35610         * lib/fwritable.h: New file.
35611         * lib/fwritable.c: New file.
35612         * m4/fwritable.m4: New file.
35613
35614 2007-04-13  Bruno Haible  <bruno@clisp.org>
35615
35616         * modules/freadable-tests: New file.
35617         * tests/test-freadable.c: New file.
35618
35619         * modules/freadable: New file.
35620         * lib/freadable.h: New file.
35621         * lib/freadable.c: New file.
35622         * m4/freadable.m4: New file.
35623
35624 2007-04-13  Bruno Haible  <bruno@clisp.org>
35625
35626         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35627         MOSTLYCLEANFILES.
35628
35629 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35630
35631         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35632         gzip bootstrap.conf to avoid dragging in i18n machinery.
35633         (gnulib_tool_option): Use it.
35634
35635 2007-04-13  Bruno Haible  <bruno@clisp.org>
35636
35637         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35638         %F directives.
35639         * tests/test-vasprintf-posix.c (test_function): Likewise.
35640         * tests/test-snprintf-posix.h (test_function): Likewise.
35641         * tests/test-sprintf-posix.h (test_function): Likewise.
35642         * tests/test-fprintf-posix.h (test_function): Likewise.
35643         * tests/test-printf-posix.h (test_function): Likewise.
35644         * tests/test-fprintf-posix.out: Likewise.
35645
35646 2007-04-13  Bruno Haible  <bruno@clisp.org>
35647
35648         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35649         * modules/tls-tests (configure.ac): Likewise.
35650         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35651
35652 2007-04-13  Bruno Haible  <bruno@clisp.org>
35653
35654         * lib/tls.c (glthread_tls_get): Fix return type.
35655         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35656
35657 2007-04-12  Eric Blake  <ebb9@byu.net>
35658
35659         * modules/gettime (Depends-on): Remove gettime.
35660         Reported by Dmitry V. Levin.
35661
35662 2007-04-12  Bruno Haible  <bruno@clisp.org>
35663
35664         * modules/fflush (Include): Mention <stdio.h>.
35665         * modules/strtoimax (Include): Mention <inttypes.h>.
35666         * modules/strtoumax (Include): Likewise.
35667
35668 2007-04-12  Eric Blake  <ebb9@byu.net>
35669
35670         * .cvsignore: New file.
35671         * .gitignore: Likewise.
35672
35673 2007-04-12  Bruno Haible  <bruno@clisp.org>
35674
35675         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35676         not before, since $(LDADD) often contains libgnu.a.
35677         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35678         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35679         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35680         Needed on Cygwin.
35681
35682 2007-04-12  Eric Blake  <ebb9@byu.net>
35683
35684         Work around glibc's failure to flush stdin on fclose.
35685         * lib/closein.c (close_stdin): Flush stdin before closing.
35686
35687         Work around glibc's failure to reset seekable stdin on exit.
35688         * modules/closein: New module.
35689         * lib/closein.c: New file.
35690         * lib/closein.h: Likewise.
35691         * m4/closein.m4: Likewise.
35692         * MODULES.html.sh (File stream based Input/Output): Document it.
35693
35694 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35695
35696         * gnulib-tool: Rename generated 'autobuild' script to
35697         'do-autobuild' in --create-megatestdir output.
35698
35699         * doc/gnulib.texi (Build robot for gnulib): Fix.
35700
35701 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35702
35703         * modules/sysexits (Depends-on): Add absolute-header.
35704
35705 2007-04-12  Eric Blake  <ebb9@byu.net>
35706
35707         No need to preserve errno on success.
35708         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35709         Reported by Bruno Haible.
35710
35711 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35712
35713         * MODULES.html.sh (Support for maintaining and releasing
35714         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35715
35716 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35717
35718         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35719
35720 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35721
35722         * modules/autobuild: New module.
35723
35724         * m4/autobuild.m4: New file.
35725
35726 2007-04-11  Bruno Haible  <bruno@clisp.org>
35727
35728         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35729         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35730         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35731         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35732         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35733         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35734         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35735         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35736         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35737         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35738         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35739         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35740         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35741         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35742         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35743         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35744         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35745         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35746         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35747         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35748         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35749         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35750         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35751         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35752         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35753         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35754         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35755         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35756         Reported by Eric Blake.
35757
35758 2007-04-11  Bruno Haible  <bruno@clisp.org>
35759
35760         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35761
35762 2007-04-10  Bruno Haible  <bruno@clisp.org>
35763
35764         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35765         for NaN and Infinity. Needed on FreeBSD 6.1.
35766         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35767         regarding results for "%010a" of Infinity and NaN.
35768         * tests/test-vasprintf-posix.c (test_function): Likewise.
35769         * tests/test-snprintf-posix.h (test_function): Likewise.
35770         * tests/test-sprintf-posix.h (test_function): Likewise.
35771         * tests/test-fprintf-posix.h (test_function): Likewise.
35772         * tests/test-printf-posix.h (test_function): Likewise.
35773         * tests/test-fprintf-posix.out: Likewise.
35774
35775 2007-04-10  Bruno Haible  <bruno@clisp.org>
35776
35777         * modules/locale-tests: New file.
35778         * tests/test-locale.c: New file.
35779
35780         * modules/locale: New file.
35781         * lib/locale_.h: New file.
35782         * m4/locale_h.m4: New file.
35783
35784 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35785             Bruno Haible  <bruno@clisp.org>
35786
35787         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35788         be determined, test for availability of the copysignf, copysign,
35789         copysignl functions.
35790         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35791         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35792         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35793
35794 2007-04-09  Eric Blake  <ebb9@byu.net>
35795
35796         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35797         * modules/stdio (Makefile.am): Support fflush.
35798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35799         * modules/fflush: New file.
35800         * lib/fflush.c: Likewise.
35801         * m4/fflush.m4: Likewise.
35802         * modules/fflush-tests: New test.
35803         * tests/test-fflush.c: Likewise.
35804         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35805
35806 2007-04-06  Bruno Haible  <bruno@clisp.org>
35807
35808         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35809         (VASNPRINTF): Use signbit for faster determination whether to print a
35810         minus sign.
35811         * modules/vasnprintf (Files): Remove lib/float+.h.
35812         * modules/fprintf-posix (Depends-on): Add signbit.
35813         * modules/snprintf-posix (Depends-on): Likewise.
35814         * modules/sprintf-posix (Depends-on): Likewise.
35815         * modules/vasnprintf-posix (Depends-on): Likewise.
35816         * modules/vasprintf-posix (Depends-on): Likewise.
35817         * modules/vfprintf-posix (Depends-on): Likewise.
35818         * modules/vsnprintf-posix (Depends-on): Likewise.
35819         * modules/vsprintf-posix (Depends-on): Likewise.
35820
35821 2007-04-06  Bruno Haible  <bruno@clisp.org>
35822
35823         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35824         * tests/test-frexpl.c (main): Likewise.
35825         * tests/test-ldexpl.c (main): Likewise.
35826         * modules/frexp-tests (Depends-on): Add signbit.
35827         * modules/frexpl-tests (Depdends-on): Likewise.
35828         * modules/ldexpl-tests (Depdends-on): Likewise.
35829
35830 2007-04-06  Bruno Haible  <bruno@clisp.org>
35831
35832         * modules/signbit-tests: New file.
35833         * tests/test-signbit.c: New file.
35834
35835         * modules/signbit: New file.
35836         * lib/signbitf.c: New file.
35837         * lib/signbitd.c: New file.
35838         * lib/signbitl.c: New file.
35839         * m4/signbit.m4: New file.
35840         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35841         (signbit): New macro.
35842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35843         REPLACE_SIGNBIT.
35844         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35845         REPLACE_FREXPL into math.h.
35846
35847 2007-04-06  Bruno Haible  <bruno@clisp.org>
35848
35849         * modules/isnanf-nolibm-tests: New file.
35850         * tests/test-isnanf.c: New file.
35851
35852         * modules/isnanf-nolibm: New file.
35853         * lib/isnanf.h: New file.
35854         * lib/isnanf.c: New file.
35855         * lib/isnan.c: Consider the USE_FLOAT macro.
35856         * m4/isnanf.m4: New file.
35857
35858 2007-04-06  Bruno Haible  <bruno@clisp.org>
35859
35860         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35861         (Link): New section.
35862
35863         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35864
35865 2007-04-06  Bruno Haible  <bruno@clisp.org>
35866
35867         Assume the 'long double' type.
35868         * m4/longdouble.m4: Remove file.
35869         * config/srclist.txt: Don't mention longdouble.m4.
35870         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35871         * lib/float+.h: Likewise.
35872         * lib/frexp.c: Likewise.
35873         * lib/printf-args.h: Likewise.
35874         * lib/printf-args.c: Likewise.
35875         * lib/printf-frexp.c: Likewise.
35876         * lib/printf-parse.c: Likewise.
35877         * lib/vasnprintf.c: Likewise.
35878         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35879         * m4/intl.m4: Likewise.
35880         * m4/isnanl.m4: Likewise.
35881         * m4/printf.m4: Likewise.
35882         * m4/printf-frexpl.m4: Likewise.
35883         * m4/vasnprintf.m4: Likewise.
35884         * modules/allocsa (Files): Remove m4/longdouble.m4.
35885         * modules/gettext (Files): Likewise.
35886         * modules/relocatable-prog-wrapper (Files): Likewise.
35887         * modules/vasnprintf (Files): Likewise.
35888         * modules/isnanl (Files): Likewise.
35889         (Include): Simplify.
35890         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35891         (Include): Simplify.
35892         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35893         (Include): Simplify.
35894         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35895         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35896         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35897         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35898         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35899         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35900         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35901         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35902         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35903         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35904         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35905         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35906         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35907         * tests/test-isnanl.c: Likewise.
35908         * tests/test-snprintf-posix.h: Likewise.
35909         * tests/test-sprintf-posix.h: Likewise.
35910         * tests/test-vasnprintf-posix.c: Likewise.
35911         * tests/test-vasnprintf-posix2.c: Likewise.
35912         * tests/test-vasprintf-posix.c: Likewise.
35913
35914 2007-04-06  Bruno Haible  <bruno@clisp.org>
35915
35916         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35917         * lib/math_.h [__DECC]: Include the overridden include file through
35918         #include_next, outside the double-inclusion guard.
35919         * lib/stdio_.h [__DECC]: Likewise.
35920         * lib/stdlib_.h [__DECC]: Likewise.
35921         * lib/string_.h [__DECC]: Likewise.
35922         * lib/time_.h [__DECC]: Likewise.
35923         * lib/wchar_.h [__DECC]: Likewise.
35924         * lib/wctype_.h [__DECC]: Likewise.
35925         * lib/inttypes_.h [__DECC]: Likewise.
35926         Reported by Albert Chin <china@thewrittenword.com> in
35927         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35928
35929 2007-04-04  Eric Blake  <ebb9@byu.net>
35930
35931         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35932         1.5.x.
35933
35934 2007-04-04  Bruno Haible  <bruno@clisp.org>
35935
35936         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35937         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35938
35939 2007-04-04  Bruno Haible  <bruno@clisp.org>
35940
35941         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35942         results for "%010a" of Infinity and NaN.
35943         * tests/test-vasprintf-posix.c (test_function): Likewise.
35944         * tests/test-snprintf-posix.h (test_function): Likewise.
35945         * tests/test-sprintf-posix.h (test_function): Likewise.
35946         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35947         * tests/test-printf-posix.h (test_function): Likewise.
35948         * tests/test-fprintf-posix.out: Update.
35949         Needed for FreeBSD 6.1.
35950
35951 2007-04-04  Bruno Haible  <bruno@clisp.org>
35952
35953         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35954         directly used by the gnulib modules nor by gnulib-tool.
35955
35956 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35957
35958         * DEPENDENCIES: Give overall description of version dependency
35959         desirability.  Use more-typical names for apps.
35960         Add shell, coreutils, diffutils, grep, tar, gzip.
35961
35962 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35963
35964         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35965
35966 2007-04-04  Karl Berry  <karl@gnu.org>
35967
35968         * MODULES.html.sh (func_module): missing '.
35969
35970 2007-04-03  Bruno Haible  <bruno@clisp.org>
35971
35972         * modules/argmatch-tests (Makefile.am): New variable
35973         test_argmatch_LDADD.
35974         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35975         * modules/array-list-tests (Makefile.am): New variable
35976         test_array_list_LDADD.
35977         * modules/array-oset-tests (Makefile.am): New variable
35978         test_array_oset_LDADD.
35979         * modules/avltree-list-tests (Makefile.am): New variable
35980         test_avltree_list_LDADD.
35981         * modules/avltree-oset-tests (Makefile.am): New variable
35982         test_avltree_oset_LDADD.
35983         * modules/avltreehash-list-tests (Makefile.am): New variable
35984         test_avltreehash_list_LDADD.
35985         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35986         test_canonicalize_lgpl_LDADD.
35987         * modules/carray-list-tests (Makefile.am): New variable
35988         test_carray_list_LDADD.
35989         * modules/dirname-tests (Makefile.am): New variable
35990         test_dirname_LDADD.
35991         * modules/linked-list-tests (Makefile.am): New variable
35992         test_linked_list_LDADD.
35993         * modules/linkedhash-list-tests (Makefile.am): New variable
35994         test_linkedhash_list_LDADD.
35995         * modules/rbtree-list-tests (Makefile.am): New variable
35996         test_rbtree_list_LDADD.
35997         * modules/rbtree-oset-tests (Makefile.am): New variable
35998         test_rbtree_oset_LDADD.
35999         * modules/rbtreehash-list-tests (Makefile.am): New variable
36000         test_rbtreehash_list_LDADD.
36001         * modules/xvasprintf-tests (Makefile.am): New variable
36002         test_xvasprintf_LDADD.
36003         Reported by Eric Blake.
36004
36005 2007-04-03  Eric Blake  <ebb9@byu.net>
36006
36007         * DEPENDENCIES: Weaken m4 requirements.
36008
36009 2007-04-03  Bruno Haible  <bruno@clisp.org>
36010
36011         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36012         * modules/isnanl-tests (configure.ac): Likewise.
36013
36014 2007-04-03  Ben Pfaff  <blp@gnu.org>
36015
36016         * modules/iconv_open: Add $(srcdir)/ to source directory
36017         references in Makefile fragments that call gperf, to fix VPATH
36018         builds.
36019
36020 2007-04-03  Bruno Haible  <bruno@clisp.org>
36021
36022         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36023         * lib/ldexpl.c: Undo last change.
36024
36025 2007-04-03  Bruno Haible  <bruno@clisp.org>
36026
36027         * modules/printf-frexpl (Depends-on): Undo last change.
36028         (Files): Add m4/ldexpl.m4.
36029
36030 2007-04-03  Bruno Haible  <bruno@clisp.org>
36031
36032         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36033         * modules/isnanl (Link): New section.
36034
36035         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36036         * modules/frexp (Link): New section.
36037
36038         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36039         * modules/frexpl (Link): New section.
36040
36041         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36042         * modules/ldexpl (Link): New section.
36043
36044 2007-04-03  Bruno Haible  <bruno@clisp.org>
36045
36046         * modules/TEMPLATE-EXTENDED: New file.
36047         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36048
36049 2007-04-03  Bruno Haible  <bruno@clisp.org>
36050
36051         * DEPENDENCIES: New file.
36052         Suggested by Simon Josefsson.
36053
36054 2007-04-03  Bruno Haible  <bruno@clisp.org>
36055
36056         * doc/gnulib.texi: Escape @.
36057
36058 2007-04-03  James Youngman  <jay@gnu.org>
36059         and Paul Eggert  <eggert@cs.ucla.edu>
36060
36061         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36062         birthtime on all systems that have birthtime, not just those which
36063         use st_birthtimensec rather than st_birthtim.  Putting zero in
36064         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36065         that the birth time is not available for files on an NFS mount.
36066
36067 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36068
36069         * modules/memxor: Move back from crypto/, suggested by Bruno.
36070         * modules/crypto/hmac-sha1: Fix memxor dependency.
36071
36072         * modules/crypto/gc: Moved from ../.
36073
36074 2007-04-02  Eric Blake  <ebb9@byu.net>
36075
36076         * lib/ldexpl.c (includes): Avoid libm.
36077
36078         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36079
36080 2007-04-02  Bruno Haible  <bruno@clisp.org>
36081
36082         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36083         on IRIX.
36084
36085 2007-04-02  Bruno Haible  <bruno@clisp.org>
36086
36087         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36088         x86 or x86_64 platforms running MacOS X.
36089         Reported by Ryan Schmidt <@ryandesign.com>.
36090
36091 2007-04-02  Bruno Haible  <bruno@clisp.org>
36092
36093         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36094         i386.
36095
36096 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36097
36098         * modules/crypto/arcfour: Moved from ../.
36099         * modules/crypto/arcfour-tests: Moved from ../.
36100         * modules/crypto/arctwo: Moved from ../.
36101         * modules/crypto/arctwo-tests: Moved from ../.
36102         * modules/crypto/des: Moved from ../.
36103         * modules/crypto/des-tests: Moved from ../.
36104         * modules/crypto/gc-arcfour: Moved from ../.
36105         * modules/crypto/gc-arcfour-tests: Moved from ../.
36106         * modules/crypto/gc-arctwo: Moved from ../.
36107         * modules/crypto/gc-arctwo-tests: Moved from ../.
36108         * modules/crypto/gc-des: Moved from ../.
36109         * modules/crypto/gc-des-tests: Moved from ../.
36110         * modules/crypto/gc-hmac-md5: Moved from ../.
36111         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36112         * modules/crypto/gc-hmac-sha1: Moved from ../.
36113         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36114         * modules/crypto/gc-md2: Moved from ../.
36115         * modules/crypto/gc-md2-tests: Moved from ../.
36116         * modules/crypto/gc-md4: Moved from ../.
36117         * modules/crypto/gc-md4-tests: Moved from ../.
36118         * modules/crypto/gc-md5: Moved from ../.
36119         * modules/crypto/gc-md5-tests: Moved from ../.
36120         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36121         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36122         * modules/crypto/gc-random: Moved from ../.
36123         * modules/crypto/gc-rijndael: Moved from ../.
36124         * modules/crypto/gc-rijndael-tests: Moved from ../.
36125         * modules/crypto/gc-sha1: Moved from ../.
36126         * modules/crypto/gc-sha1-tests: Moved from ../.
36127         * modules/crypto/gc-tests: Moved from ../.
36128         * modules/crypto/hmac-md5: Moved from ../.
36129         * modules/crypto/hmac-md5-tests: Moved from ../.
36130         * modules/crypto/hmac-sha1: Moved from ../.
36131         * modules/crypto/hmac-sha1-tests: Moved from ../.
36132         * modules/crypto/md2: Moved from ../.
36133         * modules/crypto/md2-tests: Moved from ../.
36134         * modules/crypto/md4: Moved from ../.
36135         * modules/crypto/md4-tests: Moved from ../.
36136         * modules/crypto/md5: Moved from ../.
36137         * modules/crypto/md5-tests: Moved from ../.
36138         * modules/crypto/memxor: Moved from ../.
36139         * modules/crypto/rijndael: Moved from ../.
36140         * modules/crypto/rijndael-tests: Moved from ../.
36141         * modules/crypto/sha1: Moved from ../.
36142
36143 2007-03-30  James Youngman  <jay@gnu.org>
36144
36145         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36146         rename() to change the ctime of a file (because ctime is unaffected
36147         by rename on jfs2 on AIX 5.1).
36148         (main): Start by doing cleanup, in case a previous run failed leaving
36149         test files behind.
36150
36151 2007-03-31  Bruno Haible  <bruno@clisp.org>
36152
36153         Support old proprietary implementations of iconv.
36154         * modules/iconv_open: New file.
36155         * lib/iconv_.h: New file.
36156         * m4/iconv_h.m4: New file.
36157         * lib/iconv_open.c: New file.
36158         * lib/iconv_open-aix.gperf: New file.
36159         * lib/iconv_open-hpux.gperf: New file.
36160         * lib/iconv_open-irix.gperf: New file.
36161         * lib/iconv_open-osf.gperf: New file.
36162         * m4/iconv_open.m4: New file.
36163         * modules/linebreak (Depends-on): Add iconv_open.
36164         * modules/striconv (Depends-on): Likewise.
36165         * modules/striconveh (Depends-on): Likewise.
36166         * modules/unicodeio (Depends-on): Likewise.
36167         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36168         (iconv_t)(-1).
36169         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36170         conversion if cd is (iconv_t)(-1).
36171         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36172         is not possible.
36173
36174 2007-03-31  Bruno Haible  <bruno@clisp.org>
36175
36176         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36177         work on Solaris either. Protect also second use of "autodetect_jp".
36178
36179 2007-03-31  Bruno Haible  <bruno@clisp.org>
36180
36181         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36182         the function is not present.
36183
36184 2007-03-31  Bruno Haible  <bruno@clisp.org>
36185
36186         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36187         the function is not present.
36188
36189 2007-03-31  Bruno Haible  <bruno@clisp.org>
36190
36191         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36192         a bug in HP-UX iconv_open().
36193
36194 2007-03-31  Bruno Haible  <bruno@clisp.org>
36195
36196         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36197         (Mathematics <math.h>): New section, add fpieee.
36198         (Input/output <stdio.h>): Add fseterr.
36199         (Mathematics <math.h>): New section, add printf-frexp.
36200         (Container data structures): Add sublist.
36201         (Core language properties): Add fpucw, inline.
36202         (Functions for greatest-width integer types <inttypes.h>): Add
36203         imaxabs, imaxdiv, inttypes.
36204         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36205         isnanl-nolibm, ldexp.
36206         (Mathematics <math.h>): New section, add printf-frexpl.
36207         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36208         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36209         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36210         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36211         (Unicode string functions): Add unistr/u*-mbtoucr.
36212         (Java): Add javacomp-script, javaexec-script.
36213         (C#): Add csharpcomp-script, csharpexec-script.
36214         (Support for building libraries and executables): Add havelib,
36215         relocatable-*.
36216         (Support for maintaining and releasing projects): Renamed from
36217         'Support for maintaining and release projects'. Add announce-gen.
36218
36219 2007-03-31  Bruno Haible  <bruno@clisp.org>
36220
36221         * README: Talk primarily about git.
36222         (git and CVS): Renamed from CVS.
36223         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36224         gnulib is available through git.
36225         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36226
36227 2007-03-30  Bruno Haible  <bruno@clisp.org>
36228
36229         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36230         * lib/poll_.h: Likewise.
36231         * lib/stat_.h: Likewise.
36232         * lib/sys_time_.h: Likewise.
36233         * lib/sysexit_.h: Likewise.
36234         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36235         * lib/stdbool_.h: Likewise.
36236         * lib/byteswap_.h: Add double-inclusion guard.
36237
36238 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36239
36240         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36241
36242 2007-03-30  Karl Berry  <karl@gnu.org>
36243
36244         * config/srclist-update: double space after USA in the license
36245         substitution, since that's how it's usually (?) written.
36246
36247 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36248
36249         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36250         reported by Bruno Haible.
36251
36252 2007-03-29  Bruno Haible  <bruno@clisp.org>
36253
36254         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36255         a bug in AIX iconv().
36256
36257 2007-03-29  Bruno Haible  <bruno@clisp.org>
36258
36259         * modules/ldexpl-tests: New file.
36260         * tests/test-ldexpl.c: New file.
36261
36262 2007-03-29  Bruno Haible  <bruno@clisp.org>
36263
36264         * lib/ldexpl.c: Include fpucw.h.
36265         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36266         multiplication.
36267         * modules/ldexpl (Depends-on): Add fpucw.
36268
36269 2007-03-29  Bruno Haible  <bruno@clisp.org>
36270
36271         * modules/ldexpl: New file.
36272         * m4/ldexpl.m4: New file.
36273         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36274         set.
36275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36276         REPLACE_LDEXPL.
36277         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36278         REPLACE_LDEXPL.
36279         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36280         gl_FUNC_LDEXPL_WORKS.
36281         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36282         * modules/mathl (Files): Remove lib/ldexpl.c.
36283         (Depends-on): Add ldexpl.
36284
36285 2007-03-29  Bruno Haible  <bruno@clisp.org>
36286
36287         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36288
36289 2007-03-29  Bruno Haible  <bruno@clisp.org>
36290
36291         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36292         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36293         and possibly also HP-UX.
36294         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36295         work on AIX, IRIX, HP-UX, OSF/1.
36296         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36297         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36298         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36299         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36300         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36301         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36302
36303 2007-03-29  Bruno Haible  <bruno@clisp.org>
36304
36305         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36306
36307 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36308
36309         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36310         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36311
36312 2007-03-29  Eric Blake  <ebb9@byu.net>
36313
36314         * lib/acl-internal.h: Remove redundant include.
36315         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36316         Cygwin when a file is locked.
36317
36318 2007-03-29  Bruno Haible  <bruno@clisp.org>
36319
36320         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36321         file.
36322         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36323
36324 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36325
36326         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36327         try to remove a parent directory if the child couldn't be removed
36328         (except for the first rmdir, which could fail because the child
36329         doesn't exist).  Problem reported by Jeff Blaine in
36330         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36331
36332 2007-03-28  Bruno Haible  <bruno@clisp.org>
36333
36334         * lib/striconveh.c (utf8conv_carefully): New function.
36335         (mem_cd_iconveh_internal): Invoke it.
36336
36337 2007-03-28  Bruno Haible  <bruno@clisp.org>
36338
36339         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36340         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36341         input.
36342         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36343         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36344         unistr/u8-uctomb.
36345
36346 2007-03-28  Bruno Haible  <bruno@clisp.org>
36347
36348         * modules/unistr/u8-mbtoucr: New file.
36349         * lib/unistr/u8-mbtoucr.c: New file.
36350         * modules/unistr/u16-mbtoucr: New file.
36351         * lib/unistr/u16-mbtoucr.c: New file.
36352         * modules/unistr/u16-mbtoucr: New file.
36353         * lib/unistr/u16-mbtoucr.c: New file.
36354         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36355
36356 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36357             Bruno Haible  <bruno@clisp.org>
36358
36359         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36360         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36361         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36362
36363         * m4/stdio_h.m4: Add stubs for vasprintf too.
36364
36365         * modules/stdio: Support vasprintf in sed command.
36366
36367         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36368         vasprintf.h.  Add stdio module indicator.
36369
36370         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36371         vasprintf.h.
36372
36373         * lib/vasprintf.h: File removed.
36374
36375         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36376         * lib/vasprintf.c: Ditto.
36377         * lib/xvasprintf.c: Ditto.
36378         * tests/test-vasprintf-posix.c: Ditto.
36379         * tests/test-vasprintf.c: Ditto.
36380
36381 2007-03-27  Bruno Haible  <bruno@clisp.org>
36382
36383         Make vasnprintf multithread-safe.
36384         * lib/vasnprintf.c (decimal_point_char): New function.
36385         (VASNPRINTF): Use it.
36386         Suggested by Simon Josefsson.
36387
36388 2007-03-27  Eric Blake  <ebb9@byu.net>
36389
36390         Support sub-second birthtime on cygwin.
36391         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36392         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36393         (get_stat_birthtime): Also work with st_birthtim.
36394
36395 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36396
36397         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36398         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36399         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36400         (get_stat_birthtime_ns): Simplify compile-time tests.
36401         (get_stat_birthtime): Change the API to look like
36402         get_stat_mtime etc., except return a negative tv_nsec on error.
36403         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36404         Don't check for "spare" fields.
36405         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36406         or for struct stat.st_birthtime, as these tests aren't used.
36407         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36408
36409 2007-03-27  Bruno Haible  <bruno@clisp.org>
36410
36411         * lib/stat-time.h: Include <sys/stat.h>.
36412
36413 2007-03-27  James Youngman  <jay@gnu.org>
36414
36415         * lib/stat-time.h (get_stat_birthtime): New function for
36416           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36417         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36418           and its variants.
36419         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36420         * modules/stat-time-test: New file.
36421         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36422
36423 2007-03-26  Bruno Haible  <bruno@clisp.org>
36424
36425         Better support of signalling NaNs.
36426         * lib/atanl.c: Include isnanl.h.
36427         (atanl): Perform test for NaN at the beginning of the function and
36428         through a call to isnanl.
36429         * lib/cosl.c: Include isnanl.h.
36430         (cosl): Perform test for NaN at the beginning of the function and
36431         through a call to isnanl.
36432         * lib/ldexpl.c: Include isnanl.h.
36433         (ldexpl): Perform test for NaN through a call to isnanl.
36434         * lib/logl.c: Include isnanl.h.
36435         (logl): Perform test for NaN at the beginning of the function and
36436         through a call to isnanl.
36437         * lib/sinl.c: Include isnanl.h.
36438         (sinl): Perform test for NaN at the beginning of the function and
36439         through a call to isnanl.
36440         * lib/sqrtl.c: Include isnanl.h.
36441         (sqrtl): Perform test for NaN at the beginning of the function and
36442         through a call to isnanl.
36443         * lib/tanl.c: Include isnanl.h.
36444         (tanl): Perform test for NaN at the beginning of the function and
36445         through a call to isnanl.
36446         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36447         * modules/mathl (Depends-on): Add isnanl.
36448
36449 2007-03-26  Eric Blake  <ebb9@byu.net>
36450
36451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36452         regression in logic sense of previous patch.
36453
36454 2007-03-26  Bruno Haible  <bruno@clisp.org>
36455
36456         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36457         unportable shell command "if ! ...".
36458         Reported by Ralf Wildenhues.
36459
36460 2007-03-25  Bruno Haible  <bruno@clisp.org>
36461
36462         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36463         <sysexits.h> file, and only add EX_CONFIG.
36464         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36465         absolute file name and whether it is sufficient. Substitute also
36466         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36467         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36468         ABSOLUTE_SYSEXITS_H into sysexits.h.
36469
36470 2007-03-25  Bruno Haible  <bruno@clisp.org>
36471
36472         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36473         hints is NULL.
36474
36475 2007-03-25  Bruno Haible  <bruno@clisp.org>
36476
36477         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36478         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36479
36480 2007-03-25  Bruno Haible  <bruno@clisp.org>
36481
36482         * lib/vasnprintf.c: Include langinfo.h.
36483         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36484         multithread-safe.
36485         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36486         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36488         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36489         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36490         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36491         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36492         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36493         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36494         Reported by Simon Josefsson.
36495
36496 2007-03-25  Bruno Haible  <bruno@clisp.org>
36497
36498         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36499         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36500         * modules/vasnprintf (Depends-on): Add stdint.
36501
36502 2007-03-25  Bruno Haible  <bruno@clisp.org>
36503
36504         * modules/fpieee: New file.
36505         * m4/fpieee.m4: New file.
36506         * modules/isnan-nolibm (Depends-on): Add fpieee.
36507         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36508         * modules/isnanl (Depends-on): Add fpieee.
36509
36510 2007-03-25  Bruno Haible  <bruno@clisp.org>
36511
36512         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36513
36514 2007-03-25  Bruno Haible  <bruno@clisp.org>
36515
36516         Avoid test failures on IRIX 6.5.
36517         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36518         (main): Use it.
36519         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36520         macros.
36521         (main): Use them.
36522
36523 2007-03-25  Bruno Haible  <bruno@clisp.org>
36524
36525         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36526         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36527         exists but doesn't work.
36528         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36529         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36531         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36532
36533 2007-03-25  Bruno Haible  <bruno@clisp.org>
36534
36535         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36536         returns inf. Needed on IRIX 6.5.
36537
36538 2007-03-25  Bruno Haible  <bruno@clisp.org>
36539
36540         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36541         (main): Use isnanl instead of x != x idiom.
36542         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36543
36544         * tests/test-frexp.c: Include isnan.h.
36545         (main): Use isnan instead of x != x idiom.
36546         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36547
36548 2007-03-25  Bruno Haible  <bruno@clisp.org>
36549
36550         * tests/test-frexp.c (NaN): New function/macro.
36551         (main): Use it instead of 0.0 / 0.0.
36552         * tests/test-isnan.c (NaN): New function/macro.
36553         (main): Use it instead of 0.0 / 0.0.
36554         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36555         (test_function): Use it instead of 0.0 / 0.0.
36556         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36557         (test_function): Use it instead of 0.0 / 0.0.
36558         * tests/test-snprintf-posix.h (NaN): New function/macro.
36559         (test_function): Use it instead of 0.0 / 0.0.
36560         * tests/test-sprintf-posix.h (NaN): New function/macro.
36561         (test_function): Use it instead of 0.0 / 0.0.
36562         * tests/test-fprintf-posix.h (NaN): New function/macro.
36563         (test_function): Use it instead of 0.0 / 0.0.
36564         * tests/test-printf-posix.h (NaN): New function/macro.
36565         (test_function): Use it instead of 0.0 / 0.0.
36566
36567         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36568
36569 2007-03-25  Bruno Haible  <bruno@clisp.org>
36570
36571         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36572
36573 2007-03-25  Bruno Haible  <bruno@clisp.org>
36574
36575         * lib/regexec.c (merge_state_with_log): Make static.
36576
36577 2007-03-25  Bruno Haible  <bruno@clisp.org>
36578
36579         * lib/trigl.c (kernel_rem_pio2): Make static.
36580
36581 2007-03-25  Bruno Haible  <bruno@clisp.org>
36582
36583         * lib/sincosl.c (sincosl_table): Make static.
36584
36585 2007-03-25  Bruno Haible  <bruno@clisp.org>
36586
36587         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36588         if the compiler does not support C99.
36589
36590 2007-03-25  Bruno Haible  <bruno@clisp.org>
36591
36592         * modules/time (Makefile.am): Ensure all rule action lines start with a
36593         tab.
36594
36595 2007-03-24  Bruno Haible  <bruno@clisp.org>
36596
36597         * modules/tsearch-tests: New file.
36598         * tests/test-tsearch.sh: New file.
36599         * tests/test-tsearch.c: New file, mostly copied from glibc.
36600
36601         * modules/search-tests: New file.
36602         * tests/test-search.c: New file.
36603
36604         * modules/search: New file.
36605         * lib/search_.h: New file, incorporating lib/tsearch.h.
36606         * m4/search_h.m4: New file.
36607         * lib/tsearch.h: Remove file.
36608         * lib/tsearch.c: Include search.h instead of tsearch.h.
36609         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36610         HAVE_TSEARCH.
36611         * modules/tsearch (Files): Remove lib/tsearch.h.
36612         (Depends-on): Add search.
36613         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36614         (Include): Change tsearch.h into search.h.
36615
36616 2007-03-24  Bruno Haible  <bruno@clisp.org>
36617
36618         * modules/fpucw: New file.
36619         * lib/fpucw.h: New file.
36620         * lib/frexp.c: Include fpucw.h.
36621         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36622         (FUNC): Use them.
36623         * lib/printf-frexp.c: Include fpucw.h.
36624         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36625         (FUNC): Use them.
36626         * lib/vasnprintf.c: Include fpucw.h.
36627         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36628         'long double' calculations.
36629         * tests/test-frexpl.c: Include fpucw.h.
36630         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36631         * tests/test-printf-frexpl.c: Include fpucw.h.
36632         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36633         * modules/frexpl (Depends-on): Add fpucw.
36634         * modules/printf-frexpl (Depends-on): Likewise.
36635         * modules/fprintf-posix (Depends-on): Likewise.
36636         * modules/snprintf-posix (Depends-on): Likewise.
36637         * modules/sprintf-posix (Depends-on): Likewise.
36638         * modules/vasnprintf-posix (Depends-on): Likewise.
36639         * modules/vasprintf-posix (Depends-on): Likewise.
36640         * modules/vfprintf-posix (Depends-on): Likewise.
36641         * modules/vsnprintf-posix (Depends-on): Likewise.
36642         * modules/vsprintf-posix (Depends-on): Likewise.
36643         * modules/frexpl-tests (Depends-on): Likewise.
36644         * modules/printf-frexpl-tests (Depends-on): Likewise.
36645
36646 2007-03-24  Bruno Haible  <bruno@clisp.org>
36647
36648         * lib/float+.h: New file.
36649         * lib/isnan.c: Include float+.h.
36650         (SIZE): New macro.
36651         (FUNC): Compare only SIZE bytes of the value.
36652         * lib/vasnprintf.c: Include float+.h.
36653         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36654         SIZEOF_LDBL or SIZEOF_DBL bytes.
36655         * modules/isnan-nolibm (Files): Add lib/float+.h.
36656         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36657         * modules/isnanl (Files): Add lib/float+.h.
36658         * modules/vasnprintf (Files): Add lib/float+.h.
36659
36660 2007-03-24  Bruno Haible  <bruno@clisp.org>
36661
36662         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36663         include isnanl-nolibm.h.
36664
36665 2007-03-24  Bruno Haible  <bruno@clisp.org>
36666
36667         * tests/test-read-file.c (main): Don't produce spurious output for
36668         expected situations. Make the test fail if it encountered unexpected
36669         results.
36670
36671 2007-03-24  Bruno Haible  <bruno@clisp.org>
36672
36673         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36674         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36675
36676 2007-03-24  Bruno Haible  <bruno@clisp.org>
36677
36678         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36679
36680 2007-03-24  Bruno Haible  <bruno@clisp.org>
36681
36682         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36683         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36684
36685         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36686         * modules/utf8-ucs4: Turn into a symbolic link to module
36687         unistr/u8-mbtouc.
36688
36689         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36690         utf8-ucs4-unsafe.
36691         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36692         unistr/u8-mbtouc-unsafe.
36693
36694         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36695         * modules/utf16-ucs4: Turn into a symbolic link to module
36696         unistr/u16-mbtouc.
36697
36698         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36699         utf16-ucs4-unsafe.
36700         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36701         unistr/u16-mbtouc-unsafe.
36702
36703         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36704         * modules/ucs4-utf8: Turn into a symbolic link to module
36705         unistr/u8-ubtomb.
36706
36707         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36708         * modules/ucs4-utf16: Turn into a symbolic link to module
36709         unistr/u16-ubtomb.
36710
36711 2007-03-24  Bruno Haible  <bruno@clisp.org>
36712
36713         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36714         Enable the function only if HAVE_INLINE.
36715         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36716         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36717         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36718         Enable the function only if HAVE_INLINE.
36719         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36720         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36721         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36722         Enable the function only if HAVE_INLINE.
36723         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36724         Enable the function only if HAVE_INLINE.
36725         * modules/utf8-ucs4: Update.
36726         * modules/utf8-ucs4-unsafe: Update.
36727         * modules/utf16-ucs4: Update.
36728         * modules/utf16-ucs4-unsafe: Update.
36729         * modules/ucs4-utf8: Update.
36730         * modules/ucs4-utf16: Update.
36731
36732 2007-03-24  Bruno Haible  <bruno@clisp.org>
36733
36734         * lib/utf8-ucs4.h: Remove file.
36735         * lib/utf8-ucs4-unsafe.h: Remove file.
36736         * lib/utf16-ucs4.h: Remove file.
36737         * lib/utf16-ucs4-unsafe.h: Remove file.
36738         * lib/ucs4-utf8.h: Remove file.
36739         * lib/ucs4-utf16.h: Remove file.
36740         * lib/unistr.h: Include their previous contents.
36741         * m4/utf-ucs4.m4: Remove file.
36742         * m4/ucs4-utf.m4: Remove file.
36743         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36744         (Depends-on): Add unistr/base.
36745         (configure.ac): Remove gl_UTF_UCS4.
36746         (Makefile.am): Update.
36747         (Include): Change to unistr.h.
36748         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36749         (Depends-on): Add unistr/base.
36750         (configure.ac): Remove gl_UTF_UCS4.
36751         (Makefile.am): Update.
36752         (Include): Change to unistr.h.
36753         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36754         (Depends-on): Add unistr/base.
36755         (configure.ac): Remove gl_UTF_UCS4.
36756         (Makefile.am): Update.
36757         (Include): Change to unistr.h.
36758         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36759         (Depends-on): Add unistr/base.
36760         (configure.ac): Remove gl_UTF_UCS4.
36761         (Makefile.am): Update.
36762         (Include): Change to unistr.h.
36763         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36764         (Depends-on): Add unistr/base.
36765         (configure.ac): Remove gl_UCS4_UTF.
36766         (Makefile.am): Update.
36767         (Include): Change to unistr.h.
36768         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36769         (Depends-on): Add unistr/base.
36770         (configure.ac): Remove gl_UCS4_UTF.
36771         (Makefile.am): Update.
36772         (Include): Change to unistr.h.
36773         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36774         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36775         utf8-ucs4-unsafe.h.
36776         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36777         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36778         utf16-ucs4-unsafe.h.
36779         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36780         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36781         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36782         * lib/unistr/u8-strchr.c: Likewise.
36783         * lib/unistr/u8-strrchr.c: Likewise.
36784         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36785         * lib/unistr/u16-strchr.c: Likewise.
36786         * lib/unistr/u16-strrchr.c: Likewise.
36787         * lib/striconveh.c: Update.
36788         * lib/linebreak.c: Update.
36789
36790 2007-03-24  Bruno Haible  <bruno@clisp.org>
36791
36792         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36793         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36794
36795 2007-03-22  Bruno Haible  <bruno@clisp.org>
36796
36797         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36798
36799 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36800
36801         * MODULES.html.sh (File system functions): New module write-any-file.
36802         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36803         * m4/write-any-file.m4: New files.
36804
36805 2007-03-23  Eric Blake  <ebb9@byu.net>
36806
36807         * gnulib-tool: Rearrange space-tab sequences, since some editors
36808         like to eat them.
36809
36810 2007-03-23  Eric Blake  <ebb9@byu.net>
36811
36812         * lib/version-etc.c (version_etc_va): Update license wording to
36813         be more concise.  Recommended by Richard Stallman.
36814
36815 2007-03-22  Bruno Haible  <bruno@clisp.org>
36816
36817         * lib/poll.c (MSG_PEEK): New fallback definition.
36818
36819 2007-03-22  Bruno Haible  <bruno@clisp.org>
36820
36821         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36822         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36823         (main): Update.
36824         Fixes a compilation error on BeOS.
36825
36826 2007-03-22  Bruno Haible  <bruno@clisp.org>
36827
36828         * modules/frexpl-tests: New file.
36829         * tests/test-frexpl.c: New file.
36830
36831         * modules/frexpl: New file.
36832         * m4/frexpl.m4: New file.
36833         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36834         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36836         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36837         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36838         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36839
36840 2007-03-22  Bruno Haible  <bruno@clisp.org>
36841
36842         * lib/frexpl.c: Share code with lib/frexp.c.
36843         * modules/mathl (Files): Add lib/frexp.c.
36844         (Depends-on): Add isnanl-nolibm.
36845
36846 2007-03-22  Bruno Haible  <bruno@clisp.org>
36847
36848         * modules/printf-frexp (Files): Add m4/frexp.m4.
36849         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36850         only if the found frexp function actually works.
36851
36852 2007-03-22  Bruno Haible  <bruno@clisp.org>
36853
36854         * lib/frexp.c: Remove older implementation that uses divisions.
36855
36856 2007-03-21  Bruno Haible  <bruno@clisp.org>
36857
36858         * modules/frexp-tests: New file.
36859         * tests/test-frexp.c: New file.
36860
36861         * modules/frexp: New file.
36862         * lib/frexp.c: New file.
36863         * m4/frexp.m4: New file.
36864         * lib/math_.h (frexp): New declaration.
36865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36866         REPLACE_FREXP.
36867         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36868
36869 2007-03-21  Bruno Haible  <bruno@clisp.org>
36870
36871         * modules/isnanl-tests: New file.
36872         * tests/test-isnanl.c: New file.
36873
36874         * modules/isnanl: New file.
36875         * lib/isnanl.h: New file.
36876         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36877         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36878         gl_FUNC_ISNANL_WORKS.
36879         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36880         New macros.
36881
36882 2007-03-21  Bruno Haible  <bruno@clisp.org>
36883
36884         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36885         lib/isnanl.h.
36886         (Include): Update.
36887         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36888         * lib/vasnprintf.c: Update.
36889         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36890         tests/test-isnanl.h, remove tests/test-isnanl.c.
36891         (Makefile.am): Update.
36892         * tests/test-isnanl-nolibm.c: New file.
36893         * tests/test-isnanl.h: New file.
36894         * tests/test-isnanl.c: Remove file.
36895
36896 2007-03-21  Jim Meyering  <jim@meyering.net>
36897
36898         When trying to open ".", treat ESTALE like EACCES.
36899         * lib/savewd.c (savewd_save): Resort to forking not just upon
36900         failure with EACCES, but also when errno is ESTALE.
36901
36902 2007-03-20  Bruno Haible  <bruno@clisp.org>
36903
36904         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36905         Needed on AIX 5.1. Reported by Matthew Woehlke.
36906
36907 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36908
36909         Suggestions by Bruno Haible:
36910         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36911         our own.
36912         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36913         * modules/acl (Depends-on): Add gettext.
36914
36915 2007-03-19  Bruno Haible  <bruno@clisp.org>
36916
36917         * modules/iconvme: Remove file.
36918         * lib/iconvme.h: Remove file.
36919         * lib/iconvme.c: Remove file.
36920         * m4/iconvme.m4: Remove file.
36921
36922 2007-03-19  Bruno Haible  <bruno@clisp.org>
36923
36924         * doc/relocatable-maint.texi: Break long shell script line.
36925         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36926
36927 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36928
36929         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36930         handle file_has_acl.
36931         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36932         * lib/acl.c: Move header inclusions and related macro defns into
36933         lib/acl-internal.h.
36934         (S_ISLNK): Remove defn, since that's now done for us.
36935         (file_has_acl): Move to lib/file-has-acl.c.
36936         Call acl_trivial if available.  This is the crucial part of the fix.
36937         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36938         shared within the library.  Rewrite a bit, partly to make it compatible
36939         with the GNU coding style.
36940         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36941         Remove unnecessary double-quotes.
36942         Don't test for acl_to_text; the build will catch that.
36943         Replace acl_entries if it doesn't exist and it is needed.
36944         Check for -lsec and acl_trivial (as used on Solaris 10).
36945         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36946         lib/file-has-acl.c.
36947         (Depends-on): Add sys_stat, for S_ISLNK.
36948
36949 2007-03-19  Ben Pfaff  <blp@gnu.org>
36950
36951         * doc/gnulib.texi: Fix typos.
36952         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36953
36954 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36955
36956         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36957         If size is zero here, buf must be zero.
36958
36959 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36960
36961         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36962         <bruno@clisp.org>.
36963
36964 2007-03-18  Bruno Haible  <bruno@clisp.org>
36965
36966         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36967         Suggested by Eric Blake.
36968
36969 2007-03-18  Ben Pfaff  <blp@gnu.org>
36970
36971         * doc/relocatable.texi: Recommend using as prefix a directory
36972         that does not exist and will never be created.  Based on
36973         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36974         and others.
36975
36976 2007-03-17  Bruno Haible  <bruno@clisp.org>
36977
36978         * lib/fchownat.c: Include lchown.h.
36979
36980 2007-03-17  Bruno Haible  <bruno@clisp.org>
36981
36982         Fix endless loop when the given allocated size was > INT_MAX.
36983         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36984         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36985         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36986         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36987         * lib/sprintf.c (sprintf): Likewise.
36988
36989 2007-03-17  Bruno Haible  <bruno@clisp.org>
36990
36991         * tests/test-argp-2.sh (func_compare): Output a context diff.
36992
36993 2007-03-17  Bruno Haible  <bruno@clisp.org>
36994
36995         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36996         locale's decimal-point character.
36997
36998 2007-03-17  Bruno Haible  <bruno@clisp.org>
36999
37000         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
37001         before comparing it. Needed because on some platforms (e.g. x86) a
37002         'long double' occupies less bytes than sizeof (long double).
37003
37004 2007-03-17  Bruno Haible  <bruno@clisp.org>
37005
37006         * tests/test-crc.c (main): Make printf statements 64-bit clean.
37007         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
37008         * tests/test-getaddrinfo.c (simple): Likewise.
37009         * tests/test-read-file.c (main): Likewise.
37010
37011 2007-03-17  Bruno Haible  <bruno@clisp.org>
37012
37013         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37014
37015 2007-03-17  Bruno Haible  <bruno@clisp.org>
37016
37017         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37018         unused variable.
37019
37020 2007-03-17  Bruno Haible  <bruno@clisp.org>
37021
37022         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37023         * tests/test-c-strncasecmp.c: Likewise.
37024
37025 2007-03-17  Bruno Haible  <bruno@clisp.org>
37026
37027         * modules/stdlib (Depends-on): Add unistd.
37028         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37029         Needed for MacOS X 10.3.
37030
37031 2007-03-17  Bruno Haible  <bruno@clisp.org>
37032
37033         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37034
37035 2007-03-17  Bruno Haible  <bruno@clisp.org>
37036
37037         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37038
37039 2007-03-17  Bruno Haible  <bruno@clisp.org>
37040
37041         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37042         to reflect files copied from gnulib (with or without modifications).
37043         Suggested by Jim Meyering.
37044
37045 2007-03-17  Eric Blake  <ebb9@byu.net>
37046
37047         * NEWS: Document stdlib change from 2007-02-18.
37048
37049 2007-03-17  Jim Meyering  <jim@meyering.net>
37050
37051         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37052         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37053         someone uses a name containing shell meta-characters.
37054         Reported by Alfred M. Szmidt.
37055
37056         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37057
37058 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37059
37060         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37061         and copy gettext configuration files only if configure.ac contains
37062         a use of AM_GNU_GETTEXT_VERSION.
37063
37064 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37065
37066         * build-aux/bootstrap (gnulib_name): New variable.
37067         (gnulib_tool_options): Use it.
37068
37069 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37070
37071         * tests/test-des.c: Use new namespace.
37072
37073 2007-03-15  Bruno Haible  <bruno@clisp.org>
37074
37075         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37076         Reported by James Youngman <jay@gnu.org>.
37077
37078 2007-03-15  Bruno Haible  <bruno@clisp.org>
37079
37080         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37081         declared prototype. Needed with cc on OSF/1 5.1.
37082
37083 2007-03-15  Bruno Haible  <bruno@clisp.org>
37084
37085         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37086         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37087         (struct gl_list_implementation): Add dispose_fn argument to the
37088         'create_empty', 'create' methods.
37089         (struct gl_list_impl_base): Add field 'dispose_fn'.
37090         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37091         argument.
37092         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37093         dispose_fn argument.
37094         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37095         dispose_fn on the dropped values.
37096         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37097         dispose_fn argument.
37098         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37099         dropped values.
37100         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37101         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37102         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37103         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37104         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37105         argument.
37106         (gl_tree_list_free): Call dispose_fn on the dropped values.
37107         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37108         the dropped values.
37109         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37110         Add dispose_fn argument.
37111         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37112         Call dispose_fn on the dropped values.
37113         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37114         Add dispose_fn argument.
37115         (gl_sublist_create): Initialize the 'dispose_fn' field.
37116         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37117         * tests/test-array_list.c (main): Update.
37118         * tests/test-carray_list.c (main): Update.
37119         * tests/test-avltree_list.c (main): Update.
37120         * tests/test-rbtree_list.c (main): Update.
37121         * tests/test-avltreehash_list.c (main): Update.
37122         * tests/test-rbtreehash_list.c (main): Update.
37123         * tests/test-linked_list.c (main): Update.
37124         * tests/test-linkedhash_list.c (main): Update.
37125         * tests/test-array_oset.c (main): Update.
37126
37127 2007-03-15  Bruno Haible  <bruno@clisp.org>
37128
37129         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37130         (gl_oset_create_empty): Add dispose_fn argument.
37131         (struct gl_oset_implementation): Add dispose_fn argument to
37132         'create_empty' method.
37133         (struct gl_oset_impl_base): Add dispose_fn field.
37134         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37135         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37136         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37137         values.
37138         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37139         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37140         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37141         dropped value.
37142         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37143         dropped value.
37144         * tests/test-array_oset.c (main): Update.
37145         * tests/test-avltree_oset.c (main): Update.
37146         * tests/test-rbtree_oset.c (main): Update.
37147         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37148
37149 2007-03-13  Bruno Haible  <bruno@clisp.org>
37150
37151         * tests/test-stdbool.c (i): Update after last patch.
37152
37153 2007-03-12  Bruno Haible  <bruno@clisp.org>
37154
37155         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37156         the iswprint macro. Needed on Solaris 2.5.1.
37157
37158 2007-03-12  Bruno Haible  <bruno@clisp.org>
37159
37160         * tests/test-printf-frexp.c (main): Declare x as volatile.
37161
37162 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37163
37164         * doc/gnulib.texi (Build robot for gnulib): New section.
37165
37166 2007-03-12  Jim Meyering  <jim@meyering.net>
37167
37168         * build-aux/bootstrap: New file.
37169         * build-aux/bootstrap.conf: New file, from coreutils.
37170
37171 2007-03-11  Bruno Haible  <bruno@clisp.org>
37172
37173         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37174
37175 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37176
37177         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37178         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37179         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37180
37181 2007-03-11  Bruno Haible  <bruno@clisp.org>
37182
37183         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37184         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37185
37186 2007-03-11  Bruno Haible  <bruno@clisp.org>
37187
37188         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37189         formula. Needed for SunPRO C 5.0.
37190
37191 2007-03-11  Bruno Haible  <bruno@clisp.org>
37192
37193         * modules/long-options (Depends-on): Add getopt.
37194
37195 2007-03-11  Bruno Haible  <bruno@clisp.org>
37196
37197         * modules/modechange (Depends-on): Add stdbool.
37198
37199 2007-03-11  Bruno Haible  <bruno@clisp.org>
37200
37201         * modules/i-ring (Depends-on): Add stdbool.
37202
37203 2007-03-11  Bruno Haible  <bruno@clisp.org>
37204
37205         * modules/gc-des (Depends-on): Add stdbool.
37206
37207 2007-03-11  Bruno Haible  <bruno@clisp.org>
37208
37209         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37210
37211 2007-03-11  Bruno Haible  <bruno@clisp.org>
37212
37213         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37214
37215 2007-03-11  Bruno Haible  <bruno@clisp.org>
37216
37217         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37218
37219 2007-03-11  Bruno Haible  <bruno@clisp.org>
37220
37221         * lib/vasnprintf.c (sprintf): Undefine.
37222
37223 2007-03-11  Bruno Haible  <bruno@clisp.org>
37224
37225         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37226         initializers in SunPRO C and Compaq C compilers.
37227
37228 2007-03-11  Bruno Haible  <bruno@clisp.org>
37229
37230         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37231         decrementing code ANSI C compliant.
37232
37233 2007-03-11  Bruno Haible  <bruno@clisp.org>
37234
37235         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37236         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37237
37238 2007-03-11  Bruno Haible  <bruno@clisp.org>
37239
37240         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37241         <stdbool.h> substitute doesn't pass.
37242
37243 2007-03-11  Bruno Haible  <bruno@clisp.org>
37244
37245         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37246
37247 2007-03-11  Bruno Haible  <bruno@clisp.org>
37248
37249         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37250         script, for submission to autobuild.josefsson.org.
37251
37252 2007-03-10  Bruno Haible  <bruno@clisp.org>
37253
37254         * modules/canonicalize-lgpl-tests: New file.
37255         * tests/test-canonicalize-lgpl.sh: New file.
37256         * tests/test-canonicalize-lgpl.c: New file.
37257
37258         * modules/c-strcase-tests: New file.
37259         * tests/test-c-strcase.sh: New file.
37260         * tests/test-c-strcasecmp.c: New file.
37261         * tests/test-c-strncasecmp.c: New file.
37262
37263         * modules/atexit-tests: New file.
37264         * tests/test-atexit.sh: New file.
37265         * tests/test-atexit.c: New file.
37266
37267 2007-03-10  Bruno Haible  <bruno@clisp.org>
37268
37269         * tests/test-binary-io.sh: Use temporary filenames that are not so
37270         likely to clash with those of other tests (in a parallel make).
37271         * tests/test-binary-io.c: Likewise.
37272
37273 2007-03-10  Bruno Haible  <bruno@clisp.org>
37274
37275         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37276         fallback; use #error instead.
37277         Suggested by Simon Josefsson.
37278
37279 2007-03-10  Bruno Haible  <bruno@clisp.org>
37280
37281         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37282         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37283         first and the last.
37284
37285 2007-03-10  Bruno Haible  <bruno@clisp.org>
37286
37287         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37288
37289 2007-03-10  Bruno Haible  <bruno@clisp.org>
37290
37291         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37292         "make distcheck".
37293         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37294         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37295         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37296
37297 2007-03-10  Bruno Haible  <bruno@clisp.org>
37298
37299         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37300         variable.
37301         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37302         variable.
37303
37304 2007-03-09  Eric Blake  <ebb9@byu.net>
37305         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37306
37307         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37308         types are not being provided by gnulib.
37309         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37310         types are supported.
37311
37312 2007-03-10  Bruno Haible  <bruno@clisp.org>
37313
37314         * lib/stdio_.h (__attribute__): New macro.
37315         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37316         vsprintf): Specify __attribute__ __format__ for GCC.
37317         Suggested by Eric Blake.
37318
37319 2007-03-09  Bruno Haible  <bruno@clisp.org>
37320
37321         * modules/printf-posix-tests: New file.
37322         * tests/test-printf-posix.sh: New file.
37323         * tests/test-printf-posix.c: New file.
37324
37325         * modules/printf-posix: New file.
37326         * lib/printf.c: New file.
37327         * m4/printf-posix-rpl.m4: New file.
37328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37329         REPLACE_PRINTF.
37330         * lib/stdio_.h (printf): New declaration.
37331         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37332         ____strfmon____): New macros.
37333         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37334         REPLACE_PRINTF.
37335
37336 2007-03-09  Bruno Haible  <bruno@clisp.org>
37337
37338         * tests/test-vasnprintf-posix2.sh: New file.
37339         * tests/test-vasnprintf-posix2.c: New file.
37340         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37341         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37342         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37343
37344         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37345         a locale dependent decimal point, rather than always '.'.
37346
37347 2007-03-09  Eric Blake  <ebb9@byu.net>
37348
37349         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37350         spite of platforms like Tandem/NSK that define it to -1.
37351
37352 2007-03-08  Bruno Haible  <bruno@clisp.org>
37353
37354         * modules/vprintf-posix-tests: New file.
37355         * tests/test-vprintf-posix.sh: New file.
37356         * tests/test-vprintf-posix.c: New file.
37357         * tests/test-printf-posix.h: New file.
37358
37359         * modules/vprintf-posix: New file.
37360         * lib/vprintf.c: New file.
37361         * m4/vprintf-posix.m4: New file.
37362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37363         REPLACE_VPRINTF.
37364         * lib/stdio_.h (vprintf): New declaration.
37365         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37366         REPLACE_VPRINTF.
37367
37368 2007-03-08  Bruno Haible  <bruno@clisp.org>
37369
37370         * modules/fprintf-posix-tests: New file.
37371         * tests/test-fprintf-posix.sh: New file.
37372         * tests/test-fprintf-posix.c: New file.
37373
37374         * modules/fprintf-posix: New file.
37375         * lib/fprintf.c: New file.
37376         * m4/fprintf-posix.m4: New file.
37377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37378         REPLACE_FPRINTF.
37379         * lib/stdio_.h (fprintf): New declaration.
37380         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37381         REPLACE_FPRINTF.
37382
37383 2007-03-08  Bruno Haible  <bruno@clisp.org>
37384
37385         * modules/vfprintf-posix-tests: New file.
37386         * tests/test-vfprintf-posix.sh: New file.
37387         * tests/test-vfprintf-posix.c: New file.
37388         * tests/test-fprintf-posix.h: New file.
37389         * tests/test-fprintf-posix.out: New file.
37390
37391         * modules/vfprintf-posix: New file.
37392         * lib/vfprintf.c: New file.
37393         * m4/vfprintf-posix.m4: New file.
37394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37395         REPLACE_VFPRINTF.
37396         * lib/stdio_.h (vfprintf): New declaration.
37397         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37398         REPLACE_VFPRINTF.
37399
37400 2007-03-08  Bruno Haible  <bruno@clisp.org>
37401
37402         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37403
37404 2007-03-08  Bruno Haible  <bruno@clisp.org>
37405
37406         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37407         instead of 'expr' invocations.
37408         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37409         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37410         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37411         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37412         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37413         Suggested by Paul Eggert.
37414
37415 2007-03-08  Bruno Haible  <bruno@clisp.org>
37416
37417         * modules/fseterr-tests: New file.
37418         * tests/test-fseterr.c: New file.
37419
37420         * modules/fseterr: New file.
37421         * lib/fseterr.h: New file.
37422         * lib/fseterr.c: New file.
37423
37424 2007-03-08  Bruno Haible  <bruno@clisp.org>
37425
37426         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37427         * lib/getopt_.h: Likewise.
37428         * lib/mbswidth.h: Likewise.
37429         * lib/setenv.h: Likewise.
37430         * lib/vasnprintf.h: Likewise.
37431         * lib/vasprintf.h: Likewise.
37432         * lib/verror.h: Likewise.
37433         * lib/xsetenv.h: Likewise.
37434         * lib/xvasprintf.h: Likewise.
37435
37436 2007-03-08  Jim Meyering  <jim@meyering.net>
37437
37438         * users.txt: Add parted.
37439
37440         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37441
37442 2007-03-07  Bruno Haible  <bruno@clisp.org>
37443
37444         * m4/printf.m4: Make the shell script snippets copy&pastable.
37445
37446 2007-03-02  Bruno Haible  <bruno@clisp.org>
37447
37448         * lib/netinet_in_.h: New file.
37449         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37450         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37451         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37452         (Depends-on): Add absolute-header.
37453         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37454         into netinet/in.h.
37455
37456 2007-03-03  Bruno Haible  <bruno@clisp.org>
37457
37458         * lib/sys_select_.h: New file.
37459         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37460         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37461         * modules/sys_select (Files): Add lib/sys_select_.h.
37462         (Depends-on): Add absolute-header.
37463         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37464         into sys/select.h.
37465
37466 2007-03-02  Bruno Haible  <bruno@clisp.org>
37467
37468         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37469         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37470         values.
37471         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37472         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37473         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37474         * modules/sys_socket (Depends-on): Add absolute-header.
37475         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37476         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37477         (Include): Remove requirement of inclusion of <sys/types.h>.
37478
37479 2007-03-02  Bruno Haible  <bruno@clisp.org>
37480
37481         * lib/byteswap_.h (bswap_32): Fix formula.
37482
37483 2007-03-06  Bruno Haible  <bruno@clisp.org>
37484
37485         * modules/sprintf-posix-tests: New file.
37486         * tests/test-sprintf-posix.c: New file.
37487
37488         * modules/sprintf-posix: New file.
37489         * lib/sprintf.c: New file.
37490         * m4/sprintf-posix.m4: New file.
37491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37492         REPLACE_SPRINTF.
37493         * lib/stdio_.h (sprintf): New declaration.
37494         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37495         REPLACE_SPRINTF.
37496
37497 2007-03-06  Bruno Haible  <bruno@clisp.org>
37498
37499         * modules/vsprintf-posix-tests: New file.
37500         * tests/test-vsprintf-posix.c: New file.
37501         * tests/test-sprintf-posix.h: New file.
37502
37503         * modules/vsprintf-posix: New file.
37504         * lib/vsprintf.c: New file.
37505         * m4/vsprintf-posix.m4: New file.
37506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37507         REPLACE_VSPRINTF.
37508         * lib/stdio_.h (vsprintf): New declaration.
37509         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37510         REPLACE_VSPRINTF.
37511
37512 2007-03-06  Bruno Haible  <bruno@clisp.org>
37513
37514         * modules/vsnprintf (Depend-on): Remove minmax.
37515
37516 2007-03-06  Bruno Haible  <bruno@clisp.org>
37517
37518         * modules/snprintf-posix-tests: New file.
37519         * tests/test-snprintf-posix.c: New file.
37520
37521         * modules/snprintf-posix: New file.
37522         * m4/snprintf-posix.m4: New file.
37523         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37524         gl_FUNC_SNPRINTF.
37525         (gl_FUNC_SNPRINTF): Invoke it.
37526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37527         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37528         is set.
37529         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37530
37531 2007-03-06  Bruno Haible  <bruno@clisp.org>
37532
37533         * modules/vsnprintf-posix-tests: New file.
37534         * tests/test-vsnprintf-posix.c: New file.
37535         * tests/test-snprintf-posix.h: New file.
37536
37537         * modules/vsnprintf-posix: New file.
37538         * m4/vsnprintf-posix.m4: New file.
37539         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37540         gl_FUNC_VSNPRINTF.
37541         (gl_FUNC_VSNPRINTF): Invoke it.
37542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37543         * lib/stdio_.h (vsnprintf): Define as a replacement if
37544         REPLACE_VSNPRINTF is set.
37545         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37546
37547 2007-03-06  Bruno Haible  <bruno@clisp.org>
37548
37549         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37550         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37551
37552 2007-03-06  Bruno Haible  <bruno@clisp.org>
37553
37554         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37555         (asinl): Declare also if HAVE_DECL_ASINL is set.
37556         (atanl): Declare also if HAVE_DECL_ATANL is set.
37557         (ceill): Declare also if HAVE_DECL_CEILL is set.
37558         (cosl): Declare also if HAVE_DECL_COSL is set.
37559         (expl): Declare also if HAVE_DECL_EXPL is set.
37560         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37561         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37562         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37563         (logl): Declare also if HAVE_DECL_LOGL is set.
37564         (sinl): Declare also if HAVE_DECL_SINL is set.
37565         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37566         (tanl): Declare also if HAVE_DECL_TANL is set.
37567         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37569         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37570         declaration of frexpl, ldexpl.
37571         * modules/printf-frexpl (Depends-on): Add math.
37572         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37573
37574 2007-03-05  Bruno Haible  <bruno@clisp.org>
37575
37576         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37577         frexpl and ldexpl are declared.
37578         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37579
37580 2007-03-05  Bruno Haible  <bruno@clisp.org>
37581
37582         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37583         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37584
37585 2007-03-05  Bruno Haible  <bruno@clisp.org>
37586
37587         * lib/stdio_.h: Include <stddef.h>.
37588
37589 2007-03-05  Bruno Haible  <bruno@clisp.org>
37590
37591         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37592
37593 2007-03-05  Bruno Haible  <bruno@clisp.org>
37594
37595         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37596         NetBSD 4, from Ralf Wildenhues.
37597
37598 2007-03-04  Bruno Haible  <bruno@clisp.org>
37599
37600         * lib/vasprintf.h: Update #if logic for the case when the functions
37601         exist but are overridden.
37602
37603 2007-03-04  Bruno Haible  <bruno@clisp.org>
37604
37605         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37606         implementations: glibc-2.4 and MacOS X 10.3.
37607         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37608         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37609         * tests/test-vasprintf-posix.c (test_function): Likewise.
37610
37611 2007-03-04  Bruno Haible  <bruno@clisp.org>
37612
37613         * modules/vasprintf-posix-tests: New file.
37614         * tests/test-vasprintf-posix.c: New file.
37615
37616         * modules/vasprintf-posix: New file.
37617         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37618         defined.
37619         * m4/vasprintf-posix.m4: New file.
37620         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37621         gl_FUNC_VASPRINTF.
37622         (gl_FUNC_VASPRINTF): Invoke it.
37623         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37624         here.
37625         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37626
37627 2007-03-04  Bruno Haible  <bruno@clisp.org>
37628
37629         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37630         REPLACE_GETTIMEOFDAY.
37631         * modules/sys_time (Makefile.am): Likewise.
37632         * m4/sys_time_h.m4: Likewise.
37633         * m4/gettimeofday.m4: Likewise.
37634
37635 2007-03-04  Bruno Haible  <bruno@clisp.org>
37636
37637         * modules/vasnprintf-posix-tests: New file.
37638         * tests/test-vasnprintf-posix.c: New file.
37639
37640         * modules/vasnprintf-posix: New file.
37641         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37642         printf-frexpl.h.
37643         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37644         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37645         REPLACE_VASNPRINTF is defined.
37646         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37647         gl_FUNC_VASNPRINTF.
37648         (gl_FUNC_VASNPRINTF): Invoke it.
37649         * m4/vasnprintf-posix.m4: New file.
37650         * m4/printf.m4: New file.
37651
37652 2007-03-04  Bruno Haible  <bruno@clisp.org>
37653
37654         Compile progreloc.c only if --enable-relocatable is specified.
37655         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37656         if --enable-relocatable was specified.
37657         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37658         lib_SOURCES.
37659
37660 2007-03-04  Jim Meyering  <jim@meyering.net>
37661
37662         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37663         Use it consistently, rather than enumerating errno constants.
37664
37665 2007-03-04  Bruno Haible  <bruno@clisp.org>
37666
37667         * modules/xvasprintf-tests: New file.
37668         * tests/test-xvasprintf.c: New file.
37669
37670         * modules/vasprintf-tests: New file.
37671         * tests/test-vasprintf.c: New file.
37672
37673         * modules/vasnprintf-tests: New file.
37674         * tests/test-vasnprintf.c: New file.
37675
37676         * modules/vsnprintf-tests: New file.
37677         * tests/test-vsnprintf.c: New file.
37678
37679         * modules/snprintf-tests: New file.
37680         * tests/test-snprintf.c: New file.
37681
37682 2007-03-04  Bruno Haible  <bruno@clisp.org>
37683
37684         Compile relocatable.c only if --enable-relocatable is specified.
37685         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37686         gl_RELOCATABLE_LIBRARY.
37687         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37688         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37689         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37690         gl_RELOCATABLE_LIBRARY.
37691         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37692         (Makefile.am): Remove lib_SOURCES.
37693         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37694         gl_RELOCATABLE_LIBRARY.
37695         (Makefile.am): Remove lib_SOURCES.
37696         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37697         always.
37698         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37699         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37700
37701 2007-03-04  Bruno Haible  <bruno@clisp.org>
37702
37703         * modules/argmatch-tests: New file.
37704         * tests/test-argmatch.c: New file.
37705
37706         * tests/test-allocsa.c (main): Halve the number of loop runs.
37707
37708         * modules/alloca-opt-tests: New file.
37709         * tests/test-alloca-opt.c: New file.
37710
37711 2007-03-04  Jim Meyering  <jim@meyering.net>
37712
37713         Work around difference between Linux ACLs and Solaris 10 ZFS.
37714         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37715         for EINVAL.
37716
37717 2007-03-03  Bruno Haible  <bruno@clisp.org>
37718
37719         * modules/relocatable-prog (Depends-on): Add back progreloc's
37720         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37721
37722 2007-03-03  Bruno Haible  <bruno@clisp.org>
37723
37724         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37725         * modules/relocatable-lib: New file.
37726
37727 2007-03-03  Bruno Haible  <bruno@clisp.org>
37728
37729         * modules/relocatable-prog: Renamed from modules/relocatable.
37730         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37731
37732 2007-03-03  Bruno Haible  <bruno@clisp.org>
37733
37734         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37735         m4/relocatable-lib.m4.
37736         (Depends-on): Remove 'relocatable'.
37737         (configure.ac): Add gl_RELOCATABLE_NOP.
37738
37739 2007-03-03  Bruno Haible  <bruno@clisp.org>
37740
37741         * modules/relocatable-prog-wrapper: New file.
37742         * modules/relocatable (Depends-on): Add it. Remove all other
37743         dependencies except progname.
37744         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37745
37746         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37747         (gl_FUNC_STRERROR): Nop.
37748         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37749
37750         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37751         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37752
37753         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37754         (gl_FUNC_READLINK): Update.
37755
37756         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37757
37758 2007-03-03  Bruno Haible  <bruno@clisp.org>
37759
37760         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37761         * modules/xreadlink (Depends-on): Add unistd.
37762         * modules/xreadlink-with-size (Depends-on): Likewise.
37763
37764 2007-03-03  Bruno Haible  <bruno@clisp.org>
37765
37766         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37767         extracted from gt_FUNC_SETENV.
37768         (gt_FUNC_SETENV): Remove macro.
37769         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37770         remove gt_FUNC_SETENV.
37771
37772 2007-03-03  Bruno Haible  <bruno@clisp.org>
37773
37774         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37775         ENABLE_RELOCATABLE here.
37776         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37777
37778 2007-03-03  Bruno Haible  <bruno@clisp.org>
37779
37780         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37781         * tests/test-rbtreehash_list.c: Include progname.h.
37782         (main): Call set_program_name.
37783
37784         * modules/rbtree-oset-tests (Depends-on): Add progname.
37785         * tests/test-rbtree_oset.c: Include progname.h.
37786         (main): Call set_program_name.
37787
37788         * modules/rbtree-list-tests (Depends-on): Add progname.
37789         * tests/test-rbtree_list.c: Include progname.h.
37790         (main): Call set_program_name.
37791
37792         * modules/linked-list-tests (Depends-on): Add progname.
37793         * tests/test-linked_list.c: Include progname.h.
37794         (main): Call set_program_name.
37795
37796 2007-03-03  Bruno Haible  <bruno@clisp.org>
37797
37798         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37799         All uses of __restrict changed to _Restrict_.
37800         * lib/glob_.h (__restrict): Remove macro.
37801
37802 2007-03-02  Bruno Haible  <bruno@clisp.org>
37803
37804         * modules/gettext (configure.ac): Require gettext infrastructure
37805         from version 0.16.1.
37806
37807 2007-03-02  Bruno Haible  <bruno@clisp.org>
37808
37809         * modules/linkedhash-list-tests (Depends-on): Add progname.
37810         * tests/test-linkedhash_list.c: Include progname.h.
37811         (main): Call set_program_name.
37812
37813         * modules/carray-list-tests (Depends-on): Add progname.
37814         * tests/test-carray_list.c: Include progname.h.
37815         (main): Call set_program_name.
37816
37817         * modules/avltreehash-list-tests (Depends-on): Add progname.
37818         * tests/test-avltreehash_list.c: Include progname.h.
37819         (main): Call set_program_name.
37820
37821         * modules/avltree-oset-tests (Depends-on): Add progname.
37822         * tests/test-avltree_oset.c: Include progname.h.
37823         (main): Call set_program_name.
37824
37825         * modules/avltree-list-tests (Depends-on): Add progname.
37826         * tests/test-avltree_list.c: Include progname.h.
37827         (main): Call set_program_name.
37828
37829         * modules/array-oset-tests (Depends-on): Add progname.
37830         * tests/test-array_oset.c: Include progname.h.
37831         (main): Call set_program_name.
37832
37833         * modules/array-list-tests (Depends-on): Add progname.
37834         * tests/test-array_list.c: Include progname.h.
37835         (main): Call set_program_name.
37836
37837         * modules/argp-tests (Depends-on): Add progname.
37838         * tests/test-argp.c: Include argp.h first. Include progname.h.
37839         (main): Call set_program_name.
37840
37841 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37842
37843         * doc/gnulib-tool.texi (Initial import): Reword description of
37844         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37845         limited effect even if defined after the first system include.
37846
37847 2007-03-01  Bruno Haible  <bruno@clisp.org>
37848
37849         * build-aux/config.libpath: Update to libtool-1.5.22.
37850         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37851
37852 2007-03-01  Bruno Haible  <bruno@clisp.org>
37853
37854         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37855         foo_CFLAGS.
37856         Reported by Ralf Wildenhues.
37857
37858 2007-03-01  Bruno Haible  <bruno@clisp.org>
37859
37860         * build-aux/install-reloc: Remove object files left over by some
37861         compilers.
37862         Reported by Ralf Wildenhues.
37863
37864 2007-03-01  Bruno Haible  <bruno@clisp.org>
37865
37866         * build-aux/install-reloc: Break long lines.
37867
37868 2007-03-01  Bruno Haible  <bruno@clisp.org>
37869
37870         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37871         Reported by Ralf Wildenhues.
37872
37873 2007-03-01  Bruno Haible  <bruno@clisp.org>
37874
37875         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37876         include ordering constraints.
37877
37878 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37879
37880         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37881         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37882         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37883         as another example.
37884         * lib/time_.h: Fix misspelling.
37885         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37886         Require gl_HEADER_TIME_H_DEFAULTS.
37887         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37888         * m4/time_r.m4 (gl_TIME_R): Likewise.
37889         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37890
37891 2007-03-01  Bruno Haible  <bruno@clisp.org>
37892
37893         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37894         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37895
37896 2007-03-01  Jim Meyering  <jim@meyering.net>
37897
37898         * modules/xreadlink (Maintainer): Add my name.
37899         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37900
37901 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37902             Bruno Haible  <bruno@clisp.org>
37903
37904         * build-aux/install-reloc: Compile also c-ctype.c.
37905         * build-aux/relocatable.sh.in: New file.
37906         * doc/relocatable.texi: New file.
37907         * doc/relocatable-maint.texi: New file.
37908         * doc/gnulib.texi: Include relocatable-maint.texi.
37909         * lib/progreloc.c: Include unistd.h unconditionally.
37910         * lib/relocwrapper.c: Include unistd.h unconditionally.
37911         Include c-ctype.h.
37912         (add_dotbin): Use c_tolower.
37913         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37914         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37915         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37916         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37917         to m4/relocatable-lib.m4.
37918         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37919         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37920         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37921         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37922         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37923         * modules/relocatable: New file.
37924         * modules/relocatable-lib: New file.
37925         * modules/relocatable-script: New file.
37926
37927 2007-02-28  Bruno Haible  <bruno@clisp.org>
37928
37929         Import --enable-relocatable infrastructure.
37930         * build-aux/config.libpath: New file, from GNU gettext.
37931         * build-aux/install-reloc: New file, from GNU gettext.
37932         * build-aux/reloc-ldflags: New file, from GNU gettext.
37933         * lib/relocatable.h: New file, from GNU gettext.
37934         * lib/relocatable.c: New file, from GNU gettext.
37935         * lib/relocwrapper.c: New file, from GNU gettext.
37936         * m4/relocatable.m4: New file, from GNU gettext.
37937
37938 2007-02-28  Bruno Haible  <bruno@clisp.org>
37939
37940         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37941
37942         * modules/xreadlink: New file, from GNU gettext with modifications.
37943         * lib/xreadlink.c: New file, from GNU gettext.
37944         * lib/xreadlink.h: Add comments.
37945         (xreadlink): New declaration.
37946
37947         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37948         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37949         lib/xreadlink-with-size.c.
37950         (configure.ac): Remove gl_XREADLINK invocation.
37951         (Makefile.am): Augment lib_SOURCES.
37952         * m4/xreadlink.m4: Remove file.
37953         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37954         (xreadlink_with_size): Renamed from xreadink.
37955         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37956         * modules/canonicalize (Depends-on): Replace xreadlink with
37957         xreadlink-with-size.
37958         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37959
37960 2007-02-25  Jim Meyering  <jim@meyering.net>
37961
37962         * build-aux/announce-gen: When complaining about excess arguments,
37963         list them.
37964
37965 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37966
37967         * README: Document signed integer overflow situation more
37968         accurately.
37969
37970 2007-02-25  Bruno Haible  <bruno@clisp.org>
37971
37972         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37973         'a' or 'A' conversion.
37974
37975 2007-02-25  Bruno Haible  <bruno@clisp.org>
37976
37977         * modules/filename: Renamed from modules/pathname.
37978         (Files): Replace lib/pathname.h with lib/filename.h. Replace
37979         lib/concatpath.c with lib/concat-filename.c.
37980         (Makefile.am): Update.
37981         (Include): Replace pathname.h with filename.h.
37982         * lib/filename.h: Renamed from lib/pathname.h.
37983         (concatenated_filename): Renamed from concatenated_pathname.
37984         * lib/concat-filename.c: Renamed from lib/concatpath.c.
37985         (concatenated_filename): Renamed from concatenated_pathname.
37986         * lib/findprog.c: Include filename.h instead of pathname.h.
37987         (find_in_path): Update.
37988         * lib/javacomp.c: Include filename.h instead of pathname.h.
37989         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37990         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37991         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37992         is_oldgcj_14_13_usable, is_javac_usable): Update.
37993         * lib/javaexec.c: Include filename.h instead of pathname.h.
37994         (execute_java_class): Update.
37995         * modules/findprog: Update.
37996         * modules/javacomp: Update.
37997         * modules/javaexec: Update.
37998         * MODULES.html.sh (File system functions): Add 'filename', remove
37999         'pathname'.
38000
38001 2007-02-25  Bruno Haible  <bruno@clisp.org>
38002
38003         * modules/printf-frexpl-tests: New file.
38004         * tests/test-printf-frexpl.c: New file.
38005
38006         * modules/printf-frexpl: New file.
38007         * lib/printf-frexpl.h: New file.
38008         * lib/printf-frexpl.c: New file.
38009         * m4/printf-frexpl.m4: New file.
38010
38011 2007-02-25  Bruno Haible  <bruno@clisp.org>
38012
38013         * modules/printf-frexp-tests: New file.
38014         * tests/test-printf-frexp.c: New file.
38015
38016         * modules/printf-frexp: New file.
38017         * lib/printf-frexp.h: New file.
38018         * lib/printf-frexp.c: New file.
38019         * m4/printf-frexp.m4: New file.
38020
38021 2007-02-25  Bruno Haible  <bruno@clisp.org>
38022
38023         Assume automake >= 1.10 for the tests.
38024         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38025         * modules/arctwo-tests: Likewise.
38026         * modules/argp-tests: Likewise.
38027         * modules/avltree-list-tests: Likewise.
38028         * modules/avltree-oset-tests: Likewise.
38029         * modules/avltreehash-list-tests: Likewise.
38030         * modules/carray-list-tests: Likewise.
38031         * modules/crc-tests: Likewise.
38032         * modules/des-tests: Likewise.
38033         * modules/gc-arcfour-tests: Likewise.
38034         * modules/gc-arctwo-tests: Likewise.
38035         * modules/gc-des-tests: Likewise.
38036         * modules/gc-hmac-md5-tests: Likewise.
38037         * modules/gc-hmac-sha1-tests: Likewise.
38038         * modules/gc-md2-tests: Likewise.
38039         * modules/gc-md4-tests: Likewise.
38040         * modules/gc-md5-tests: Likewise.
38041         * modules/gc-pbkdf2-sha1-tests: Likewise.
38042         * modules/gc-rijndael-tests: Likewise.
38043         * modules/gc-sha1-tests: Likewise.
38044         * modules/gc-tests: Likewise.
38045         * modules/getaddrinfo-tests: Likewise.
38046         * modules/hmac-md5-tests: Likewise.
38047         * modules/hmac-sha1-tests: Likewise.
38048         * modules/linked-list-tests: Likewise.
38049         * modules/linkedhash-list-tests: Likewise.
38050         * modules/lock-tests: Likewise.
38051         * modules/md2-tests: Likewise.
38052         * modules/md4-tests: Likewise.
38053         * modules/md5-tests: Likewise.
38054         * modules/rbtree-list-tests: Likewise.
38055         * modules/rbtree-oset-tests: Likewise.
38056         * modules/rbtreehash-list-tests: Likewise.
38057         * modules/read-file-tests: Likewise.
38058         * modules/rijndael-tests: Likewise.
38059         * modules/stdint-tests: Likewise.
38060         * modules/tls-tests: Likewise.
38061
38062 2007-02-24  Bruno Haible  <bruno@clisp.org>
38063
38064         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38065         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38066         function; instead check whether isnan with a double argument links.
38067         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38068         function; instead check whether isnan with a 'long double' argument
38069         links.
38070         Reported by Eric Blake <ebb9@byu.net>.
38071
38072 2007-02-24  Bruno Haible  <bruno@clisp.org>
38073
38074         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38075         defined.
38076         * lib/isnanl.c: Remove all code. Just include isnan.c.
38077         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38078
38079 2007-02-25  Jim Meyering  <jim@meyering.net>
38080
38081         Avoid conflicting types for 'unsetenv' on FreeBSD.
38082         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38083         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38084         in stdlib.h.
38085
38086 2007-02-24  Bruno Haible  <bruno@clisp.org>
38087
38088         * modules/isnanl-nolibm-tests: New file.
38089         * tests/test-isnanl.c: New file.
38090
38091         * modules/isnanl-nolibm: New file.
38092         * lib/isnanl.h: New file.
38093         * lib/isnanl.c: New file.
38094         * m4/isnanl.m4: New file.
38095
38096 2007-02-24  Bruno Haible  <bruno@clisp.org>
38097
38098         * modules/isnan-nolibm-tests: New file.
38099         * tests/test-isnan.c: New file.
38100
38101         * modules/isnan-nolibm: New file.
38102         * lib/isnan.h: New file.
38103         * lib/isnan.c: New file.
38104         * m4/isnan.m4: New file.
38105
38106 2007-02-24  Bruno Haible  <bruno@clisp.org>
38107
38108         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38109         assume that an exponent fits in 20 bits.
38110
38111 2007-02-24  Jim Meyering  <jim@meyering.net>
38112
38113         * m4/regex.m4: Update the description of the configure-time option,
38114         --without-included-regex, to state accurately what the defaults are,
38115         and perhaps to give people an idea why using this option is risky.
38116
38117 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38118
38119         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38120         loops on small arguments.  This attempts to avoid the problem
38121         Bruno Haible reported for AIX 4.3.2 in
38122         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38123
38124 2007-02-23  Bruno Haible  <bruno@clisp.org>
38125
38126         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38127         Needed for help2man.
38128
38129 2007-02-23  Karl Berry  <karl@gnu.org>
38130
38131         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38132         exists, foo.h should be cvs-ignored, not committed.
38133
38134 2007-02-23  Eric Blake  <ebb9@byu.net>
38135
38136         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38137         * lib/stat-time.h (includes): Likewise.
38138         * lib/utimecmp.c (includes): Likewise.
38139         * lib/utimens.h (includes): Likewise.
38140         * lib/getdate.y (includes): Also include "timespec.h" for use
38141         internal to the module.
38142         * modules/utimens (Depends-on): Revert yesterday's patch.
38143         * modules/nanosleep (Depends-on): Add missing dependency.
38144
38145 2007-02-22  Bruno Haible  <bruno@clisp.org>
38146
38147         * lib/glob.c: Don't include getlogin_r.h.
38148
38149 2007-02-22  Jim Meyering  <jim@meyering.net>
38150
38151         * modules/utimens (Depends-on): Add timespec, required for
38152         utimens.h's inclusion of timespec.h.
38153
38154 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38155
38156         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38157         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38158         Schwab in
38159         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38160         I'll try to think of a better way to fix the Solaris problem.
38161
38162         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38163         like glibc; on Solaris 10, it fails with errno == EINVAL.
38164         POSIX says the behavior is unspecified if the first argument is NULL,
38165         so play it safe and never pass NULL to the system getcwd.
38166
38167 2007-02-21  Jim Meyering  <jim@meyering.net>
38168
38169         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38170         of gettimeofday.  It would conflict with the one now always
38171         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38172         an IRIX 6.5 build failure.
38173
38174 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38175
38176         Minor fixups to port to Solaris 10 with Sun C 5.8.
38177         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38178         * modules/getcwd (Depends-on): Add dirfd.
38179         * lib/putenv.c (putenv): #undef it.
38180         (rpl_putenv): New decl.
38181         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38182
38183 2007-02-20  Bruno Haible  <bruno@clisp.org>
38184
38185         * modules/stdio-tests: New file.
38186         * tests/test-stdio.c: New file.
38187
38188         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38189         (Depends-on): Add stdio.
38190         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38191         (Include): Use <stdio.h> instead of vsnprintf.h.
38192         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38193         HAVE_DECL_VSNPRINTF.
38194         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38195
38196         * modules/snprintf (Files): Remove lib/snprintf.h.
38197         (Depends-on): Add stdio.
38198         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38199         (Include): Use <stdio.h> instead of snprintf.h.
38200         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38201         HAVE_DECL_SNPRINTF.
38202         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38203         * lib/getaddrinfo.c: Likewise.
38204
38205         * modules/stdio: New file.
38206         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38207         * lib/snprintf.h: Remove file.
38208         * lib/vsnprintf.h: Remove file.
38209         * lib/.cppi-disable: Remove snprintf.h.
38210         * m4/stdio_h.m4: New file.
38211         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38212
38213 2007-02-20  Jim Meyering  <jim@meyering.net>
38214
38215         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38216         used by e.g., mingw.  From Bruno Haible.
38217
38218 2007-02-19  Bruno Haible  <bruno@clisp.org>
38219
38220         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38221         warnings.
38222         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38223
38224 2007-02-19  Bruno Haible  <bruno@clisp.org>
38225
38226         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38227         from mingw users.
38228
38229 2007-02-19  Bruno Haible  <bruno@clisp.org>
38230
38231         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38232         warnings.
38233         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38234
38235 2007-02-19  Jim Meyering  <jim@meyering.net>
38236
38237         Don't use FD after a successful "fdopendir (fd)".
38238         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38239         Reset it by calling dirfd on the just-obtained DIR*.
38240
38241         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38242         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38243
38244 2007-02-18  Bruno Haible  <bruno@clisp.org>
38245
38246         * lib/readlink.c: Include <unistd.h>.
38247         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38248         HAVE_READLINK.
38249         * modules/readlink (Depends-on): Add unistd.
38250         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38251         (Include): Add <unistd.h>.
38252
38253         * lib/getlogin_r.h: Remove file.
38254         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38255         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38256         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38257         HAVE_DECL_GETLOGIN_R.
38258         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38259         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38260         (Include): Use <unistd.h> instead of getlogin_r.h.
38261
38262         * lib/getcwd.h: Remove file.
38263         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38264         * lib/xgetcwd.c: Likewise.
38265         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38266         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38267         * modules/getcwd (Files): Remove lib/getcwd.h.
38268         (Depends-on): Add unistd.
38269         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38270         (Include): Use <unistd.h> instad of getcwd.h.
38271
38272         * lib/ftruncate.c: Include <unistd.h> first.
38273         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38274         Set HAVE_FTRUNCATE.
38275         * modules/ftruncate (Depends-on): Add unistd.
38276         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38277
38278         * lib/fchdir.c: Include <unistd.h> first.
38279         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38281         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38282         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38283         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38284
38285         * lib/dup2.c: Include <unistd.h> first.
38286         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38287         HAVE_DUP2.
38288         * modules/dup2 (Depends-on): Add unistd.
38289         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38290
38291         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38292         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38293         REPLACE_CHOWN. Don't define chown as a macro here.
38294         * modules/chown (Depends-on): Add unistd.
38295         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38296
38297         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38298         Add definition for GL_LINK_WARNING.
38299         (chown, dup2): New declarations.
38300         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38301         link warning.
38302         (ftruncate): New declaration.
38303         (getcwd): New declaration, taken from old getcwd.h.
38304         (getlogin_r): New declaration, taken from old getlogin_r.h.
38305         (readlink): New declaration.
38306         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38307         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38308         (gl_PREREQ_UNISTD): Remove macro.
38309         (gl_UNISTD_MODULE_INDICATOR): New macro.
38310         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38311         many new variables. Don't set UNISTD_H.
38312         * modules/unistd (Description): Change.
38313         (Depends-on): Add link-warning.
38314         (configure.ac): Update.
38315         (Makefile.am): Create unistd.h always. Substitute many new variables
38316         into it.
38317
38318 2007-02-18  Bruno Haible  <bruno@clisp.org>
38319
38320         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38321         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38322         HAVE_GETSUBOPT.
38323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38324         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38325         * lib/getsubopt.h: Remove file.
38326         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38327         (Depends-on): Add stdlib.
38328         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38329         (Includes): Use <stdlib.h> instead of getsubopt.h.
38330         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38331         Set HAVE_GETSUBOPT.
38332         * lib/getsubopt.c: Don't include getsubopt.h.
38333
38334 2007-02-18  Bruno Haible  <bruno@clisp.org>
38335
38336         * modules/fchdir (Depends-on): Add dup2.
38337
38338 2007-02-18  Bruno Haible  <bruno@clisp.org>
38339
38340         * lib/stdlib_.h: Handle glibc's special invocation convention
38341         specially.
38342
38343 2007-02-18  Bruno Haible  <bruno@clisp.org>
38344
38345         * modules/stdlib-tests: New file.
38346         * tests/test-stdlib.c: New file.
38347
38348         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38349         (Depends-on): Add stdlib.
38350         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38351         (Includes): Use <stdlib.h> instead of mkstemp.h.
38352         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38353         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38354         * lib/mkstemp.c: Don't include mkstemp.h.
38355         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38356         * lib/stdlib--.h: Don't include mkstemp.h.
38357
38358         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38359         (Depends-on): Add stdlib.
38360         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38361         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38362         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38363         HAVE_MKDTEMP.
38364         * lib/mkdtemp.c: Don't include mkdtemp.h.
38365         * lib/clean-temp.c: Don't include mkdtemp.h.
38366
38367         * modules/exit (Files): Remove lib/exit.h.
38368         (Depends-on): Add stdlib.
38369         (Makefile.am): Remove lib_SOURCES.
38370         (Include): Use <stdlib.h> instead of exit.h.
38371         * lib/argmatch.c: Don't include exit.h.
38372         * lib/execute.c: Likewise.
38373         * lib/pagealign_alloc.c: Likewise.
38374         * lib/pipe.c: Likewise.
38375         * lib/wait-process.c: Likewise.
38376         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38377         * lib/exitfail.c: Likewise.
38378         * lib/savewd.c: Likewise.
38379         * lib/xsetenv.c: Likewise.
38380
38381         * modules/stdlib: New file.
38382         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38383         and extra comments about mkstemp().
38384         * lib/exit.h: Remove file.
38385         * lib/mkdtemp.h: Remove file.
38386         * lib/mkstemp.h: Remove file.
38387         * m4/stdlib_h.m4: New file.
38388         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38389
38390 2007-02-18  Bruno Haible  <bruno@clisp.org>
38391
38392         * modules/math-tests: New file.
38393         * tests/test-math.c: New file.
38394
38395         * modules/math: New file.
38396         * modules/mathl (Files): Remove lib/mathl.h.
38397         (Depends-on): Add math.
38398         (Makefile.am): Don't mention mathl.h.
38399         (Include): Use <math.h> instead of mathl.h.
38400         * lib/math_.h: New file.
38401         * lib/mathl.h: Remove file.
38402         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38403         mathl.h.
38404         * lib/asinl.c: Likewise.
38405         * lib/atanl.c: Likewise.
38406         * lib/ceill.c: Likewise.
38407         * lib/cosl.c: Likewise.
38408         * lib/expl.c: Likewise.
38409         * lib/floorl.c: Likewise.
38410         * lib/frexpl.c: Likewise.
38411         * lib/ldexpl.c: Likewise.
38412         * lib/logl.c: Likewise.
38413         * lib/sincosl.c: Likewise.
38414         * lib/sinl.c: Likewise.
38415         * lib/sqrtl.c: Likewise.
38416         * lib/tanl.c: Likewise.
38417         * lib/trigl.c: Likewise.
38418         * m4/math_h.m4: New file.
38419         * MODULES.html.sh (Mathematics): Add math.
38420
38421 2007-02-17  Bruno Haible  <bruno@clisp.org>
38422
38423         * modules/wctype-tests: New file.
38424         * tests/test-wctype.c: New file.
38425
38426         * modules/wchar-tests: New file.
38427         * tests/test-wchar.c: New file.
38428
38429         * modules/unistd-tests: New file.
38430         * tests/test-unistd.c: New file.
38431
38432         * modules/time-tests: New file.
38433         * tests/test-time.c: New file.
38434
38435         * modules/sysexits-tests: New file.
38436         * tests/test-sysexits.c: New file.
38437
38438         * modules/sys_time-tests: New file.
38439         * tests/test-sys_time.c: New file.
38440
38441         * modules/sys_stat-tests: New file.
38442         * tests/test-sys_stat.c: New file.
38443
38444         * modules/sys_socket-tests: New file.
38445         * tests/test-sys_socket.c: New file.
38446
38447         * modules/sys_select-tests: New file.
38448         * tests/test-sys_select.c: New file.
38449
38450         * modules/string-tests: New file.
38451         * tests/test-string.c: New file.
38452
38453         * modules/stdbool-tests: New file.
38454         * tests/test-stdbool.c: New file.
38455
38456         * modules/netinet_in-tests: New file.
38457         * tests/test-netinet_in.c: New file.
38458
38459         * modules/inttypes-tests: New file.
38460         * tests/test-inttypes.c: New file.
38461
38462         * modules/fcntl-tests: New file.
38463         * tests/test-fcntl.c: New file.
38464
38465         * modules/byteswap-tests: New file.
38466         * tests/test-byteswap.c: New file.
38467
38468         * modules/arpa_inet-tests: New file.
38469         * tests/test-arpa_inet.c: New file.
38470
38471 2007-02-17  Bruno Haible  <bruno@clisp.org>
38472
38473         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38474         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38475         if the corresponding module is not enabled. Emit link warnings if
38476         the function is used nevertheless.
38477         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38478         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38479         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38480         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38481         * modules/inttypes (Depends-on): Add link-warning.
38482         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38483         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38484         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38485         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38486         * modules/imaxdiv (configure.ac): Likewise.
38487         * modules/strtoimax (configure.ac): Likewise.
38488         * modules/strtoumax (configure.ac): Likewise.
38489
38490 2007-02-17  Bruno Haible  <bruno@clisp.org>
38491
38492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38493         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38494         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38495         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38496
38497 2007-02-17  Bruno Haible  <bruno@clisp.org>
38498
38499         * modules/link-warning: New file.
38500         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38501         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38502         * modules/string (Depends-on): Add link-warning.
38503         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38504         string.h.
38505         * MODULES.html.sh (Support for building libraries and executables): Add
38506         link-warning.
38507
38508 2007-02-17  Bruno Haible  <bruno@clisp.org>
38509
38510         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38511         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38512         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38513         long lines.
38514
38515 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38516             Bruno Haible  <bruno@clisp.org>
38517
38518         * modules/tmpfile: New file.
38519         * lib/tmpfile.c: New file.
38520         * m4/tmpfile.m4: New file.
38521         * MODULES.html.sh (func_all_modules): New section "Input/output".
38522
38523 2007-02-15  Bruno Haible  <bruno@clisp.org>
38524
38525         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38526         (supports_delete_on_close): New function.
38527         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38528
38529 2007-02-14  Bruno Haible  <bruno@clisp.org>
38530
38531         * modules/mbspcasecmp-tests: New file.
38532         * tests/test-mbspcasecmp.sh: New file.
38533         * tests/test-mbspcasecmp.c: New file.
38534
38535         New module mbspcasecmp.
38536         * modules/mbspcasecmp: New file.
38537         * lib/mbspcasecmp.c: New file.
38538         * lib/string_.h (strncasecmp): Change warning message.
38539         (mbspcasecmp): New declaration.
38540         * m4/mbspcasecmp.m4: New file.
38541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38542         GNULIB_MBSPCASECMP.
38543         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38544         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38545
38546 2007-02-14  Bruno Haible  <bruno@clisp.org>
38547
38548         * modules/mbsncasecmp-tests: New file.
38549         * tests/test-mbsncasecmp.sh: New file.
38550         * tests/test-mbsncasecmp.c: New file.
38551
38552         New module mbsncasecmp.
38553         * modules/mbsncasecmp: New file.
38554         * lib/mbsncasecmp.c: New file.
38555         * lib/string_.h (mbsncasecmp): New declaration.
38556         * m4/mbsncasecmp.m4: New file.
38557         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38558         GNULIB_MBSNCASECMP.
38559         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38560         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38561
38562 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38563
38564         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38565         Verify that it doesn't overlap with our flags.
38566         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38567         do not have the desired effect in multibyte locales; instead, use
38568         mbscasecmp.
38569         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38570         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38571         we don't require GNU fnmatch ourselves (if our users require it, they
38572         should do so explicitly).
38573
38574         Fix regex code so it doesn't rely on strcasecmp.
38575         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38576         Otherwise, include gnulib's langinfo.h.
38577         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38578         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38579         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38580         * modules/regex (FILES): Remove m4/codeset.m4.
38581         (Depends-on): Add localcharset.  Remove strcase.
38582
38583 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38584
38585         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38586         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38587
38588 2007-02-13  Bruno Haible  <bruno@clisp.org>
38589
38590         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38591         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38592
38593 2007-02-12  Bruno Haible  <bruno@clisp.org>
38594
38595         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38596         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38597         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38598         time warning rather than a link error.
38599
38600 2007-02-12  Bruno Haible  <bruno@clisp.org>
38601
38602         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38603         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38604         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38605
38606 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38607
38608         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38609         args, not 2.
38610
38611 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38612
38613         New module 'time', so that apps can include <time.h> as per
38614         POSIX and GNU instead of separate include files like time_r.h
38615         and timegm.h.  This implementation tries out a simpler approach
38616         for replacing decls in standard include files (as compared to
38617         the string module), somewhat as an experiment.
38618
38619         * config/srclist.txt: Comment out mktime.c for now.
38620         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38621         since it doesn't apply any more.  Use generic wording instead.
38622         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38623         'time'.
38624         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38625         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38626         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38627         Don't include <sys/types.h>; no longer needed since we assume C89.
38628         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38629         * lib/strftime.c: Likewise.
38630         * lib/time_r.c: Likewise.
38631         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38632         * lib/nanosleep.c: Include <time.h> first, to check interface.
38633         * lib/strptime.c: Likewise.
38634         * lib/time_r.c: Likewise.
38635         * lib/timegm.c: Likewise.
38636         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38637         needed.
38638         * lib/timegm.c: Don't include timegm.h; no longer needed.
38639         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38640         time.h now handles any problems in that area.
38641         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38642         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38643         that time.h defines struct timespec.
38644         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38645         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38646         handles that.
38647         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38648         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38649         needed.  Set REPLACE_LOCALTIME.
38650         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38651         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38652         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38653         nanosleep; time_h.m4 now does that.  Don't require
38654         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38655         module handles this now.
38656         * modules/getdate (Depends-on): Remove timespec.  Add time.
38657         * modules/nanosleep (Depends-on): Likewise.
38658         * modules/stat-time (Depends-on): Likewise.
38659         * modules/nanosleep (Include): Include time.h, not timespec.h.
38660         * modules/strptime (Files): Remove lib/strptime.h.
38661         (Depends-on): Add extensions, time.
38662         (Include): Include time.h, not strptime.h.
38663         * modules/time_r (Files): Remove lib/time_r.h.
38664         (Depends-on): Add time.
38665         (Include): Include time.h, not time_r.h.
38666         * modules/timegm: Likewise.
38667         * modules/timespec (Description): Now does timespec-related decls
38668         of our own, instead of struct timespec itself.
38669         (Depends-on): Add time; remove extensions.
38670         (Maintainer): Add self.
38671         * modules/utimecmp (Depends-on): Add time; remove timespec.
38672         * modules/utimens (Depends-on): Likewise.
38673         * modules/xnanosleep (Depends-on): Likewise.
38674
38675 2007-02-11  Bruno Haible  <bruno@clisp.org>
38676
38677         * lib/c-strstr.c: Include allocsa.h.
38678         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38679         * lib/c-strcasestr.c: Include allocsa.h.
38680         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38681         * lib/strcasestr.c: Include allocsa.h.
38682         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38683         * lib/mbsstr.c: Include allocsa.h.
38684         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38685         allocsa/freesa instead of malloc/free.
38686         * lib/mbscasestr.c: Include allocsa.h.
38687         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38688         allocsa/freesa instead of malloc/free.
38689         * modules/c-strstr (Depends-on): Add allocsa.
38690         * modules/c-strcasestr (Depends-on): Likewise.
38691         * modules/strcasestr (Depends-on): Likewise.
38692         * modules/mbsstr (Depends-on): Likewise.
38693         * modules/mbscasestr (Depends-on): Likewise.
38694
38695 2007-02-11  Bruno Haible  <bruno@clisp.org>
38696
38697         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38698
38699         * modules/mbsspn-tests: New file.
38700         * tests/test-mbsspn.sh: New file.
38701         * tests/test-mbsspn.c: New file.
38702
38703 2007-02-11  Bruno Haible  <bruno@clisp.org>
38704
38705         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38706
38707         * modules/mbspbrk-tests: New file.
38708         * tests/test-mbspbrk.sh: New file.
38709         * tests/test-mbspbrk.c: New file.
38710
38711 2007-02-11  Bruno Haible  <bruno@clisp.org>
38712
38713         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38714         unneeded cast.
38715
38716         * modules/mbscspn-tests: New file.
38717         * tests/test-mbscspn.sh: New file.
38718         * tests/test-mbscspn.c: New file.
38719
38720 2007-02-11  Bruno Haible  <bruno@clisp.org>
38721
38722         * modules/mbscasecmp-tests: New file.
38723         * tests/test-mbscasecmp.sh: New file.
38724         * tests/test-mbscasecmp.c: New file.
38725
38726 2007-02-11  Bruno Haible  <bruno@clisp.org>
38727
38728         Ensure O(n) worst-case complexity of mbscasestr.
38729         * lib/mbscasestr.c: Include stdbool.h.
38730         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38731         functions.
38732         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38733         the bookkeeping indicates that it's worth it.
38734         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38735
38736         * modules/mbscasestr-tests: New file.
38737         * tests/test-mbscasestr1.c: New file.
38738         * tests/test-mbscasestr2.sh: New file.
38739         * tests/test-mbscasestr2.c: New file.
38740         * tests/test-mbscasestr3.sh: New file.
38741         * tests/test-mbscasestr3.c: New file.
38742         * tests/test-mbscasestr4.sh: New file.
38743         * tests/test-mbscasestr4.c: New file.
38744         * m4/locale-tr.m4: New file.
38745
38746 2007-02-11  Bruno Haible  <bruno@clisp.org>
38747
38748         Ensure O(n) worst-case complexity of mbsstr.
38749         * lib/mbsstr.c: Include stdbool.h.
38750         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38751         functions.
38752         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38753         bookkeeping indicates that it's worth it.
38754         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38755
38756         * modules/mbsstr-tests: New file.
38757         * tests/test-mbsstr1.c: New file.
38758         * tests/test-mbsstr2.sh: New file.
38759         * tests/test-mbsstr2.c: New file.
38760         * tests/test-mbsstr3.sh: New file.
38761         * tests/test-mbsstr3.c: New file.
38762         * m4/locale-fr.m4: New file.
38763
38764 2007-02-11  Bruno Haible  <bruno@clisp.org>
38765
38766         * lib/mbsrchr.c (mbsrchr): Fix bug.
38767
38768         * modules/mbsrchr-tests: New file.
38769         * tests/test-mbsrchr.sh: New file.
38770         * tests/test-mbsrchr.c: New file.
38771
38772 2007-02-11  Bruno Haible  <bruno@clisp.org>
38773
38774         * lib/mbschr.c (mbschr): Fix bug.
38775
38776         * modules/mbschr-tests: New file.
38777         * tests/test-mbschr.sh: New file.
38778         * tests/test-mbschr.c: New file.
38779         * m4/locale-zh.m4: New file.
38780
38781 2007-02-11  Bruno Haible  <bruno@clisp.org>
38782
38783         Support for copying multibyte string iterators.
38784         * lib/mbiter.h: Include <string.h>.
38785         (mbiter_multi_copy): New function.
38786         (mbi_copy): New macro.
38787         * lib/mbuiter.h: Include <string.h>.
38788         (mbuiter_multi_copy): New function.
38789         (mbui_copy): New macro.
38790
38791 2007-02-11  Bruno Haible  <bruno@clisp.org>
38792
38793         New module mbslen.
38794         * modules/mbslen: New file.
38795         * lib/mbslen.c: New file.
38796         * lib/string_.h (mbslen): New declaration.
38797         * m4/mbslen.m4: New file.
38798         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38799         GNULIB_MBSLEN.
38800         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38801         * MODULES.html.sh (Internationalization functions): Add mbslen.
38802
38803 2007-02-11  Bruno Haible  <bruno@clisp.org>
38804
38805         Ensure O(n) worst-case complexity of strcasestr substitute.
38806         * lib/strcasestr.c: Include stdbool.h.
38807         (knuth_morris_pratt): New function.
38808         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38809         bookkeeping indicates that it's worth it.
38810         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38811
38812         * modules/strcasestr-tests: New file.
38813         * tests/test-strcasestr.c: New file.
38814
38815 2007-02-11  Bruno Haible  <bruno@clisp.org>
38816
38817         Ensure O(n) worst-case complexity of c_strcasestr.
38818         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38819         (knuth_morris_pratt): New function.
38820         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38821         the bookkeeping indicates that it's worth it.
38822         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38823
38824         * modules/c-strcasestr-tests: New file.
38825         * tests/test-c-strcasestr.c: New file.
38826
38827 2007-02-11  Bruno Haible  <bruno@clisp.org>
38828
38829         Ensure O(n) worst-case complexity of c_strstr.
38830         * lib/c-strstr.c: Include stdbool.h, string.h.
38831         (knuth_morris_pratt): New function.
38832         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38833         bookkeeping indicates that it's worth it.
38834         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38835
38836         * lib/c-strstr.c: Complete rewrite for maintainability.
38837
38838         * modules/c-strstr-tests: New file.
38839         * tests/test-c-strstr.c: New file.
38840
38841 2007-02-11  Bruno Haible  <bruno@clisp.org>
38842
38843         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38844         5.2.1 and earlier, whereby \055 was treated just like the range
38845         delimiter '-'.
38846         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38847
38848 2007-02-08  Bruno Haible  <bruno@clisp.org>
38849
38850         * modules/regex (Depends-on): Add stdbool.
38851         Reported by Dalibor Topic <robilad@kaffe.org>.
38852
38853 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38854
38855         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38856         Prefer returning from main to exiting from it.
38857         Remove unnecessary parens after sizeof.
38858
38859 2007-02-05  Bruno Haible  <bruno@clisp.org>
38860
38861         New module mbssep.
38862         * modules/mbssep: New file.
38863         * lib/mbssep.c: New file.
38864         * lib/string_.h (strsep): Add a conditional link warning.
38865         (mbssep): New declaration.
38866         * m4/mbssep.m4: New file.
38867         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38868         GNULIB_MBSSEP.
38869         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38870         * MODULES.html.sh (Internationalization functions): Add mbssep.
38871
38872 2007-02-05  Bruno Haible  <bruno@clisp.org>
38873
38874         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38875         Optimize search in case of 1 delimiter.
38876
38877 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38878
38879         * lib/acl.h: Include sys/types.h before sys/acl.h.
38880
38881 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38882
38883         Merge upstream fix for glibc bugzilla #3957:
38884
38885         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38886
38887         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38888         bit for RE_HAT_LISTS_NOT_NEWLINE.
38889         (build_charclass_op): Remove bogus comment.
38890
38891 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38892
38893         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38894
38895 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38896
38897         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38898         * lib/memmem.c [!defined _LIBC]: Include config.h.
38899
38900 2007-02-04  Bruno Haible  <bruno@clisp.org>
38901
38902         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38903         warning message.
38904
38905 2007-02-04  Bruno Haible  <bruno@clisp.org>
38906
38907         New module mbstok_r.
38908         * modules/mbstok_r: New file.
38909         * lib/mbstok_r.c: New file.
38910         * lib/string_.h (strtok_r): Change argument names to match the
38911         comments. Add a conditional link warning.
38912         (mbstok_r): New declaration.
38913         * m4/mbstok_r.m4: New file.
38914         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38915         GNULIB_MBSTOK_R.
38916         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38917         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38918
38919 2007-02-04  Bruno Haible  <bruno@clisp.org>
38920
38921         New module mbsspn.
38922         * modules/mbsspn: New file.
38923         * lib/mbsspn.c: New file.
38924         * lib/string_.h (strspn): Add a conditional link warning.
38925         (mbsspn): New declaration.
38926         * m4/mbsspn.m4: New file.
38927         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38928         GNULIB_MBSSPN.
38929         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38930         * MODULES.html.sh (Internationalization functions): Add mbsspn.
38931
38932 2007-02-04  Bruno Haible  <bruno@clisp.org>
38933
38934         New module mbspbrk.
38935         * modules/mbspbrk: New file.
38936         * lib/mbspbrk.c: New file.
38937         * lib/string_.h (strpbrk): Add a conditional link warning.
38938         (mbspbrk): New declaration.
38939         * m4/mbspbrk.m4: New file.
38940         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38941         GNULIB_MBSPBRK.
38942         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38943         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38944
38945 2007-02-04  Bruno Haible  <bruno@clisp.org>
38946
38947         New module mbscspn.
38948         * modules/mbscspn: New file.
38949         * lib/mbscspn.c: New file.
38950         * lib/string_.h (strcspn): Add a conditional link warning.
38951         (mbscspn): New declaration.
38952         * m4/mbscspn.m4: New file.
38953         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38954         GNULIB_MBSCSPN.
38955         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38956         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38957
38958 2007-02-04  Bruno Haible  <bruno@clisp.org>
38959
38960         New module mbscasestr, reduced goal of strcasestr.
38961         * modules/mbscasestr: New file.
38962         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38963         (mbscasestr): Renamed from strcasestr.
38964         * lib/strcasestr.c: Don't include mbuiter.h.
38965         (strcasestr): Remove support for multibyte locales.
38966         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38967         Change the conditional link warning.
38968         (mbscasestr): New declaration.
38969         * m4/mbscasestr.m4: New file.
38970         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38971         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38972         REPLACE_STRCASESTR.
38973         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38974         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38975         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38976         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38977         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38978         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38979         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38980         (Depends-on): Remove mbuiter.
38981         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38982
38983 2007-02-04  Bruno Haible  <bruno@clisp.org>
38984
38985         Simplify handling of strncasecmp.
38986         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38987         the conditional link warning.
38988         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38989         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38990         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38991         * modules/strcase (configure.ac): Don't invoke
38992         gl_STRING_MODULE_INDICATOR.
38993         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38994
38995 2007-02-04  Bruno Haible  <bruno@clisp.org>
38996
38997         New module mbscasecmp, reduced goal of strcasecmp.
38998         * modules/mbscasecmp: New file.
38999         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
39000         (mbscasecmp): Renamed from strcasecmp.
39001         * lib/strcasecmp.c: Don't include mbuiter.h.
39002         (strcasecmp): Remove support for multibyte locales.
39003         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
39004         Change the conditional link warning.
39005         (mbscasecmp): New declaration.
39006         * m4/mbscasecmp.m4: New file.
39007         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
39008         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
39009         REPLACE_STRCASECMP.
39010         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39011         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39012         GNULIB_MBSCASECMP.
39013         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39014         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39015         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39016         (Depends-on): Remove mbuiter.
39017         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39018
39019 2007-02-04  Bruno Haible  <bruno@clisp.org>
39020
39021         New module mbsstr. Remove module strstr.
39022         * modules/mbsstr: New file.
39023         * modules/strstr: Remove file.
39024         * lib/mbsstr.c: Renamed from lib/strstr.c.
39025         (mbsstr): Renamed from strstr.
39026         * lib/string_.h (strstr): Remove declaration. Change the conditional
39027         link warning.
39028         (mbsstr): New declaration.
39029         * m4/mbsstr.m4: New file.
39030         * m4/strstr.m4: Remove file.
39031         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39032         REPLACE_STRSTR.
39033         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39034         Don't initialize GNULIB_STRSTR.
39035         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39036         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39037         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39038         (Support for systems lacking ANSI C 89): Remove strstr.
39039
39040 2007-02-04  Bruno Haible  <bruno@clisp.org>
39041
39042         New module mbsrchr.
39043         * modules/mbsrchr: New file.
39044         * lib/mbsrchr.c: New file.
39045         * lib/string_.h (strrchr): Add a conditional link warning.
39046         (mbsrchr): New declaration.
39047         * m4/mbsrchr.m4: New file.
39048         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39049         GNULIB_MBSRCHR.
39050         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39051         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39052
39053 2007-02-04  Bruno Haible  <bruno@clisp.org>
39054
39055         New module mbschr.
39056         * modules/mbschr: New file.
39057         * lib/mbschr.c: New file.
39058         * lib/string_.h (strchr): Add a conditional link warning.
39059         (mbschr): New declaration.
39060         * m4/mbschr.m4: New file.
39061         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39062         GNULIB_MBSCHR.
39063         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39064         * MODULES.html.sh (Internationalization functions): Add mbschr.
39065
39066 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39067
39068         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39069
39070         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39071
39072 2007-02-04  Bruno Haible  <bruno@clisp.org>
39073
39074         New module description section 'configure.ac-early'.
39075         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39076         (func_get_autoconf_early_snippet): New function.
39077         (func_import, func_create_testdir): Use it. Remove special cases for
39078         modules 'extensions' and 'lock'.
39079         * modules/extensions (configure.ac-early): Require
39080         gl_USE_SYSTEM_EXTENSIONS.
39081         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39082
39083 2007-02-04  Bruno Haible  <bruno@clisp.org>
39084
39085         Make use of gcj-4.3's -fsource and -ftarget option.
39086         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39087         and if so try the options -fsource and -ftarget.
39088         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39089         source_version, ftarget_option, target_version arguments.
39090         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39091         (is_envjavac_oldgcj_14_14_usable): Renamed from
39092         is_envjavac_gcj_14_14_usable.
39093         (is_envjavac_oldgcj_14_13_usable): Renamed from
39094         is_envjavac_gcj_14_13_usable.
39095         (is_gcj_present): Update.
39096         (is_gcj_43, is_gcj43_usable): New functions.
39097         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39098         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39099         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39100         try the options -fsource and -ftarget.
39101
39102 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39103
39104         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39105         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39106         larger value.
39107
39108 2007-02-03  Jim Meyering  <jim@meyering.net>
39109
39110         Give tools a better chance to allocate space for very large buffers.
39111         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39112
39113         Make pwd and readlink work also when run with an unreadable parent dir
39114         on systems with openat support.
39115         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39116         provided getcwd function, even when we have openat support.
39117         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39118
39119 2007-02-02  Bruno Haible  <bruno@clisp.org>
39120
39121         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39122         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39123         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39124         portability problems if one of these functions is only used on specific
39125         platforms.
39126         Reported by Paul Eggert.
39127
39128 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39129
39130         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39131         is causing more trouble than it's curing.
39132         * lib/regex_internal.h (__mempcpy): Remove.
39133         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39134         (and make the code a tad smaller to boot).
39135         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39136
39137 2007-02-02  Jim Meyering  <jim@meyering.net>
39138
39139         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39140         section, not in the Makefile.am: one.
39141
39142 2007-02-02  Eric Blake  <ebb9@byu.net>
39143
39144         * lib/strchrnul.c: Always include config.h first.
39145
39146         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39147         gnulib strstr is not necessary here.
39148
39149 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39150
39151         * m4/socklen.m4: Fix typo.
39152
39153 2007-02-02  Eric Blake  <ebb9@byu.net>
39154
39155         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39156         * modules/netinet_in (Makefile.am): Likewise.
39157
39158 2007-02-01  Bruno Haible  <bruno@clisp.org>
39159
39160         * lib/string_.h (GL_LINK_WARNING): New macro.
39161         (strcasecmp, strstr, strcasestr): If provided by the system,
39162         conditionally define as a macro that leads to a warning instead of to
39163         an error.
39164         (strncasecmp): Conditionally define as a macro that leads to a warning.
39165
39166 2007-02-01  Karl Berry  <karl@gnu.org>
39167
39168         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39169
39170 2007-02-01  Bruno Haible  <bruno@clisp.org>
39171
39172         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39173         renamings.
39174
39175 2007-02-01  Eric Blake  <ebb9@byu.net>
39176
39177         * modules/regex (Depends-on): Revert dependence on mempcpy.
39178         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39179         module's definition of mempcpy.
39180         Reported by Paul Eggert.
39181
39182 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39183
39184         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39185         the symbol XYZ before redefining it.  This fixes a problem with
39186         programs that don't use XYZ, when compiled on systems that define
39187         XYZ to something else.
39188
39189 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39190
39191         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39192         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39193         writeable to group or other and (2) is intended to have a special
39194         mode bit that is set or cleared.  In such a case, the directory
39195         should be neither group- nor other-writeable until the special
39196         mode bits are right.
39197
39198 2007-01-31  Eric Blake  <ebb9@byu.net>
39199
39200         * modules/mountlist (Depends-on): Add strstr.
39201
39202         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39203         bug.
39204         * modules/string (Makefile.am): Remove redundant replacement.
39205         * modules/regex (Depends-on): Add mempcpy.
39206
39207 2007-01-31  Bruno Haible  <bruno@clisp.org>
39208
39209         New module description field 'Link'.
39210         * gnulib-tool (func_usage): Document --extract-link-directive.
39211         (sed_extract_prog): Recognize 'Link' directive.
39212         (func_get_link_directive): New function.
39213         (func_import): Show summary of link directives.
39214         Handle --extract-link-directive option.
39215         * modules/acl (Link): New section.
39216         * modules/clock-time (Link): New section.
39217         * modules/euidaccess (Link): New section.
39218         * modules/gettext (Link): New section.
39219         * modules/iconv (Link): New section.
39220         * modules/lock (Link): New section.
39221         * modules/nanosleep (Link): New section.
39222         * modules/readline (Link): New section.
39223
39224 2007-01-27  Bruno Haible  <bruno@clisp.org>
39225
39226         Enforce the use of gnulib modules for unportable <string.h> functions.
39227         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39228         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39229         (gl_HEADER_STRING_H_BODY): Require it.
39230         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39231         the symbol XYZ to one that gives a link error.
39232         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39233         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39234         * modules/mempcpy (configure.ac): Likewise.
39235         * modules/memrchr (configure.ac): Likewise.
39236         * modules/stpcpy (configure.ac): Likewise.
39237         * modules/stpncpy (configure.ac): Likewise.
39238         * modules/strcase (configure.ac): Likewise.
39239         * modules/strcasestr (configure.ac): Likewise.
39240         * modules/strchrnul (configure.ac): Likewise.
39241         * modules/strdup (configure.ac): Likewise.
39242         * modules/strndup (configure.ac): Likewise.
39243         * modules/strnlen (configure.ac): Likewise.
39244         * modules/strpbrk (configure.ac): Likewise.
39245         * modules/strsep (configure.ac): Likewise.
39246         * modules/strstr (configure.ac): Likewise.
39247         * modules/strtok_r (configure.ac): Likewise.
39248
39249 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39250
39251         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39252
39253 2007-01-30  Jim Meyering  <jim@meyering.net>
39254
39255         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39256
39257 2007-01-29  Bruno Haible  <bruno@clisp.org>
39258
39259         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39260         * lib/execute.c: Likewise.
39261         * lib/pipe.c: Likewise.
39262         * lib/printf-args.h: Likewise.
39263         * lib/printf-args.c: Likewise.
39264         * lib/printf-parse.c: Likewise.
39265         * lib/vasnprintf.c: Likewise.
39266
39267 2007-01-29  Eric Blake  <ebb9@byu.net>
39268
39269         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39270         declaration.
39271
39272 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39273
39274         * lib/strptime.h (strptime): Use 'restrict' for args where
39275         POSIX requires this.
39276         * lib/strptime.c (strptime): Likewise.
39277         Change license notice from LGPL to GPL, since gnulib-tool will
39278         change this as needed.
39279         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39280         defined.
39281         Include "strptime.h" first, to check interface.
39282         Do not #undef _LIBC and _NL_CURRENT.
39283         Do not include <stdlib.h>; no longer needed.
39284         Include "time_r.h" and declare ptime_locale_status
39285         only if _LIBC is not defined.
39286         (__P): Remove unused macro.
39287         (match_string): Bring back glibc version, but use it only if _LIBC
39288         is defined.
39289         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39290         Remove unnecessary assertion and abort() call.
39291         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39292         * m4/strptime.m4: Fix serial number comment.
39293         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39294         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39295         (Depends-on): Add time_r.
39296
39297 2007-01-29  Bruno Haible  <bruno@clisp.org>
39298
39299         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39300         strptime.
39301         * modules/strptime (Depends-on): Add stdbool.
39302         * lib/strptime.h: Include <time.h> always. Add comments.
39303
39304 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39305
39306         * modules/strptime: New file.
39307         * lib/strptime.h: New file.
39308         * lib/strptime.c: New file.
39309         * m4/strptime.m4: New file.
39310
39311 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39312
39313         * MODULES.html.sh: New module mpsort.
39314         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39315
39316         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39317         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39318         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39319         All uses changed.
39320         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39321         All uses changed.
39322         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39323         to _Restrict_.
39324         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39325         the parameter matches the prototype.
39326
39327 2007-01-28  Jim Meyering  <jim@meyering.net>
39328
39329         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39330         sys/time.h here, reverting that part of the previous patch:
39331         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39332
39333 2007-01-28  Bruno Haible  <bruno@clisp.org>
39334
39335         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39336         value of $(SYS_TIME_H).
39337         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39338         remove it conditionally, too. [added by Jim Meyering]
39339         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39340         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39341         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39342         GETTIMEOFDAY_REPLACEMENT to 1.
39343
39344 2007-01-28  Bruno Haible  <bruno@clisp.org>
39345
39346         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39347         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39348         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39349         Set UNISTD_H instead of UNISTD_H2.
39350         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39351
39352 2007-01-28  Bruno Haible  <bruno@clisp.org>
39353
39354         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39355         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39356
39357 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39358
39359         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39360         (func_create_testdir): Ensure C locale for `grep' and `tr'
39361         character ranges.
39362         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39363         ACLOCAL_AMFLAGS parsing state machine.
39364
39365 2007-01-27  Bruno Haible  <bruno@clisp.org>
39366
39367         * modules/unistr/base: Update.
39368
39369 2007-01-27  Bruno Haible  <bruno@clisp.org>
39370
39371         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39372         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39373         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39374         modules/unistr/u32-mbtouc.
39375         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39376         * lib/unistr.h: Update.
39377         * lib/linebreak.c: Update.
39378         * modules/unistr/u32-mbtouc: Renamed from
39379         modules/unistr/u32-mbtouc-safe.
39380         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39381         * lib/unistr.h: Update.
39382         * lib/unistr/u32-to-u8.c: Update.
39383         * lib/unistr/u32-to-u16.c: Update.
39384
39385 2007-01-27  Bruno Haible  <bruno@clisp.org>
39386
39387         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39388         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39389         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39390         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39391         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39392         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39393         modules/unistr/u16-mbtouc.
39394         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39395         * lib/unistr.h: Update.
39396         * lib/linebreak.c: Update.
39397         * modules/linebreak: Update.
39398         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39399         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39400         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39401         * modules/unistr/u16-mbtouc: Renamed from
39402         modules/unistr/u16-mbtouc-safe.
39403         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39404         * lib/unistr.h: Update.
39405         * lib/unistr/u16-to-u8.c: Update.
39406         * modules/unistr/u16-to-u8: Update.
39407         * lib/unistr/u16-to-u32.c: Update.
39408         * modules/unistr/u16-to-u32: Update.
39409
39410 2007-01-27  Bruno Haible  <bruno@clisp.org>
39411
39412         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39413         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39414         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39415         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39416         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39417         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39418         modules/unistr/u8-mbtouc.
39419         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39420         * lib/unistr.h: Update.
39421         * lib/striconveh.c: Update.
39422         * modules/striconveh: Update.
39423         * lib/linebreak.c: Update.
39424         * modules/linebreak: Update.
39425         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39426         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39427         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39428         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39429         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39430         * lib/unistr.h: Update.
39431         * lib/striconveh.c: Update.
39432         * modules/striconveh: Update.
39433         * lib/unistr/u8-to-u16.c: Update.
39434         * modules/unistr/u8-to-u16: Update.
39435         * lib/unistr/u8-to-u32.c: Update.
39436         * modules/unistr/u8-to-u32: Update.
39437
39438 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39439
39440         Sync from Libtool.
39441         * lib/argz.c: Do not include strings.h nor memory.h, include
39442         string.h unconditionally.  Patch by Simon Josefsson.
39443
39444 2007-01-27  Bruno Haible  <bruno@clisp.org>
39445
39446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39447         from gl_HEADER_STRING_H_BODY.
39448         (gl_HEADER_STRING_H_BODY): Require it.
39449         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39450         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39451         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39452         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39453         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39454         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39456         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39457         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39458         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39459         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39460         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39461         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39462         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39463         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39464
39465 2007-01-27  Bruno Haible  <bruno@clisp.org>
39466
39467         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39468         check_PROGRAMS into noinst_PROGRAMS.
39469         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39470         check_PROGRAMS in this case.
39471         (func_import): Set for_test to false.
39472         (func_create_testdir): Set for_test to true.
39473
39474 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39475             Bruno Haible  <bruno@clisp.org>
39476
39477         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39478         (Depends-on): Add string.
39479         (Includes): Use <string.h> instead of strcasestr.h.
39480         * modules/string (Makefile.am): Also substitute the value of
39481         REPLACE_STRCASESTR.
39482         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39483         assume strcasestr is declared in <string.h> not <strings.h>. Also
39484         set REPLACE_STRCASESTR.
39485         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39486         REPLACE_STRCASESTR.
39487         * lib/strcasestr.h: Remove file.
39488         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39489         * lib/string_.h (strcasestr): New declaration.
39490
39491 2007-01-27  Bruno Haible  <bruno@clisp.org>
39492
39493         * lib/string_.h: Use 'extern'.
39494
39495 2007-01-27  Jim Meyering  <jim@meyering.net>
39496
39497         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39498         of set-but-not-used local, "q".
39499
39500         * lib/mempcpy.c: Include <config.h> before <string.h>.
39501         This fixes a compilation error on HP-UX, due to the system's
39502         "restrict"-using mempcpy prototype.
39503
39504 2007-01-26  Bruno Haible  <bruno@clisp.org>
39505
39506         Small optimization.
39507         * lib/javacomp.c: Include c-strstr.h.
39508          (is_envjavac_gcj): Use c_strstr instead of strstr.
39509         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39510
39511 2007-01-26  Bruno Haible  <bruno@clisp.org>
39512
39513         * MODULES.html.sh (Unicode string functions): Add the new modules.
39514
39515         * modules/uniconv/u32-strconv-to-locale: New file.
39516         * lib/uniconv/u32-strconv-to-locale.c: New file.
39517
39518         * modules/uniconv/u16-strconv-to-locale: New file.
39519         * lib/uniconv/u16-strconv-to-locale.c: New file.
39520
39521         * modules/uniconv/u8-strconv-to-locale: New file.
39522         * lib/uniconv/u8-strconv-to-locale.c: New file.
39523
39524         * modules/uniconv/u32-strconv-from-locale: New file.
39525         * lib/uniconv/u32-strconv-from-locale.c: New file.
39526
39527         * modules/uniconv/u16-strconv-from-locale: New file.
39528         * lib/uniconv/u16-strconv-from-locale.c: New file.
39529
39530         * modules/uniconv/u8-strconv-from-locale: New file.
39531         * lib/uniconv/u8-strconv-from-locale.c: New file.
39532
39533         * modules/uniconv/u32-strconv-to-enc: New file.
39534         * lib/uniconv/u32-strconv-to-enc.c: New file.
39535         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39536         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39537
39538         * modules/uniconv/u16-strconv-to-enc: New file.
39539         * lib/uniconv/u16-strconv-to-enc.c: New file.
39540         * lib/uniconv/u-strconv-to-enc.h: New file.
39541         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39542         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39543
39544         * modules/uniconv/u8-strconv-to-enc: New file.
39545         * lib/uniconv/u8-strconv-to-enc.c: New file.
39546         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39547         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39548
39549         * modules/uniconv/u32-strconv-from-enc: New file.
39550         * lib/uniconv/u32-strconv-from-enc.c: New file.
39551         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39552         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39553
39554         * modules/uniconv/u16-strconv-from-enc: New file.
39555         * lib/uniconv/u16-strconv-from-enc.c: New file.
39556         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39557         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39558
39559         * modules/uniconv/u8-strconv-from-enc: New file.
39560         * lib/uniconv/u8-strconv-from-enc.c: New file.
39561         * lib/uniconv/u-strconv-from-enc.h: New file.
39562         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39563         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39564
39565         * modules/uniconv/u32-conv-from-enc: New file.
39566         * lib/uniconv/u32-conv-from-enc.c: New file.
39567         * modules/uniconv/u32-conv-from-enc-tests: New file.
39568         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39569
39570         * modules/uniconv/u16-conv-from-enc: New file.
39571         * lib/uniconv/u16-conv-from-enc.c: New file.
39572         * lib/uniconv/u-conv-from-enc.h: New file.
39573         * modules/uniconv/u16-conv-from-enc-tests: New file.
39574         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39575
39576         * modules/uniconv/u8-conv-from-enc: New file.
39577         * lib/uniconv/u8-conv-from-enc.c: New file.
39578         * modules/uniconv/u8-conv-from-enc-tests: New file.
39579         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39580
39581         * modules/uniconv/base: New file.
39582         * lib/uniconv.h: New file.
39583
39584 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39585
39586         * doc/gnulib-tool.texi (Initial import): Update to match current
39587         behavior with strdup module.
39588         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39589         * lib/memmem.h: Remove; all uses removed.  This is now done
39590         by <string.h>.
39591         * lib/mempcpy.h: Likewise.
39592         * lib/memrchr.h: Likewise.
39593         * lib/stpcpy.h: Likewise.
39594         * lib/stpncpy.h: Likewise.
39595         * lib/strcase.h: Likewise.
39596         * lib/strchrnul.h: Likewise.
39597         * lib/strdup.h: Likewise.
39598         * lib/strndup.h: Likewise.
39599         * lib/strnlen.h: Likewise.
39600         * lib/strpbrk.h: Likewise.
39601         * lib/strsep.h: Likewise.
39602         * lib/strstr.h: Likewise.
39603         * lib/strtok_r.h: Likewise.
39604         * lib/string_.h: New file.
39605         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39606         Rely on <string.h> instead.
39607         * lib/canon-host.c: Likewise.
39608         * lib/chdir-long.c: Likewise.
39609         * lib/concatpath.c: Likewise.
39610         * lib/exclude.c: Likewise.
39611         * lib/fchdir.c: Likewise.
39612         * lib/getaddrinfo.c: Likewise.
39613         * lib/getcwd.c: Likewise.
39614         * lib/getsubopt.c: Likewise.
39615         * lib/glob.c: Likewise.
39616         * lib/hard-locale.c: Likewise.
39617         * lib/iconvme.c: Likewise.
39618         * lib/javacomp.c: Likewise.
39619         * lib/mempcpy.c: Likewise.
39620         * lib/memrchr.c: Likewise.
39621         * lib/regex_internal.h: Likewise.
39622         * lib/stpncpy.c: Likewise.
39623         * lib/strcasecmp.c: Likewise.
39624         * lib/strchrnul.c: Likewise.
39625         * lib/strdup.c: Likewise.
39626         * lib/striconv.c: Likewise.
39627         * lib/striconveh.c: Likewise.
39628         * lib/striconveha.c: Likewise.
39629         * lib/strncasecmp.c: Likewise.
39630         * lib/strndup.c: Likewise.
39631         * lib/strnlen.c: Likewise.
39632         * lib/strsep.c: Likewise.
39633         * lib/strstr.c: Likewise.
39634         * lib/strtok_r.c: Likewise.
39635         * lib/userspec.c: Likewise.
39636         * lib/w32spawn.h: Likewise.
39637         * lib/xstrndup.c: Likewise.
39638         * lib/mountlist.c (strstr): Remove decl.
39639         * m4/string_h.m4: New file.
39640         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39641         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39642         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39643         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39644         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39645         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39646         Set REPLACE_STRCASECMP if necessary.
39647         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39648         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39649         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39650         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39651         HAVE_DECL_STRDUP if necessary.
39652         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39653         since gl_FUNC_STRNDUP does that now.
39654         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39655         Check for decl here...
39656         (gl_PREREQ_STRNLEN): ... not here.
39657         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39658         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39659         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39660         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39661         necessary.
39662         * modules/string: New file.
39663         * modules/memmem (Files): Remove special-purpose include file.
39664         (Depends-on): Add string.
39665         (Include): Include <string.h>, not the removed file.
39666         * modules/mempcpy: Likewise.
39667         * modules/memrchr: Likewise.
39668         * modules/stpcpy: Likewise.
39669         * modules/stpncpy: Likewise.
39670         * modules/strcase: Likewise.
39671         * modules/strchrnul: Likewise.
39672         * modules/strdup: Likewise.
39673         * modules/strndup: Likewise.
39674         * modules/strnlen: Likewise.
39675         * modules/strpbrk: Likewise.
39676         * modules/strsep: Likewise.
39677         * modules/strstr: Likewise.
39678         * modules/strtok_r: Likewise.
39679         * tests/test-dirname.c: Don't include "strdup.h", since
39680         <string.h> now suffices.
39681         * tests/test-memmem.c: Don't include "memmem.h", since
39682         <string.h> now suffices.
39683
39684 2007-01-25  Bruno Haible  <bruno@clisp.org>
39685
39686         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39687         *resultp is 0.
39688
39689         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39690         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39691         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39692         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39693
39694         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39695         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39696         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39697         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39698         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39699         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39700
39701 2007-01-24  Bruno Haible  <bruno@clisp.org>
39702
39703         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39704         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39705         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39706         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39707         gl_FUNC_FTS_CORE.
39708         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39709         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39710         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39711         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39712         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39713         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39714         gl_FUNC_FCHOWNAT.
39715         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39716         gl_FUNC_STRFTIME.
39717         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39718         Reported by Ralf Wildenhues.
39719
39720 2007-01-24  Bruno Haible  <bruno@clisp.org>
39721
39722         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39723         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39724         gl_GETADDRINFO.
39725         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39726         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39727         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39728
39729 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39730
39731         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39732         Don't use 'exit'; just return from 'main'.
39733         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39734
39735         * lib/fnmatch_.h: Readjust white space and comments to match
39736         glibc, to avoid spurious diffs.
39737
39738 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39739
39740         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39741         2004-12-01 change by Jakub Jelinek, since this code won't compile
39742         if !LIBC.  Problem reported by Bob Proulx.
39743
39744 2007-01-23  Bruno Haible  <bruno@clisp.org>
39745
39746         * lib/striconveh.c: Include c-strcaseeq.h.
39747         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39748         * modules/striconveh (Depends-on): Add c-strcaseeq.
39749
39750 2007-01-23  Bruno Haible  <bruno@clisp.org>
39751
39752         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39753
39754         * modules/c-strcaseeq: New file.
39755         * lib/c-strcaseeq.h: New file.
39756
39757         * modules/streq: New file.
39758         * lib/streq.h: New file.
39759
39760 2007-01-23  Bruno Haible  <bruno@clisp.org>
39761
39762         * modules/striconveha-tests: New file.
39763         * tests/test-striconveha.c: New file.
39764
39765         * lib/striconveha.h: Include <stdbool.h>.
39766         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39767         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39768         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39769         (mem_iconveha): New function.
39770         (str_iconveha_notranslit): Renamed from str_iconveha.
39771         (str_iconveha): New function.
39772         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39773         c-strcase.
39774
39775 2007-01-23  Bruno Haible  <bruno@clisp.org>
39776
39777         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39778         encodings without forgiving before trying any encoding with handler.
39779         (str_iconveha): Try all encodings without forgiving before trying any
39780         encoding with handler.
39781
39782 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39783
39784         Import the following changes from libc.
39785
39786         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39787
39788         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39789
39790         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39791
39792         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39793         normal_bracket label.
39794
39795         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39796
39797         [BZ #361]
39798         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39799         to normal_bracket after fetching the next character.
39800
39801 2007-01-22  Bruno Haible  <bruno@clisp.org>
39802
39803         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39804         argument.
39805         * lib/striconveh.c (iconv_carefully_1): New function.
39806         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39807         argument.
39808         (str_cd_iconveh): Update.
39809         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39810         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39811         * tests/test-striconveh.c (MAGIC): New macro.
39812         (new_offsets): New function.
39813         (main): Test call with and without offsets.
39814
39815 2007-01-22  Bruno Haible  <bruno@clisp.org>
39816
39817         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39818         * modules/sys_select (Makefile.am): Likewise.
39819         * modules/sys_socket (Makefile.am): Likewise.
39820         * modules/sys_time (Makefile.am): Likewise.
39821
39822 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39823
39824         * modules/gettimeofday (License): Change from GPL to LGPL, since
39825         gettimeofday is a library function.
39826
39827 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39828
39829         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39830
39831 2007-01-21  Bruno Haible  <bruno@clisp.org>
39832
39833         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39834
39835 2007-01-21  Bruno Haible  <bruno@clisp.org>
39836
39837         * modules/striconveha: New file.
39838         * lib/striconveha.h: New file.
39839         * lib/striconveha.c: New file.
39840         * MODULES.html.sh (Internationalization functions): Add striconveha.
39841         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39842         string.
39843         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39844
39845 2007-01-21  Bruno Haible  <bruno@clisp.org>
39846
39847         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39848         * lib/striconveh.c (str_iconveh): Likewise.
39849
39850 2007-01-21  Bruno Haible  <bruno@clisp.org>
39851
39852         * lib/striconveh.h (mem_iconveh): New declaration.
39853         * lib/striconveh.c (mem_iconveh): New function.
39854         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39855
39856 2007-01-21  Bruno Haible  <bruno@clisp.org>
39857
39858         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39859
39860         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39861         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39862         original result buffer.
39863         (str_cd_iconveh): Update.
39864         * tests/test-striconveh.c (main): Update.
39865
39866         * lib/striconv.h (mem_cd_iconv): Change specification.
39867         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39868         result buffer.
39869         (str_cd_iconv): Update.
39870         * tests/test-striconv.c (main): Update.
39871
39872 2007-01-21  Bruno Haible  <bruno@clisp.org>
39873
39874         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39875
39876 2007-01-20  Jim Meyering  <jim@meyering.net>
39877
39878         * lib/userspec.c (parse_with_separator): If a user or group string
39879         starts with "+", skip the corresponding name-to-ID look-up, since
39880         such a look-up must fail: user and group names may not include "+".
39881
39882 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39883
39884         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39885         since we now assume the sys_time module.
39886         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39887         check for sys/time.h; no longer needed.
39888         * modules/poll (Depends-on): Depend on sys_time.
39889
39890 2007-01-18  Bruno Haible  <bruno@clisp.org>
39891
39892         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39893         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39894
39895         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39896         gettimeofday.
39897
39898         * tests/test-gettimeofday.c: Include <time.h>.
39899         (dummy): Remove variable.
39900
39901         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39902         gl_HEADER_SYS_TIME_H.
39903         (gl_HEADER_SYS_TIME_H): New macro.
39904
39905         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39906         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39907         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39908         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39909         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39910         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39911         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39912         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39913         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39914         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39915         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39916
39917         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39918         last change; it caused a compilation error when cross-compiling to
39919         Cygwin.
39920
39921 2007-01-18  Jim Meyering  <jim@meyering.net>
39922
39923         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39924         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39925         than the race-prone "test -d sys || mkdir sys".
39926         (configure.ac): Use AC_PROG_MKDIR_P.
39927         * modules/sys_select: Likewise.
39928         * modules/sys_socket: Likewise.
39929         * modules/sys_time: Likewise.
39930
39931 2007-01-18  Eric Blake  <ebb9@byu.net>
39932
39933         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39934         replace gettimeofday.
39935         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39936         name, to avoid infinite recursion.
39937
39938 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39939
39940         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39941         module sys_time.
39942         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39943         assume timespec.h defines struct timeval.
39944         * lib/settime.c: Likewise.
39945         * lib/utimens.c: Likewise.
39946         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39947         since we now assume the gettimeofday module.
39948         * lib/tempname.c (__gen_tempname): Likewise.
39949         * lib/gettimeofday.h: Remove.
39950         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39951         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39952         Include <time.h>, for 'time()'.
39953         (localtime_buffer_addr): Also use this workaround if
39954         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39955         to simplify the uses.  All uses changed.
39956         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39957         that #undef is inside {}, and 'const' follows type name consistently.
39958         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39959         (gettimeofday): Do not use the maximum possible value for
39960         tv->tv_usec, since that might break usages other than ls.c.
39961         Instead, we'll leave ls.c alone.  This undoes today's patch
39962         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39963         we've never observed the problem but might as well keep the
39964         canary.
39965         * lib/nanosleep.c: Include timespec.h first, for interface check.
39966         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39967         now assume the sys_time module.
39968         * lib/tempname.c: Likewise.
39969         * lib/timespec.h: Likewise.
39970         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39971         needed.
39972         * lib/strftime.c: Likewise.
39973         * lib/timespec.h: Likewise.
39974         * lib/posixtm.c: Include posixtm.h first, for interface check.
39975         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39976         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39977         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39978         * lib/sys_time_.h: New file.
39979         * lib/timespec.h (struct timespec): Use long int, not long.
39980         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39981         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39982         Remove obsolescent call to AC_HEADER_TIME.
39983         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39984         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39985         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39986         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39987         Likewise.
39988         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39989         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39990         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39991         into the sys_time module.  Check for gettimeofday just once.
39992         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
39993         for gettimeofday signature to just check the signature.  Merely
39994         compile it, since linking doesn't test signature.  Improve test for
39995         whether gettimeofday.o is actually needed.
39996         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39997         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
39998         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
39999         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40000         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
40001         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
40002         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
40003         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
40004         than worrying about sys/time.h.
40005         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40006         Don't bother worrying about TIME_WITH_SYS_TIME.
40007         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40008         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
40009         * m4/sys_time_h.m4: New file.
40010         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40011         Don't include sys/time.h.  Return from main rather than exiting.
40012         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40013         all uses changed.
40014         * modules/gethrxtime (Depends-on): Add sys_time.
40015         * modules/gettime (Depends-on): Likewise.
40016         * modules/gettimeofday (Depends-on): Likewise.
40017         * modules/nanosleep (Depends-on): Likewise.
40018         * modules/settime (Depends-on): Likewise.
40019         * modules/tempname (Depends-on): Likewise.
40020         * modules/utimens (Depends-on): Likewise.
40021         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40022         (Include:) Change back to <sys/time.h>.
40023         (Maintainer:) Add self.
40024         * modules/sys_time: New file.
40025         * modules/tempname (Depends-on): Add gettimeofday.
40026         * tests/test-gettimeofday.c: Include <sys/time.h>
40027         rather than gettimeofday.h.
40028
40029 2007-01-17  Bruno Haible  <bruno@clisp.org>
40030
40031         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40032         the license default to GPL.
40033         (func_create_testdir): Don't complain if a module is LGPL and its
40034         tests module depends on GPLed modules.
40035
40036 2007-01-17  Bruno Haible  <bruno@clisp.org>
40037
40038         * lib/gettimeofday.c (gettimeofday): Add code for the case
40039         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40040         maximum possible value for tv->tv_usec, rather than the minimum one.
40041
40042 2005-10-08  Martin Lambers  <marlam@marlam.de>
40043 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40044 2007-01-16  Bruno Haible  <bruno@clisp.org>
40045
40046         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40047         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40048         gl_FUNC_GETTIMEOFDAY.
40049         (Include): Add gettimeofday.h.
40050         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40051         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40052         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40053         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40054         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40055         * lib/gettimeofday.h: New file.
40056         * lib/gettimeofday.c: Include <sys/timeb.h>.
40057         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40058         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40059         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40060         fall back on time().
40061
40062         * tests/test-gettimeofday.c: New file.
40063         * modules/gettimeofday-tests: New file.
40064
40065 2007-01-16  Eric Blake  <ebb9@byu.net>
40066
40067         * modules/fnmatch (Depends-on): Depend on wchar.
40068         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40069         * m4/fnmatch.m4: Likewise.
40070         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40071         * m4/mbchar.m4: Likewise.
40072         * modules/mbswidth (Depends-on): Depend on wchar.
40073         * lib/mbswidth.c: Assume <wchar.h>.
40074         * m4/mbswidth.m4: Likewise.
40075         * modules/quotearg (Depends-on): Depend on wchar.
40076         * lib/quotearg.c: Assume <wchar.h>.
40077         * m4/quotearg.m4: Likewise.
40078         * modules/regex (Depends-on): Depend on wchar.
40079         * lib/regex_internal.h: Assume <wchar.h>.
40080         * m4/regex.m4: Likewise.
40081         * modules/stdint (Depends-on): Depend on wchar.
40082         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40083         * m4/stdint.m4: Likewise.
40084         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40085         * modules/strftime (Depends-on): Depend on wchar.
40086         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40087         * modules/strtol (Depends-on): Depend on wchar.
40088         * lib/strtol.c: Assume <wchar.h>.
40089         * modules/wcwidth (Depends-on): Depend on wchar.
40090         * lib/wcwidth.h: Assume <wchar.h>.
40091         * m4/wcwidth.m4: Likewise.
40092
40093 2007-01-16  Bruno Haible  <bruno@clisp.org>
40094
40095         * modules/csharpexec-script: New, created from...
40096         * modules/csharpexec: ... this.
40097
40098 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40099
40100         * modules/javaexec-script: New, created from...
40101         * modules/javaexec: ... this.
40102
40103 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40104
40105         * modules/poll (Dependencies): Add sys_select.
40106
40107 2007-01-15  Jim Meyering  <jim@meyering.net>
40108
40109         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40110         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40111         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40112         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40113
40114 2007-01-15  Bruno Haible  <bruno@clisp.org>
40115
40116         * modules/striconveh: New file.
40117         * lib/striconveh.h: New file.
40118         * lib/striconveh.c: New file.
40119         * MODULES.html.sh (Internationalization functions): Add striconveh.
40120
40121         * modules/striconveh-tests: New file.
40122         * tests/test-striconveh.c: New file.
40123
40124 2007-01-15  Bruno Haible  <bruno@clisp.org>
40125
40126         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40127         not from GNU libiconv or GNU libc.
40128
40129 2007-01-15  Bruno Haible  <bruno@clisp.org>
40130
40131         * doc/gnulib-intro.texi (Copyright): Explain the different license
40132         terms for module descriptions, autoconf macros, tests, documentation.
40133
40134 2007-01-14  Bruno Haible  <bruno@clisp.org>
40135
40136         * modules/striconv-tests: New file.
40137         * tests/test-striconv.c: New file.
40138
40139 2007-01-14  Bruno Haible  <bruno@clisp.org>
40140
40141         * modules/iconv-tests: New file.
40142         * tests/test-iconv.c: New file.
40143
40144 2007-01-14  Bruno Haible  <bruno@clisp.org>
40145
40146         * gnulib-tool (func_get_license): For test modules, use the license of
40147         the main module.
40148
40149 2007-01-14  Bruno Haible  <bruno@clisp.org>
40150
40151         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40152         if iconv is found to exist.
40153
40154 2007-01-14  Bruno Haible  <bruno@clisp.org>
40155
40156         * modules/c-ctype-tests: New file.
40157         * tests/test-c-ctype.c: New file.
40158
40159 2007-01-14  Bruno Haible  <bruno@clisp.org>
40160
40161         * modules/binary-io-tests: New file.
40162         * tests/test-binary-io.sh: New file.
40163         * tests/test-binary-io.c: New file.
40164
40165 2007-01-14  Bruno Haible  <bruno@clisp.org>
40166
40167         * modules/array-oset-tests: New file.
40168         * tests/test-array_oset.c: New file.
40169
40170 2007-01-14  Bruno Haible  <bruno@clisp.org>
40171
40172         * modules/array-list-tests: New file.
40173         * tests/test-array_list.c: New file.
40174
40175 2007-01-14  Bruno Haible  <bruno@clisp.org>
40176
40177         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40178         and make.
40179         Reported by Simon Josefsson in
40180         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40181
40182 2007-01-14  Bruno Haible  <bruno@clisp.org>
40183
40184         * modules/allocsa-tests: New file.
40185         * tests/test-allocsa.c: New file.
40186
40187 2007-01-14  Bruno Haible  <bruno@clisp.org>
40188
40189         * modules/fchdir (Depends-on): Add absolute-header.
40190         * modules/unistd (Depends-on): Likewise.
40191
40192 2006-12-30  Bruno Haible  <bruno@clisp.org>
40193
40194         * modules/fchdir: New file.
40195         * modules/unistd (Files): Add lib/unistd_.h.
40196         (Makefile.am): Generate unistd.h from unistd_.h.
40197         * lib/fchdir.c: New file.
40198         * lib/dirent_.h: New file.
40199         * lib/unistd_.h: New file.
40200         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40201         * m4/fchdir.m4: New file.
40202         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40203         (gl_HEADER_UNISTD): Invoke it.
40204         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40205         function.
40206         * lib/backupfile.c (opendir, closedir): Undefine.
40207         * lib/chown.c (open, close): Undefine.
40208         * lib/clean-temp.c (open, close): Undefine.
40209         * lib/copy-file.c (open, close): Undefine.
40210         * lib/execute.c (open, close): Undefine.
40211         * lib/fsusage.c (open, close): Undefine.
40212         * lib/gc-gnulib.c (open, close): Undefine.
40213         * lib/getcwd.c (opendir, closedir): Undefine.
40214         * lib/glob.c (opendir, closedir): Undefine.
40215         * lib/javacomp.c (open, close): Undefine.
40216         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40217         * lib/openat-proc.c (open, close): Undefine.
40218         * lib/pagealign_alloc.c (open, close): Undefine.
40219         * lib/pipe.c (open, close): Undefine.
40220         * lib/progreloc.c (open, close): Undefine.
40221         * lib/savedir.c (opendir, closedir): Undefine.
40222         * lib/utime.c (open, close): Undefine.
40223         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40224
40225 2007-01-10  Bruno Haible  <bruno@clisp.org>
40226
40227         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40228
40229 2007-01-12  Eric Blake  <ebb9@byu.net>
40230
40231         Provide a robust <wchar.h>.  Further simplifications are now
40232         possible in other modules, but not included here.
40233         * modules/wchar: New module.
40234         * m4/wchar.m4: New file.
40235         * lib/wchar_.h: Likewise.
40236         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40237         of the new module.
40238         * MODULES.html.sh (Extended multibyte and wide character utilities):
40239         New section.
40240
40241 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40242
40243         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40244         to a reasonable default for memory allocation.
40245         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40246         file system that reports garbage st_size values for symlinks.
40247         Problem reported by Liyang Hu.
40248
40249 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40250
40251         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40252         Emacs .#* auto-save files).
40253
40254 2007-01-11  Bruno Haible  <bruno@clisp.org>
40255
40256         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40257         directory.
40258
40259 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40260
40261         Use @...@ consistently in lib/wctype_.h.
40262         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40263         on it being set to 1 or 0.
40264         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40265         go back to AC_SUBSTing it.
40266         * modules/wctype (Makefile.am): Undo previous change.
40267
40268 2007-01-10  Eric Blake  <ebb9@byu.net>
40269
40270         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40271         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40272         * modules/wctype (Makefile.am): Likewise.
40273         Reported by Chris McGuire.
40274
40275 2007-01-10  Jim Meyering  <jim@meyering.net>
40276
40277         fts.c: a small readability/maintainability improvement
40278         * lib/fts.c (fts_read): Make this code slightly more readable and
40279         maintainable by hoisting the "sp->fts_cur = p" assignments to
40280         immediately follow the statements that set P.  Derived from
40281         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40282
40283 2007-01-10  Eric Blake  <ebb9@byu.net>
40284
40285         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40286         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40287         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40288         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40289         Reported by Chris McGuire.
40290
40291 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40292
40293         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40294         in sed script.
40295
40296 2007-01-09  Bruno Haible  <bruno@clisp.org>
40297
40298         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40299         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40300         variables.
40301         (func_module): Use them.
40302
40303 2007-01-09  Bruno Haible  <bruno@clisp.org>
40304
40305         * modules/unistr/base: New file.
40306         * lib/unistr.h: New file.
40307
40308         * modules/unistr/u8-to-u16: New file.
40309         * lib/unistr/u8-to-u16.c: New file.
40310
40311         * modules/unistr/u8-to-u32: New file.
40312         * lib/unistr/u8-to-u32.c: New file.
40313
40314         * modules/unistr/u16-to-u8: New file.
40315         * lib/unistr/u16-to-u8.c: New file.
40316
40317         * modules/unistr/u16-to-u32: New file.
40318         * lib/unistr/u16-to-u32.c: New file.
40319
40320         * modules/unistr/u32-to-u8: New file.
40321         * lib/unistr/u32-to-u8.c: New file.
40322
40323         * modules/unistr/u32-to-u16: New file.
40324         * lib/unistr/u32-to-u16.c: New file.
40325
40326         * modules/unistr/u8-check: New file.
40327         * modules/unistr/u16-check: New file.
40328         * modules/unistr/u32-check: New file.
40329         * lib/unistr/u8-check.c: New file.
40330         * lib/unistr/u16-check.c: New file.
40331         * lib/unistr/u32-check.c: New file.
40332
40333         * modules/unistr/u8-chr: New file.
40334         * modules/unistr/u16-chr: New file.
40335         * modules/unistr/u32-chr: New file.
40336         * lib/unistr/u8-chr.c: New file.
40337         * lib/unistr/u16-chr.c: New file.
40338         * lib/unistr/u32-chr.c: New file.
40339
40340         * modules/unistr/u8-cmp: New file.
40341         * modules/unistr/u16-cmp: New file.
40342         * modules/unistr/u32-cmp: New file.
40343         * lib/unistr/u8-cmp.c: New file.
40344         * lib/unistr/u16-cmp.c: New file.
40345         * lib/unistr/u32-cmp.c: New file.
40346
40347         * modules/unistr/u8-cpy: New file.
40348         * modules/unistr/u16-cpy: New file.
40349         * modules/unistr/u32-cpy: New file.
40350         * lib/unistr/u8-cpy.c: New file.
40351         * lib/unistr/u16-cpy.c: New file.
40352         * lib/unistr/u32-cpy.c: New file.
40353         * lib/unistr/u-cpy.h: New file.
40354
40355         * modules/unistr/u8-cpy-alloc: New file.
40356         * modules/unistr/u16-cpy-alloc: New file.
40357         * modules/unistr/u32-cpy-alloc: New file.
40358         * lib/unistr/u8-cpy-alloc.c: New file.
40359         * lib/unistr/u16-cpy-alloc.c: New file.
40360         * lib/unistr/u32-cpy-alloc.c: New file.
40361         * lib/unistr/u-cpy-alloc.h: New file.
40362
40363         * modules/unistr/u8-endswith: New file.
40364         * modules/unistr/u16-endswith: New file.
40365         * modules/unistr/u32-endswith: New file.
40366         * lib/unistr/u8-endswith.c: New file.
40367         * lib/unistr/u16-endswith.c: New file.
40368         * lib/unistr/u32-endswith.c: New file.
40369         * lib/unistr/u-endswith.h: New file.
40370
40371         * modules/unistr/u8-mblen: New file.
40372         * modules/unistr/u16-mblen: New file.
40373         * modules/unistr/u32-mblen: New file.
40374         * lib/unistr/u8-mblen.c: New file.
40375         * lib/unistr/u16-mblen.c: New file.
40376         * lib/unistr/u32-mblen.c: New file.
40377
40378         * modules/unistr/u8-mbtouc: New file.
40379         * modules/unistr/u16-mbtouc: New file.
40380         * modules/unistr/u32-mbtouc: New file.
40381         * lib/unistr/u8-mbtouc.c: New file.
40382         * lib/unistr/u16-mbtouc.c: New file.
40383         * lib/unistr/u32-mbtouc.c: New file.
40384
40385         * modules/unistr/u8-mbtouc-safe: New file.
40386         * modules/unistr/u16-mbtouc-safe: New file.
40387         * modules/unistr/u32-mbtouc-safe: New file.
40388         * lib/unistr/u8-mbtouc-safe.c: New file.
40389         * lib/unistr/u16-mbtouc-safe.c: New file.
40390         * lib/unistr/u32-mbtouc-safe.c: New file.
40391
40392         * modules/unistr/u8-move: New file.
40393         * modules/unistr/u16-move: New file.
40394         * modules/unistr/u32-move: New file.
40395         * lib/unistr/u8-move.c: New file.
40396         * lib/unistr/u16-move.c: New file.
40397         * lib/unistr/u32-move.c: New file.
40398         * lib/unistr/u-move.h: New file.
40399
40400         * modules/unistr/u8-next: New file.
40401         * modules/unistr/u16-next: New file.
40402         * modules/unistr/u32-next: New file.
40403         * lib/unistr/u8-next.c: New file.
40404         * lib/unistr/u16-next.c: New file.
40405         * lib/unistr/u32-next.c: New file.
40406
40407         * modules/unistr/u8-prev: New file.
40408         * modules/unistr/u16-prev: New file.
40409         * modules/unistr/u32-prev: New file.
40410         * lib/unistr/u8-prev.c: New file.
40411         * lib/unistr/u16-prev.c: New file.
40412         * lib/unistr/u32-prev.c: New file.
40413
40414         * modules/unistr/u8-set: New file.
40415         * modules/unistr/u16-set: New file.
40416         * modules/unistr/u32-set: New file.
40417         * lib/unistr/u8-set.c: New file.
40418         * lib/unistr/u16-set.c: New file.
40419         * lib/unistr/u32-set.c: New file.
40420         * lib/unistr/u-set.h: New file.
40421
40422         * modules/unistr/u8-startswith: New file.
40423         * modules/unistr/u16-startswith: New file.
40424         * modules/unistr/u32-startswith: New file.
40425         * lib/unistr/u8-startswith.c: New file.
40426         * lib/unistr/u16-startswith.c: New file.
40427         * lib/unistr/u32-startswith.c: New file.
40428         * lib/unistr/u-startswith.h: New file.
40429
40430         * modules/unistr/u8-stpcpy: New file.
40431         * modules/unistr/u16-stpcpy: New file.
40432         * modules/unistr/u32-stpcpy: New file.
40433         * lib/unistr/u8-stpcpy.c: New file.
40434         * lib/unistr/u16-stpcpy.c: New file.
40435         * lib/unistr/u32-stpcpy.c: New file.
40436         * lib/unistr/u-stpcpy.h: New file.
40437
40438         * modules/unistr/u8-stpncpy: New file.
40439         * modules/unistr/u16-stpncpy: New file.
40440         * modules/unistr/u32-stpncpy: New file.
40441         * lib/unistr/u8-stpncpy.c: New file.
40442         * lib/unistr/u16-stpncpy.c: New file.
40443         * lib/unistr/u32-stpncpy.c: New file.
40444         * lib/unistr/u-stpncpy.h: New file.
40445
40446         * modules/unistr/u8-strcat: New file.
40447         * modules/unistr/u16-strcat: New file.
40448         * modules/unistr/u32-strcat: New file.
40449         * lib/unistr/u8-strcat.c: New file.
40450         * lib/unistr/u16-strcat.c: New file.
40451         * lib/unistr/u32-strcat.c: New file.
40452         * lib/unistr/u-strcat.h: New file.
40453
40454         * modules/unistr/u8-strchr: New file.
40455         * modules/unistr/u16-strchr: New file.
40456         * modules/unistr/u32-strchr: New file.
40457         * lib/unistr/u8-strchr.c: New file.
40458         * lib/unistr/u16-strchr.c: New file.
40459         * lib/unistr/u32-strchr.c: New file.
40460
40461         * modules/unistr/u8-strcmp: New file.
40462         * modules/unistr/u16-strcmp: New file.
40463         * modules/unistr/u32-strcmp: New file.
40464         * lib/unistr/u8-strcmp.c: New file.
40465         * lib/unistr/u16-strcmp.c: New file.
40466         * lib/unistr/u32-strcmp.c: New file.
40467
40468         * modules/unistr/u8-strcpy: New file.
40469         * modules/unistr/u16-strcpy: New file.
40470         * modules/unistr/u32-strcpy: New file.
40471         * lib/unistr/u8-strcpy.c: New file.
40472         * lib/unistr/u16-strcpy.c: New file.
40473         * lib/unistr/u32-strcpy.c: New file.
40474         * lib/unistr/u-strcpy.h: New file.
40475
40476         * modules/unistr/u8-strcspn: New file.
40477         * modules/unistr/u16-strcspn: New file.
40478         * modules/unistr/u32-strcspn: New file.
40479         * lib/unistr/u8-strcspn.c: New file.
40480         * lib/unistr/u16-strcspn.c: New file.
40481         * lib/unistr/u32-strcspn.c: New file.
40482         * lib/unistr/u-strcspn.h: New file.
40483
40484         * modules/unistr/u8-strdup: New file.
40485         * modules/unistr/u16-strdup: New file.
40486         * modules/unistr/u32-strdup: New file.
40487         * lib/unistr/u8-strdup.c: New file.
40488         * lib/unistr/u16-strdup.c: New file.
40489         * lib/unistr/u32-strdup.c: New file.
40490         * lib/unistr/u-strdup.h: New file.
40491
40492         * modules/unistr/u8-strlen: New file.
40493         * modules/unistr/u16-strlen: New file.
40494         * modules/unistr/u32-strlen: New file.
40495         * lib/unistr/u8-strlen.c: New file.
40496         * lib/unistr/u16-strlen.c: New file.
40497         * lib/unistr/u32-strlen.c: New file.
40498         * lib/unistr/u-strlen.h: New file.
40499
40500         * modules/unistr/u8-strmblen: New file.
40501         * modules/unistr/u16-strmblen: New file.
40502         * modules/unistr/u32-strmblen: New file.
40503         * lib/unistr/u8-strmblen.c: New file.
40504         * lib/unistr/u16-strmblen.c: New file.
40505         * lib/unistr/u32-strmblen.c: New file.
40506
40507         * modules/unistr/u8-strmbtouc: New file.
40508         * modules/unistr/u16-strmbtouc: New file.
40509         * modules/unistr/u32-strmbtouc: New file.
40510         * lib/unistr/u8-strmbtouc.c: New file.
40511         * lib/unistr/u16-strmbtouc.c: New file.
40512         * lib/unistr/u32-strmbtouc.c: New file.
40513
40514         * modules/unistr/u8-strncat: New file.
40515         * modules/unistr/u16-strncat: New file.
40516         * modules/unistr/u32-strncat: New file.
40517         * lib/unistr/u8-strncat.c: New file.
40518         * lib/unistr/u16-strncat.c: New file.
40519         * lib/unistr/u32-strncat.c: New file.
40520         * lib/unistr/u-strncat.h: New file.
40521
40522         * modules/unistr/u8-strncmp: New file.
40523         * modules/unistr/u16-strncmp: New file.
40524         * modules/unistr/u32-strncmp: New file.
40525         * lib/unistr/u8-strncmp.c: New file.
40526         * lib/unistr/u16-strncmp.c: New file.
40527         * lib/unistr/u32-strncmp.c: New file.
40528
40529         * modules/unistr/u8-strncpy: New file.
40530         * modules/unistr/u16-strncpy: New file.
40531         * modules/unistr/u32-strncpy: New file.
40532         * lib/unistr/u8-strncpy.c: New file.
40533         * lib/unistr/u16-strncpy.c: New file.
40534         * lib/unistr/u32-strncpy.c: New file.
40535         * lib/unistr/u-strncpy.h: New file.
40536
40537         * modules/unistr/u8-strnlen: New file.
40538         * modules/unistr/u16-strnlen: New file.
40539         * modules/unistr/u32-strnlen: New file.
40540         * lib/unistr/u8-strnlen.c: New file.
40541         * lib/unistr/u16-strnlen.c: New file.
40542         * lib/unistr/u32-strnlen.c: New file.
40543         * lib/unistr/u-strnlen.h: New file.
40544
40545         * modules/unistr/u8-strpbrk: New file.
40546         * modules/unistr/u16-strpbrk: New file.
40547         * modules/unistr/u32-strpbrk: New file.
40548         * lib/unistr/u8-strpbrk.c: New file.
40549         * lib/unistr/u16-strpbrk.c: New file.
40550         * lib/unistr/u32-strpbrk.c: New file.
40551         * lib/unistr/u-strpbrk.h: New file.
40552
40553         * modules/unistr/u8-strrchr: New file.
40554         * modules/unistr/u16-strrchr: New file.
40555         * modules/unistr/u32-strrchr: New file.
40556         * lib/unistr/u8-strrchr.c: New file.
40557         * lib/unistr/u16-strrchr.c: New file.
40558         * lib/unistr/u32-strrchr.c: New file.
40559
40560         * modules/unistr/u8-strspn: New file.
40561         * modules/unistr/u16-strspn: New file.
40562         * modules/unistr/u32-strspn: New file.
40563         * lib/unistr/u8-strspn.c: New file.
40564         * lib/unistr/u16-strspn.c: New file.
40565         * lib/unistr/u32-strspn.c: New file.
40566         * lib/unistr/u-strspn.h: New file.
40567
40568         * modules/unistr/u8-strstr: New file.
40569         * modules/unistr/u16-strstr: New file.
40570         * modules/unistr/u32-strstr: New file.
40571         * lib/unistr/u8-strstr.c: New file.
40572         * lib/unistr/u16-strstr.c: New file.
40573         * lib/unistr/u32-strstr.c: New file.
40574         * lib/unistr/u-strstr.h: New file.
40575
40576         * modules/unistr/u8-strtok: New file.
40577         * modules/unistr/u16-strtok: New file.
40578         * modules/unistr/u32-strtok: New file.
40579         * lib/unistr/u8-strtok.c: New file.
40580         * lib/unistr/u16-strtok.c: New file.
40581         * lib/unistr/u32-strtok.c: New file.
40582         * lib/unistr/u-strtok.h: New file.
40583
40584         * modules/unistr/u8-uctomb: New file.
40585         * modules/unistr/u16-uctomb: New file.
40586         * modules/unistr/u32-uctomb: New file.
40587         * lib/unistr/u8-uctomb.c: New file.
40588         * lib/unistr/u16-uctomb.c: New file.
40589         * lib/unistr/u32-uctomb.c: New file.
40590
40591         * MODULES.html.sh (Unicode string functions): Add the new modules.
40592
40593 2007-01-08  Bruno Haible  <bruno@clisp.org>
40594
40595         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40596         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40597         subdirectories.
40598
40599 2007-01-08  Karl Berry  <karl@gnu.org>
40600
40601         * doc/error.texi: mention that main() fns must set program_name
40602         when progname is used.
40603
40604 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40605
40606         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40607         WCTYPE_H is empty, for the benefit of builds from non-distclean
40608         directories.  Problem reported by Eric Blake in
40609         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40610
40611 2007-01-08  Bruno Haible  <bruno@clisp.org>
40612
40613         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40614         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40615         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40616         PROVIDE_CANONICALIZE_FILENAME_MODE.
40617         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40618
40619 2007-01-08  Bruno Haible  <bruno@clisp.org>
40620
40621         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40622         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40623         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40624         * lib/fts.c: Likewise.
40625         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40626
40627 2006-12-25  Bruno Haible  <bruno@clisp.org>
40628
40629         * modules/utf8-ucs4-safe: New file.
40630         * lib/utf8-ucs4-safe.h: New file.
40631         * lib/unistr/utf8-ucs4-safe.c: New file.
40632
40633         * modules/utf16-ucs4-safe: New file.
40634         * lib/utf16-ucs4-safe.h: New file.
40635         * lib/unistr/utf16-ucs4-safe.c: New file.
40636
40637         * MODULES.html.sh (Unicode string functions): Add the new modules.
40638
40639 2007-01-08  Bruno Haible  <bruno@clisp.org>
40640
40641         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40642         (Depends-on): Add unitypes.
40643         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40644         (u8_mbtouc_aux): Move out to separate file.
40645         (u8_mbtouc): Use ucs4_t, uint8_t types.
40646         * lib/unistr/utf8-ucs4.c: New file.
40647
40648         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40649         (Depends-on): Add unitypes.
40650         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40651         (u16_mbtouc_aux): Move out to separate file.
40652         (u16_mbtouc): Use ucs4_t, uint16_t types.
40653         * lib/unistr/utf16-ucs4.c: New file.
40654
40655         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40656         (Depends-on): Add unitypes.
40657         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40658         (u8_uctomb_aux): Move out to separate file.
40659         (u8_uctomb): Use ucs4_t, uint8_t types.
40660         * lib/unistr/ucs4-utf8.c: New file.
40661
40662         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40663         (Depends-on): Add unitypes.
40664         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40665         (u16_uctomb_aux): Move out to separate file.
40666         (u16_uctomb): Use ucs4_t, uint16_t types.
40667         * lib/unistr/ucs4-utf16.c: New file.
40668
40669 2006-12-25  Bruno Haible  <bruno@clisp.org>
40670
40671         * modules/unitypes: New file.
40672         * lib/unitypes.h: New file.
40673         * MODULES.html.sh (func_all_modules): New section "Unicode string
40674         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40675         this section. Add unitypes.
40676
40677 2007-01-08  Bruno Haible  <bruno@clisp.org>
40678
40679         Avoid variable names that conflict with those from libtool.
40680         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40681         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40682         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40683         library_names_spec to acl_library_names_spec, hardcode_* to
40684         acl_hardcode_*.
40685         Reported by Ralf Wildenhues.
40686
40687 2007-01-08  Bruno Haible  <bruno@clisp.org>
40688
40689         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40690         definition.
40691         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40692         definition.
40693         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40694         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40695         definition.
40696         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40697         definition.
40698         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40699         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40700         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40701         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40702         definition.
40703         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40704         definition.
40705         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40706         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40707         GC_USE_<algorithm>.
40708         * lib/gc-libgcrypt.c: Likewise.
40709         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40710         * modules/gc-arctwo (configure.ac): Likewise.
40711         * modules/gc-des (configure.ac): Likewise.
40712         * modules/gc-hmac-md5 (configure.ac): Likewise.
40713         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40714         * modules/gc-md2 (configure.ac): Likewise.
40715         * modules/gc-md4 (configure.ac): Likewise.
40716         * modules/gc-md5 (configure.ac): Likewise.
40717         * modules/gc-random (configure.ac): Likewise.
40718         * modules/gc-rijndael (configure.ac): Likewise.
40719         * modules/gc-sha1 (configure.ac): Likewise.
40720
40721 2007-01-08  Bruno Haible  <bruno@clisp.org>
40722
40723         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40724         macro definition.
40725         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40726         definition.
40727         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40728         definition.
40729         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40730         * modules/fcntl-safer (configure.ac): Likewise.
40731         * modules/fopen-safer (configure.ac): Likewise.
40732         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40733         GNULIB_FWRITEERROR macro definition.
40734
40735 2007-01-08  Bruno Haible  <bruno@clisp.org>
40736
40737         * m4/gnulib-common.m4: New file.
40738         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40739         (func_get_filelist): Add m4/gnulib-common.m4.
40740
40741 2007-01-08  Bruno Haible  <bruno@clisp.org>
40742
40743         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40744         command.
40745
40746 2007-01-08  Jim Meyering  <jim@meyering.net>
40747
40748         Use a more robust test for a "can't happen" condition.
40749         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40750         narrowed the st_size value.  Presuming the "can't happen" condition
40751         is true, that narrowing could conceivably convert an invalid st_size
40752         value into a valid one.  Instead, use a change based on Matthew
40753         Woehlke's original patch.
40754
40755         Slight readability improvement: use an assert-like macro
40756         in place of literal "abort ()" uses.
40757         * lib/fts.c (fts_assert): Define.
40758         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40759         Use this macro instead of a bare 'abort'.
40760
40761 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40762
40763         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40764         simply work around them.
40765         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40766         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40767         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40768         declaring.
40769         Don't bother to define as macros, since the standard doesn't require it.
40770         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40771         longer worry about IRIX 5.3.
40772         (HAVE_WCTYPE_CTMP_BUG): Remove.
40773
40774 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40775
40776         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40777         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40778         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40779         Problems reported by Georg Schwarz for IRIX 5.3.
40780
40781         * gnulib-tool (autoconf_minversion): Take the maximum version number
40782         found, not the minimum.  Problem reported by James Youngman.
40783
40784 2007-01-03  Karl Berry  <karl@gnu.org>
40785
40786         * doc/error.texi: new file, explaining interaction with progname.
40787         * doc/gnulib.texi: include it.  Update copyright.
40788
40789 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40790
40791         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40792         AC_CANONICAL_HOST, to improve autobuild outputs.
40793
40794 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40795             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40796
40797         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40798         sockets, server sockets, and other file descriptors.  Count errors
40799         to compute the return value.  Reorder the code a bit to be easier
40800         to follow.  Don't set event bits that were not requested (except
40801         POLLERR and POLLHUP).
40802
40803 2007-01-01  Bruno Haible  <bruno@clisp.org>
40804
40805         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40806
40807 2007-01-03  Jim Meyering  <jim@meyering.net>
40808
40809         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40810
40811 2007-01-02  Bruno Haible  <bruno@clisp.org>
40812
40813         * modules/settime (Include): Require timespec.h.
40814         * modules/nanosleep (Include): Likewise.
40815
40816 2007-01-01  Bruno Haible  <bruno@clisp.org>
40817
40818         * gnulib-tool (func_emit_copyright_notice): Bump year.
40819         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40820
40821 2007-01-01  Bruno Haible  <bruno@clisp.org>
40822
40823         Improve support for OpenBSD.
40824         * build-aux/config.rpath (libname_spec): Export.
40825         (library_names_spec): New variable. Export.
40826         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40827         library_names_spec from the config.rpath output. Locate shared library
40828         through the name pattern in library_names_spec.
40829
40830 2007-01-01  Eric Blake  <ebb9@byu.net>
40831
40832         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40833
40834 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40835
40836         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40837         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40838         assume the C locale, and avoid an "eval" that could cause trouble.
40839         Problem with SORT reported by Bob Proulx.
40840
40841         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40842         Define.  Trivial patch from Henning Nielsen Lund, originally
40843         sent to bug-grep@gnu.org today.
40844
40845 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40846
40847         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40848         struct stat.  Problem reported by Henning Nielsen Lund.
40849         * lib/acl.c: Include acl.h first, to check interface.  Don't
40850         bother to include sys/types.h and sys/stat.h again.
40851
40852 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40853
40854         Import the following change from libc; problem reported by
40855         Sven Verdoolaege.
40856
40857         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40858
40859         [BZ #1373]
40860         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40861
40862 2006-12-28  Jim Meyering  <jim@meyering.net>
40863
40864         * build-aux/announce-gen: Do not assume that the package
40865         builds any of tar.gz, tar.bz2, and .xdelta files.
40866         Suggestion from Simon Josefsson.
40867
40868 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40869
40870         * modules/announce-gen: New file.
40871
40872 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40873
40874         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40875         handles its gotchas now.
40876         * lib/mbswidth.c: Likewise.
40877         * lib/wcwidth.h: Likewise.
40878         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40879         and iswcntrl; the wctype module does this stuff now.
40880         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40881         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40882         * modules/mbchar (Depends-on): Add wctype.
40883         * modules/mbswidth (Depends-on): Likewise.
40884         * modules/wcwidth (Depends-on): Likewise.
40885
40886 2006-12-27  Eric Blake  <ebb9@byu.net>
40887
40888         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40889         module uses more than what <wctype.h> is required to provide.
40890
40891 2006-12-26  Eric Blake  <ebb9@byu.net>
40892
40893         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40894
40895 2006-12-26  Eric Blake  <ebb9@byu.net>
40896
40897         * modules/absolute-header: New module.
40898         * modules/fcntl (Depends-on): Depend on it.
40899         * modules/inttypes (Depends-on): Likewise.
40900         * modules/stdint (Depends-on): Likewise.
40901         * modules/sys_stat (Depends-on): Likewise.
40902         * modules/wctype (Depends-on): Likewise.
40903         * MODULES.html.sh (Support for building libraries and
40904         executables): Document it.
40905
40906 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40907
40908         * gnulib-tool (SED): Remove, undoing previous change.
40909         The problem was that it broke coreutils on Solaris, because
40910         "sed --posix" leaked into a makefile.
40911         (sed): New alias, if 'alias' and GNU sed.
40912
40913 2006-12-24  Jim Meyering  <jim@meyering.net>
40914
40915         Work around an fchownat bug in glibc-2.4:
40916         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40917         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40918         in spite of the -P option.
40919         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40920         New macros.
40921         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40922         * modules/openat (Files): Add lib/fchownat.c.
40923         * lib/openat.c (fchownat): Don't define here.  Move to...
40924         * lib/fchownat.c: ...this new file.
40925
40926 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40927
40928         Fix bug reported by Bruno Haible in
40929         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40930         where quotearg.c didn't compile on Mac OS X 10.2 because it
40931         lacks <wchar.h> and wint_t.
40932         * lib/wctype_.h (__wctype_wint_t): New type.
40933         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40934         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40935         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40936         Arg is now of type __wctype_wint_t, not wint_t.
40937         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40938         substitute HAVE_WINT_T.
40939         * modules/wctype (Files): Add m4/wint_t.m4.
40940         (wctype.h): Substitute HAVE_WINT_T.
40941
40942 2006-12-23  Bruno Haible  <bruno@clisp.org>
40943
40944         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40945
40946 2006-12-23  Bruno Haible  <bruno@clisp.org>
40947
40948         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40949         S_ISLNK.
40950         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40951         mingw.
40952
40953 2006-12-22  Bruno Haible  <bruno@clisp.org>
40954
40955         * lib/copy-file.c: Include acl.h.
40956         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40957         Close the file descriptors only after being done with copy_acl.
40958         * modules/copy-file (Depends-on): Add acl.
40959
40960 2006-12-22  Bruno Haible  <bruno@clisp.org>
40961
40962         * gnulib-tool (SED): New variable.
40963         Use $SED instead of sed everywhere.
40964
40965 2006-12-22  Bruno Haible  <bruno@clisp.org>
40966
40967         * modules/no-c++: New file.
40968         * m4/no-c++.m4: New file.
40969         * MODULES.html.sh (Support for building libraries and executables):
40970         Add no-c++.
40971
40972 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40973
40974         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40975         Include <limits.h>, and use its INT_MAX to rewrite the
40976         j loop so that it does not overflow 'int'.  Problem reported by
40977         Ralf Wildenhues in
40978         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40979         Play it safe by shifting left by 1 rather than multiplying by 2,
40980         as GCC is less likely to optimize this away when the value
40981         is signed (when it assumes overflow leads to undefined behavior).
40982         Also, don't assume time_t uses two's complement.
40983
40984 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40985
40986         * MODULES.html.sh: New module wctype.
40987         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40988         * lib/fnmatch.c: Don't bother to include <wchar.h> before
40989         <wctype.h>, since the new wctype module should fix this.
40990         * lib/quotearg.c: Include <wctype.h> unconditionally, since
40991         the wctype module should arrange for it.
40992         * lib/regex_internal.h: Likewise.
40993         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40994         since the wctype module should handle this now.
40995         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40996         * modules/fnmatch (Depends-on): Add wctype.
40997         * modules/quotearg (Depends-on): Likewise.
40998         * modules/regex (Depends-on): Likewise.
40999
41000 2006-12-19  Bruno Haible  <bruno@clisp.org>
41001
41002         * lib/strdup.h [C++]: Wrap definitions in extern "C".
41003         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
41004
41005 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41006
41007         * modules/savewd (Depends-on): Fix dependency on fcntl.
41008
41009 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41010
41011         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41012         conforms to C99, rather than relying on the user's environment
41013         setting of STDINT_H.
41014
41015 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41016         and Eric Blake  <ebb9@byu.net>
41017
41018         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41019         This is more consistent with the other defines here.
41020         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41021         Port to z/OS.  Problem reported by Paul Gilmartin.
41022         Change local vars to use gl_ prefix rather than ac_.
41023         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41024         with other defines.
41025         * modules/double-slash-root: New module.
41026         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41027         (Depends-on): Add double-slash-root.
41028         * MODULES.html.sh (File system functions): Mention new module.
41029
41030 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41031
41032         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41033         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41034         This is for the benefit of gzip, which doesn't do i18n.
41035
41036 2006-12-12  Jim Meyering  <jim@meyering.net>
41037
41038         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41039         Reported by Andreas Schwab <schwab@suse.de>.
41040
41041 2006-12-12  Bruno Haible  <bruno@clisp.org>
41042
41043         Merge these changes.
41044         2006-09-05  Bruno Haible  <bruno@clisp.org>
41045         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41046         iconv_alloc succeeded.
41047         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41048         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41049         test for " && dest " at the end - dest is always != NULL there. Call
41050         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41051         with 2xNULL arguments, also to flush the state storage. Handle the
41052         IRIX iconv behaviour. Realloc the final result, to throw away unused
41053         memory.
41054
41055 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41056
41057         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41058         and fchmodat unconditionally, since glibc 2.4 has them.
41059         Problem reported by Arkadiusz Miskiewicz.
41060
41061 2006-12-10  Bruno Haible  <bruno@clisp.org>
41062
41063         * gnulib-tool (func_import): Show the include files only for those
41064         modules that are copied and specified.
41065         Reported by Karl Berry.
41066
41067 2006-12-08  Jim Meyering  <jim@meyering.net>
41068
41069         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41070         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41071
41072         * build-aux/announce-gen: Add two new options, both optional:
41073         --bootstrap-tools=TOOL_LIST
41074               a comma-separated list of tools, e.g.,
41075               autoconf,automake,bison,gnulib
41076         --gnulib-snapshot-date=DATE
41077               if gnulib is in the bootstrap tool list,
41078               then report this as the snapshot date.
41079               If not specified, use the current date/time.
41080               If you specify a date here, be sure it's UTC.
41081
41082 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41083
41084         * tests/test-argp-2.sh: Fix test to match actual output.
41085         (func_compare): Fix sed script to be portable.
41086
41087 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41088
41089         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41090         workaround for this case.  It is not autoconfigured now; offhand
41091         it's hard to see how to autoconfigure it.
41092
41093 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41094
41095         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41096         a directory that is about to be chowned.  Such a directory's
41097         initial file permissions should permit the owner only and this
41098         should not be changed until after the chown, since the group and
41099         other bits would be incorrect if they granted permission before
41100         the chown.
41101
41102         Fix porting problem for iswctype reported by Georg Schwarz in:
41103         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41104         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41105         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41106         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41107         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41108
41109 2006-12-03  Jim Meyering  <jim@meyering.net>
41110
41111         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41112         p->fts_statp may not yet be defined.
41113         (fts_read): Instead, set it in the caller, once p->fts_statp is
41114         sure to be defined, and corresponds to a top-level directory.
41115         This bug made du -x fail.  Here's the coreutils test case:
41116         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41117         Reported by Mike Frysinger.
41118
41119 2006-12-01  Jim Meyering  <jim@meyering.net>
41120
41121         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41122         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41123         Reported by Simon Josefsson.
41124
41125 2006-11-30  Jim Meyering  <jim@meyering.net>
41126
41127         * m4/warning.m4: Use the all-permissive copyright notice
41128         recommended by RMS (rather than LGPL).
41129         * m4/vararrays.m4: Likewise.
41130         * m4/flexmember.m4: Likewise.
41131
41132 2006-11-29  Bruno Haible  <bruno@clisp.org>
41133
41134         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41135         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41136         using +=.
41137         Reported by Simon Josefsson <simon@josefsson.org>.
41138
41139 2006-11-28  James Youngman <jay@gnu.org>
41140
41141         * README: Advise users that they might find the bug-gnulib@gnu.org
41142         and autotools-announce@gnu.org mailing lists useful.
41143
41144 2006-11-28  Bruno Haible  <bruno@clisp.org>
41145
41146         * m4/ptrdiff_max.m4: Remove file.
41147
41148 2006-11-21  Bruno Haible  <bruno@clisp.org>
41149
41150         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41151         _AC_COMPUTE_INT.
41152         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41153         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41154         _AC_COMPUTE_INT.
41155         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41156         * m4/size_max.m4 (gl_SIZE_MAX): 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-28  Jim Meyering  <jim@meyering.net>
41161
41162         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41163         warning from "gcc -Wshadow" about shadowing the builtin.
41164
41165 2006-11-27  Bruno Haible  <bruno@clisp.org>
41166
41167         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41168         _AC_COMPUTE_INT.
41169         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41170
41171 2006-11-27  Bruno Haible  <bruno@clisp.org>
41172             Paul Eggert  <eggert@cs.ucla.edu>
41173
41174         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41175
41176 2006-11-26  Bruno Haible  <bruno@clisp.org>
41177
41178         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41179         noinst_LTLIBRARIES.
41180
41181 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41182             Bruno Haible  <bruno@clisp.org>
41183
41184         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41185         if compiling with "gcc -ansi".
41186
41187 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41188
41189         Fix some incompatibilities with gcc -ansi -pedantic.
41190         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41191         if compiling pedantically with GCC, unless it's C99 or later.
41192         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41193         it mishandles gcc -ansi -pedantic as well.
41194         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41195         if gcc -pedantic.
41196         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41197         initializers for struct if -pedantic, unless it's C99 or later.
41198
41199 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41200
41201         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41202         Don't close an fd more than once. Identical atimes indicate
41203         success, not failure.
41204
41205 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41206
41207         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41208
41209 2006-11-23  Jim Meyering  <jim@meyering.net>
41210
41211         * build-aux/announce-gen: New file.  From coreutils.
41212
41213 2006-11-22  Jim Meyering  <jim@meyering.net>
41214
41215         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41216         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41217         (fts_read): Use a temporary to narrow the overused st_size member
41218         before using it in a switch statement.  Reported by Matthew Woehlke.
41219
41220         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41221         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41222
41223 2006-11-20  Bruno Haible  <bruno@clisp.org>
41224
41225         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41226         changequote instead of pairs of brackets.
41227         Reported by Andreas Schwab <schwab@suse.de>.
41228
41229 2006-11-21  Jim Meyering  <jim@meyering.net>
41230
41231         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41232         so as to remain compatible with older compilers.
41233         Patch from Michael Deutschmann.
41234
41235 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41236
41237         * MODULES.html.sh (File system functions): Add openat.
41238
41239         * lib/openat.h (rpl_fstatat): New macro, if
41240         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41241         (fstatat): Define to rpl_fstatat under the same conditions,
41242         unless COMPILING_FSTATAT.
41243         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41244         seems to have the bug.
41245         * lib/fstatat.c: New file.
41246         * modules/openat (Files): Add it.
41247
41248 2006-11-20  Bruno Haible  <bruno@clisp.org>
41249
41250         * Makefile: New file.
41251
41252 2006-11-20  Jim Meyering  <jim@meyering.net>
41253
41254         The beginnings of syntax-related checks for gnulib.
41255         * lib/Makefile: New file.
41256         * lib/t-idcache: New script.  Ensure that the two halves of
41257         idcache.c stay in sync.
41258
41259         * lib/idcache.c: Adjust comments in user- and group- portions to
41260         be more accurate, and to be consistent with one another.
41261
41262 2006-11-20  Jim Meyering  <jim@meyering.net>
41263
41264         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41265         continue using the flexible array member (thus, this module performs
41266         half as many malloc calls), with the addition that...
41267         (getgroup, getuser): Consistently record a non-match via an empty
41268         "name" string, and map an empty string match to a NULL return value.
41269         * modules/idcache (Depends-on): Re-add flexmember.
41270
41271         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41272         (getuidbyname, getgroup, getgidbyname): Likewise.
41273
41274         Use cleaner syntax: NULL rather than 0.
41275         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41276
41277 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41278
41279         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41280         It mishandled the case where the group was missing.
41281         Problem reported by Greg Schafer.
41282         * modules/idcache: Likewise.
41283
41284 2006-11-18  Jim Meyering  <jim@meyering.net>
41285
41286         * check-module (%exempt_header): Add exception for some
41287         conditionally-included headers.
41288
41289         * modules/i-ring (Depends-on): Add verify.
41290         (License): Change to LGPL.
41291
41292 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41293
41294         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41295         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41296         and inttostr.h.  Use snprintf rather than uinttostr, so that
41297         LGPLed code doesn't depend on GPLed.
41298
41299 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41300
41301         * modules/inline (License): Change from GPL to LGPL.
41302
41303 2006-11-17  Jim Meyering  <jim@meyering.net>
41304
41305         * modules/d-type (License): Switch to LGPL.
41306
41307 2006-11-15  Bruno Haible  <bruno@clisp.org>
41308
41309         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41310
41311 2006-11-15  Eric Blake  <ebb9@byu.net>
41312
41313         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41314         the module dependency.
41315
41316 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41317             Bruno Haible  <bruno@clisp.org>
41318
41319         * gnulib-tool (func_create_testdir): Add license consistency check.
41320
41321 2006-11-15  Eric Blake  <ebb9@byu.net>
41322
41323         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41324         random "(cached)" in configure output.
41325
41326 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41327
41328         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41329         test for conforming inttypes.h is both announced and cached.
41330
41331         * MODULES.html.sh (seen_modules, seen_files): New variables.
41332         (func_module): Rewrite to use a few less gnulib-tool and sed
41333         invocations.  Avoid a couple of quadratic algorithms for ...
41334         (missed_modules, missed_files): ... these, with ...
41335         (func_append, func_tmpdir): ... these new functions, from
41336         gnulib-tool.  Analogously, install traps for cleanup.
41337
41338         * tests/test-gc.c (main): Remove unused variables.
41339         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41340
41341 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41342
41343         * modules/inttostr (License): Change to LGPL.
41344
41345 2006-11-14  Eric Blake  <ebb9@byu.net>
41346
41347         * modules/tempname (License): Change to LGPL.
41348
41349 2006-11-14  Eric Blake  <ebb9@byu.net>
41350
41351         * doc/functions.texi (Function Portability): *printf functions on
41352         Cygwin now understand all POSIX size specifiers.
41353
41354 2006-11-14  Bruno Haible  <bruno@clisp.org>
41355
41356         * modules/c-ctype (License): Change to LGPL.
41357
41358 2006-11-12  Bruno Haible  <bruno@clisp.org>
41359
41360         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41361         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41362         for GNOME libraries, for which the include files are installed in
41363         subdirectories of $prefix/include.
41364
41365 2006-11-12  Bruno Haible  <bruno@clisp.org>
41366
41367         * m4/lib-link.m4: Require at least autoconf-2.54.
41368         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41369         name to underscores for the --with option.
41370
41371 2006-11-13  Bruno Haible  <bruno@clisp.org>
41372
41373         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41374         the tests directory.
41375         Reported by Ralf Wildenhues.
41376
41377 2006-11-13  Bruno Haible  <bruno@clisp.org>
41378
41379         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41380         (func_emit_initmacro_end): Undo the override here.
41381         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41382         Works around the famous automake error in coreutils.
41383
41384 2006-11-13  Eric Blake  <ebb9@byu.net>
41385
41386         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41387         element, not its node.
41388
41389 2006-11-12  Bruno Haible  <bruno@clisp.org>
41390
41391         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41392         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41393
41394 2006-11-12  Bruno Haible  <bruno@clisp.org>
41395
41396         * gnulib-tool: New option --local-symlink.
41397         (func_usage): Document it.
41398         (lsymbolic): New variable.
41399         (func_import, func_create_testdir): If --symlink was not specified,
41400         test whether --local-symlink was specified and the file comes from
41401         the local_gnulib_dir.
41402
41403 2006-11-12  Bruno Haible  <bruno@clisp.org>
41404
41405         * gnulib-tool (func_ln): New function.
41406         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41407
41408 2006-11-12  Bruno Haible  <bruno@clisp.org>
41409
41410         Finish support for source files in subdirectories.
41411         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41412         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41413         AUTOMAKE_OPTIONS.
41414         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41415
41416 2006-11-12  Bruno Haible  <bruno@clisp.org>
41417
41418         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41419         EXTRA_lib_SOURCES augmentation.
41420         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41421
41422 2006-11-12  Jim Meyering  <jim@meyering.net>
41423
41424         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41425         file descriptors.  This also averts a failure on systems with
41426         native openat support when a traversed directory lacks "x" access.
41427         * lib/fts_.h: Include "i-ring.h"
41428         (struct FTS) [fts_fd_ring]: New member.
41429         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41430         (FCHDIR): Add parentheses.
41431         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41432         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41433         When descending, rather than simply closing the previous
41434         fts_cwd_fd value, push that file descriptor onto the ring.
41435         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41436         (fts_open): Initialize the new fd_ring member.
41437         (fts_close): Clear the ring.
41438         (fts_safe_changedir): When possible, use our new fd_ring to skip
41439         the diropen and fstat and dev/ino comparison that would normally
41440         accompany a virtual `chdir ("..")'.
41441
41442         * modules/fts (Depends-on): Add i-ring.
41443         * modules/i-ring: New module.
41444         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41445         * m4/i-ring.m4: New file.
41446
41447 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41448
41449         * gnulib-tool (func_create_testdir): Fix replacement of
41450         `build-aux' in configure.ac.  Run autotools in gltests
41451         subdirectory.
41452         (func_create_testdir, func_create_megatestdir, test): There is
41453         no need for '--force' in most autotool invocations in a new
41454         tree.  Actually fail the whole test if any of the tools, or the
41455         configure or make stages fail.
41456
41457         Sync from Automake.
41458         * build-aux/gnupload: Revert last change.  Add pointer to upload
41459         instructions of the GNU Maintenance Instructions.
41460         Suggestion by Karl Berry.
41461
41462 2006-11-10  Jim Meyering  <jim@meyering.net>
41463
41464         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41465
41466 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41467
41468         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41469         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41470         (bind_textdomain_codeset) [! ENABLE_NLS]:
41471         Evaluate all the arguments.  That way, callers get compatible behavior
41472         if the arguments have side effects.  Also, it avoids some GCC
41473         diagnostics in some cases; Joel E. Denny reported problems when Bison
41474         was configured with --enable-gcc-warnigs.
41475
41476 2006-11-10  Jim Meyering  <jim@meyering.net>
41477
41478         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41479         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41480         account.
41481
41482 2006-11-10  Jim Meyering  <jim@meyering.net>
41483
41484         * modules/inline: New file/module.
41485         * modules/xalloc (Files): Remove m4/inline.m4.
41486         (Depends-on): Add inline, instead.
41487         * modules/oset: Likewise.
41488         * modules/list: Likewise.
41489
41490 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41491
41492         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41493         Problem reported by Matthew Woehlke.
41494
41495 2006-11-09  Bruno Haible  <bruno@clisp.org>
41496
41497         * lib/tempname.c (gen_tempname): Remove variant that invokes
41498         __gen_tempname.
41499         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41500         __gen_tempname.
41501
41502 2006-11-08  Bruno Haible  <bruno@clisp.org>
41503
41504         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41505         to 'yes' instead of 'cross-compiling'.
41506
41507 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41508
41509         * lib/quotearg.h (quotearg_free): New decl.
41510         * lib/quotearg.c (quotearg_free): New function.
41511         (slot0, nslots, slotvec0, slotvec):
41512         Now file-scope so that quotearg_free can get at them.
41513
41514 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41515
41516         Sync from Automake.
41517         * build-aux/gnupload: Add missing 'gnu' to example URL.
41518         Report by Karl Berry.
41519
41520 2006-11-08  Bruno Haible  <bruno@clisp.org>
41521
41522         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41523         Suggested by Paul Eggert.
41524
41525 2006-11-08  Jim Meyering  <jim@meyering.net>
41526
41527         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41528         It's already included if !_LIBC.
41529         (fts_safe_changedir): Add a comment.
41530
41531 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41532
41533         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41534         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41535         Matthew Woehlke.
41536
41537         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41538         definitions up, to avoid colliding with change below.
41539         (static_inline) [HAVE_INLINE]: New macro.
41540         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41541         Provide extern decls when !HAVE_INLINE.  Do not define unless
41542         static_inline is defined, either by us or by xmalloc.c.  Use
41543         static_inline rather than static inline.
41544         (XCALLOC): Optimize sizeof(T) = 1 case.
41545         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41546
41547 2006-11-07  Bruno Haible  <bruno@clisp.org>
41548
41549         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41550         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41551         AC_C_INLINE.
41552         * modules/xalloc (Files): Add m4/inline.m4.
41553
41554 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41555
41556         * README: Fix typo.
41557         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41558         (Miscellanous Notes): ...from this.
41559
41560 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41561
41562         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41563         Mention that offsetof should be used instead of sizeof.
41564         From Bruno Haible.
41565
41566 2006-11-07  Bruno Haible  <bruno@clisp.org>
41567
41568         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41569
41570 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41571
41572         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41573         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41574         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41575         (gl_tree_add_before, gl_tree_add_after):
41576         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41577         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41578         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41579         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41580         (gl_linked_add_after, gl_linked_add_at): Likewise.
41581         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41582         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41583         (gl_tree_add_before, gl_tree_add_after): Likewise.
41584         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41585         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41586         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41587
41588 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41589
41590         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41591
41592 2006-11-06  Bruno Haible  <bruno@clisp.org>
41593
41594         * m4/inline.m4: New file.
41595         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41596         * modules/list (Files): Add m4/inline.m4.
41597         * modules/oset (Files): Likewise.
41598
41599 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41600
41601         * lib/idcache.c: Include <stddef.h>, for offsetof.
41602         (struct userid.name): Change from char * to a flexible array member.
41603         All uses changed.
41604         * modules/idcache (Depends-on): Add flexmember.
41605
41606         * MODULES.html.sh (Core language properties): New module flexmember.
41607         * modules/flexmember, m4/flexmember.m4: New files.
41608
41609         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41610         inline functions that are identical with the old xnmalloc_inline,
41611         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41612         that we can avoid some unnecessary integer multiplications and
41613         divisions in the common case where the element size is known at
41614         compile time.
41615         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41616         needed.
41617         (xnboundedmalloc): Remove.
41618         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41619         arguments, for consistency with rest of this header.
41620         (xcharalloc): Rewrite using XNMALLOC.
41621         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41622         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41623         versions have been moved to lib/xalloc.h and renamed to be the
41624         non-*_inline versions.
41625         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41626         and xnrealloc functions, since those functions are now inline and
41627         now call us.
41628         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41629         renaming described above.
41630         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41631         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41632         captures the dependency in AC_C_INLINE.
41633
41634         New module canonicalize-lgpl, proposed by Charles Wilson in
41635         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41636         with a few small changes afterwards.
41637         * MODULES.html.sh (File system functions): New module
41638         canonicalize-lgpl.
41639         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41640         and canonicalize_file_name.
41641         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41642         * modules/canonicalize-lgpl: New files.
41643
41644 2006-11-05  Bruno Haible  <bruno@clisp.org>
41645
41646         * gnulib-tool (func_import, func_create_testdir): Create directories
41647         also for files in subdirectories of lib/.
41648
41649 2006-11-05  Bruno Haible  <bruno@clisp.org>
41650
41651         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41652         ANSI C compliant.
41653
41654 2006-11-03  Bruno Haible  <bruno@clisp.org>
41655
41656         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41657         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41658         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41659         (xnboundedmalloc): New inline function.
41660         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41661         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41662         xmalloc.
41663         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41664         xmalloc.
41665         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41666         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41667         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41668         xmalloc.
41669         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41670         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41671         xmalloc.
41672         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41673         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41674         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41675         xmalloc.
41676         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41677         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41678         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41679         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41680         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41681         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41682         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41683
41684 2006-11-03  Bruno Haible  <bruno@clisp.org>
41685
41686         * lib/c-ctype.h [C++]: Define functions without name mangling.
41687         * lib/fwriteerror.h [C++]: Likewise.
41688         * lib/gcd.h [C++]: Likewise.
41689         * lib/linebreak.h [C++]: Likewise.
41690
41691 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41692
41693         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41694         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41695         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41696         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41697         Check for functions and headers just once.
41698         Check for declaration of canonicalize_file_name.
41699         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41700
41701 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41702
41703         * gnulib-tool (func_import): Fix typo in actioncmd.
41704
41705 2006-11-02  Bruno Haible  <bruno@clisp.org>
41706
41707         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41708         newline sequence in the Makefile.am snippet as a space, like "make"
41709         does.
41710         Reported by Roger Persson <perrog@gmail.com>.
41711
41712 2006-11-01  Bruno Haible  <bruno@clisp.org>
41713
41714         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41715         already declared in <string.h>.
41716         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41717
41718 2006-11-01  Bruno Haible  <bruno@clisp.org>
41719
41720         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41721         * lib/strcase.h: Include <string.h>.
41722         (strcasecmp): Define to rpl_strcasecmp here.
41723
41724 2006-11-01  Bruno Haible  <bruno@clisp.org>
41725
41726         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41727
41728 2006-11-01  Eric Blake  <ebb9@byu.net>
41729
41730         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41731
41732         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41733
41734 2006-10-29  Bruno Haible  <bruno@clisp.org>
41735
41736         Make it compile in C++ mode.
41737         * lib/full-write.c (full_rw): Add a cast.
41738
41739 2006-11-01  Bruno Haible  <bruno@clisp.org>
41740
41741         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41742         be POSIX compliant.
41743         Reported by Roger Persson <perrog@gmail.com>.
41744
41745 2006-11-01  Eric Blake  <ebb9@byu.net>
41746
41747         * lib/getopt_.h: Fix comments.
41748
41749 2006-10-31  Eric Blake  <ebb9@byu.net>
41750
41751         * modules/tmpdir (Depends-on): Add sys_stat.
41752         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41753         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41754         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41755         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41756         tempname.
41757
41758 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41759
41760         Avoid some C++ diagnostics reported by Bruno Haible.
41761         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41762         xmalloc.
41763         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41764         (struct slotvec): Move to top level.
41765         (quotearg_n_options): Rewrite to avoid xmalloc.
41766         * lib/xalloc.h (xcharalloc): New function.
41767         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41768         [defined __cplusplus]: Add function template that provides result
41769         type propagation.  This part of the change is from Bruno Haible.
41770
41771 2006-10-29  Bruno Haible  <bruno@clisp.org>
41772
41773         Make it compile in C++ mode.
41774         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41775         * lib/strnlen1.c (strnlen1): Cast memchr result.
41776         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41777         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41778         (create_temp_dir): Rename local variable 'template'.
41779         (compile_csharp_using_sscli): Add cast.
41780         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41781         * lib/findprog.c (find_in_path): Likewise.
41782         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41783         * lib/wait-process.c (register_slave_subprocess): Likewise.
41784
41785 2006-10-22  Bruno Haible  <bruno@clisp.org>
41786
41787         * modules/tsearch: New file.
41788         * lib/tsearch.h: New file.
41789         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41790         * m4/tsearch.m4: New file.
41791         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41792
41793 2006-10-29  Eric Blake  <ebb9@byu.net>
41794
41795         * lib/arcfour.c: Assume config.h.
41796         * lib/arctwo.c: Likewise.
41797         * lib/base64.c: Likewise.
41798         * lib/check-version.c: Likewise.
41799         * lib/crc.c: Likewise.
41800         * lib/des.c: Likewise.
41801         * lib/gc-gnulib.c: Likewise.
41802         * lib/gc-libgcrypt.c: Likewise.
41803         * lib/gc-pbkdf2-sha1.c: Likewise.
41804         * lib/getaddrinfo.c: Likewise.
41805         * lib/getdelim.c: Likewise.
41806         * lib/getline.c: Likewise.
41807         * lib/hmac-md5.c: Likewise.
41808         * lib/hmac-sha1.c: Likewise.
41809         * lib/iconvme.c: Likewise.
41810         * lib/md2.c: Likewise.
41811         * lib/md4.c: Likewise.
41812         * lib/memxor.c: Likewise.
41813         * lib/read-file.c: Likewise.
41814         * lib/readline.c: Likewise.
41815         * lib/rijndael-alg-fst.c: Likewise.
41816         * lib/rijndael-api-fst.c: Likewise.
41817         * lib/xgetdomainname.c: Likewise.
41818
41819 2006-10-28  Eric Blake  <ebb9@byu.net>
41820
41821         * lib/xstrndup.c: Assume config.h.
41822
41823 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41824
41825         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41826         stat-macros.h is now for our own macros, whereas stat_h is for
41827         macros in the <sys/stat.h> name space.
41828         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41829         (STAT_MACROS_H): Remove.
41830         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41831         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41832         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41833         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41834         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41835         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41836         Move these macros to ...
41837         * lib/stat_.h: here.  Don't include stat-macros.h.
41838         * lib/canonicalize.c: Don't include stat-macros.h.
41839         * lib/chown.c: Likewise.
41840         * lib/euidaccess.c: Likewise.
41841         * lib/file-type.c: Likewise.
41842         * lib/filemode.c: Likewise.
41843         * lib/glob.c: Likewise.
41844         * lib/isapipe.c: Likewise.
41845         * lib/lchown.c: Likewise.
41846         * lib/lstat.c: Likewise.
41847         * lib/mkdir-p.c: Likewise.
41848         * lib/rmdir.c: Likewise.
41849         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41850         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41851         unless mkdir isn't declared, to speed up 'configure'.
41852         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41853         would define all the S_* symbols.
41854         * modules/canonicalize (Depends-on):
41855         Depend on sys_stat, not stat-macros.
41856         * modules/chown: Likewise.
41857         * modules/euidaccess: Likewise.
41858         * modules/filemode: Likewise.
41859         * modules/file-type: Likewise.
41860         * modules/glob: Likewise.
41861         * modules/isapipe: Likewise.
41862         * modules/lchown: Likewise.
41863         * modules/lstat: Likewise.
41864         * modules/mkancesdirs: Likewise.
41865         * modules/rmdir: Likewise.
41866         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41867         * modules/modechange: Likewise.
41868         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41869         (configure.ac): Remove gl_STAT_MACROS.
41870         * modules/sys_stat (Depends-on): Remove stat-macros.
41871
41872 2006-10-27  Bruno Haible  <bruno@clisp.org>
41873
41874         * m4/signed.m4: Remove file.
41875         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41876         invocation.
41877         * modules/vasnprintf (Files): Remove m4/signed.m4.
41878
41879 2006-10-27  Bruno Haible  <bruno@clisp.org>
41880
41881         Update to GNU gettext 0.16.
41882         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41883         m4/inttypes-h.m4, m4/signed.m4.
41884         * m4/gettext.m4: Update to GNU gettext 0.16.
41885         * m4/intl.m4: New file, from GNU gettext.
41886         * m4/intldir.m4: New file, from GNU gettext.
41887         * config/srclist.txt: Update
41888
41889 2006-10-27  Eric Blake  <ebb9@byu.net>
41890
41891         * MODULES.html.sh: Document tempname.
41892         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41893         dependencies.
41894         (Files): Move lib/tempname.c...
41895         * modules/tempname: ...to this new module.
41896         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41897         (gl_PREREQ_TEMPNAME): Move...
41898         * m4/tempname.m4: ...to this new file.
41899         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41900         * modules/sys_stat (Depends-on): Add stat-macros.
41901         * lib/stat_.h (includes): Pick up stat macros.
41902         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41903         if stat macros are broken.
41904         * lib/tempname.c (includes): No need to include "stat-macros.h".
41905         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41906         (direxists, __path_search) [!_LIBC]: Don't compile these in
41907         gnulib; the tmpdir module covers that.
41908         * lib/tempname.h: New file.
41909
41910 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41911
41912         * COPYING: Explain how gnulib-tool converts licence headers.
41913         Almost all wording by Eric Blake.
41914
41915 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41916
41917         * lib/mbchar.h (is_basic_table): Make read-only.
41918         * lib/mbchar.c (is_basic_table): Likewise.
41919         Reported by John Darrington.
41920
41921 2006-10-25  Bruno Haible  <bruno@clisp.org>
41922
41923         * lib/progname.h (set_program_name): Undefine before defining.
41924
41925 2006-10-25  Bruno Haible  <bruno@clisp.org>
41926
41927         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41928         false for non-gcc C++ compilers.
41929         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41930
41931 2006-10-24  Bruno Haible  <bruno@clisp.org>
41932
41933         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41934         iconv implementations like Irix iconv.
41935
41936 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41937
41938         * modules/vararrays: New file.
41939         * m4/vararrays.m4: New file, taken from diffutils.
41940         * MODULES.html.sh: New module vararrays.
41941
41942 2006-10-24  Karl Berry  <karl@gnu.org>
41943
41944         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41945         Don't call GNU Unix.
41946
41947 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41948
41949         * users.txt: Add Libtool.
41950
41951         Sync from Libtool:
41952
41953         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41954
41955         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41956         to gnulib's policy of including config.h unconditionally.
41957
41958 2006-10-24  Bruno Haible  <bruno@clisp.org>
41959
41960         * modules/wcwidth (Files): Add m4/wint_t.m4.
41961         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41962         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41963
41964 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41965
41966         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41967         to pacify GCC with some -W flags enabled.  Problem reported by
41968         Bruno Haible.
41969
41970 2006-10-24  Jim Meyering  <jim@meyering.net>
41971
41972         * MODULES.html.sh: Remove uinttostr.  It's not a module.
41973         Reported by Karl Berry.
41974
41975 2006-10-23  Bruno Haible  <bruno@clisp.org>
41976
41977         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41978
41979 2006-10-24  Bruno Haible  <bruno@clisp.org>
41980
41981         * lib/gl_list.h: Use C comment style, not C++ comment style.
41982
41983 2006-10-23  Eric Blake  <ebb9@byu.net>
41984
41985         * lib/getaddrinfo.c (includes): Add missing include.
41986
41987 2006-10-23  Bruno Haible  <bruno@clisp.org>
41988             Paul Eggert  <eggert@cs.ucla.edu>
41989
41990         Ability to rename obstack_free.
41991         * lib/obstack.h (__obstack_free): New macro. Declare instead of
41992         obstack_free.
41993         (obstack_free): Invoke the __obstack_free macro.
41994         * lib/obstack.c (obstack_free): Use __obstack_free macro.
41995
41996 2006-10-23  Bruno Haible  <bruno@clisp.org>
41997             Paul Eggert  <eggert@cs.ucla.edu>
41998
41999         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
42000         __argc, __argv from the declaration. (They are defined as macros on
42001         mingw.)
42002
42003 2006-10-22  Bruno Haible  <bruno@clisp.org>
42004
42005         * doc/gnulib-intro.texi: New file.
42006         * doc/gnulib.texi: Include it.
42007
42008 2006-10-21  Bruno Haible  <bruno@clisp.org>
42009
42010         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42011         "Introduction", "Miscellanous Notes", "Particular Modules".
42012
42013 2006-10-21  Bruno Haible  <bruno@clisp.org>
42014
42015         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42016         Change mostlyclean-local rule to avoid sh syntax error from bash
42017         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42018
42019 2006-10-23  Jim Meyering  <jim@meyering.net>
42020
42021         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42022         in place of snprintf.
42023
42024         * modules/inttostr (Files): Add lib/uinttostr.c.
42025         * lib/uinttostr.c (inttostr): New file/function.
42026         * lib/inttostr.h (uinttostr): Declare.
42027         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42028         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42029         Add uinttostr.
42030         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42031
42032 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42033
42034         * lib/canonicalize.c (ELOOP): Define if not already defined.
42035         Problem reported by Bruno Haible in
42036         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42037
42038 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42039
42040         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42041         Problem reported by Perry Smith and Ville Laurikari.
42042
42043         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42044         uses.
42045
42046 2006-10-19  Bruno Haible  <bruno@clisp.org>
42047
42048         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42049         for mingw.
42050
42051 2006-10-19  Bruno Haible  <bruno@clisp.org>
42052
42053         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42054         Needed for mingw.
42055
42056 2006-10-19  Bruno Haible  <bruno@clisp.org>
42057
42058         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42059
42060 2006-10-19  Bruno Haible  <bruno@clisp.org>
42061
42062         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42063         it.
42064
42065 2006-10-19  Bruno Haible  <bruno@clisp.org>
42066
42067         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42068         invocation.
42069
42070 2006-10-19  Bruno Haible  <bruno@clisp.org>
42071
42072         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42073         mountlist by default.
42074
42075 2006-10-16  Bruno Haible  <bruno@clisp.org>
42076
42077         * lib/c-strstr.c: Include c-strstr.h.
42078
42079 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42080
42081         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42082         in a slash.
42083
42084 2006-10-18  Bruno Haible  <bruno@clisp.org>
42085
42086         * lib/lock.h [C++]: Wrap definitions in extern "C".
42087
42088 2006-10-18  Bruno Haible  <bruno@clisp.org>
42089
42090         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42091         gl_LIBOBJS list.
42092
42093 2006-10-18  Bruno Haible  <bruno@clisp.org>
42094
42095         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42096
42097 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42098
42099         * lib/xstrtol.h: Include gettext.h.
42100         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42101         Problem reported by Eric Blake.
42102         * modules/xstrtol (Depends-on): Add gettext-h.
42103
42104 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42105
42106         * lib/strftime.c (advance): New macro.
42107         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42108         incomplete type, so you can't add 0 to it.  Problem and patch
42109         reported by Eelco Dolstra for dietlibc.
42110
42111 2006-10-18  Jim Meyering  <jim@meyering.net>
42112
42113         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42114         type for a local, and rename it: s/up/user_proc/.
42115
42116 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42117
42118         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42119         READ_UTMP_USER_PROCESS.
42120         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42121
42122 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42123
42124         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42125         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42126
42127 2006-10-17  Eric Blake  <ebb9@byu.net>
42128
42129         * lib/sigprocmask.c (sigprocmask): Fix typo.
42130
42131         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42132
42133         * modules/clean-temp (Makefile.am): Don't add to make output...
42134         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42135         config.h.
42136
42137 2006-10-17  Bruno Haible  <bruno@clisp.org>
42138
42139         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42140         differently if DEFAULT_TEXT_DOMAIN is set.
42141
42142 2006-10-16  Bruno Haible  <bruno@clisp.org>
42143
42144         * lib/clean-temp.c: Include fwriteerror.h.
42145
42146 2006-10-16  Bruno Haible  <bruno@clisp.org>
42147
42148         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42149
42150 2006-10-16  Bruno Haible  <bruno@clisp.org>
42151
42152         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42153         * lib/sigprocmask.h: Include <sys/types.h>.
42154         (sigset_t): Use the system's definition if present.
42155
42156 2006-10-17  Eric Blake  <ebb9@byu.net>
42157
42158         * lib/xvasprintf.c (includes): Assume config.h.
42159         * lib/xasprintf.c (includes): Likewise.
42160
42161 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42162
42163         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42164         at least as wide as intmax_t.
42165
42166 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42167
42168         (Imported from Automake.)
42169         * build-aux/gnupload: Update to version 1.1 of directive file.
42170
42171 2006-10-16  Eric Blake  <ebb9@byu.net>
42172
42173         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42174         match Automake 1.10a.
42175
42176 2006-10-14  Bruno Haible  <bruno@clisp.org>
42177
42178         * modules/sigprocmask: New file.
42179         * lib/sigprocmask.h: New file.
42180         * lib/sigprocmask.c: New file.
42181         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42182         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42183         request sigprocmask.o.
42184         (gl_PREREQ_SIGPROCMASK): New macro.
42185         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42186         (Depends-on): Add sigprocmask.
42187         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42188         gt_SIGNALBLOCKING. Test for 'raise' only once.
42189         * lib/fatal-signal.c: Include sigprocmask.h.
42190         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42191         unblock_fatal_signals): Define always.
42192         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42193         sigprocmask.
42194
42195 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42196
42197         Sync from Automake.
42198         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42199         which incorrectly sets the mode of an existing destination
42200         directory.  In some cases the unpatched install-sh could do the
42201         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42202         system.  We hope this is rare in practice, but it's clearly worth
42203         fixing.  Problem reported by Alex Unleashed in
42204         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42205         Also, don't bother to check for -m bugs unless we're using -m;
42206         suggested by Stepan Kasal.
42207
42208 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42209
42210         Sync from Automake.
42211         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42212         `-c' flag, so they appear at the same position as in %FASTDEP%
42213         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42214         which ignores unknown options only after the first non-option.
42215         Bug report against M4 by Nelson H. F. Beebe.
42216
42217 2006-10-13  Jim Meyering  <jim@meyering.net>
42218
42219         Fix a bug in yesterday's change.
42220         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42221         p->fts_statp->st_dev would be used uninitialized.
42222         Ensures that we always call fts_stat on the very first entry.
42223         Miklos Szeredi reported that find -xdev stopped working.
42224
42225 2006-10-12  Bruno Haible  <bruno@clisp.org>
42226
42227         * gnulib-tool (func_get_automake_snippet): Append an automatically
42228         computed EXTRA_DIST augmentation.
42229         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42230         * modules/alloca-opt (Makefile.am): Likewise.
42231         * modules/allocsa (Makefile.am): Likewise.
42232         * modules/arcfour (Makefile.am): Likewise.
42233         * modules/arctwo (Makefile.am): Likewise.
42234         * modules/argmatch (Makefile.am): Likewise.
42235         * modules/argz (Makefile.am): Likewise.
42236         * modules/atexit (Makefile.am): Likewise.
42237         * modules/backupfile (Makefile.am): Likewise.
42238         * modules/byteswap (Makefile.am): Likewise.
42239         * modules/c-strtod (Makefile.am): Likewise.
42240         * modules/c-strtold (Makefile.am): Likewise.
42241         * modules/calloc (Makefile.am): Likewise.
42242         * modules/canon-host (Makefile.am): Likewise.
42243         * modules/canonicalize (Makefile.am): Likewise.
42244         * modules/chdir-long (Makefile.am): Likewise.
42245         * modules/chdir-safer (Makefile.am): Likewise.
42246         * modules/check-version (Makefile.am): Likewise.
42247         * modules/chown (Makefile.am): Likewise.
42248         * modules/cloexec (Makefile.am): Likewise.
42249         * modules/close-stream (Makefile.am): Likewise.
42250         * modules/closeout (Makefile.am): Likewise.
42251         * modules/crc (Makefile.am): Likewise.
42252         * modules/csharpexec (Makefile.am): Likewise.
42253         * modules/cycle-check (Makefile.am): Likewise.
42254         * modules/des (Makefile.am): Likewise.
42255         * modules/dev-ino (Makefile.am): Likewise.
42256         * modules/dirfd (Makefile.am): Likewise.
42257         * modules/dirname (Makefile.am): Likewise.
42258         * modules/dup2 (Makefile.am): Likewise.
42259         * modules/eealloc (Makefile.am): Likewise.
42260         * modules/error (Makefile.am): Likewise.
42261         * modules/euidaccess (Makefile.am): Likewise.
42262         * modules/exclude (Makefile.am): Likewise.
42263         * modules/exitfail (Makefile.am): Likewise.
42264         * modules/fcntl-safer (Makefile.am): Likewise.
42265         * modules/fcntl (Makefile.am): Likewise.
42266         * modules/file-type (Makefile.am): Likewise.
42267         * modules/fileblocks (Makefile.am): Likewise.
42268         * modules/filemode (Makefile.am): Likewise.
42269         * modules/filenamecat (Makefile.am): Likewise.
42270         * modules/fnmatch (Makefile.am): Likewise.
42271         * modules/fopen-safer (Makefile.am): Likewise.
42272         * modules/fpending (Makefile.am): Likewise.
42273         * modules/fprintftime (Makefile.am): Likewise.
42274         * modules/free (Makefile.am): Likewise.
42275         * modules/fsusage (Makefile.am): Likewise.
42276         * modules/ftruncate (Makefile.am): Likewise.
42277         * modules/fts (Makefile.am): Likewise.
42278         * modules/gc-arcfour (Makefile.am): Likewise.
42279         * modules/gc-des (Makefile.am): Likewise.
42280         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42281         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42282         * modules/gc-md4 (Makefile.am): Likewise.
42283         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42284         * modules/gc-sha1 (Makefile.am): Likewise.
42285         * modules/gc (Makefile.am): Likewise.
42286         * modules/getaddrinfo (Makefile.am): Likewise.
42287         * modules/getcwd (Makefile.am): Likewise.
42288         * modules/getdelim (Makefile.am): Likewise.
42289         * modules/getdomainname (Makefile.am): Likewise.
42290         * modules/getgroups (Makefile.am): Likewise.
42291         * modules/gethostname (Makefile.am): Likewise.
42292         * modules/gethrxtime (Makefile.am): Likewise.
42293         * modules/getline (Makefile.am): Likewise.
42294         * modules/getloadavg (Makefile.am): Likewise.
42295         * modules/getlogin_r (Makefile.am): Likewise.
42296         * modules/getndelim2 (Makefile.am): Likewise.
42297         * modules/getopt (Makefile.am): Likewise.
42298         * modules/getpagesize (Makefile.am): Likewise.
42299         * modules/getpass-gnu (Makefile.am): Likewise.
42300         * modules/getpass (Makefile.am): Likewise.
42301         * modules/getsubopt (Makefile.am): Likewise.
42302         * modules/gettime (Makefile.am): Likewise.
42303         * modules/gettimeofday (Makefile.am): Likewise.
42304         * modules/getugroups (Makefile.am): Likewise.
42305         * modules/getusershell (Makefile.am): Likewise.
42306         * modules/glob (Makefile.am): Likewise.
42307         * modules/group-member (Makefile.am): Likewise.
42308         * modules/hard-locale (Makefile.am): Likewise.
42309         * modules/hash (Makefile.am): Likewise.
42310         * modules/hmac-md5 (Makefile.am): Likewise.
42311         * modules/hmac-sha1 (Makefile.am): Likewise.
42312         * modules/human (Makefile.am): Likewise.
42313         * modules/idcache (Makefile.am): Likewise.
42314         * modules/imaxabs (Makefile.am): Likewise.
42315         * modules/imaxdiv (Makefile.am): Likewise.
42316         * modules/inet_ntop (Makefile.am): Likewise.
42317         * modules/inet_pton (Makefile.am): Likewise.
42318         * modules/intprops (Makefile.am): Likewise.
42319         * modules/inttostr (Makefile.am): Likewise.
42320         * modules/inttypes (Makefile.am): Likewise.
42321         * modules/isapipe (Makefile.am): Likewise.
42322         * modules/javaversion (Makefile.am): Likewise.
42323         * modules/lchmod (Makefile.am): Likewise.
42324         * modules/lchown (Makefile.am): Likewise.
42325         * modules/localcharset (Makefile.am): Likewise.
42326         * modules/long-options (Makefile.am): Likewise.
42327         * modules/lstat (Makefile.am): Likewise.
42328         * modules/malloc (Makefile.am): Likewise.
42329         * modules/mathl (Makefile.am): Likewise.
42330         * modules/mbchar (Makefile.am): Likewise.
42331         * modules/md2 (Makefile.am): Likewise.
42332         * modules/md4 (Makefile.am): Likewise.
42333         * modules/md5 (Makefile.am): Likewise.
42334         * modules/memcasecmp (Makefile.am): Likewise.
42335         * modules/memchr (Makefile.am): Likewise.
42336         * modules/memcmp (Makefile.am): Likewise.
42337         * modules/memcoll (Makefile.am): Likewise.
42338         * modules/memcpy (Makefile.am): Likewise.
42339         * modules/memmem (Makefile.am): Likewise.
42340         * modules/memmove (Makefile.am): Likewise.
42341         * modules/mempcpy (Makefile.am): Likewise.
42342         * modules/memrchr (Makefile.am): Likewise.
42343         * modules/memset (Makefile.am): Likewise.
42344         * modules/memxor (Makefile.am): Likewise.
42345         * modules/mkancesdirs (Makefile.am): Likewise.
42346         * modules/mkdir-p (Makefile.am): Likewise.
42347         * modules/mkdir (Makefile.am): Likewise.
42348         * modules/mkdtemp (Makefile.am): Likewise.
42349         * modules/mkstemp (Makefile.am): Likewise.
42350         * modules/mktime (Makefile.am): Likewise.
42351         * modules/modechange (Makefile.am): Likewise.
42352         * modules/mountlist (Makefile.am): Likewise.
42353         * modules/nanosleep (Makefile.am): Likewise.
42354         * modules/obstack (Makefile.am): Likewise.
42355         * modules/openat (Makefile.am): Likewise.
42356         * modules/pagealign_alloc (Makefile.am): Likewise.
42357         * modules/pathmax (Makefile.am): Likewise.
42358         * modules/physmem (Makefile.am): Likewise.
42359         * modules/poll (Makefile.am): Likewise.
42360         * modules/posixtm (Makefile.am): Likewise.
42361         * modules/posixver (Makefile.am): Likewise.
42362         * modules/putenv (Makefile.am): Likewise.
42363         * modules/quote (Makefile.am): Likewise.
42364         * modules/quotearg (Makefile.am): Likewise.
42365         * modules/raise (Makefile.am): Likewise.
42366         * modules/read-file (Makefile.am): Likewise.
42367         * modules/readline (Makefile.am): Likewise.
42368         * modules/readlink (Makefile.am): Likewise.
42369         * modules/readtokens (Makefile.am): Likewise.
42370         * modules/readutmp (Makefile.am): Likewise.
42371         * modules/realloc (Makefile.am): Likewise.
42372         * modules/regex (Makefile.am): Likewise.
42373         * modules/rename-dest-slash (Makefile.am): Likewise.
42374         * modules/rename (Makefile.am): Likewise.
42375         * modules/rijndael (Makefile.am): Likewise.
42376         * modules/rmdir (Makefile.am): Likewise.
42377         * modules/rpmatch (Makefile.am): Likewise.
42378         * modules/safe-read (Makefile.am): Likewise.
42379         * modules/safe-write (Makefile.am): Likewise.
42380         * modules/same-inode (Makefile.am): Likewise.
42381         * modules/same (Makefile.am): Likewise.
42382         * modules/save-cwd (Makefile.am): Likewise.
42383         * modules/savedir (Makefile.am): Likewise.
42384         * modules/setenv (Makefile.am): Likewise.
42385         * modules/settime (Makefile.am): Likewise.
42386         * modules/sha1 (Makefile.am): Likewise.
42387         * modules/sig2str (Makefile.am): Likewise.
42388         * modules/snprintf (Makefile.am): Likewise.
42389         * modules/stat-macros (Makefile.am): Likewise.
42390         * modules/stat-time (Makefile.am): Likewise.
42391         * modules/stdbool (Makefile.am): Likewise.
42392         * modules/stdint (Makefile.am): Likewise.
42393         * modules/stdlib-safer (Makefile.am): Likewise.
42394         * modules/stpcpy (Makefile.am): Likewise.
42395         * modules/stpncpy (Makefile.am): Likewise.
42396         * modules/strcase (Makefile.am): Likewise.
42397         * modules/strcasestr (Makefile.am): Likewise.
42398         * modules/strchrnul (Makefile.am): Likewise.
42399         * modules/strcspn (Makefile.am): Likewise.
42400         * modules/strdup (Makefile.am): Likewise.
42401         * modules/strerror (Makefile.am): Likewise.
42402         * modules/strftime (Makefile.am): Likewise.
42403         * modules/strndup (Makefile.am): Likewise.
42404         * modules/strnlen (Makefile.am): Likewise.
42405         * modules/strpbrk (Makefile.am): Likewise.
42406         * modules/strsep (Makefile.am): Likewise.
42407         * modules/strstr (Makefile.am): Likewise.
42408         * modules/strtod (Makefile.am): Likewise.
42409         * modules/strtoimax (Makefile.am): Likewise.
42410         * modules/strtok_r (Makefile.am): Likewise.
42411         * modules/strtol (Makefile.am): Likewise.
42412         * modules/strtoll (Makefile.am): Likewise.
42413         * modules/strtoul (Makefile.am): Likewise.
42414         * modules/strtoull (Makefile.am): Likewise.
42415         * modules/strtoumax (Makefile.am): Likewise.
42416         * modules/strverscmp (Makefile.am): Likewise.
42417         * modules/sys_socket (Makefile.am): Likewise.
42418         * modules/sys_stat (Makefile.am): Likewise.
42419         * modules/sysexits (Makefile.am): Likewise.
42420         * modules/time_r (Makefile.am): Likewise.
42421         * modules/timegm (Makefile.am): Likewise.
42422         * modules/timespec (Makefile.am): Likewise.
42423         * modules/tmpfile-safer (Makefile.am): Likewise.
42424         * modules/trim (Makefile.am): Likewise.
42425         * modules/unistd-safer (Makefile.am): Likewise.
42426         * modules/unlinkdir (Makefile.am): Likewise.
42427         * modules/unlocked-io (Makefile.am): Likewise.
42428         * modules/userspec (Makefile.am): Likewise.
42429         * modules/utime (Makefile.am): Likewise.
42430         * modules/utimecmp (Makefile.am): Likewise.
42431         * modules/utimens (Makefile.am): Likewise.
42432         * modules/vasnprintf (Makefile.am): Likewise.
42433         * modules/vasprintf (Makefile.am): Likewise.
42434         * modules/vsnprintf (Makefile.am): Likewise.
42435         * modules/xalloc (Makefile.am): Likewise.
42436         * modules/xgetcwd (Makefile.am): Likewise.
42437         * modules/xnanosleep (Makefile.am): Likewise.
42438         * modules/xreadlink (Makefile.am): Likewise.
42439         * modules/xstrtod (Makefile.am): Likewise.
42440         * modules/xstrtol (Makefile.am): Likewise.
42441         * modules/xstrtold (Makefile.am): Likewise.
42442         * modules/yesno (Makefile.am): Likewise.
42443         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42444
42445 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42446
42447         * modules/error (Makefile.am): Distribute files through
42448         EXTRA_DIST, not lib_SOURCES.
42449
42450 2006-10-12  Eric Blake  <ebb9@byu.net>
42451
42452         * modules/error (Makefile.am): Distribute files in /lib.
42453         * modules/obstack (Makefile.am): Likewise.
42454
42455 2006-10-12  Bruno Haible  <bruno@clisp.org>
42456
42457         * modules/acl (Makefile.am): Distribute all files in lib/ through
42458         EXTRA_DIST.
42459         * modules/arcfour (Makefile.am): Likewise.
42460         * modules/arctwo (Makefile.am): Likewise.
42461         * modules/argmatch (Makefile.am): Likewise.
42462         * modules/argz (Makefile.am): Likewise.
42463         * modules/atexit (Makefile.am): Likewise.
42464         * modules/backupfile (Makefile.am): Likewise.
42465         * modules/c-strtod (Makefile.am): Likewise.
42466         * modules/c-strtold (Makefile.am): Likewise.
42467         * modules/calloc (Makefile.am): Likewise.
42468         * modules/canon-host (Makefile.am): Likewise.
42469         * modules/canonicalize (Makefile.am): Likewise.
42470         * modules/chdir-long (Makefile.am): Likewise.
42471         * modules/chdir-safer (Makefile.am): Likewise.
42472         * modules/check-version (Makefile.am): Likewise.
42473         * modules/chown (Makefile.am): Likewise.
42474         * modules/cloexec (Makefile.am): Likewise.
42475         * modules/close-stream (Makefile.am): Likewise.
42476         * modules/closeout (Makefile.am): Likewise.
42477         * modules/crc (Makefile.am): Likewise.
42478         * modules/cycle-check (Makefile.am): Likewise.
42479         * modules/des (Makefile.am): Likewise.
42480         * modules/dirfd (Makefile.am): Likewise.
42481         * modules/dirname (Makefile.am): Likewise.
42482         * modules/dup2 (Makefile.am): Likewise.
42483         * modules/euidaccess (Makefile.am): Likewise.
42484         * modules/exclude (Makefile.am): Likewise.
42485         * modules/exitfail (Makefile.am): Likewise.
42486         * modules/fcntl-safer (Makefile.am): Likewise.
42487         * modules/file-type (Makefile.am): Likewise.
42488         * modules/fileblocks (Makefile.am): Likewise.
42489         * modules/filemode (Makefile.am): Likewise.
42490         * modules/filenamecat (Makefile.am): Likewise.
42491         * modules/fnmatch (Makefile.am): Likewise.
42492         * modules/fopen-safer (Makefile.am): Likewise.
42493         * modules/fpending (Makefile.am): Likewise.
42494         * modules/fprintftime (Makefile.am): Likewise.
42495         * modules/free (Makefile.am): Likewise.
42496         * modules/fsusage (Makefile.am): Likewise.
42497         * modules/ftruncate (Makefile.am): Likewise.
42498         * modules/fts (Makefile.am): Likewise.
42499         * modules/gc (Makefile.am): Likewise.
42500         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42501         * modules/getaddrinfo (Makefile.am): Likewise.
42502         * modules/getcwd (Makefile.am): Likewise.
42503         * modules/getdelim (Makefile.am): Likewise.
42504         * modules/getdomainname (Makefile.am): Likewise.
42505         * modules/getgroups (Makefile.am): Likewise.
42506         * modules/gethostname (Makefile.am): Likewise.
42507         * modules/gethrxtime (Makefile.am): Likewise.
42508         * modules/getline (Makefile.am): Likewise.
42509         * modules/getloadavg (Makefile.am): Likewise.
42510         * modules/getlogin_r (Makefile.am): Likewise.
42511         * modules/getopt (Makefile.am): Likewise.
42512         * modules/getpass (Makefile.am): Likewise.
42513         * modules/getpass-gnu (Makefile.am): Likewise.
42514         * modules/getsubopt (Makefile.am): Likewise.
42515         * modules/gettime (Makefile.am): Likewise.
42516         * modules/gettimeofday (Makefile.am): Likewise.
42517         * modules/getugroups (Makefile.am): Likewise.
42518         * modules/getusershell (Makefile.am): Likewise.
42519         * modules/glob (Makefile.am): Likewise.
42520         * modules/group-member (Makefile.am): Likewise.
42521         * modules/hard-locale (Makefile.am): Likewise.
42522         * modules/hash (Makefile.am): Likewise.
42523         * modules/hmac-md5 (Makefile.am): Likewise.
42524         * modules/hmac-sha1 (Makefile.am): Likewise.
42525         * modules/human (Makefile.am): Likewise.
42526         * modules/idcache (Makefile.am): Likewise.
42527         * modules/imaxabs (Makefile.am): Likewise.
42528         * modules/imaxdiv (Makefile.am): Likewise.
42529         * modules/inet_ntop (Makefile.am): Likewise.
42530         * modules/inet_pton (Makefile.am): Likewise.
42531         * modules/inttostr (Makefile.am): Likewise.
42532         * modules/isapipe (Makefile.am): Likewise.
42533         * modules/lchown (Makefile.am): Likewise.
42534         * modules/long-options (Makefile.am): Likewise.
42535         * modules/lstat (Makefile.am): Likewise.
42536         * modules/malloc (Makefile.am): Likewise.
42537         * modules/mathl (Makefile.am): Likewise.
42538         * modules/mbchar (Makefile.am): Likewise.
42539         * modules/md2 (Makefile.am): Likewise.
42540         * modules/md4 (Makefile.am): Likewise.
42541         * modules/md5 (Makefile.am): Likewise.
42542         * modules/memcasecmp (Makefile.am): Likewise.
42543         * modules/memchr (Makefile.am): Likewise.
42544         * modules/memcmp (Makefile.am): Likewise.
42545         * modules/memcoll (Makefile.am): Likewise.
42546         * modules/memcpy (Makefile.am): Likewise.
42547         * modules/memmem (Makefile.am): Likewise.
42548         * modules/memmove (Makefile.am): Likewise.
42549         * modules/mempcpy (Makefile.am): Likewise.
42550         * modules/memrchr (Makefile.am): Likewise.
42551         * modules/memset (Makefile.am): Likewise.
42552         * modules/memxor (Makefile.am): Likewise.
42553         * modules/mkancesdirs (Makefile.am): Likewise.
42554         * modules/mkdir (Makefile.am): Likewise.
42555         * modules/mkdir-p (Makefile.am): Likewise.
42556         * modules/mkdtemp (Makefile.am): Likewise.
42557         * modules/mkstemp (Makefile.am): Likewise.
42558         * modules/mktime (Makefile.am): Likewise.
42559         * modules/modechange (Makefile.am): Likewise.
42560         * modules/mountlist (Makefile.am): Likewise.
42561         * modules/nanosleep (Makefile.am): Likewise.
42562         * modules/openat (Makefile.am): Likewise.
42563         * modules/pagealign_alloc (Makefile.am): Likewise.
42564         * modules/physmem (Makefile.am): Likewise.
42565         * modules/poll (Makefile.am): Likewise.
42566         * modules/posixtm (Makefile.am): Likewise.
42567         * modules/posixver (Makefile.am): Likewise.
42568         * modules/putenv (Makefile.am): Likewise.
42569         * modules/quote (Makefile.am): Likewise.
42570         * modules/quotearg (Makefile.am): Likewise.
42571         * modules/raise (Makefile.am): Likewise.
42572         * modules/read-file (Makefile.am): Likewise.
42573         * modules/readline (Makefile.am): Likewise.
42574         * modules/readlink (Makefile.am): Likewise.
42575         * modules/readtokens (Makefile.am): Likewise.
42576         * modules/readutmp (Makefile.am): Likewise.
42577         * modules/realloc (Makefile.am): Likewise.
42578         * modules/regex (Makefile.am): Likewise.
42579         * modules/rename (Makefile.am): Likewise.
42580         * modules/rename-dest-slash (Makefile.am): Likewise.
42581         * modules/rijndael (Makefile.am): Likewise.
42582         * modules/rmdir (Makefile.am): Likewise.
42583         * modules/rpmatch (Makefile.am): Likewise.
42584         * modules/safe-read (Makefile.am): Likewise.
42585         * modules/safe-write (Makefile.am): Likewise.
42586         * modules/same (Makefile.am): Likewise.
42587         * modules/save-cwd (Makefile.am): Likewise.
42588         * modules/savedir (Makefile.am): Likewise.
42589         * modules/setenv (Makefile.am): Likewise.
42590         * modules/settime (Makefile.am): Likewise.
42591         * modules/sha1 (Makefile.am): Likewise.
42592         * modules/sig2str (Makefile.am): Likewise.
42593         * modules/snprintf (Makefile.am): Likewise.
42594         * modules/stdlib-safer (Makefile.am): Likewise.
42595         * modules/stpcpy (Makefile.am): Likewise.
42596         * modules/stpncpy (Makefile.am): Likewise.
42597         * modules/strcase (Makefile.am): Likewise.
42598         * modules/strcasestr (Makefile.am): Likewise.
42599         * modules/strchrnul (Makefile.am): Likewise.
42600         * modules/strcspn (Makefile.am): Likewise.
42601         * modules/strdup (Makefile.am): Likewise.
42602         * modules/strerror (Makefile.am): Likewise.
42603         * modules/strftime (Makefile.am): Likewise.
42604         * modules/strndup (Makefile.am): Likewise.
42605         * modules/strnlen (Makefile.am): Likewise.
42606         * modules/strpbrk (Makefile.am): Likewise.
42607         * modules/strsep (Makefile.am): Likewise.
42608         * modules/strstr (Makefile.am): Likewise.
42609         * modules/strtod (Makefile.am): Likewise.
42610         * modules/strtoimax (Makefile.am): Likewise.
42611         * modules/strtok_r (Makefile.am): Likewise.
42612         * modules/strtol (Makefile.am): Likewise.
42613         * modules/strtoll (Makefile.am): Likewise.
42614         * modules/strtoul (Makefile.am): Likewise.
42615         * modules/strtoull (Makefile.am): Likewise.
42616         * modules/strtoumax (Makefile.am): Likewise.
42617         * modules/strverscmp (Makefile.am): Likewise.
42618         * modules/time_r (Makefile.am): Likewise.
42619         * modules/timegm (Makefile.am): Likewise.
42620         * modules/tmpfile-safer (Makefile.am): Likewise.
42621         * modules/unistd-safer (Makefile.am): Likewise.
42622         * modules/unlinkdir (Makefile.am): Likewise.
42623         * modules/userspec (Makefile.am): Likewise.
42624         * modules/utime (Makefile.am): Likewise.
42625         * modules/utimecmp (Makefile.am): Likewise.
42626         * modules/utimens (Makefile.am): Likewise.
42627         * modules/vasnprintf (Makefile.am): Likewise.
42628         * modules/vasprintf (Makefile.am): Likewise.
42629         * modules/vsnprintf (Makefile.am): Likewise.
42630         * modules/xalloc (Makefile.am): Likewise.
42631         * modules/xgetcwd (Makefile.am): Likewise.
42632         * modules/xnanosleep (Makefile.am): Likewise.
42633         * modules/xreadlink (Makefile.am): Likewise.
42634         * modules/xstrtod (Makefile.am): Likewise.
42635         * modules/xstrtol (Makefile.am): Likewise.
42636         * modules/xstrtold (Makefile.am): Likewise.
42637         * modules/yesno (Makefile.am): Likewise.
42638
42639 2006-10-12  Jim Meyering  <jim@meyering.net>
42640
42641         * m4/getloadavg.m4: Revert the change below.
42642
42643         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42644         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42645         fail with a symlink, which is what coreutils' ./bootstrap now
42646         creates by default.
42647
42648 2006-10-12  Bruno Haible  <bruno@clisp.org>
42649
42650         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42651         mingw.
42652         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42653         MSVC and mingw explicitly.
42654
42655 2006-10-11  Simon Josefsson  <jas@extundo.com>
42656             Bruno Haible  <bruno@clisp.org>
42657
42658         Add support for multiple gnulib-tool invocations in the scope of a
42659         single configure.ac file.
42660         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42661         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42662         with the same contents as the _LIBADD variable.
42663         (func_emit_initmacro_start, func_emit_initmacro_end,
42664         func_emit_initmacro_done): New functions.
42665         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42666         gl_LIBOBJS and gl_LTLIBOBJS.
42667
42668 2006-10-11  Bruno Haible  <bruno@clisp.org>
42669
42670         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42671         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42672         autoreconf. Instead, invoke autopoint explicitly but move back the
42673         *.m4 files from gnulib.
42674
42675 2006-10-11  Bruno Haible  <bruno@clisp.org>
42676
42677         * gnulib-tool (func_usage): Make module names after --create-testdir
42678         optional.
42679         (func_create_testdir): If no module was specified, use nearly all
42680         modules.
42681
42682 2006-10-12  Jim Meyering  <jim@meyering.net>
42683
42684         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42685         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42686         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42687         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42688         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42689         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42690         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42691         (fts_set_stat_required): New function.
42692         (fts_open): Defer the calls to fts_stat, if possible or requested.
42693         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42694         into fts_stat itself.
42695         (fts_read): Perform any required (deferred) fts_stat call.
42696         (fts_build): Likewise, for the directory we're about to open and read.
42697         In the readdir loop, carefully decide whether each entry will require
42698         an eventual call to fts_stat, using dirent.d_type info if available.
42699         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42700         a command line argument into this function.  Update all callers.
42701         Map a return value of FTS_DOT to FTS_D for a command line argument.
42702         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42703         Thanks to Miklos Szeredi for his tenacity and for the initial
42704         bug report about "find" failing on a FUSE-based file system.
42705
42706         * lib/fts.c (fts_open): Use consistent indentation.
42707
42708 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42709
42710         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42711         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42712         reported by Jim Meyering.  All uses of cache variables renamed
42713         to match Autoconf's.
42714         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42715         the other one.
42716
42717         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42718         Fix misspelling in diagnostic.
42719
42720 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42721
42722         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42723         defined.  Problem reported by Matthew Woehlke.
42724
42725         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42726         Add support for Tandem NonStop R series.
42727         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42728         Use new macro.
42729
42730         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42731         (has_trailing_slash): Omit size arg; all callers changed.
42732         Omit 'inline', since it doesn't help performance and we'd
42733         need to configure it.
42734         Don't count //, ///, etc. as having a trailing slash.
42735         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42736         (rpl_rename_dest_slash): On failure, use rename's errno rather
42737         than (in some cases) an incorrect or junk errno.
42738         Simplify code by removing need to compute length; this does
42739         cause it to make two passes instead of one over the file name,
42740         but it's worth it.
42741
42742         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42743         change, since Autoconf's version may no longer be appropriate now
42744         that we are using CVS Autoconf's version.  Add support for Tandem.
42745
42746 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42747             Bruno Haible  <bruno@clisp.org>
42748
42749         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42750         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42751         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42752         gl_AC_TYPE_LONG_LONG.
42753
42754         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42755         instead of HAVE_LONG_LONG.
42756         * lib/printf-args.c (printf_fetchargs): Likewise.
42757         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42758         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42759         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42760         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42761         gl_AC_TYPE_LONG_LONG.
42762
42763 2006-10-11  Bruno Haible  <bruno@clisp.org>
42764
42765         * m4/longlong.m4: Add comments.
42766         * m4/ulonglong.m4: Likewise.
42767
42768 2006-10-10  Bruno Haible  <bruno@clisp.org>
42769
42770         Make it possible to #define stpcpy, strdup to aliases.
42771         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42772         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42773
42774 2006-10-10  Bruno Haible  <bruno@clisp.org>
42775
42776         Make it possible to #define gcd to an alias.
42777         * lib/gcd.c: Include config.h.
42778
42779 2006-10-10  Bruno Haible  <bruno@clisp.org>
42780
42781         Make it possible to #define c_isascii to an alias.
42782         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42783         defined. Undefine the macros before defining them, to avoid gcc
42784         warnings.
42785         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42786         define NO_C_CTYPE_MACROS early.
42787
42788 2006-10-10  Bruno Haible  <bruno@clisp.org>
42789
42790         Make it possible to #define set_program_name to an alias.
42791         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42792         ENABLE_RELOCATABLE early.
42793
42794 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42795
42796         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42797         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42798         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42799         More generally, don't assume that 64-bit signed int is available
42800         if unsigned int is, and vice versa.
42801         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42802         unsigned symbols, not on their signed counterparts.
42803         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42804         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42805         (UINT64_C, UINTMAX_C):
42806         Likewise.
42807         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42808         unsigned counterparts.
42809         (Have_long_long, Unsigned): New macros.
42810         (Int): Renamed from INT.
42811         (strtoimax): Use the new macros.
42812         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42813         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42814         * modules/inttypes (inttypes.h): Substitute
42815         HAVE_UNSIGNED_LONG_LONG_INT.
42816         * modules/stdint (stdint.h): Likewise.
42817         (Files): Add m4/ulonglong.m4.
42818
42819 2006-10-10  Bruno Haible  <bruno@clisp.org>
42820
42821         Fix a gcc -Wshadow warning.
42822         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42823         to 'bucket'.
42824         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42825         gl_linked_indexof_from_to): Likewise.
42826         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42827         Likewise.
42828         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42829         Likewise.
42830         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42831         Reported by Eric Blake.
42832
42833 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42834
42835         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42836         for NetBSD.  Problem reported by Bruno Haible.
42837
42838 2006-10-09  Jim Meyering  <jim@meyering.net>
42839
42840         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42841         Patch from Bruno Haible.
42842
42843 2006-10-09  Jim Meyering  <jim@meyering.net>
42844
42845         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42846         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42847         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42848
42849 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42850
42851         Don't include <config.h> twice; this doesn't work in some cases,
42852         e.g., when config.h has "#define intmax_t long long int" and
42853         we include <config.h>, <inttypes.h>, <config.h> in that order.
42854         Problem reported by Matthew Woehlke in:
42855         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42856         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42857         * lib/fts-cycle.c: Don't include config.h.
42858         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42859         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42860         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42861         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42862         inttypes.h.
42863         * lib/xstrtoumax.c: Likewise.
42864         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42865         __strtol and the like, so that this module is more like its siblings.
42866         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42867         Remove; no longer needed now that we assume gnulib inttypes.h.
42868
42869 2006-10-08  Bruno Haible  <bruno@clisp.org>
42870
42871         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42872         option.
42873
42874 2006-10-07  Jim Meyering  <jim@meyering.net>
42875
42876         * modules/inttypes (inttypes.h): Revert what seems to have been
42877         an inadvertent part of today's change: use "|", not "/" in the
42878         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42879
42880 2006-10-07  Bruno Haible  <bruno@clisp.org>
42881
42882         * modules/sublist: New file.
42883
42884 2006-10-07  Bruno Haible  <bruno@clisp.org>
42885
42886         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42887         * modules/argz (argz.h): Likewise.
42888         * modules/arpa_inet (arpa/inet.h): Likewise.
42889         * modules/byteswap (byteswap.h): Likewise.
42890         * modules/configmake (configmake.h): Likewise.
42891         * modules/fcntl (fcntl.h): Likewise.
42892         * modules/fnmatch (fnmatch.h): Likewise.
42893         * modules/getopt (getopt.h): Likewise.
42894         * modules/glob (glob.h): Likewise.
42895         * modules/inttypes (inttypes.h): Likewise.
42896         * modules/netinet_in (netinet/in.h): Likewise.
42897         * modules/poll (poll.h): Likewise.
42898         * modules/stdbool (stdbool.h): Likewise.
42899         * modules/stdint (stdint.h): Likewise.
42900         * modules/sys_select (sys/select.h): Likewise.
42901         * modules/sys_socket (sys/socket.h): Likewise.
42902         * modules/sys_stat (sys/stat.h): Likewise.
42903         * modules/sysexits (sysexits.h): Likewise.
42904         * modules/unistd (unistd.h): Likewise.
42905         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42906         Add a "DO NOT EDIT" comment to the generated file.
42907         (func_import): Likewise for gnulib-comp.m4.
42908
42909 2006-10-07  Bruno Haible  <bruno@clisp.org>
42910
42911         * lib/gl_sublist.h: New file.
42912         * lib/gl_sublist.c: New file.
42913
42914 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42915
42916         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42917         name (relative to the original working directory) and the file
42918         name component (relative to the temporary working directory).  All
42919         callers changed.
42920         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42921         * lib/mkdir-p.c (make_dir_parents): Likewise.
42922         * lib/mkdir-p.h (make_dir_parents): Likewise.
42923
42924 2006-10-06  Eric Blake  <ebb9@byu.net>
42925
42926         Define several macros for use by the clean-temp module.
42927         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42928         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42929         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42930
42931         * lib/clean-temp.h (close_stream_temp): New declaration.
42932         * lib/clean-temp.c (includes): Pull in headers according to what
42933         other modules are in use.
42934         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42935
42936 2006-10-06  Bruno Haible  <bruno@clisp.org>
42937
42938         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42939         instead of fopen, fwriteerror.
42940
42941 2006-10-06  Bruno Haible  <bruno@clisp.org>
42942
42943         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42944         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42945         int.
42946         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42947         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42948         Return an error indicator.
42949         Suggested by Eric Blake.
42950
42951 2006-10-06  Bruno Haible  <bruno@clisp.org>
42952
42953         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42954         Reported by Eric Blake.
42955
42956 2006-10-06  Bruno Haible  <bruno@clisp.org>
42957
42958         * modules/closeout (Description): Mention stderr too.
42959
42960 2006-10-06  Bruno Haible  <bruno@clisp.org>
42961         and Paul Eggert  <eggert@cs.ucla.edu>
42962
42963         * lib/closeout.c (close_stdout): Also close stderr.
42964         * lib/closeout.h: Update comment.
42965
42966 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42967
42968         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42969         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42970         * lib/dirchownmod.c: Include lchown.h.
42971         * lib/lchown.c: Don't include files that lchown.h now includes.
42972         Don't declare chown, since lchown.h now does that.
42973         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42974         (lchown): Define to rpl_chown if lchown is declared but
42975         does not exist.  Declare using a prototype if lchown is not
42976         declared.  Add a copyright notice.
42977         * lib/mkstemp.h: Include <unistd.h>.
42978         * lib/openat.c: Include lchown.h.
42979
42980         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42981         we now test for that separately.
42982         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42983         rather than O_NOFOLLOW, when testing whether it's possible to
42984         avoid a race condition reliably.
42985         * lib/savewd.c (savewd_chdir): Likewise.
42986
42987         Remove macros that are no longer needed now that stdint.h is
42988         reliable.
42989         * lib/fsusage.c (UINTMAX_MAX): Remove.
42990         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42991         * lib/utimecmp.c (SIZE_MAX): Remove.
42992
42993         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42994
42995         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42996         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
42997         O_NOATIME works.
42998
42999 2006-10-05  Bruno Haible  <bruno@clisp.org>
43000
43001         * lib/gl_list.h (gl_sortedlist_search_from_to,
43002         gl_sortedlist_indexof_from_to): New declarations.
43003         (gl_list_implementation): New fields sortedlist_search_from_to,
43004         sortedlist_indexof_from_to.
43005         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
43006         inline functions.
43007         * lib/gl_list.c (gl_sortedlist_search_from_to,
43008         gl_sortedlist_indexof_from_to): New functions.
43009         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
43010         function.
43011         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43012         (gl_array_sortedlist_search_from_to): New function.
43013         (gl_array_list_implementation): Update.
43014         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43015         function.
43016         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43017         (gl_carray_sortedlist_search_from_to): New function.
43018         (gl_carray_list_implementation): Update.
43019         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43020         gl_linked_sortedlist_indexof_from_to): New functions.
43021         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43022         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43023         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43024         gl_tree_sortedlist_indexof_from_to): New functions.
43025         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43026         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43027         Update.
43028         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43029         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43030         Update.
43031
43032 2006-10-05  Bruno Haible  <bruno@clisp.org>
43033
43034         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43035         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43036         (struct gl_list_implementation): Add fields search_from_to,
43037         indexof_from_to. Remove fields search, indexof.
43038         (gl_list_search): Use the search_from_to method.
43039         (gl_list_search_from, gl_list_search_from_to): New functions.
43040         (gl_list_indexof): Use the indexof_from_to method.
43041         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43042         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43043         (gl_list_search_from, gl_list_search_from_to): New functions.
43044         (gl_list_indexof): Use the indexof_from_to method.
43045         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43046         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43047         gl_array_indexof. Add start_index, end_index arguments.
43048         (gl_array_search_from_to): Renamed from gl_array_search. Add
43049         start_index, end_index arguments.
43050         (gl_array_remove, gl_array_list_implementation): Update.
43051         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43052         gl_carray_indexof. Add start_index, end_index arguments.
43053         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43054         start_index, end_index arguments.
43055         (gl_carray_remove, gl_carray_list_implementation): Update.
43056         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43057         gl_linked_search. Add start_index, end_index arguments.
43058         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43059         start_index, end_index arguments.
43060         (gl_linked_remove): Update.
43061         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43062         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43063         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
43064         field to 'size_t'.
43065         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43066         gl_tree_search. Add start_index, end_index arguments.
43067         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43068         start_index, end_index arguments.
43069         (gl_tree_remove): Update.
43070         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43071         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43072         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43073         function.
43074         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43075         gl_tree_search. Add start_index, end_index arguments.
43076         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43077         start_index, end_index arguments.
43078         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43079         Update.
43080         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43081
43082 2006-10-05  Bruno Haible  <bruno@clisp.org>
43083
43084         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43085
43086         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43087         fwriteerror_temp): New declarations.
43088         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43089         (descriptors): New variable.
43090         (cleanup): First, close the descriptors.
43091         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43092         fclose_temp, fwriteerror_temp): New functions.
43093
43094 2006-10-04  Jim Meyering  <jim@meyering.net>
43095
43096         * lib/fts.c (fts_open): Tiny comment change.
43097
43098 2006-10-04  Bruno Haible  <bruno@clisp.org>
43099
43100         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43101         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43102         gl_LOCK_BODY.
43103         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43104         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43105         gl_LOCK_EARLY_BODY.
43106         (gl_LOCK): Require gl_LOCK_BODY.
43107
43108 2006-10-04  Bruno Haible  <bruno@clisp.org>
43109
43110         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43111         (gl_oset_search_atleast): New declaration.
43112         (struct gl_oset_implementation): Add field 'search_atleast'.
43113         (gl_oset_search_atleast): New inline function.
43114         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43115         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43116         (gl_array_oset_implementation): Update.
43117         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43118         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43119         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43120
43121 2006-10-04  Bruno Haible  <bruno@clisp.org>
43122
43123         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43124
43125 2006-10-03  Bruno Haible  <bruno@clisp.org>
43126
43127         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43128         from gl_avltreehash_list_implementation.
43129
43130 2006-10-03  Bruno Haible  <bruno@clisp.org>
43131
43132         * lib/gl_oset.c (gl_oset_add): Fix return type.
43133
43134 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43135
43136         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43137
43138 2006-10-02  Eric Blake  <ebb9@byu.net>
43139
43140         * modules/strnlen (Depends-on): Add extensions.
43141
43142 2006-10-02  Eric Blake  <ebb9@byu.net>
43143
43144         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43145         definition in 2.60+.
43146
43147 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43148
43149         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43150         checks.
43151
43152 2006-10-02  Bruno Haible  <bruno@clisp.org>
43153
43154         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43155         to the AUTOMAKE_OPTIONS.
43156         Reported by Jim Meyering.
43157
43158 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43159
43160         Work around bug in Solaris 10 /proc file system:
43161         /proc/self/fd/NNN/.. isn't the parent directory of
43162         the directory whose file descriptor is NNN.  This needs to
43163         be worked around at run time, not compile time, since a
43164         program might be built on Solaris 8, where things work, and
43165         run on Solaris 10.
43166         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43167         to use the following interface instead:
43168         (OPENAT_BUFFER_SIZE): New macro.
43169         (openat_proc_name): New function.
43170         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43171         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43172         Likewise.
43173         * lib/openat-proc.c: New file.
43174         * modules/openat (Files): Add lib/openat-proc.c.
43175         (Depends-on): Add same-inode, stdbool.
43176         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43177
43178 2006-09-29  Bruno Haible  <bruno@clisp.org>
43179
43180         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43181         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43182         argument. Set stdout_closed before testing for ferror, not after.
43183         (fwriteerror, fwriteerror_no_ebadf): New functions.
43184
43185 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43186
43187         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43188
43189 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43190
43191         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43192         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43193
43194 2006-09-28  Jim Meyering  <jim@meyering.net>
43195
43196         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43197         Include <unistd.h>.
43198
43199 2006-09-28  Bruno Haible  <bruno@clisp.org>
43200
43201         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43202         * modules/linkedhash-list (Depends-on): Likewise.
43203         * modules/rbtreehash-list (Depends-on): Likewise.
43204
43205 2006-09-28  Bruno Haible  <bruno@clisp.org>
43206
43207         * lib/strndup.h: Simplify the redefinition of strndup.
43208         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43209         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43210
43211 2006-09-28  Bruno Haible  <bruno@clisp.org>
43212
43213         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43214         * lib/gl_linkedhash_list.c: Likewise.
43215         * lib/gl_rbtreehash_list.c: Likewise.
43216
43217 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43218
43219         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43220         getaddrinfo.
43221
43222         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43223         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43224         it causes <stdio_ext.h> to cause a compile-time error.
43225         Problem reported by Nelson H. F. Beebe.
43226         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43227         of HAVE_DECL___PENDING.
43228
43229         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43230         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43231         declaration.
43232
43233 2006-09-27  Jim Meyering  <jim@meyering.net>
43234
43235         This file could end up with a definition for a function
43236         named __strndup, rather than rpl_strndup on a system with
43237         incomplete weak_alias support.
43238         * lib/strndup.c (strndup): Rename from __strndup.
43239         Remove #defines that used to map __strndup to strndup.
43240         Don't use K&R prototypes.
43241         Remove LIBC-related code, since this file is not sync'd with glibc.
43242         * lib/strndup.h: Revamp, accordingly.
43243         * m4/strndup.m4: Modernize.
43244
43245 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43246
43247         * modules/savewd (Depends-on): Add 'raise'.
43248         * lib/savewd.c: Include <signal.h>, for 'raise'.
43249
43250 2006-09-26  Jim Meyering  <jim@meyering.net>
43251
43252         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43253         when we detect Darwin 8.7.0's acl_get_file bug.
43254         Rearrange to perform the new (below) run-test while $LIBS
43255         contains any acl-related library.  Set USE_ACL at the end.
43256         (gl_ACL_GET_FILE): New function.
43257
43258 2006-09-26  Eric Blake  <ebb9@byu.net>
43259
43260         * lib/verror.c: Include <config.h> unconditionally.
43261
43262 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43263
43264         * modules/clock-time (Maintainer): Add self.
43265         * modules/getlogin_r (Depends-on): Add extensions.
43266
43267 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43268
43269         * modules/clock-time: New module.
43270         * modules/nanosleep (Depends-on): Add clock-time.
43271         * modules/gethrxtime (Depends-on): Likewise.
43272         * modules/gettime (Depends-on): Likewise.
43273         * modules/settime (Depends-on): Likewise.
43274
43275         * modules/fts-lgpl: Depend on openat.
43276         * modules/mkancesdirs: Depend on savewd.
43277         * modules/mkdir-p: Likewise.
43278
43279 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43280
43281         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43282
43283         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43284         `gl_have_arbitrary_file_name_length_limit' to
43285         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43286         actually works between configure runs.
43287
43288 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43289             Bruno Haible  <bruno@clisp.org>
43290
43291         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43292
43293 2006-09-25  Jim Meyering  <jim@meyering.net>
43294
43295         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43296         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43297
43298 2006-09-25  Eric Blake  <ebb9@byu.net>
43299
43300         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43301         exec's in 2006-09-18 patch when shuffling fds.
43302
43303 2006-09-25  Bruno Haible  <bruno@clisp.org>
43304
43305         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43306         Reported by Jim Meyering.
43307
43308 2006-09-24  Jim Meyering  <jim@meyering.net>
43309
43310         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43311         compare a pointer against a literal "0".  That caused failures with
43312         at least HP-UX's hpcc.
43313
43314 2006-09-22  Simon Josefsson  <jas@extundo.com>
43315
43316         * modules/gc-sha1:
43317         * modules/gc-md4:
43318         * modules/gc-hmac-sha1:
43319         * modules/gc-hmac-md5:
43320         * modules/gc-des:
43321         * modules/gc-arcfour: Distribute more files.
43322
43323 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43324
43325         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43326         (gl_linked_iterator_from_to): Initialize struct completely.
43327         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43328         (gl_tree_iterator_from_to): Likewise
43329         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43330         * lib/gl_array_list.c [lint] (gl_array_iterator)
43331         (gl_array_iterator_from_to): Likewise.
43332         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43333         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43334         (gl_carray_iterator_from_to): Likewise.
43335
43336         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43337         * lib/md4.c (md4_process_block): Remove unused variable.
43338         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43339         parentheses for clarity.
43340
43341 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43342
43343         * modules/bison-i18n (Depends-on): Add gettext.
43344
43345 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43346
43347         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43348         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43349         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43350         also add missing comma that caused broken test.
43351         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43352         stdlib.h, for `abort'.
43353         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43354         variables.
43355         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43356         include unistd.h if present, for `rmdir'.
43357         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43358         variables.
43359         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43360         in the process include standard headers for prototypes.
43361         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43362         gets declared on GNU/Linux.
43363         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43364         unistd.h, for `rmdir'.
43365         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43366
43367         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43368         always true.
43369         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43370
43371         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43372
43373 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43374
43375         * gnulib-tool (func_version): Create output all at once.  This
43376         may help avoid triggering unnecessary SIGPIPEs, and at any
43377         rate it doesn't hurt.
43378
43379 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43380             Bruno Haible  <bruno@clisp.org>
43381
43382         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43383         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43384         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43385
43386         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43387         (gl_FUNC_VASPRINTF): Invoke it.
43388
43389 2006-09-22  Bruno Haible  <bruno@clisp.org>
43390
43391         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43392         getloadavg.c as first argument.
43393
43394 2006-09-22  Bruno Haible  <bruno@clisp.org>
43395
43396         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43397         at the beginning of the gl_INIT macro.
43398         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43399         gl_GETLOADAVG.
43400
43401 2006-09-22  Bruno Haible  <bruno@clisp.org>
43402
43403         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43404         module.
43405         Suggested by Ralf Wildenhues.
43406
43407 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43408
43409         Import this patch from libc:
43410
43411         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43412
43413         * lib/regex_internal.c (re_string_reconstruct): Handle
43414         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43415         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43416         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43417         re_string_context_at.
43418
43419         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43420         now requires it.
43421         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43422         gl_REGEX now does it for us.
43423         (gl_REGEX): Add test taken from
43424         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43425
43426         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43427         Check that large offsets work.  Modernize Autoconf usages.
43428         Prefer "yes" to mean a good thing rather than a bad.
43429         Don't put "#define mkstemp" in config.h, as this might interfere
43430         with standard system headers that "#define mkstemp mkstemp64".
43431
43432         * modules/mkstemp (Depends-on): Add extensions, so that
43433         mkstemp is visible on some platforms.
43434         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43435         (Include): Change to "mkstemp.h" from <stdlib.h>.
43436         (Files): Add mkstemp.h.
43437
43438         * lib/mkstemp.h: New file, since some standard headers
43439         #define mkstemp.
43440         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43441         Include "mkstemp.h".
43442         Make the _LIBC code resemble glibc original more,
43443         e.g., use K&R style.
43444         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43445         (mkstemp): Remove, since mkstemp.h does this for us.
43446         * lib/stdlib--.h: Include mkstemp.h.
43447
43448         Import this patch from libc:
43449
43450         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43451
43452         * lib/tempname.c (__gen_tempname): Change attempts_min
43453         into a macro.  Use preprocessor to decide how to initialize
43454         attempts [Coverity CID 67].
43455
43456 2006-09-20  Bruno Haible  <bruno@clisp.org>
43457
43458         * lib/mkdtemp.c: Import from libc.
43459         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43460                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43461                 attempts_min into a macro.  Use preprocessor to decide how to
43462                 initialize attempts [Coverity CID 67].
43463         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43464                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43465                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43466
43467 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43468
43469         * gnulib-tool (func_exit): New function, to allow to pass the
43470         exit status portably through the trap.  Use everywhere.
43471         (--help, --version): Signal a write error.
43472         (trap): catch SIGPIPE, for write errors.
43473         Exit at the end of the trap, with the correct exit status.
43474
43475 2006-09-19  Karl Berry  <karl@gnu.org>
43476
43477         * doc/gnulib.texi: note about the license texinfo files.
43478
43479 2006-09-19  Eric Blake  <ebb9@byu.net>
43480
43481         * gnulib-tool: Avoid space-tab.
43482
43483 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43484
43485         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43486         that prevented coreutils 6.1 from building.  Problem reported
43487         by Petter Reinholdtsen.
43488
43489 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43490
43491         * gnulib-tool (avoidlist): Fix typo that broke options like
43492         --avoid=lock that are used by coreutils bootstrap.
43493
43494 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43495
43496         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43497         more systematically.
43498
43499 2006-09-18  Jim Meyering  <jim@meyering.net>
43500
43501         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43502
43503 2006-09-18  Bruno Haible  <bruno@clisp.org>
43504
43505         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43506
43507 2006-09-18  Bruno Haible  <bruno@clisp.org>
43508
43509         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43510         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43511         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43512         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43513         * m4/gettext.m4: Require autoconf >= 2.52.
43514         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43515         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43516         of gl_cv_header_inttypes_h.
43517
43518 2006-09-18  Bruno Haible  <bruno@clisp.org>
43519
43520         * lib/javaversion.c: Include configmake.h.
43521
43522 2006-09-18  Bruno Haible  <bruno@clisp.org>
43523
43524         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43525         avoid that the while loops be executed in a subshell.
43526
43527 2006-09-18  Bruno Haible  <bruno@clisp.org>
43528
43529         * MODULES.html.sh (func_module): Break long lines.
43530         Suggested by Bruce Korb <bkorb@gnu.org>.
43531
43532 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43533
43534         Speed up by a factor of 1.12.
43535         * gnulib-tool (nl): New variable.
43536         (func_import): Rewrite include directive extraction to only read each
43537         directive once.
43538
43539 2006-09-17  Bruno Haible  <bruno@clisp.org>
43540
43541         * modules/javaversion (Makefile.am): Remove DEFS setting.
43542         (Depends-on): Add configmake, for PKGDATADIR definition.
43543
43544 2006-09-17  Bruno Haible  <bruno@clisp.org>
43545
43546         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43547
43548 2006-09-17  Bruno Haible  <bruno@clisp.org>
43549
43550         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43551         (func_modules_transitive_closure, func_modules_add_dummy,
43552         func_modules_to_filelist, func_import, func_create_testdir,
43553         func_create_megatestdir, ...): Use it wherever possible.
43554         Suggested by Ralf Wildenhues.
43555
43556 2006-09-16  Karl Berry  <karl@gnu.org>
43557
43558         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43559         to avoid sectioning errors.
43560         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43561         [ifinfo]: blank line after @center-ed titles.
43562         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43563         Spell FSF address consistently with others.
43564         (These changes approved by rms.)
43565
43566 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43567
43568         Speed up by a factor of 1.61.
43569         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43570         already checked module names again.
43571
43572 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43573
43574         Speed up by a factor of 1.13.
43575         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43576         for new_files, and the input to func_add_or_update.
43577
43578 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43579
43580         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43581         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43582
43583 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43584
43585         * modules/mkancesdirs (Depends-on): Add fcntl.
43586         * modules/savewd: New file.
43587         * MODULES.html.sh (File system functions): Add savewd.
43588
43589         * modules/configmake (Makefile.am): Add support for the
43590         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43591
43592 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43593
43594         * m4/savewd.m4: New file.
43595
43596 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43597
43598         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43599         (dirchownmod): New arg FD.  All callers changed.
43600         Use FD rather than opening the directory ourself, as opening is
43601         now the caller's responsibility.
43602         * lib/dirchownmod.h: Likewise.
43603         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43604         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43605         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43606         (test_dir): Remove.
43607         (mkancesdirs): Return length of prefix of FILE that has already
43608         been made, or -2 if there is a child doing the work.  Redo
43609         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43610         ".", and treat ".." specially since it might stray back into
43611         already-created areas.  Use a subprocess if necessary.  New arg
43612         WD; all users changed.  MAKE_DIR function should now return 1
43613         if it creates a directory that is not readable.  Return -2 if
43614         a child process is spun off.
43615         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43616         Adjust signature to match code.
43617         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43618         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43619         all users changed.
43620         * lib/savewd.c, lib/savewd.h: New files.
43621
43622 2006-09-15  Jim Meyering  <jim@meyering.net>
43623
43624         * modules/rename-dest-slash: New module.
43625         * MODULES.html.sh (posix_compat): Add it here.
43626
43627         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43628
43629 2006-09-15  Jim Meyering  <jim@meyering.net>
43630
43631         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43632         file.
43633
43634         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43635
43636 2006-09-15  Jim Meyering  <jim@meyering.net>
43637
43638         * lib/rename-dest-slash.c (has_trailing_slash): Use
43639         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43640         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43641         test before testing whether SRC is a directory.
43642         Suggestions from Bruno Haible.
43643
43644         Avoid a warning about an unused variable.
43645         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43646         into the #ifdef block where it's used.
43647
43648         * lib/rename-dest-slash.c: New file.
43649
43650 2006-09-14  Bruno Haible  <bruno@clisp.org>
43651
43652         * lib/allocsa.c: Include <config.h> unconditionally.
43653         * lib/asnprintf.c: Likewise.
43654         * lib/asprintf.c: Likewise.
43655         * lib/c-strcasecmp.c: Likewise.
43656         * lib/c-strcasestr.c: Likewise.
43657         * lib/c-strncasecmp.c: Likewise.
43658         * lib/c-strstr.c: Likewise.
43659         * lib/classpath.c: Likewise.
43660         * lib/clean-temp.c: Likewise.
43661         * lib/concatpath.c: Likewise.
43662         * lib/copy-file.c: Likewise.
43663         * lib/csharpcomp.c: Likewise.
43664         * lib/csharpexec.c: Likewise.
43665         * lib/execute.c: Likewise.
43666         * lib/fatal-signal.c: Likewise.
43667         * lib/findprog.c: Likewise.
43668         * lib/fwriteerror.c: Likewise.
43669         * lib/gl_array_list.c: Likewise.
43670         * lib/gl_array_oset.c: Likewise.
43671         * lib/gl_avltree_list.c: Likewise.
43672         * lib/gl_avltree_oset.c: Likewise.
43673         * lib/gl_avltreehash_list.c: Likewise.
43674         * lib/gl_carray_list.c: Likewise.
43675         * lib/gl_linked_list.c: Likewise.
43676         * lib/gl_linkedhash_list.c: Likewise.
43677         * lib/gl_list.c: Likewise.
43678         * lib/gl_oset.c: Likewise.
43679         * lib/gl_rbtree_list.c: Likewise.
43680         * lib/gl_rbtree_oset.c: Likewise.
43681         * lib/gl_rbtreehash_list.c: Likewise.
43682         * lib/imaxabs.c: Likewise.
43683         * lib/imaxdiv.c: Likewise.
43684         * lib/javacomp.c: Likewise.
43685         * lib/javaexec.c: Likewise.
43686         * lib/javaversion.c: Likewise.
43687         * lib/linebreak.c: Likewise.
43688         * lib/localcharset.c: Likewise.
43689         * lib/lock.c: Likewise.
43690         * lib/mbchar.c: Likewise.
43691         * lib/mbswidth.c: Likewise.
43692         * lib/mkdtemp.c: Likewise.
43693         * lib/pipe.c: Likewise.
43694         * lib/printf-args.c: Likewise.
43695         * lib/printf-parse.c: Likewise.
43696         * lib/progname.c: Likewise.
43697         * lib/progreloc.c: Likewise.
43698         * lib/readlink.c: Likewise.
43699         * lib/sh-quote.c: Likewise.
43700         * lib/stpcpy.c: Likewise.
43701         * lib/stpncpy.c: Likewise.
43702         * lib/strcasecmp.c: Likewise.
43703         * lib/strcasestr.c: Likewise.
43704         * lib/strcspn.c: Likewise.
43705         * lib/striconv.c: Likewise.
43706         * lib/strncasecmp.c: Likewise.
43707         * lib/strnlen1.c: Likewise.
43708         * lib/strstr.c: Likewise.
43709         * lib/strtok_r.c: Likewise.
43710         * lib/tls.c: Likewise.
43711         * lib/tmpdir.c: Likewise.
43712         * lib/unicodeio.c: Likewise.
43713         * lib/unsetenv.c: Likewise.
43714         * lib/vasnprintf.c: Likewise.
43715         * lib/vasprintf.c: Likewise.
43716         * lib/wait-process.c: Likewise.
43717         * lib/xallocsa.c: Likewise.
43718         * lib/xsetenv.c: Likewise.
43719         * lib/xstriconv.c: Likewise.
43720
43721 2006-09-13  Simon Josefsson  <jas@extundo.com>
43722
43723         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43724         that internally, suggested by Ralf Wildenhues
43725         <Ralf.Wildenhues@gmx.de>.
43726
43727 2006-09-13  Simon Josefsson  <jas@extundo.com>
43728
43729         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43730         @LIBOBJS@.
43731         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43732
43733 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43734
43735         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43736         longer worry about uses that don't define HAVE_CONFIG_H.
43737         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43738         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43739         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43740         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43741         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43742         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43743         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43744         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43745         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43746         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43747         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43748         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43749         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43750         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43751         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43752         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43753         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43754         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43755         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43756         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43757         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43758         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43759         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43760         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43761         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43762         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43763         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43764         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43765         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43766         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43767         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43768         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43769         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43770         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43771         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43772         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43773         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43774         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43775         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43776         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43777         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43778         Likewise.
43779
43780 2006-09-13  Eric Blake  <ebb9@byu.net>
43781
43782         * lib/getopt.c: Fix typo in last commit.
43783
43784 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43785
43786         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43787         dgettext.
43788
43789 2006-09-12  Jim Meyering  <jim@meyering.net>
43790
43791         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43792         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43793         Reported by Nelson H. F. Beebe.
43794
43795 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43796
43797         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43798         program_invocation_name and program_invocation_short_name are
43799         initialized.
43800         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43801         and program_invocation_short_name to argp.h, so they are visible
43802         to user programs.
43803         * lib/argp.h: Likewise
43804
43805 2006-09-10  Bruno Haible  <bruno@clisp.org>
43806
43807         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43808         m4/inttypes_h.m4, m4/uintmax_t.m4.
43809
43810 2006-09-10  Bruno Haible  <bruno@clisp.org>
43811
43812         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43813         gl_AC_TYPE_UINTMAX_T.
43814
43815 2006-09-10  Bruno Haible  <bruno@clisp.org>
43816
43817         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43818
43819 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43820
43821         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43822         convention.  Text proposed by Bruno Haible.
43823         (struct argp_option): Document the use of N_() wrappers.
43824
43825         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43826         '\v', and translate the two parts separately, instead of feeding
43827         the whole string to gettext.  This allows to exclude
43828         '\v' from the strings visible to the translator by writing doc
43829         strings as N_("..") "\v" N_("..").
43830
43831 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43832
43833         * config/srclist.txt: Undo latest change; the bug was fixed.
43834
43835 2006-09-09  Bruno Haible  <bruno@clisp.org>
43836
43837         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43838         assignments if building a library without libtool.
43839         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43840         in func_emit_lib_Makefile_am.
43841         (func_import): When building a static library libfoo.a, arrange to
43842         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43843         (func_create_testdir): Likewise.
43844         * modules/gc (configure.ac, Makefile.am): If building statically,
43845         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43846         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43847         * modules/striconv (configure.ac, Makefile.am): Likewise.
43848         Based on a suggestion by Ralf Wildenhues.
43849
43850 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43851
43852         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43853         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43854         Also:
43855
43856         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43857         Add year_2050_test to catch glibc bug 2821
43858         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43859
43860         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43861         Prefer #ifdef to #if.
43862
43863         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43864         Return from 'main' instead of calling 'exit'.
43865
43866 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43867
43868         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43869         returned the maximum time_t value rather than (time_t) -1.
43870         Problem originally reported by William Bardwell
43871         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43872
43873         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43874         Moved to here ...
43875         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43876         ... from here.
43877
43878 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43879
43880         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43881         2821 is fixed.
43882
43883 2006-09-08  Jim Meyering  <jim@meyering.net>
43884
43885         Don't make generated files read-only.  That would bother too many
43886         people.  However, do retain the ability to work when targets are
43887         read-only: remove the destination and temporary files before writing
43888         them (when generated via sed or echo), or by using the -f option for
43889         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43890         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43891         * modules/byteswap, modules/configmake, modules/fcntl:
43892         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43893         * modules/localcharset, modules/netinet_in, modules/poll:
43894         * modules/stdbool, modules/stdint, modules/sys_select:
43895         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43896
43897 2006-09-08  Jim Meyering  <jim@meyering.net>
43898
43899         Avoid new build failure on FreeBSD 6.0.
43900         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43901         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43902         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43903
43904 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43905
43906         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43907
43908 2006-09-07  Jim Meyering  <jim@meyering.net>
43909
43910         Fix global typo in last change: use chmod u-w, not chmod u-x.
43911         Spotted by Paul Eggert and Bruce Korb.
43912         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43913         * modules/byteswap, modules/configmake, modules/fcntl:
43914         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43915         * modules/localcharset, modules/netinet_in, modules/poll:
43916         * modules/stdbool, modules/stdint, modules/sys_select:
43917         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43918
43919 2006-09-06  Jim Meyering  <jim@meyering.net>
43920
43921         Make generated files be read-only.
43922         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43923         Ensure that each generated file is now read-only.
43924         * modules/argz: Likewise.
43925         * modules/arpa_inet: Likewise.
43926         * modules/byteswap: Likewise.
43927         * modules/configmake: Likewise.
43928         * modules/fcntl: Likewise.
43929         * modules/fnmatch: Likewise.
43930         * modules/getopt: Likewise.
43931         * modules/glob: Likewise.
43932         * modules/inttypes: Likewise.
43933         * modules/netinet_in: Likewise.
43934         * modules/poll: Likewise.
43935         * modules/stdbool: Likewise.
43936         * modules/stdint: Likewise.
43937         * modules/sys_select: Likewise.
43938         * modules/sys_socket: Likewise.
43939         * modules/sys_stat: Likewise.
43940         * modules/sysexits: Likewise.
43941         * modules/localcharset: Same as above, but continue using temporary
43942         file named "t-$@" (why different?) rather than the "$@-t" used
43943         everywhere else.
43944
43945         * modules/sysexits (Makefile.am): Replace literal occurrences
43946         of "sysexit.h" more readable, and more consistent, "$@".
43947
43948 2006-09-06  Bruno Haible  <bruno@clisp.org>
43949
43950         * modules/striconv: New file.
43951         * modules/xstriconv: New file.
43952         * MODULES.html.sh (Internationalization functions): Add striconv,
43953         xstriconv.
43954
43955 2006-09-06  Bruno Haible  <bruno@clisp.org>
43956
43957         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43958         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43959         not using libtool correctly.
43960
43961 2006-09-06  Bruno Haible  <bruno@clisp.org>
43962
43963         * lib/striconv.h: New file.
43964         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43965         iconvstring.c.
43966         * lib/xstriconv.h: New file.
43967         * lib/xstriconv.c: New file.
43968
43969 2006-09-06  Bruno Haible  <bruno@clisp.org>
43970
43971         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43972         lib_..._LDFLAGS.
43973
43974 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43975
43976         * lib/argz_.h: Sync from Libtool.
43977
43978         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
43979                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43980
43981         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43982
43983 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43984
43985         * modules/trim: New file.
43986
43987 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43988
43989         * lib/trim.h: New file.
43990         * lib/trim.c: New file.
43991
43992 2006-09-05  Bruno Haible  <bruno@clisp.org>
43993
43994         * MODULES.html.sh (String handling): Add trim.
43995
43996 2006-09-04  Karl Berry  <karl@gnu.org>
43997
43998         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43999         until next release.
44000
44001 2006-09-03  Bruno Haible  <bruno@clisp.org>
44002
44003         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
44004         correctly.
44005
44006 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44007
44008         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
44009         not gl_GETLOADAVG.  Omit unneeded semicolons.
44010         Problems reported by Ralf Wildenhues in
44011         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44012         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44013         at the end, which is the usual gnulib style.
44014
44015         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44016         of doing all the work ourselves.
44017         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44018         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44019
44020 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44021
44022         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44023         Problem reported by Ralf Wildenhues in
44024         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44025
44026         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44027         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44028
44029 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44030
44031         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44032         yesterday's patch by changing test -n to test -z.
44033
44034 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44035
44036         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44037         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44038         the former is now obsolescent.
44039
44040         * modules/chdir-long (Depends-on): Add fcntl.
44041
44042 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44043
44044         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44045         obsolescent, and programs should use gnulib instead.
44046         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44047         but with prefixes changed.
44048
44049 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44050
44051         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44052         or stdbool.h, because they might not exist while configuring.
44053
44054         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44055         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44056         does that for us.
44057         (O_DIRECTORY): Remove.
44058
44059 2006-08-31  Eric Blake  <ebb9@byu.net>
44060
44061         * gnulib-tool: Don't let emacs change spaces to TAB.
44062
44063 2006-08-31  Bruno Haible  <bruno@clisp.org>
44064
44065         * gnulib-tool: When calling func_import more than once, do it in a
44066         subshell.
44067         Reported by Eric Blake <ebb9@byu.net>.
44068
44069 2006-08-31  Bruno Haible  <bruno@clisp.org>
44070
44071         * gnulib-tool (nl): Remove variable.
44072         (sed_transform_lib_file): Use more robust test for config-h module.
44073         (func_import): Fix typo in 2006-08-25 patch.
44074
44075 2006-08-31  Bruno Haible  <bruno@clisp.org>
44076
44077         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44078         specified, augment Makefile.am variables instead of assigning them.
44079
44080 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44081
44082         Work around a bug in both the Linux and SunOS 64-bit kernels:
44083         nanosleep mishandles sleeps for longer than 2**31 seconds.
44084         Problem reported by Frank v Waveren in
44085         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44086         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44087         Check for nanosleep bug.
44088         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44089
44090 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44091
44092         Work around a bug in both the Linux and SunOS 64-bit kernels:
44093         nanosleep mishandles sleeps for longer than 2**31 seconds.
44094         Problem reported by Frank v Waveren in
44095         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44096         * lib/nanosleep.c (BILLION): New constant.
44097         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44098         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44099         implementation.
44100
44101 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44102
44103         * modules/nanosleep (Depends-on): Add gettime.
44104
44105 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44106         and Simon Josefsson  <jas@extundo.com>
44107         and Oskar Liljeblad  <oskar@osk.mine.nu>
44108
44109         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44110         * gnulib-tool (func_import): New license type 'unmodifiable license
44111         text'.
44112         * modules/fdl: Use it.  Longer description.
44113         * module/gpl, module/lgpl: New files.
44114
44115 2006-08-30  Jim Meyering  <jim@meyering.net>
44116
44117         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44118         shadowing the parameter.
44119
44120 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44121
44122         Sync from Libtool:
44123
44124         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44125
44126         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44127         sharing with gnulib.  Report by Eric Blake.
44128
44129 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44130
44131         * modules/isapipe: New file.
44132         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44133
44134 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44135
44136         * modules/configmake (Makefile.am): Add a comment, and omit
44137         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44138         by Bruno Haible.
44139
44140 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44141
44142         * m4/isapipe.m4: New file.
44143
44144 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44145
44146         * lib/isapipe.c, lib/isapipe.h: New files.
44147
44148 2006-08-29  Jim Meyering  <jim@meyering.net>
44149
44150         * modules/configmake (Makefile.am): Make configmake.h depend on
44151         Makefile.  Otherwise, a stale configmake.h could hang around.
44152
44153 2006-08-29  Eric Blake  <ebb9@byu.net>
44154
44155         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44156         resolution of upstream bug 3044.
44157
44158 2006-08-29  Bruno Haible  <bruno@clisp.org>
44159
44160         * modules/localcharset (Depends-on): Add configmake.
44161         (Makefile.am): Remove setting of LIBDIR through DEFS.
44162
44163 2006-08-29  Bruno Haible  <bruno@clisp.org>
44164
44165         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44166         defined.
44167
44168 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44169
44170         * modules/fcntl: New file.
44171         * modules/chdir-safer (Depends-on): Add fcntl.
44172         * modules/fts: Likewise.
44173         * modules/mkdir-p: Likewise.
44174
44175         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44176         This undoes the most recent change, since we're now addressing the
44177         problem in a different way.
44178
44179         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44180         into output, since the output might be called Makefile.am even
44181         if $makefile_name is something different.
44182         (func_import): Use $makefile_am rather than
44183         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44184         empty.
44185
44186         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44187
44188 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44189
44190         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44191         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44192         recent change to stdint.m4, since we're now addressing the problem in a
44193         different way.
44194
44195 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44196
44197         * m4/fcntl_h.m4: New file.
44198
44199 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44200
44201         * lib/fcntl_.h: New file.
44202         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44203         the fcntl module.
44204         * lib/dirchownmod.c: Likewise.
44205         * lib/fts.c: Likewise.
44206
44207         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44208         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44209         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44210         just before including <inttypes.h>, to avoid circular inclusion.
44211
44212 2006-08-28  Jim Meyering  <jim@meyering.net>
44213
44214         * doc/visibility.texi: Actually read and correct the grammar of the
44215         sentence affected by yesterday's change.
44216
44217 2006-08-28  Eric Blake  <ebb9@byu.net>
44218
44219         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44220         needs wrapper.
44221
44222 2006-08-28  Eric Blake  <ebb9@byu.net>
44223
44224         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44225
44226 2006-08-28  Eric Blake  <ebb9@byu.net>
44227
44228         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44229
44230 2006-08-28  Bruno Haible  <bruno@clisp.org>
44231
44232         * modules/c-strstr: New file, from GNU gettext.
44233         * MODULES.html.sh (String handling): Add c-strstr.
44234
44235 2006-08-28  Bruno Haible  <bruno@clisp.org>
44236
44237         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44238         macros.
44239         Reported by Eric Blake.
44240
44241 2006-08-28  Bruno Haible  <bruno@clisp.org>
44242
44243         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44244         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44245         * lib/vasprintf.c: Include errno.h, limits.h.
44246         (EOVERFLOW): New fallback definition.
44247         (vasprintf): Test here whether the string length is > INT_MAX.
44248         * lib/vsnprintf.c: Include errno.h, limits.h.
44249         (EOVERFLOW): New fallback definition.
44250         (vsnprintf): Fix bug when generated string was too long for the buffer.
44251         Test here whether the string length is > INT_MAX.
44252
44253 2006-08-28  Bruno Haible  <bruno@clisp.org>
44254
44255         * lib/inttypes_.h (SCNX*): Remove definitions.
44256         Reported by Eric Blake.
44257
44258 2006-08-28  Bruno Haible  <bruno@clisp.org>
44259
44260         * lib/c-strstr.h: New file, from GNU gettext.
44261         * lib/c-strstr.c: New file, from GNU gettext.
44262
44263 2006-08-28  Bruno Haible  <bruno@clisp.org>
44264
44265         * gnulib-tool: Reorder some statements.
44266
44267 2006-08-28  Bruno Haible  <bruno@clisp.org>
44268
44269         * gnulib-tool: New option --makefile-name.
44270         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44271         $makefile_name.
44272         (func_import): Write $makefile_name to the cache file, and read it from
44273         there unless explicitly specified. Use $makefile_name as file name
44274         instead of Makefile.am. Adjust the recommendations accordingly.
44275
44276 2006-08-28  Bruno Haible  <bruno@clisp.org>
44277
44278         * gnulib-tool (func_verify_module): Check against misapplying patch.
44279
44280 2006-08-28  Bruno Haible  <bruno@clisp.org>
44281
44282         * gnulib-tool (func_relativize, func_relconcat): New functions.
44283         Give an error if --local-dir is given with --update.
44284         Remove trailing slashes from $local_gnulib_dir.
44285         (func_import): Store the relativized $local_gnulib_dir in
44286         gnulib-cache.m4, and read it from there if not specified explicitly.
44287
44288 2006-08-28  Bruno Haible  <bruno@clisp.org>
44289
44290         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44291         is the current directory. Respect also $local_gnulib_dir.
44292
44293 2006-08-28  Bruno Haible  <bruno@clisp.org>
44294             Simon Josefsson  <jas@extundo.com>
44295
44296         BeOS portability.
44297         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44298
44299 2006-08-27  Jim Meyering  <jim@meyering.net>
44300
44301         * doc/visibility.texi: Remove duplicate word: "pointer".
44302
44303 2006-08-26  Bruno Haible  <bruno@clisp.org>
44304
44305         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44306         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44307         (Makefile.am): Create inttypes.h from inttypes_.h.
44308         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44309
44310         * modules/imaxabs: New file.
44311
44312         * modules/imaxdiv: New file.
44313
44314 2006-08-26  Bruno Haible  <bruno@clisp.org>
44315
44316         * m4/inttypes.m4: New file.
44317         * m4/_inttypes_h.m4: Remove file.
44318         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44319         PRI_MACROS_BROKEN.
44320         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44321
44322         * m4/imaxabs.m4: New file.
44323
44324         * m4/imaxdiv.m4: New file.
44325
44326 2006-08-26  Bruno Haible  <bruno@clisp.org>
44327
44328         * lib/inttypes_.h: New file.
44329         * lib/inttypes.h: Remove file.
44330         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44331
44332         * lib/imaxabs.c: New file.
44333
44334         * lib/imaxdiv.c: New file.
44335
44336 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44337
44338         New config-h module, so that "make" output needn't be cluttered
44339         by -DHAVE_CONFIG_H.
44340         * MODULES.html.sh (Support for building libraries and executables):
44341         Add config-h.
44342         * modules/config-h: New file.
44343         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44344         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44345         the config-h module is used.
44346
44347         New configmake module, so that "make" output needn't be cluttered
44348         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44349         * MODULES.html.sh (Support for building libraries and executables):
44350         Add configmake.
44351         * modules/configmake: New file.
44352
44353 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44354
44355         * m4/config-h.m4: New file.
44356
44357 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44358
44359         * config/srclist.txt: Add elisp-comp.
44360
44361 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44362
44363         * MODULES.html.sh (Support for building libraries and executables):
44364         Add elisp-comp.
44365         * build-aux/elisp-comp: New file.
44366         * modules/elisp-comp: New file.
44367
44368 2006-08-24  Bruno Haible  <bruno@clisp.org>
44369
44370         * gnulib-tool (func_create_testdir): Use non-default values of
44371         sourcebase and m4base.
44372
44373 2006-08-24  Bruno Haible  <bruno@clisp.org>
44374
44375         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44376         HTML structure.
44377
44378 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44379
44380         * modules/openat (Depends-on): Add lchown.
44381
44382 2006-08-23  Bruno Haible  <bruno@clisp.org>
44383
44384         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44385         of gl_LOCK_EARLY instead of gl_LOCK.
44386
44387 2006-08-23  Bruno Haible  <bruno@clisp.org>
44388
44389         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44390         on OSF/1 to no.
44391         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44392
44393 2006-08-23  Bruno Haible  <bruno@clisp.org>
44394
44395         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44396         as unusable.
44397
44398         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44399         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44400         (gl_LOCK): New macro.
44401
44402 2006-08-22  Simon Josefsson  <jas@extundo.com>
44403
44404         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44405         to md5 module.
44406
44407 2006-08-22  Simon Josefsson  <jas@extundo.com>
44408
44409         * MODULES.html.sh: Add "Support for maintaining and release
44410         projects".
44411
44412         * build-aux/gnupload: New file, from coreutils.
44413
44414 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44415
44416         Avoid the need for AC_LIBSOURCES in m4 macros.
44417         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44418         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44419         * modules/check-version (EXTRA_DIST): Add check-version.h.
44420         * modules/crc (EXTRA_DIST): Add crc.h.
44421         * modules/des (EXTRA_DIST): Add des.h.
44422         * modules/gc (EXTRA_DIST): Add gc.h.
44423         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44424         * modules/getline (EXTRA_DIST): Add getline.h.
44425         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44426         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44427         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44428         * modules/md2 (EXTRA_DIST): Add md2.h.
44429         * modules/md4 (EXTRA_DIST): Add md4.h.
44430         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44431         * modules/read-file (EXTRA_DIST): Add read-file.h.
44432         * modules/readline (EXTRA_DIST): Add readline.h.
44433         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44434         rijndael-api-fst.h.
44435
44436 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44437
44438         * m4/rijndael.m4 (gl_ARCFOUR):
44439         * m4/arctwo.m4 (gl_ARCTWO):
44440         * m4/check-version.m4 (gl_CHECK_VERSION):
44441         * m4/crc.m4 (gl_CRC):
44442         * m4/des.m4 (gl_DES):
44443         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44444         * m4/gc.m4 (gl_GC):
44445         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44446         * m4/getline.m4 (gl_FUNC_GETLINE):
44447         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44448         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44449         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44450         * m4/md2.m4 (gl_MD2):
44451         * m4/md4.m4 (gl_MD4):
44452         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44453         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44454         * m4/readline.m4 (gl_FUNC_READLINE):
44455         * m4/rijndael.m4 (gl_RIJNDAEL):
44456         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44457         to get the necessary .h files and whatnot.
44458
44459 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44460
44461         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44462         gnulib rather than the other way around.
44463         * config/srclistvars.sh (COREUTILS): Remove.
44464
44465 2006-08-22  Jim Meyering  <jim@meyering.net>
44466
44467         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44468
44469         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44470
44471 2006-08-22  Eric Blake  <ebb9@byu.net>
44472
44473         * modules/regexprops-generic: New file.
44474         * MODULES.html.sh (Support for building documentation): List it.
44475
44476 2006-08-22  Eric Blake  <ebb9@byu.net>
44477
44478         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44479         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44480         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44481         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44482
44483 2006-08-22  Bruno Haible  <bruno@clisp.org>
44484
44485         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44486         and lib_LTLIBRARIES like the other lib_* variables.
44487
44488 2006-08-22  Bruno Haible  <bruno@clisp.org>
44489
44490         * build-aux/x-to-1.in: New file, from GNU gettext.
44491
44492 2006-08-22  Bruno Haible  <bruno@clisp.org>
44493
44494         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44495         <utmpx.h> exists.
44496
44497 2006-08-22  Bruno Haible  <bruno@clisp.org>
44498
44499         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44500         <utmpx.h> exists.
44501
44502 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44503
44504         BeOS portability.
44505         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44506         exist.
44507         Problem reported by Bruno Haible.
44508
44509 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44510
44511         Avoid the need for AC_LIBSOURCES in m4 macros.
44512         * modules/acl (EXTRA_DIST): Add acl.h.
44513         * modules/argmatch (Files): Add m4/argmatch.m4.
44514         (configure.ac): Add gl_ARGMATCH.
44515         (EXTRA_DIST): Renamed from lib_SOURCES, for
44516         consistency with the other modules.  Remove argmatch.c.
44517         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44518         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44519         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44520         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44521         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44522         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44523         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44524         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44525         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44526         * modules/closeout (EXTRA_DIST): Add closeout.h.
44527         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44528         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44529         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44530         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44531         dirname.h; remove basename.c and stripslash.c.
44532         * modules/exclude (EXTRA_DIST): Add exclude.h.
44533         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44534         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44535         * modules/file-type (EXTRA_DIST): Add file-type.h.
44536         * modules/filemode (EXTRA_DIST): Add filemode.h.
44537         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44538         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44539         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44540         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44541         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44542         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44543         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44544         * modules/getdate (EXTRA_DIST): Add getdate.c.
44545         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44546         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44547         * modules/getpass (EXTRA_DIST): Add getpass.h.
44548         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44549         * modules/group-member (EXTRA_DIST): Add group-member.h.
44550         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44551         * modules/hash (EXTRA_DIST): Add hash.h.
44552         * modules/human (EXTRA_DIST): Add human.h.
44553         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44554         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44555         * modules/lchown (EXTRA_DIST): Add lchown.h.
44556         * modules/long-options (EXTRA_DIST): Add long-options.h.
44557         * modules/lstat (EXTRA_DIST): Add lstat.h.
44558         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44559         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44560         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44561         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44562         * modules/memxor (EXTRA_DIST): Add memxor.h.
44563         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44564         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44565         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44566         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44567         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44568         * modules/physmem (EXTRA_DIST): Add physmem.h.
44569         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44570         * modules/posixver (EXTRA_DIST): Add posixver.h.
44571         * modules/quote (EXTRA_DIST): Add quote.h.
44572         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44573         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44574         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44575         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44576         regex_internal.h regexec.c.
44577         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44578         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44579         * modules/same (EXTRA_DIST): Add same.h.
44580         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44581         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44582         * modules/savedir (EXTRA_DIST): Add savedir.h.
44583         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44584         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44585         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44586         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44587         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44588         * modules/strdup (EXTRA_DIST): Add strdup.h.
44589         * modules/strftime (EXTRA_DIST): Add strftime.h.
44590         * modules/strndup (EXTRA_DIST): Add strndup.h.
44591         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44592         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44593         * modules/time_r (EXTRA_DIST): Add time_r.h.
44594         * modules/timespec (EXTRA_DIST): Add timespec.h.
44595         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44596         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44597         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44598         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44599         * modules/userspec (EXTRA_DIST): Add userspec.h.
44600         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44601         * modules/utimens (EXTRA_DIST): Add utimens.h.
44602         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44603         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44604         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44605         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44606         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44607         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44608         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44609         * modules/yesno (EXTRA_DIST): Add yesno.h.
44610
44611 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44612
44613         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44614
44615         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44616         * m4/dev-ino.m4, same-inode.m4: Remove.
44617
44618         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44619         * m4/acl.m4 (AC_FUNC_ACL):
44620         * m4/backupfile.m4 (gl_BACKUPFILE):
44621         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44622         * m4/canon-host.m4 (gl_CANON_HOST):
44623         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44624         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44625         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44626         * m4/cloexec.m4 (gl_CLOEXEC):
44627         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44628         * m4/closeout.m4 (gl_CLOSEOUT):
44629         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44630         * m4/dirname.m4 (gl_DIRNAME):
44631         * m4/exclude.m4 (gl_EXCLUDE):
44632         * m4/exitfail.m4 (gl_EXITFAIL):
44633         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44634         * m4/file-type.m4 (gl_FILE_TYPE):
44635         * m4/filemode.m4 (gl_FILEMODE):
44636         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44637         * m4/fpending.m4 (gl_FUNC_FPENDING):
44638         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44639         * m4/fts.m4 (gl_FUNC_FTS):
44640         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44641         * m4/getdate.m4 (gl_GETDATE):
44642         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44643         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44644         * m4/getpass.m4 (gl_FUNC_GETPASS):
44645         * m4/gettime.m4 (gl_GETTIME):
44646         * m4/getugroups.m4 (gl_GETUGROUPS):
44647         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44648         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44649         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44650         * m4/hash.m4 (gl_HASH):
44651         * m4/idcache.m4 (gl_IDCACHE):
44652         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44653         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44654         * m4/long-options.m4 (gl_LONG_OPTIONS):
44655         * m4/lstat.m4 (gl_FUNC_LSTAT):
44656         * m4/md5.m4 (gl_MD5):
44657         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44658         * m4/memcoll.m4 (gl_MEMCOLL):
44659         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44660         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44661         * m4/memxor.m4 (gl_MEMXOR):
44662         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44663         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44664         * m4/modechange.m4 (gl_MODECHANGE):
44665         * m4/mountlist.m4 (gl_MOUNTLIST):
44666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44667         * m4/openat.m4 (gl_FUNC_OPENAT):
44668         * m4/pathmax.m4 (gl_PATHMAX):
44669         * m4/physmem.m4 (gl_PHYSMEM):
44670         * m4/posixtm.m4 (gl_POSIXTM):
44671         * m4/posixver.m4 (gl_POSIXVER):
44672         * m4/quote.m4 (gl_QUOTE):
44673         * m4/quotearg.m4 (gl_QUOTEARG):
44674         * m4/readtokens.m4 (gl_READTOKENS):
44675         * m4/readutmp.m4 (gl_READUTMP):
44676         * m4/regex.m4 (gl_REGEX):
44677         * m4/safe-read.m4 (gl_SAFE_READ):
44678         * m4/safe-write.m4 (gl_SAFE_WRITE):
44679         * m4/same.m4 (gl_SAME):
44680         * m4/save-cwd.m4 (gl_SAVE_CWD):
44681         * m4/savedir.m4 (gl_SAVEDIR):
44682         * m4/settime.m4 (gl_SETTIME):
44683         * m4/sha1.m4 (gl_SHA1):
44684         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44685         * m4/stat-macros.m4 (gl_STAT_MACROS):
44686         * m4/stat-time.m4 (gl_STAT_TIME):
44687         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44688         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44689         * m4/strdup.m4 (gl_FUNC_STRDUP):
44690         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44691         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44692         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44693         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44694         * m4/time_r.m4 (gl_TIME_R):
44695         * m4/timespec.m4 (gl_TIMESPEC):
44696         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44697         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44698         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44699         * m4/userspec.m4 (gl_USERSPEC):
44700         * m4/utimecmp.m4 (gl_UTIMECMP):
44701         * m4/utimens.m4 (gl_UTIMENS):
44702         * m4/xalloc.m4 (gl_XALLOC):
44703         * m4/xgetcwd.m4 (gl_XGETCWD):
44704         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44705         * m4/xreadlink.m4 (gl_XREADLINK):
44706         * m4/xstrtod.m4 (gl_XSTRTOD):
44707         * m4/yesno.m4 (gl_YESNO):
44708         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44709         to get the necessary .h files and whatnot.
44710
44711 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44712             Bruno Haible  <bruno@clisp.org>
44713
44714         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44715         /bin/sh understanding of '!' conditional negation.
44716
44717 2006-08-21  Jim Meyering  <jim@meyering.net>
44718
44719         * modules/openat (Depends-on): Really alphabetize.
44720
44721         * modules/acl (Depends-on): Add error and quote.
44722
44723         * check-module (find_included_lib_files): Add at-func.c to the
44724         ok-to-include-more-than-once white list.
44725
44726         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44727
44728 2006-08-21  Bruno Haible  <bruno@clisp.org>
44729
44730         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44731         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44732         Reported by Martin Lambers <marlam@marlam.de>.
44733
44734 2006-08-21  Bruno Haible  <bruno@clisp.org>
44735
44736         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44737         specify an installation location, don't emit a noinst_LIBRARIES or
44738         noinst_LTLIBRARIES assignment.
44739
44740 2006-08-21  Bruno Haible  <bruno@clisp.org>
44741
44742         BeOS portability.
44743         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44744         BeOS has mbrtowc() but no <wctype.h>.
44745
44746 2006-08-21  Bruno Haible  <bruno@clisp.org>
44747
44748         BeOS portability.
44749         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44750         exist.
44751
44752 2006-08-21  Bruno Haible  <bruno@clisp.org>
44753
44754         BeOS portability.
44755         * lib/mbchar.h: Include <wctype.h> only if it exists.
44756
44757 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44758
44759         Remove files that are no longer needed by their respective modules.
44760         * m4/obstack.m4: Remove.
44761         * m4/strerror_r.m4: Remove.
44762         * m4/uint32_t.m4: Remove.
44763         * m4/uintptr_t.m4: Remove.
44764         * m4/ullong_max.m4: Remove.
44765         * m4/xstrtoimax.m4: Remove.
44766         * m4/xstrtoumax.m4: Remove.
44767
44768         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44769         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44770         dependencies now capture this.
44771
44772         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44773         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44774         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44775         * m4/human.m4 (gl_HUMAN): Likewise.
44776         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44777         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44778
44779         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44780
44781         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44782         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44783         stdint.
44784         * m4/human.m4 (gl_HUMAN): Likewise.
44785         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44786         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44787         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44788         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44789         * m4/xstrtol (gl_XSTRTOL): Likewise.
44790
44791         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44792         AC_TYPE_LONG_LONG_INT.
44793         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44794         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44795         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44796         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44797
44798         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44799         on stdbool.
44800
44801         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44802         (gl_PREREQ_XSTRTOUL): Remove.
44803
44804         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44805
44806         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44807         mode.
44808
44809 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44810
44811         Add and change modules to make it easier for coreutils to use
44812         gnulib-tool.
44813         * modules/backupfile (Files): Remove m4/d-ino.m4.
44814         (Depends-on): Add d-ino.
44815         * modules/cycle-check (Depends-on): Add stdint.
44816         (lib_SOURCES): Add cycle-check.h.
44817         * modules/d-ino: New module.
44818         * modules/d-type: New module.
44819         * modules/error (Files): Remove m4/strerror_r.m4.
44820         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44821         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44822         m4/inttypes_h.m4, m4/uintmax_t.m4.
44823         (Depends-on): Add stdint.
44824         (lib_SOURCES): Add fsusage.h.
44825         * modules/getcwd (Files): Remove d-ino.m4.
44826         (Depends-on): Add d-ino.
44827         * modules/getndelim2 (Depends-on): Add stdint.
44828         * modules/glob (Files): Remove m4/d-type.m4.
44829         (Depends-on): Add d-type.
44830         * modules/host-os: New module.
44831         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44832         m4/inttypes_h.m4, m4/uintmax_t.m4.
44833         * Depends-on: Add stdint.
44834         (lib_SOURCES): Add human.h.
44835         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44836         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44837         m4/uintmax_t.m4, m4/ulonglong.m4.
44838         (Depends-on): Add stdint.
44839         (EXTRA_DIST): Add inttostr.h.
44840         * modules/lchmod: New module.
44841         * modules/link-follow: New module.
44842         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44843         (Depends-on): Add lchmod.
44844         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44845         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44846         (Depends-on): Add stdint.
44847         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44848         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44849         (Depends-on): Add stdint.
44850         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44851         * modules/perl: New module.
44852         * modules/regex (Depends-on): Add stdint.
44853         * modules/rmdir-errno: New module.
44854         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44855         m4/intmax_t.m4.
44856         (Depends-on): Add stdint.
44857         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44858         m4/uintmax_t.m4.
44859         (Depends-on): Add stdint.
44860         * modules/unlink-busy: New module.
44861         * modules/utimecmp (Depends-on): Add stdint.
44862         * modules/uptime: New module.
44863         * modules/winsz-ioctl: New module.
44864         * modules/winsz-termios: New module.
44865         * modules/xnanosleep (Depends-on): Add nanosleep.
44866         * modules/ullong_max: Remove.
44867         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44868         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44869         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44870         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44871         (Depends-on): Add inttypes.
44872         (lib_SOURCES): Add xstrtol.h.
44873         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44874         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44875         * MODULES.html.sh: Move 'assert' into the assert section.
44876         Move 'dummy' into the linking section.
44877         Remove ullong_max.
44878         Add section for compatibility checks for POSIX:2001 functions,
44879         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44880         winsz-ioctl, and winsz-termios into it.
44881         Add lchmod.
44882         Add top-level Misc section and put host-os, perl, and uptime
44883         into it.
44884
44885 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44886
44887         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44888         now assume the stdint module.  Do not include inttypes.h.
44889         * lib/fsusage.h: Likewise.
44890         * lib/getndelim2.c: Likewise.
44891         * lib/human.h: Likewise.
44892         * lib/inttostr.h: Likewise.
44893         * lib/obstack.c: Likewise.
44894         * lib/regex_internal.h: Likewise.
44895         * lib/tempname.c: Likewise.
44896         * lib/utimecmp.c: Likewise.
44897         * lib/xstrtol.h: Likewise.
44898
44899         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44900
44901         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44902         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44903         * lib/xtime.h: Likewise.
44904
44905 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44906
44907         * modules/openat (Files): Add lib/fchmodat.c.
44908         Fixes problem reported by Jay Youngman.
44909
44910 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44911
44912         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44913         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44914
44915 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44916             Bruno Haible  <bruno@clisp.org>
44917
44918         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44919         and is a script that invokes bison. Tighten the code. Add comments.
44920
44921 2006-08-18  Jim Meyering  <jim@meyering.net>
44922
44923         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44924         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44925         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
44926         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44927
44928 2006-08-18  Bruno Haible  <bruno@clisp.org>
44929
44930         * modules/bison-i18n: New file.
44931         * MODULES.html.sh (Internationalization functions): Add it.
44932
44933 2006-08-18  Bruno Haible  <bruno@clisp.org>
44934
44935         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44936         sys/statvfs.h. When getmntinfo was found, check its declaration and
44937         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44938
44939 2006-08-18  Bruno Haible  <bruno@clisp.org>
44940
44941         * m4/bison-i18n.m4: New file, from bison.
44942
44943 2006-08-18  Bruno Haible  <bruno@clisp.org>
44944
44945         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44946         (ME_DUMMY): Treat "kernfs" as a dummy.
44947         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44948
44949 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44950
44951         Update from coreutils.
44952
44953         2006-08-15  Jim Meyering  <jim@meyering.net>
44954
44955         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44956
44957         2006-01-17  Jim Meyering  <jim@meyering.net>
44958
44959         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44960
44961         2006-01-11  Jim Meyering  <jim@meyering.net>
44962
44963         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44964         Check for the lchmod function.
44965
44966 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44967
44968         Update from coreutils.
44969
44970         * lib/__fpending.h: Add copyright notice.
44971         * lib/fprintftime.h: Likewise.
44972         * lib/savedir.c: Use (C) in copyright notice.
44973         * lib/savedir.h: Likewise.
44974
44975         2006-08-15  Jim Meyering  <jim@meyering.net>
44976
44977         * lib/at-func.c: New file, with the logic of all emulated at-functions.
44978         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44979         in support of the EXPECTED_ERRNO macro.
44980         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44981         definitions.  Instead, define the appropriate symbols and include
44982         "at-func.c".
44983         * lib/mkdirat.c (mkdirat): Likewise.
44984         * lib/fchmodat.c (fchmodat): Likewise.
44985         (ENOSYS): Remove definition.
44986         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44987         it.  Don't include "unistd--.h" -- it wasn't ever used.
44988
44989         2006-01-17  Jim Meyering  <jim@meyering.net>
44990
44991         Rewrite fts.c not to change the current working directory,
44992         by using openat, fstatat, fdopendir, etc..
44993
44994         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44995         (HAVE_OPENAT_SUPPORT): Define.
44996         [_LIBC] (fchdir): Don't undef or define; no longer used.
44997         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44998         Now, this `function' always succeeds, and consumes its file descriptor
44999         parameter -- so callers must not close such FDs.  Update callers.
45000         (diropen_fd, opendirat, cwd_advance_fd): New functions.
45001         (diropen): Add parameter, SP.  Adjust all callers.
45002         Implement using diropen_fd, rather than open.
45003         (fts_open): Initialize new member, fts_cwd_fd.
45004         Remove fts_rft-setting code.
45005         (fts_close): Close fts_cwd_fd, if necessary.
45006         (__opendir2): Define in terms of opendir or opendirat,
45007         depending on whether the FST_NOCHDIR flag is set.
45008         (fts_build): Since fts_safe_changedir consumes its FD, and since
45009         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
45010         and close the dup'd file descriptor upon failure.
45011         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45012         (fts_safe_changedir): Tweak semantics to reflect that this function
45013         now calls cwd_advance_fd and hence consumes its FD argument.
45014         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45015         [struct FTS] (fts_rft): Remove now-unused member.
45016         [struct FTS] (fts_cycle.state): Improve comment.
45017
45018         * lib/openat.c (openat_needs_fchdir): New function.
45019         * lib/openat.h (openat_needs_fchdir): Declare it.
45020
45021 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45022
45023         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45024         Problem and fix reported by Pádraig Brady in
45025         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45026
45027 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45028
45029         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45030
45031 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45032
45033         * lib/memcoll.c (memcoll): Optimize for the common case where the
45034         arguments are bytewise equal.
45035
45036 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45037
45038         * doc/regexprops-generic.texi: Add a copyright notice.
45039
45040 2006-08-15  Bruno Haible  <bruno@clisp.org>
45041
45042         * modules/tmpdir (License): Change to LGPL.
45043
45044 2006-08-15  Bruno Haible  <bruno@clisp.org>
45045
45046         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45047         module.
45048
45049 2006-08-14  Simon Josefsson  <jas@extundo.com>
45050
45051         * config/srclist.txt: Add gnupload.
45052
45053 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45054
45055         Change copyright notice from LGPL 2 to GPL 2, since that's the
45056         standard form used in the gnulib repository.
45057         * tests/test-lock.c: Likewise.
45058         * tests/test-stdint.c: Likewise.
45059         * tests/test-tls.c: Likewise.
45060
45061         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45062         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45063         Add copyright notice.
45064
45065         * check-module: Add copyright notice.  Output a copyright
45066         notice if "--version" is specified.
45067         * modules/COPYING: New file.
45068         * tests/test-getaddrinfo.c: Add copyright notice.
45069         * tests/test-verify.c: Likewise.
45070
45071 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45072
45073         Change copyright notice from LGPL 2 to GPL 2, since that's the
45074         standard form used in the gnulib repository.
45075         * lib/lock.c: LGPL -> GPL.
45076         * lib/lock.h: Likewise.
45077         * lib/strnlen1.c: Likewise.
45078         * lib/strnlen1.h: Likewise.
45079         * lib/tls.c: Likewise.
45080         * lib/tls.h: Likewise.
45081         * lib/tmpdir.c: Likewise.
45082
45083         * lib/TODO: Remove; this belongs only in coreutils.
45084
45085 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45086
45087         Add copyright notices to long-enough files that lack them, since
45088         otherwise the files aren't clearly free.  Use the same notice that
45089         getdate.texi already uses.
45090         * doc/alloca-opt.texi: Add copyright notice.
45091         * doc/alloca.texi: Likewise.
45092         * doc/ctime.texi: Likewise.
45093         * doc/functions.texi: Likewise.
45094         * doc/gcd.texi: Likewise.
45095         * doc/gnulib-tool.texi: Likewise.
45096         * doc/inet_ntoa.texi: Likewise.
45097         * doc/visibility.texi: Likewise.
45098
45099         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45100         * doc/quote.texi: Add copyright notice.
45101
45102         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45103         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45104         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45105         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45106         is now obsolete, and give a pointer to the Sun list.
45107         Add copyright notice.
45108
45109 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45110
45111         * config/srclistvars.sh: Add copyright notice.
45112
45113 2006-08-14  Eric Blake  <ebb9@byu.net>
45114
45115         Import the following change from libc:
45116
45117         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45118
45119         Upstream bug 2997.
45120         * lib/misc/error.c: Add space between program name and message if file
45121         name is missing.
45122
45123 2006-08-12  Karl Berry  <karl@gnu.org>
45124
45125         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45126         remove, these originate in gnulib now.
45127
45128 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45129
45130         * doc/Makefile (standards.info standards.html standards.dvi):
45131         Also depend on make-stds.texi.
45132
45133 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45134
45135         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45136         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45137
45138         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45139         in wchar_t.  Problem reported by Eric Blake.
45140
45141         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45142         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45143         Also, help the compiler to keep LEN in a register.
45144
45145 2006-08-11  Eric Blake  <ebb9@byu.net>
45146
45147         * users.txt: Sort.  Add tar.
45148
45149 2006-08-11  Bruno Haible  <bruno@clisp.org>
45150
45151         * users.txt: New file.
45152
45153 2006-08-11  Bruno Haible  <bruno@clisp.org>
45154
45155         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45156         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45157
45158 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45159
45160         * modules/snprintf (Depends-on): Remove minmax.
45161         (Maintainer): Add self and Bruno.
45162
45163 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45164
45165         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45166         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45167         (EOVERFLOW): Define if the system does not.
45168         Do not include "minmax.h"; it wasn't used.
45169         (snprintf): Don't assume size_t promotes to an unsigned type.
45170         Fix bug when generated string was too long for the buffer: the
45171         buffer's contents are supposed to be the initial prefix of the
45172         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45173         exceeds INT_MAX; do the check ourselves.
45174
45175         Import the following changes from libc:
45176
45177         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45178
45179         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45180         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45181         set wc to the byte which couldn't be converted.
45182         (re_string_reconstruct): Don't clear valid_raw_len before calling
45183         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45184         tip_context using re_string_context_at.
45185
45186         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45187
45188         * lib/posix/regex.h: g++ still cannot handled [restrict].
45189
45190         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45191
45192         * lib/posix/regex.h: Remove special handling for VMS.
45193
45194 2006-08-10  Jim Meyering  <jim@meyering.net>
45195
45196         * modules/same-inode: New module.
45197         * modules/dev-ino: New module.
45198         * modules/cycle-check: Depend on these modules, rather than simply
45199         including their .h files.
45200         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45201         required via m4/cycle-check.m4.
45202         * modules/same: Depend on new same-inode module, rather than
45203         including same-inode.h.
45204         * modules/chdir-safer: New file.
45205
45206         * modules/chown (Depends-on): Add stat-macros.
45207
45208 2006-08-10  Jim Meyering  <jim@meyering.net>
45209
45210         * m4/cycle-check.m4: New file.
45211         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45212         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45213
45214 2006-08-10  Eric Blake  <ebb9@byu.net>
45215
45216         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45217         in from original proposal.
45218
45219 2006-08-10  Eric Blake  <ebb9@byu.net>
45220         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45221
45222         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45223         namespace.
45224
45225 2006-08-10  Bruno Haible  <bruno@clisp.org>
45226
45227         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45228         as well.
45229
45230 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45231
45232         Sync from coreutils.
45233
45234         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45235
45236         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45237         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45238
45239 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45240
45241         * modules/restrict: Remove; no longer needed now that we assume
45242         Autoconf 2.59 or later.
45243         * MODULES.html.sh: Remove 'restrict'.
45244         * modules/argp (Depends-on): Remove 'restrict'.
45245         * modules/base64 (Depends-on): Likewise.
45246         * modules/gc (Depends-on): Likewise.
45247         * modules/getaddrinfo (Depends-on): Likewise.
45248         * modules/glob (Depends-on): Likewise.
45249         * modules/inet_ntop (Depends-on): Likewise.
45250         * modules/inet_pton (Depends-on): Likewise.
45251         * modules/memxor (Depends-on): Likewise.
45252         * modules/regex (Depends-on): Likewise.
45253         * modules/strtok_r (Depends-on): Likewise.
45254         * modules/time_r (Depends-on): Likewise.
45255
45256 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45257
45258         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45259         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45260         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45261         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45262         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45263         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45264         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45265         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45266
45267         Merge from coreutils.
45268         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45269         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45270         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45271         * m4/time_r.m4 (gl_TIME_R): Likewise.
45272
45273 2006-08-09  Karl Berry  <karl@gnu.org>
45274
45275         * config/srclist.txt: no more gettext-tools, per Bruno.
45276
45277 2006-08-08  Eric Blake  <ebb9@byu.net>
45278
45279         * modules/verror: New module.
45280         * MODULES.html.sh: Document it.
45281
45282 2006-08-08  Eric Blake  <ebb9@byu.net>
45283
45284         * lib/verror.h, lib/verror.c: New files.
45285
45286 2006-08-08  Eric Blake  <ebb9@byu.net>
45287
45288         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45289         verror_at_line output complies with GNU Coding Standards even when
45290         file is NULL.
45291
45292 2006-08-07  Bruno Haible  <bruno@clisp.org>
45293
45294         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45295         versions of AIX.
45296         Reported by Ralf Wildenhues.
45297
45298 2006-08-07  Bruno Haible  <bruno@clisp.org>
45299
45300         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45301         in an AC_DEFUN. Needed so that the autoconf snippets can use
45302         AC_REQUIRE.
45303
45304 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45305
45306         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45307         Initialize pkgdata_DATA.
45308         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45309         overriding it.
45310
45311 2006-08-06  Eric Blake  <ebb9@byu.net>
45312
45313         * lib/error.h: Fold in some upstream changes from glibc.
45314         * lib/error.c: Likewise.
45315
45316 2006-08-04  Bruno Haible  <bruno@clisp.org>
45317
45318         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45319         Make the mostlyclean-local rule depend on mostlyclean-generic.
45320         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45321
45322 2006-07-31  Bruno Haible  <bruno@clisp.org>
45323
45324         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45325         <stdlib.h>, <string.h>.
45326
45327 2006-07-30  Bruno Haible  <bruno@clisp.org>
45328
45329         * modules/readlink (License): Change to LGPL.
45330
45331 2006-07-30  Bruno Haible  <bruno@clisp.org>
45332
45333         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45334         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45335         set PKGDATADIR to point to it.
45336
45337 2006-07-30  Bruno Haible  <bruno@clisp.org>
45338
45339         * modules/csharpexec (configure.ac): Comment out macro invocation.
45340         * modules/javaexec (configure.ac): Likewise.
45341         * modules/javacomp-script (configure.ac): Likewise.
45342
45343         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45344
45345 2006-07-30  Bruno Haible  <bruno@clisp.org>
45346
45347         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45348         linked-list.
45349
45350 2006-07-30  Bruno Haible  <bruno@clisp.org>
45351
45352         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45353
45354 2006-07-30  Bruno Haible  <bruno@clisp.org>
45355
45356         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45357         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45358         get removed.
45359
45360 2006-07-29  Bruno Haible  <bruno@clisp.org>
45361
45362         Make it possible for gnulib-tool to work with locally modified or
45363         augmented gnulib repositories.
45364         * gnulib-tool (func_usage): Document --local-dir option.
45365         (local_gnulib_dir): New variable.
45366         Handle --local-dir option.
45367         (func_lookup_file): New function.
45368         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45369         (func_get_description, func_get_filelist, func_get_description,
45370         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45371         func_get_automake_snippet, func_get_include_directive,
45372         func_get_license, func_get_maintainer): Use func_lookup_file.
45373         (func_import, func_create_testdir): Use func_lookup_file.
45374
45375 2006-07-29  Bruno Haible  <bruno@clisp.org>
45376
45377         * modules/setenv (Depends-on): Add unistd.
45378
45379 2006-07-29  Bruno Haible  <bruno@clisp.org>
45380
45381         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45382
45383 2006-07-29  Bruno Haible  <bruno@clisp.org>
45384
45385         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45386
45387 2006-07-29  Bruno Haible  <bruno@clisp.org>
45388
45389         * gnulib-tool (import, update): If there is no Makefile.am, look at
45390         aclocal.m4, instead of bailing out.
45391
45392 2006-07-29  Bruno Haible  <bruno@clisp.org>
45393
45394         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45395         Categorize the options by when they are useful.
45396
45397 2006-07-29  Bruno Haible  <bruno@clisp.org>
45398
45399         * gnulib-tool (func_usage): Document option --no-libtool.
45400         Handle option --no-libtool.
45401         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45402         for changed semantics of $libtool variable.
45403         (func_import): Likewise. If libtool is not used, show this through
45404         an option --no-libtool.
45405         (func_create_testdir): Update.
45406
45407 2006-07-29  Bruno Haible  <bruno@clisp.org>
45408
45409         * gnulib-tool (func_import): Extend error message about missing
45410         --doc-base.
45411
45412 2006-07-29  Bruno Haible  <bruno@clisp.org>
45413
45414         * gnulib-tool (func_import): Don't create the $docbase directory if
45415         there is no file to store there.
45416
45417 2006-07-29  Bruno Haible  <bruno@clisp.org>
45418
45419         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45420         relevant, look for configure.ac there, not in the current directory.
45421         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45422
45423 2006-07-29  Bruno Haible  <bruno@clisp.org>
45424
45425         * gnulib-tool (SORT): New variable.
45426         (func_usage): Undocument --assume-autoconf option.
45427         Remove --assume-autoconf option handling.
45428         (autoconf_minversion): Determine from the contents of configure.ac.
45429         (func_import): Remove autoconf_minversion handling.
45430         Suggested by Eric Blake.
45431
45432 2006-07-29  Bruno Haible  <bruno@clisp.org>
45433
45434         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45435
45436 2006-07-29  Bruno Haible  <bruno@clisp.org>
45437
45438         * config/srclist.txt (*setenv.[ch]): Remove rules.
45439
45440 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45441
45442         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45443
45444 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45445
45446         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45447         arpa/inet.h.
45448
45449 2006-07-28  Simon Josefsson  <jas@extundo.com>
45450
45451         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45452         * modules/inet_pton (Depends-on): Likewise.
45453
45454 2006-07-28  Simon Josefsson  <jas@extundo.com>
45455
45456         * m4/netinet_in_h.m4: New file.
45457
45458 2006-07-28  Simon Josefsson  <jas@extundo.com>
45459
45460         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45461         #include's.
45462
45463 2006-07-28  Simon Josefsson  <jas@extundo.com>
45464
45465         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45466         #include's.
45467
45468 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45469
45470         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45471         setgid on directories only if they set these bits.
45472         * lib/modechange.h: Remove obsolete comment about masks.
45473
45474 2006-07-28  Eric Blake  <ebb9@byu.net>
45475
45476         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45477         macro expansion.
45478
45479 2006-07-28  Bruno Haible  <bruno@clisp.org>
45480
45481         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45482
45483 2006-07-28  Bruno Haible  <bruno@clisp.org>
45484
45485         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45486
45487 2006-07-28  Bruno Haible  <bruno@clisp.org>
45488
45489         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45490         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45491         Define fallbacks.
45492         Avoids link error on FreeBSD 4.x.
45493         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45494
45495         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45496         encoding.
45497         * lib/mbswidth.c (iswcntrl): Likewise.
45498
45499 2006-07-27  Bruno Haible  <bruno@clisp.org>
45500
45501         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45502         test.
45503
45504 2006-07-27  Bruno Haible  <bruno@clisp.org>
45505
45506         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45507         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45508         defined.
45509
45510 2006-07-26  Eric Blake  <ebb9@byu.net>
45511
45512         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45513
45514 2006-07-26  Eric Blake  <ebb9@byu.net>
45515
45516         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45517         like mingw that lack mkstemp.
45518         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45519         avoid compilation warning on mingw.
45520
45521 2006-07-26  Bruno Haible  <bruno@clisp.org>
45522
45523         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45524         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45525         INT_FAST*_MIN, INTPTR_MIN.
45526
45527 2006-07-25  Bruno Haible  <bruno@clisp.org>
45528
45529         * modules/version-etc (Depends-on): Add stdarg.
45530
45531 2006-07-25  Bruno Haible  <bruno@clisp.org>
45532
45533         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45534         complex commands.
45535
45536 2006-07-25  Bruno Haible  <bruno@clisp.org>
45537
45538         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45539         defined in <stdarg.h> or config.h.
45540
45541 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45542
45543         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45544         (gl_STDIO_SAFER): Remove.
45545
45546 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45547
45548         * MODULES.html.sh (File stream based Input/Output):
45549         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45550         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45551         * modules/fopen-safer, modules/tmpfile-safer: New files.
45552         * modules/stdio-safer: Remove.
45553
45554 2006-07-24  Bruno Haible  <bruno@clisp.org>
45555
45556         * modules/tmpdir: New file.
45557         * MODULES.html.sh (File system functions): Add it.
45558
45559 2006-07-24  Bruno Haible  <bruno@clisp.org>
45560
45561         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45562         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45563
45564 2006-07-24  Bruno Haible  <bruno@clisp.org>
45565
45566         * modules/clean-temp: New file.
45567
45568 2006-07-24  Bruno Haible  <bruno@clisp.org>
45569
45570         * m4/tmpdir.m4: New file, from GNU gettext.
45571
45572 2006-07-24  Bruno Haible  <bruno@clisp.org>
45573
45574         * lib/tmpdir.h: New file, from GNU gettext.
45575         * lib/tmpdir.c: New file, from GNU gettext.
45576
45577 2006-07-24  Bruno Haible  <bruno@clisp.org>
45578
45579         * lib/clean-temp.h: New file, from GNU gettext.
45580         * lib/clean-temp.c: New file, from GNU gettext.
45581
45582 2006-07-23  Eric Blake  <ebb9@byu.net>
45583
45584         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45585         (Depends-on): Add binary-io.
45586
45587 2006-07-23  Eric Blake  <ebb9@byu.net>
45588
45589         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45590
45591 2006-07-23  Eric Blake  <ebb9@byu.net>
45592
45593         * lib/tmpfile-safer.c: New file.
45594         * lib/stdio-safer.h (fopen_safer): Add prototype.
45595         * lib/stdio--.h (tmpfile): Make safer.
45596
45597 2006-07-23  Bruno Haible  <bruno@clisp.org>
45598
45599         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45600         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45601         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45602         gl_linked_remove_at): Use it.
45603
45604 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45605         and Simon Josefsson <jas@extundo.com>
45606
45607         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45608
45609         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45610
45611 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45612
45613         * modules/close-stream: New file.
45614         * modules/closeout (Description): Make it clear that it exits
45615         with a diagnostic on error.
45616         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45617         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45618
45619 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45620
45621         * m4/close-stream.m4: New file.
45622
45623 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45624
45625         * lib/close-stream.c, lib/close-stream.h: New files.
45626
45627 2006-07-22  Bruno Haible  <bruno@clisp.org>
45628
45629         Merge from GNU gettext 0.15.
45630
45631         2006-05-01  Bruno Haible  <bruno@clisp.org>
45632
45633                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45634
45635         2006-07-22  Bruno Haible  <bruno@clisp.org>
45636
45637                 * modules/javaversion: New file.
45638                 * MODULES.html.sh (Java): Add javaversion.
45639
45640         2006-03-12  Bruno Haible  <bruno@clisp.org>
45641
45642                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45643
45644         2005-12-04  Bruno Haible  <bruno@clisp.org>
45645
45646                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45647                 (untested).
45648
45649         2006-06-21  Bruno Haible  <bruno@clisp.org>
45650
45651                 Avoid warnings from recent versions of mcs.
45652                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45653                 -o, -L, -r any more. Use options documented since mcs-1.0
45654                 instead. Similarly for -g.
45655
45656         2005-12-04  Bruno Haible  <bruno@clisp.org>
45657
45658                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45659                 .resources, not .resource.
45660
45661         2005-07-09  Bruno Haible  <bruno@clisp.org>
45662
45663                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45664                 add a .dll suffix.
45665                 Reported by Mark Junker <mjscod@gmx.de>.
45666
45667         2006-07-22  Bruno Haible  <bruno@clisp.org>
45668
45669                 * modules/gettext: Upgrade to gettext-0.15.
45670                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45671                 m4/visibility.m4.
45672                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45673
45674 2006-07-22  Bruno Haible  <bruno@clisp.org>
45675
45676         Merge from GNU gettext 0.15.
45677
45678         2006-03-25  Bruno Haible  <bruno@clisp.org>
45679
45680                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45681
45682         2006-07-21  Bruno Haible  <bruno@clisp.org>
45683
45684                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45685                 "1.1".
45686
45687         2006-05-09  Bruno Haible  <bruno@clisp.org>
45688
45689                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45690                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45691                 for the conftestver execution.
45692
45693         2006-05-01  Bruno Haible  <bruno@clisp.org>
45694
45695                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45696                 optional target-version argument. Verify that the compiler
45697                 groks source of the specified source-version, or add -source
45698                 option as necessary. Verify that the compiler produces
45699                 bytecode in the specified target-version, or add -target and
45700                 -source options as necessary. Make the result of the test
45701                 available as variable CONF_JAVAC. Also log error output in
45702                 config.log.
45703
45704         2006-03-11  Bruno Haible  <bruno@clisp.org>
45705
45706                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45707
45708         2006-05-09  Bruno Haible  <bruno@clisp.org>
45709
45710                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45711                 CLASSPATH_SEPARATOR to a semicolon.
45712
45713         2006-03-12  Bruno Haible  <bruno@clisp.org>
45714
45715                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45716                 available as variable CONF_JAVA, for subsequent autoconf
45717                 tests. Also log error output in config.log.
45718
45719         2006-07-19  Bruno Haible  <bruno@clisp.org>
45720
45721                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45722                 that getline works on glibc2 systems. Needed to avoid trouble
45723                 in relocatable.c.
45724                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45725
45726         2005-12-04  Bruno Haible  <bruno@clisp.org>
45727
45728                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45729                 launcher (untested).
45730
45731         2005-12-04  Bruno Haible  <bruno@clisp.org>
45732
45733                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45734
45735         2006-07-22  Bruno Haible  <bruno@clisp.org>
45736
45737                 * gettext.m4: Update from GNU gettext-0.15.
45738                 * nls.m4: Likewise.
45739                 * po.m4: Likewise.
45740                 * inttypes-pri.m4: Likewise.
45741                 * inttypes-h.m4: Renamed from inttypes.m4.
45742                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45743
45744 2006-07-22  Bruno Haible  <bruno@clisp.org>
45745
45746         Merge from GNU gettext 0.15.
45747
45748         2005-07-05  Bruno Haible  <bruno@clisp.org>
45749
45750                 * printf-args.c (printf_fetchargs): Work around broken
45751                 definition of wint_t on mingw.
45752
45753         2005-02-12  Bruno Haible  <bruno@clisp.org>
45754
45755                 * xallocsa.h: Add extern "C" for C++.
45756
45757         2006-05-17  Bruno Haible  <bruno@clisp.org>
45758
45759                 Cygwin portability.
45760                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45761
45762         2006-04-30  Bruno Haible  <bruno@clisp.org>
45763
45764                 * progreloc.c: Include <mach-o/dyld.h> if available.
45765                 (find_executable): Use _NSGetExecutablePath when possible.
45766
45767         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45768
45769                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45770                 function.
45771
45772         2005-12-29  Bruno Haible  <bruno@clisp.org>
45773
45774                 * progreloc.c (set_program_name_and_installdir): Fix
45775                 compilation error.
45776
45777         2005-12-04  Bruno Haible  <bruno@clisp.org>
45778
45779                 Cygwin portability.
45780                 * progreloc.c: Include <windows.h> also on Cygwin.
45781                 (find_executable): Add support for Cygwin.
45782                 (set_program_name_and_installdir): Handle also platforms with
45783                 nonempty EXEEXT.
45784
45785         2006-07-11  Bruno Haible  <bruno@clisp.org>
45786
45787                 * javacomp.c: Fix a comment.
45788                 Reported by Jim Meyering.
45789
45790         2006-04-30  Bruno Haible  <bruno@clisp.org>
45791
45792                 * javacomp.h (compile_java_class): Add source_version,
45793                 target_version arguments.
45794                 * javacomp.c: Rewritten to choose only a compiler that
45795                 respects the specified source_version and target_version.
45796
45797         2006-06-27  Bruno Haible  <bruno@clisp.org>
45798
45799                 Assume correct S_ISDIR macro.
45800                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45801
45802         2006-07-22  Bruno Haible  <bruno@clisp.org>
45803
45804                 * javaversion.h: New file, from GNU gettext.
45805                 * javaversion.c: New file, from GNU gettext.
45806                 * javaversion.java: New file, from GNU gettext.
45807                 * javaversion.class: New file, from GNU gettext.
45808
45809         2006-05-17  Bruno Haible  <bruno@clisp.org>
45810
45811                 Cygwin portability.
45812                 * javaexec.c (execute_java_class): Test for jview program
45813                 also on Cygwin.
45814
45815         2006-04-09  Bruno Haible  <bruno@clisp.org>
45816
45817                 * fatal-signal.c: Don't include string.h.
45818                 (at_fatal_signal): Use a copying loop instead of memcpy.
45819
45820         2005-12-04  Bruno Haible  <bruno@clisp.org>
45821
45822                 * csharpexec.c: Add support for 'clix' launcher (untested).
45823                 (execute_csharp_using_sscli): New function.
45824                 (execute_csharp_program): Call it.
45825
45826         2006-06-21  Bruno Haible  <bruno@clisp.org>
45827
45828                 Avoid warnings from recent versions of mcs.
45829                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45830                 -o, -L, -r any more. Use options documented since mcs-1.0
45831                 instead. Similarly for -g.
45832
45833         2005-07-09  Bruno Haible  <bruno@clisp.org>
45834
45835                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45836                 add a .dll suffix.
45837                 Reported by Mark Junker <mjscod@gmx.de>.
45838
45839         2006-06-17  Bruno Haible  <bruno@clisp.org>
45840
45841                 * config.charset: Update for NetBSD 3.0.
45842
45843         2006-05-17  Bruno Haible  <bruno@clisp.org>
45844
45845                 Cygwin portability.
45846                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45847
45848         2006-05-16  Bruno Haible  <bruno@clisp.org>
45849
45850                 * localcharset.c [CYGWIN]: Include <windows.h>.
45851                 (get_charset_aliases): For Cygwin, return the same CPxxx
45852                 aliases list as under WIN32.
45853                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45854                 the environment variables. Fall back to GetACP().
45855
45856         2006-04-05  Bruno Haible  <bruno@clisp.org>
45857
45858                 * config.charset: Update Juan Manuel Guerrero's address.
45859
45860         2005-02-12  Bruno Haible  <bruno@clisp.org>
45861
45862                 * allocsa.h: Add extern "C" for C++.
45863
45864         2005-02-10  Bruno Haible  <bruno@clisp.org>
45865
45866                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45867                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45868
45869         2006-07-22  Bruno Haible  <bruno@clisp.org>
45870
45871                 * gettext.h: Update to GNU gettext-0.15.
45872
45873 2006-07-22  Bruno Haible  <bruno@clisp.org>
45874
45875         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45876         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45877         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45878
45879 2006-07-21  Eric Blake  <ebb9@byu.net>
45880
45881         * modules/stdlib-safer: New file.
45882         * MODULES.html.sh (File stream based Input/Output): Add
45883         stdlib-safer.
45884
45885 2006-07-21  Eric Blake  <ebb9@byu.net>
45886
45887         * lib/stdlib-safer.h: New file from coreutils, required by
45888         stdlib--.h.
45889
45890 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45891
45892         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45893
45894 2006-07-20  Bruno Haible  <bruno@clisp.org>
45895
45896         * gnulib-tool: Recognize new option --assume-autoconf.
45897         (autoconf_minversion): New variable.
45898         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45899
45900 2006-07-20  Bruno Haible  <bruno@clisp.org>
45901
45902         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45903
45904 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45905
45906         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45907         Reindent and repaginate.
45908
45909 2006-07-19  Derek Price  <derek@ximbiot.com>
45910
45911         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45912         Correct grammar.
45913
45914 2006-07-17  Bruno Haible  <bruno@clisp.org>
45915
45916         * modules/list: New file.
45917         * modules/array-list: New file.
45918         * modules/carray-list, modules/carray-list-tests: New files.
45919         * modules/linked-list, modules/linked-list-tests: New files.
45920         * modules/avltree-list, modules/avltree-list-tests: New files.
45921         * modules/rbtree-list, modules/rbtree-list-tests: New files.
45922         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45923         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45924         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45925         * modules/oset: New file.
45926         * modules/array-oset: New file.
45927         * modules/avltree-oset, modules/avltree-oset-tests: New files.
45928         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45929         * tests/test-carray_list.c: New file.
45930         * tests/test-linked_list.c: New file.
45931         * tests/test-avltree_list.c: New file.
45932         * tests/test-rbtree_list.c: New file.
45933         * tests/test-linkedhash_list.c: New file.
45934         * tests/test-avltreehash_list.c: New file.
45935         * tests/test-rbtreehash_list.c: New file.
45936         * tests/test-avltree_oset.c: New file.
45937         * tests/test-rbtree_oset.c: New file.
45938         * MODULES.html.sh (Container data structures): New section.
45939
45940 2006-07-17  Bruno Haible  <bruno@clisp.org>
45941
45942         * m4/gl_list.m4: New file.
45943
45944 2006-07-17  Bruno Haible  <bruno@clisp.org>
45945
45946         * lib/gl_list.h: New file.
45947         * lib/gl_list.c: New file.
45948         * lib/gl_array_list.h: New file.
45949         * lib/gl_array_list.c: New file.
45950         * lib/gl_carray_list.h: New file.
45951         * lib/gl_carray_list.c: New file.
45952         * lib/gl_linked_list.h: New file.
45953         * lib/gl_linked_list.c: New file.
45954         * lib/gl_anylinked_list1.h: New file.
45955         * lib/gl_anylinked_list2.h: New file.
45956         * lib/gl_avltree_list.h: New file.
45957         * lib/gl_avltree_list.c: New file.
45958         * lib/gl_anyavltree_list1.h: New file.
45959         * lib/gl_anyavltree_list2.h: New file.
45960         * lib/gl_rbtree_list.h: New file.
45961         * lib/gl_rbtree_list.c: New file.
45962         * lib/gl_anyrbtree_list1.h: New file.
45963         * lib/gl_anyrbtree_list2.h: New file.
45964         * lib/gl_anytree_list1.h: New file.
45965         * lib/gl_anytree_list2.h: New file.
45966         * lib/gl_linkedhash_list.h: New file.
45967         * lib/gl_linkedhash_list.c: New file.
45968         * lib/gl_anyhash_list1.h: New file.
45969         * lib/gl_anyhash_list2.h: New file.
45970         * lib/gl_avltreehash_list.h: New file.
45971         * lib/gl_avltreehash_list.c: New file.
45972         * lib/gl_rbtreehash_list.h: New file.
45973         * lib/gl_rbtreehash_list.c: New file.
45974         * lib/gl_anytreehash_list1.h: New file.
45975         * lib/gl_anytreehash_list2.h: New file.
45976
45977         * lib/gl_oset.h: New file.
45978         * lib/gl_oset.c: New file.
45979         * lib/gl_array_oset.h: New file.
45980         * lib/gl_array_oset.c: New file.
45981         * lib/gl_avltree_oset.h: New file.
45982         * lib/gl_avltree_oset.c: New file.
45983         * lib/gl_rbtree_oset.h: New file.
45984         * lib/gl_rbtree_oset.c: New file.
45985         * lib/gl_anytree_oset.h: New file.
45986
45987 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45988
45989         * m4/mkancesdirs.m4: New file.
45990         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45991         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45992         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45993         it.
45994
45995 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45996
45997         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45998         * lib/mkancesdirs.h: New files.
45999         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
46000         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
46001         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
46002         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
46003         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
46004         callers changed.  Revamp internals significantly, by not
46005         attempting to create directories that are temporarily more
46006         permissive than the final results.  Do not attempt to use
46007         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
46008         This removes some race conditions, fixes some bugs, and simplifies
46009         things.  Use new dirchownmod function to do owner and mode changes.
46010         * lib/mkdir-p.h: Likewise.
46011         * lib/modechange.c (octal_to_mode): New function.
46012         (struct mode_change): New member mentioned.
46013         (make_node_op_equals): New arg mentioned.  All callers changed.
46014         (mode_compile): Keep track of which mode bits the user has explicitly
46015         mentioned.
46016         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46017         New arg PMODE_BITS, to keep track of which mode bits the user
46018         mentioned; it treats S_ISUID and S_ISGID speciall.
46019         All callers changed.
46020         * lib/modechange.h: Likewise.
46021
46022 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46023
46024         * MODULES.html.sh: Add mkancestors.
46025         * modules/mkancesdirs: New module.
46026         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46027         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46028         The chdir-safer and afs files are now orphans; I'll remove them
46029         unless someone speaks up.
46030         Add lib/dirchownmod.c, lib/dirchownmod.h.
46031         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46032         Add lchown, mkancesdirs.
46033         (Maintainer): Add self.
46034
46035 2006-07-15  Karl Berry  <karl@gnu.org>
46036
46037         * gnulib-tool: help message wording/arrangement.
46038
46039 2006-07-14  Simon Josefsson  <jas@extundo.com>
46040
46041         * doc/gnulib.texi (Libtool and Windows): New section.
46042
46043 2006-07-12  Simon Josefsson  <jas@extundo.com>
46044
46045         * modules/gendocs (License): Fix license, approved by Karl.
46046
46047 2006-07-12  Eric Blake  <ebb9@byu.net>
46048
46049         * MODULES.html.sh: Add gendocs.
46050
46051 2006-07-11  Eric Blake  <ebb9@byu.net>
46052
46053         * modules/fdl: New module, to install doc/fdl.texi.
46054         * MODULES.html.sh: Add new section for documentation modules.
46055         * gnulib-tool: Avoid space-tab.
46056         (--doc-base): New option, to manage files from doc.
46057
46058 2006-07-11  Eric Blake  <ebb9@byu.net>
46059
46060         * m4/absolute-header.m4: Fix comments to match recent change.
46061
46062 2006-07-11  Eric Blake  <ebb9@byu.net>
46063
46064         * gnulib-tool: List --doc-base before --tests-base.
46065
46066 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46067
46068         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46069
46070 2006-07-11  Bruno Haible  <bruno@clisp.org>
46071
46072         * README: Mention where to put documentation.
46073
46074 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46075
46076         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46077
46078 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46079
46080         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46081         to stdint.m4.
46082
46083 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46084
46085         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46086         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46087         "no/such/file/stdint.h" when there is no such file, so that
46088         the resulting C code can be parsed by dodgy compilers.
46089         Problems reported by Bob Proulx.
46090
46091 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46092
46093         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46094         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46095         macros into the GNU _D_EXACT_NAMLEN.
46096         * lib/savedir.c:  Likewise.
46097         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46098
46099 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46100         and Paul Eggert  <eggert@cs.ucla.edu>
46101
46102         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46103         * m4/savedir.m4:
46104         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46105         macros into the GNU _D_EXACT_NAMLEN.
46106
46107 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46108
46109         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46110         around the absolute name, to work around a problem with the HP-UX
46111         11.23 native C compiler, reported by Bob Proulx.
46112
46113 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46114
46115         * doc/maintain.texi, make-stds.texi: Sync from
46116         <http://savannah.gnu.org/projects/gnustandards>.
46117
46118 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46119
46120         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46121
46122 2006-07-09  Jim Meyering  <jim@meyering.net>
46123
46124         * m4/glob.m4: Remove a doubled word in a comment.
46125
46126 2006-07-09  Jim Meyering  <jim@meyering.net>
46127
46128         * lib/argp-pv.c: Remove a doubled word in a comment.
46129         * lib/check-version.c (check_version): Likewise.
46130         * lib/javacomp.c (compile_java_class): Likewise.
46131
46132 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46133
46134         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46135         for the benefit of people using Autoconf 2.60.  If you want to
46136         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46137         (or m4/onceonly.m4, if pre-2.57) manually.
46138
46139 2006-07-08  Jim Meyering  <jim@meyering.net>
46140
46141         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46142         comment.
46143         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46144         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46145         comment.
46146
46147 2006-07-08  Jim Meyering  <jim@meyering.net>
46148
46149         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46150
46151 2006-07-07  Simon Josefsson  <jas@extundo.com>
46152
46153         * tests/test-crc.c: Change expected crc value, the test vector
46154         were probably computed using the old broken crc.c?
46155
46156 2006-07-06  Simon Josefsson  <jas@extundo.com>
46157
46158         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46159         now the canonical place for the M4 file).
46160
46161         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46162         from the sys_socket dependency now.
46163
46164         * modules/inet_pton (Files): Ditto.
46165
46166         * modules/inet_ntop (Files): Ditto.
46167
46168 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46169
46170         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46171         not gl_PREREQ_GETUSERSHELL.
46172
46173 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46174
46175         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46176         with only one argument, for Autoconf 2.60.
46177         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46178         expand to nothing, so add a shell command to avoid syntax error.
46179         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46180
46181 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46182
46183         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46184
46185 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46186
46187         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46188         no longer needed.  Check for isblank decl.
46189         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46190         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46191         of existence.
46192
46193 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46194
46195         * lib/getloadavg.c: Use __VMS, not VMS.
46196         * lib/getopt.c: Likewise.
46197         * lib/getpagesize.h: Likewise.
46198         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46199         and probably does not work.
46200
46201 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46202
46203         * lib/.cppi-disable: Add wcwidth.
46204         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46205         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46206         (ISGRAPH): Remove.  All uses changed to isgraph.
46207         (FOLD) [!defined _LIBC]: Remove special case.
46208         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46209         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46210         HAVE_ISBLANK.
46211         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46212         case.
46213
46214 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46215
46216         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46217         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46218         brackets.  Other minor changes to suppress some compiler
46219         warnings.
46220
46221 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46222         and Paul Eggert  <eggert@cs.ucla.edu>
46223
46224         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46225         of invoking obsolescent AC_HEADER_DIRENT macro.
46226         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46227         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46228         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46229         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46230         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46231         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46232         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46233         * m4/readdir.m4: Remove; no longer needed.
46234
46235 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46236         and Paul Eggert  <eggert@cs.ucla.edu>
46237
46238         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46239         Don't worry about this obsolete case any more.
46240         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46241         directories.
46242         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46243         worry about this obsolete case any more.
46244         * lib/fts.c: Likewise.
46245         * lib/getcwd.c: Likewise.
46246         * lib/glob.h: Likewise.
46247         * lib/savedir.c: Likewise.
46248
46249 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46250
46251         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46252         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46253         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46254         needed.
46255         All uses removed.
46256         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46257         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46258         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46259         needed.
46260         * m4/getdate.m4 (gl_GETDATE): Likewise.
46261         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46262         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46263         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46264         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46265         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46266         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46267         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46268         needed.
46269
46270 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46271
46272         * lib/memcasecmp.c: Include <limits.h>.
46273         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46274         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46275         Don't assume isdigit succeeds only on '0' through '9'.
46276
46277 2006-07-05  Eric Blake  <ebb9@byu.net>
46278
46279         * modules/getaddrinfo (Depends-on): Add snprintf.
46280
46281 2006-07-05  Eric Blake  <ebb9@byu.net>
46282
46283         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46284         to avoid 'header present but could not be compiled' on cygwin.
46285
46286 2006-07-05  Eric Blake  <ebb9@byu.net>
46287
46288         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46289         missing from netdb.h.
46290         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46291
46292 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46293
46294         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46295         no longer needed.
46296         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46297         * m4/getdate.m4 (gl_GETDATE): Likewise.
46298         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46299         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46300         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46301         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46302         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46303
46304 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46305
46306         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46307         All uses of is_space replaced by isspace.
46308         * lib/exit.h: Don't talk about STDC_HEADERS.
46309         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46310         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46311         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46312         replaced by isprint etc.
46313         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46314         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46315         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46316         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46317         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46318         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46319
46320 2006-07-05  Bruno Haible  <bruno@clisp.org>
46321
46322         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46323         the function exists, before testing against AIX.
46324         Reported by Martin Lambers <marlam@marlam.de>.
46325
46326 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46327
46328         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46329         From Mark D. Baushke.
46330
46331 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46332
46333         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46334         to the absolute name, not just one, to bypass Sun C 5.8's
46335         "warning: #include of /usr/include/... may be non-portable".
46336
46337 2006-07-04  Eric Blake  <ebb9@byu.net>
46338
46339         * modules/dirname-tests: New test module.
46340         * tests/test-dirname.c: New file, replacing dirname.c
46341         TEST_DIRNAME section that was recently deleted.
46342
46343 2006-07-04  Bruno Haible  <bruno@clisp.org>
46344
46345         Assume ANSI C header files and <ctype.h> functions.
46346         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46347         (mbsnwidth): Use isprint, iscntrl instead.
46348
46349 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46350
46351         Merge from coreutils.
46352         * MODULES.html.sh: Add xstrtold.
46353         * modules/xstrtold: New file.
46354         * modules/cycle-check (Files): Add lib/same-inode.h.
46355         * modules/dirname (Files): Add m4/double-slash-root.m4.
46356         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46357         * modules/mkdir-p (Files): Add lib/same-inode.h.
46358         * modules/same (Files): Add lib/same-inode.h.
46359
46360 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46361
46362         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46363         This is to keep the terminology clean; POSIX talks about
46364         "absolute pathnames", not "full pathnames", but the GNU
46365         Coding Standards say to use "path" for something else;
46366         so use "absolute" to keep both sides happy.
46367         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46368         Set gl_absolute_header, not gl_full_header_path.
46369         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46370         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46371         All uses changed.
46372
46373         Merge from coreutils.
46374
46375         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46376
46377         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46378         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46379         want to require the building of c-strtod.o.
46380         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46381         needs -lm directly.
46382         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46383
46384         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46385
46386         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46387         --as-needed option if available.  Problem reported by Albert Chin in
46388         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46389         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46390         cc merely issues a bunch of annoying warnings for --as-needed
46391         (this problem was reported by Bob Proulx).  Also, try linking with
46392         -lm to detect a bug in binutils 2.16 (this problem was reported
46393         by Ralf Wildenhues).
46394
46395         2006-06-18  Jim Meyering  <jim@meyering.net>
46396
46397         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46398         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46399         macro.
46400         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46401         also check for glibc-2.4's abort-inducing bug.
46402
46403         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46404         Low-probability clean-up should be to use rmdir to get rid of
46405         the just-created directory, not unlink.
46406
46407         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46408         configure fail, and request a bug report to inform us about it.
46409         Add a comment that, barring reports to the contrary, in 2007 we'll
46410         assume ftruncate is universally available.
46411
46412         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46413
46414         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46415
46416         2006-03-12  Jim Meyering  <jim@meyering.net>
46417
46418         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46419         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46420         * m4/same.m4 (gl_SAME): Likewise.
46421         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46422
46423         2006-03-11  Eric Blake  <ebb9@byu.net>
46424
46425         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46426         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46427         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46428         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46429
46430 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46431
46432         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46433         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46434         reported by Mark D. Baushke, one in
46435         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46436
46437         Merge from coreutils.
46438
46439         * lib/.cppi-disable: Add stdint_.h.
46440         * lib/.cvsignore: Add stdint.h.
46441
46442         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46443
46444         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46445         both double and long double versions.
46446         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46447         * lib/xstrtold.c: New file.
46448         * lib/xstrtod.h (xstrtold): New decl.
46449
46450         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46451
46452         * lib/filemode.c (setst): Remove.
46453         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46454         (arguably) clearer, and the generated code is a bit smaller on my
46455         Debian GNU/Linux stable x86 host.
46456
46457         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46458
46459         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46460         Assume that filemode.h includes sys/types.h and sys/stat.h.
46461         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46462         (ftypelet): Reorder to put common cases first, for efficiency.
46463         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46464         to do 'M'.
46465         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46466         of 10, for compatibility with FreeBSD.  All callers changed.
46467         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46468         types that can't be deduced solely from st_mode.  First arg is now a
46469         const pointer.
46470         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46471         (strmode): Renamed from mode_string.
46472         (filemodestring): New decl.
46473         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46474         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46475         needed.
46476         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46477
46478         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46479
46480         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46481         fsusage.h now does that.  Include fsusage.h first, to test interface.
46482         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46483         at most one method (the old code could have generated decls that
46484         didn't conform to C89, not that this was ever exercised).
46485         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46486
46487         2006-03-19  Jim Meyering  <jim@meyering.net>
46488
46489         Work even in a chroot where d_ino values for entries in "/"
46490         don't match the stat.st_ino values for the same names.
46491         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46492         number, iterate through all entries again, using lstat instead.
46493         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46494         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46495
46496         * lib/getcwd.c (__getcwd): Clarify a comment.
46497         Use memcpy in place of a call to strcpy.
46498
46499         2006-03-12  Jim Meyering  <jim@meyering.net>
46500
46501         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46502         matches that of the current directory (which we're about to chdir ".."
46503         out of), then save the dev-ino of the parent, instead.
46504
46505         * lib/same-inode.h (SAME_INODE): New file/macro.
46506         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46507         Include "same-inode.h", instead.
46508         * lib/same.c: Likewise.
46509         * lib/cycle-check.h: Include "same-inode.h".
46510         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46511         * lib/cycle-check.c (SAME_INODE): Remove definition.
46512         * lib/root-dev-ino.h: Include "same-inode.h".
46513
46514         2006-03-11  Eric Blake  <ebb9@byu.net>
46515
46516         * lib/same.c (same_name): s/base_name/last_component/
46517         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46518         * lib/filenamecat.c (file_name_concat): Likewise.
46519
46520         2006-03-11  Eric Blake  <ebb9@byu.net>,
46521                     Paul Eggert  <eggert@cs.ucla.edu>
46522
46523         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46524         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46525         drive prefix.
46526         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46527         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46528         (last_component): New method.
46529         * lib/dirname.c (dir_len): Determine when drive letters need a
46530         subsequent slash.  Preserve // when it is special.
46531         (dir_name): Don't append dot when drive letter is absolute.
46532         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46533         * lib/basename.c (base_name): New semantics - malloc the result.
46534         Preserve // when it is special.  Preserve relative files that look
46535         like drive letters.
46536         (base_len): Preserve // when it is special.
46537         (last_component): New method, similar to old base_name semantics.
46538         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46539         base_name.  Strip redundant slashes from ///.
46540
46541 2006-07-03  Jim Meyering  <jim@meyering.net>
46542
46543         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46544         macro is used before the first cycle_check call.
46545
46546 2006-07-03  Eric Blake  <ebb9@byu.net>
46547
46548         * modules/dirname (Depends-on): Add xstrndup.
46549
46550 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46551
46552         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46553         test cases, so that config.log is a bit easier to follow.
46554
46555 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46556
46557         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46558         both are 64 bits, since this seems to be the tradition, and this
46559         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46560         we ever run into a host that prefers long long to long in this
46561         case, we'll need another configure-time test.  Problem reported by
46562         Jim Meyering.
46563
46564 2006-07-02  Eric Blake  <ebb9@byu.net>
46565
46566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46567
46568 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46569
46570         * modules/inttypes (Depends-on): No longer depends on stdint.
46571         * modules/stdint (Description): Say more about assumptions.
46572         Say that the fast types might differ.  Say macros are used.
46573         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46574         (Makefile.am): Revise list of substituted symbols to match
46575         new stdint.m4.
46576         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46577         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46578         * tests/test-stdint.c (verify_same_types)
46579         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46580         the code conforms to C99/C89.
46581         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46582         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46583
46584 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46585
46586         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46587         but fix a bug, by requiring at least 64 bits.
46588         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46589         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46590         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46591         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46592
46593         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46594         changes.  Make 2.59 a prerequisite.  Check and substitute for
46595         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46596         inttypes.h.  Do not use special include files; just use the
46597         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46598         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46599         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46600         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46601         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46602         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46603         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46604         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46605         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46606         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46607         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46608         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46609         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46610         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46611         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46612         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46613         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46614         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46615         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46616         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46617         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46618         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46619         not check for things that C99 does not require, e.g., int8_t.  If
46620         a test isn't needed unless <stdint.h> isn't working, and is
46621         unlikely to be needed for any other reason, then don't do it
46622         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46623         size_t, since we assume C89 freestanding at least.  Do not check
46624         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46625         the right thing even if the types are not defined.  Instead use:
46626         (gl_STDINT_TYPE_PROPERTIES): New macro.
46627         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46628         testing whether <sys/types.h> clashes, as Autoconf does this for
46629         us now.  All uses removed.
46630         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46631         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46632         (gl_CHECK_TYPE_SAME):
46633         Remove; no longer needed.
46634         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46635         exists, since we'll return 0 anyway in that case.
46636         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46637
46638 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46639
46640         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46641         possible collision with system files.
46642         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46643         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46644         WCHAR_MIN and WCHAR_MAX in this case.
46645         (<stddef.h>): Do not include; no longer needed.
46646         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46647         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46648         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46649         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46650         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46651         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46652         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46653         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46654         !defined(__c99))]: Include in this case too, since it's harmless
46655         now.
46656         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46657         dangerous to do so.
46658         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46659         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46660         (_STDINT_MIN, _STDINT_MAX): New macros.
46661         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46662         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46663         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46664         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46665         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46666         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46667         macros, not typedefs; this simplifies things quite a bit.
46668         Use long int for all types narrower than int64_t.
46669         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46670         Define in terms of long long int or int64_t or long int,
46671         not int64_t or int32_t.  This saves some compile-time testing.
46672         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46673         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46674         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46675         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46676         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46677         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46678         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46679         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46680         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46681         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46682         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46683         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46684         undef any previous version and define our own version, for
46685         simplicity and consistency with the new macros for types.
46686         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46687         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46688         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46689         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46690         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46691         @WINT_T_SUFFIX@ to keep things simple here.
46692         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46693         Simplify by assuming typical 8/16/32/64 host, since we're
46694         already doing that elsewhere anyway.
46695         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46696         and assume long long int is 64 bits if available.  This
46697         speeds up 'configure'.
46698
46699 2006-07-01  Eric Blake  <ebb9@byu.net>
46700
46701         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46702         Reported by Andreas Buening.
46703
46704 2006-07-01  Eric Blake  <ebb9@byu.net>
46705
46706         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46707
46708 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46709
46710         * lib/getaddrinfo.c: fixed typo
46711
46712 2006-06-29  Jim Meyering  <jim@meyering.net>
46713
46714         * modules/strftime (Maintainer): Add my name, since with the
46715         FPRINTFTIME changes strftime.c has forked from glibc.
46716
46717 2006-06-29  Eric Blake  <ebb9@byu.net>
46718
46719         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46720
46721 2006-06-29  Eric Blake  <ebb9@byu.net>
46722
46723         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46724
46725 2006-06-29  Eric Blake  <ebb9@byu.net>
46726
46727         * lib/stat_.h: New file.
46728
46729 2006-06-29  Eric Blake  <ebb9@byu.net>
46730
46731         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46732         unused static function.
46733
46734 2006-06-29  Eric Blake  <ebb9@byu.net>
46735
46736         * doc/functions.texi (Function Portability): Document missing lstat
46737         on mingw.
46738
46739 2006-06-29  Eric Blake  <ebb9@byu.net>
46740
46741         * MODULES.html.sh: Add sys_stat.
46742         * modules/sys_stat: New module.
46743         * modules/mkstemp (Depends-on): Add sys_stat.
46744
46745 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46746
46747         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46748
46749 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46750
46751         * m4/c-bs-a.m4: Removed.
46752
46753 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46754
46755         * lib/strftime.c: Assume strftime() exists.
46756
46757 2006-06-29  Derek Price  <derek@ximbiot.com>
46758
46759         * modules/c-bs-a: Removed - \a is C89.
46760         * MODULES.html.sh: Remove c-bs-a.
46761
46762 2006-06-29  Bruno Haible  <bruno@clisp.org>
46763
46764         * modules/wcwidth (License): Change to LGPL.
46765
46766 2006-06-28  Simon Josefsson  <jas@extundo.com>
46767
46768         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46769         on _WIN32.
46770
46771         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46772         getnameinfo.
46773
46774 2006-06-28  Simon Josefsson  <jas@extundo.com>
46775
46776         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46777
46778 2006-06-28  Simon Josefsson  <jas@extundo.com>
46779
46780         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46781         functions there.  It will succeed on Windows XP, but on Windows
46782         2000 and (presumably) earlier, it will fail, and use the internal
46783         re-implementation.
46784         (use_win32_p): New function.
46785         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46786         Support AI_NUMERICSERV to disable getservbyname.
46787         (getnameinfo): New function, only supports
46788         NI_NUMERICHOST|NI_NUMERICSERV for now.
46789
46790         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46791         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46792         getnameinfo.
46793
46794 2006-06-28  Eric Blake  <ebb9@byu.net>
46795
46796         * modules/wcwidth: New file.
46797         * modules/mbchar (Depends-on): Add wcwidth.
46798         * modules/mbswidth (Depends-on): Add wcwidth.
46799         * MODULES.html.sh: Add wcwidth.
46800
46801 2006-06-28  Eric Blake  <ebb9@byu.net>
46802
46803         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46805
46806 2006-06-28  Eric Blake  <ebb9@byu.net>
46807
46808         * lib/xvasprintf.h: Fix comments.
46809
46810 2006-06-28  Eric Blake  <ebb9@byu.net>
46811
46812         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46813         * lib/mbswidth.c (wcwidth): Move from here...
46814         * lib/wcwidth.h: ...to this new file.
46815
46816 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46817
46818         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46819
46820         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46821         it's obsolete.
46822         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46823
46824 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46825
46826         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46827         Autoconf 2.60 says this stuff was obsolete.
46828
46829 2006-06-28  Bruno Haible  <bruno@clisp.org>
46830
46831         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46832
46833 2006-06-28  Bruno Haible  <bruno@clisp.org>
46834
46835         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46836         gt_TYPE_WCHAR_T.
46837
46838 2006-06-28  Bruno Haible  <bruno@clisp.org>
46839
46840         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46841         declaration for wcwidth.
46842         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46843
46844 2006-06-28  Bruno Haible  <bruno@clisp.org>
46845
46846         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46847         (mkdir): Define using _mkdir.
46848
46849 2006-06-28  Bruno Haible  <bruno@clisp.org>
46850
46851         * lib/getaddrinfo.h: Fix POSIX URL.
46852         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46853         _WIN32.
46854         (use_win32_p): Make static.
46855         (getaddrinfo): Reject service name if it is empty or does not consist
46856         solely of decimal digits, or if its value is > 65535.
46857         (getnameinfo): Remove useless casts.
46858
46859 2006-06-27  Simon Josefsson  <jas@extundo.com>
46860
46861         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46862         Eggert and Martin Lambers.
46863
46864 2006-06-27  Simon Josefsson  <jas@extundo.com>
46865
46866         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46867         Eggert and Martin Lambers.
46868
46869 2006-06-27  Bruno Haible  <bruno@clisp.org>
46870
46871         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46872         result to 0, not to empty.
46873         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46874
46875 2006-06-27  Bruno Haible  <bruno@clisp.org>
46876
46877         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46878
46879 2006-06-26  Simon Josefsson  <jas@extundo.com>
46880
46881         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46882         present.
46883
46884 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46885
46886         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46887         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46888         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46889
46890 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46891
46892         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46893
46894 2006-06-26  Bruno Haible  <bruno@clisp.org>
46895
46896         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46897
46898 2006-06-26  Bruno Haible  <bruno@clisp.org>
46899
46900         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46901
46902 2006-06-26  Bruno Haible  <bruno@clisp.org>
46903
46904         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46905         SGI C compiler in pre-C99 mode.
46906         Suggested by Mark D. Baushke and Larry Jones.
46907
46908 2006-06-26  Bruno Haible  <bruno@clisp.org>
46909
46910         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46911         WCHAR_MAX.
46912         Reported by Mark D. Baushke and Larry Jones.
46913
46914 2006-06-26  Bruno Haible  <bruno@clisp.org>
46915
46916         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46917         in pre-C99 mode.
46918         Suggested by Mark D. Baushke and Larry Jones.
46919
46920 2006-06-23  Simon Josefsson  <jas@extundo.com>
46921             Bruno Haible  <bruno@clisp.org>
46922
46923         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46924         Emit mostlyclean-local rule.
46925         (func_emit_tests_Makefile_am): Likewise.
46926         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46927
46928 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
46929
46930         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46931
46932 2006-06-23  Bruno Haible  <bruno@clisp.org>
46933
46934         * tests/test-stdint.c: Update to match ISO C 99 Technical
46935         Corrigendum 1.
46936
46937 2006-06-23  Bruno Haible  <bruno@clisp.org>
46938
46939         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46940
46941 2006-06-23  Bruno Haible  <bruno@clisp.org>
46942
46943         * lib/stdint_.h: Treat IRIX like OpenBSD.
46944
46945 2006-06-23  Bruno Haible  <bruno@clisp.org>
46946
46947         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46948         ISO C 99 Technical Corrigendum 1.
46949
46950 2006-06-22  Simon Josefsson  <jas@extundo.com>
46951
46952         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46953         MinGW.
46954
46955 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46956
46957         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46958         needed.  Some compiler complained about some of them.  Problem reported
46959         by Larry Jones in
46960         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46961
46962 2006-06-21  Simon Josefsson  <jas@extundo.com>
46963
46964         * tests/test-getaddrinfo.c: New file.
46965
46966         * modules/getaddrinfo-tests: New file.
46967
46968         * MODULES.html.sh: Add inet_pton.
46969
46970         * modules/inet_pton: New file.
46971
46972 2006-06-21  Simon Josefsson  <jas@extundo.com>
46973
46974         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
46975         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
46976         of using the (limited) gnulib implementation on Windows XP.
46977
46978         * m4/inet_pton.m4: New file.
46979
46980 2006-06-21  Simon Josefsson  <jas@extundo.com>
46981
46982         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46983         variable.
46984
46985         * lib/socket_.h: Don't define WINVER.
46986
46987         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46988         slightly modified to work in gnulib.
46989
46990 2006-06-21  Simon Josefsson  <jas@extundo.com>
46991
46992         * doc/gnulib.texi (Windows sockets): Add.
46993
46994 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46995
46996         * lib/read-file.c (fread_file): Start with buffer allocation of
46997         0 bytes rather than 1 byte; this simplifies the code.
46998         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
46999         code to free buffer and save/restore errno.
47000         (internal_read_file): Remove unused local.
47001
47002 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47003
47004         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
47005         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
47006         Problem reported by Denis Excoffier in
47007         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
47008
47009 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47010
47011         * modules/sys_socket, modules/socklen: Include sys/types since
47012         FreeBSD 4.x's sys/socket.h needs it.
47013
47014 2006-06-19  Simon Josefsson  <jas@extundo.com>
47015
47016         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47017
47018 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47019
47020         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47021
47022 2006-06-19  Bruno Haible  <bruno@clisp.org>
47023
47024         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47025         and FULL_PATH_INTTYPES_H in angle brackets.
47026         Reported by Mark D. Baushke <mdb@gnu.org>.
47027
47028 2006-06-17  Eric Blake  <ebb9@byu.net>
47029
47030         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47031         errno.
47032
47033 2006-06-17  Bruno Haible  <bruno@clisp.org>
47034
47035         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47036         <sys/inttypes.h>.
47037
47038 2006-06-17  Bruno Haible  <bruno@clisp.org>
47039
47040         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47041         whether errno is declared. Assume <errno.h> declares errno.
47042
47043 2006-06-17  Bruno Haible  <bruno@clisp.org>
47044
47045         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47046
47047 2006-06-17  Bruno Haible  <bruno@clisp.org>
47048
47049         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47050         problem on Solaris 2.5.1.
47051
47052 2006-06-16  Eric Blake  <ebb9@byu.net>
47053
47054         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47055         * lib/unicodeio.c [!defined errno]: Likewise.
47056         * lib/strtol.c [!defined errno]: Likewise.
47057         * lib/strtod.c [!defined errno]: Likewise.
47058
47059 2006-06-15  Eric Blake  <ebb9@byu.net>
47060
47061         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47062
47063 2006-06-15  Eric Blake  <ebb9@byu.net>
47064
47065         * config/srclist.txt (ssize_t.m4): Lose sync.
47066
47067 2006-06-15  Bruno Haible  <bruno@clisp.org>
47068
47069         * modules/stdint (Files): Include m4/full-header-path.m4,
47070         m4/size_max.m4, m4/wchar_t.m4.
47071         (Makefile.am): Many more substitutions.
47072         * modules/stdint-tests: New file.
47073         * tests/test-stdint.c: New file.
47074
47075 2006-06-15  Bruno Haible  <bruno@clisp.org>
47076
47077         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47078         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47079         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47080         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47081         gl_CHECK_TYPE_SAME): New macros.
47082
47083 2006-06-15  Bruno Haible  <bruno@clisp.org>
47084
47085         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47086
47087 2006-06-15  Bruno Haible  <bruno@clisp.org>
47088
47089         * lib/stdint_.h: Rewritten to be fully auto-configured.
47090         Fixes bug on HP-UX/IA64.
47091
47092 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47093
47094         * lib/getdate.y (__attribute__): Don't define if already defined.
47095         Problem reported by Larry Jones.
47096         * lib/utimens.c (__attribute__): Likewise.
47097
47098 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47099
47100         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47101         reported by Andreas Schwab.
47102
47103 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47104             Bruno Haible  <bruno@clisp.org>
47105
47106         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47107         check for the declaration of strnlen and a run test that exposes the
47108         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47109         rpl_strndup.
47110
47111 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47112             Bruno Haible  <bruno@clisp.org>
47113
47114         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47115
47116 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47117
47118         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47119         compile test, for Tru64 4.0D.
47120
47121 2006-05-28  Karl Berry  <karl@gnu.org>
47122
47123         * config/srclist.txt (printf-args.c): lose sync.
47124
47125 2006-05-26  Martin Lambers  <marlam@marlam.de>
47126
47127         * lib/getpass.c: Updates the test for the native W32 API, and adds
47128         missing includes, thus fixing compilation warnings.
47129
47130 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47131
47132         * lib/exclude.c (exclude_fnmatch): New function.
47133         (excluded_file_name): Call exclude_fnmatch.
47134         * lib/exclude.h (excluded_file_name): New prototype
47135
47136 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47137
47138         * lib/tempname.c (small_open, large_open): New macros.
47139         (__open, __open64) [!_LIBC]: Remove.
47140         (__gen_tempname): Use small_open and large_open instead of __open
47141         and __open64.  This fixes a portability bug on HP-UX 11.11i
47142         reported by Simon Wing-Tang in
47143         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47144
47145 2006-05-24  Bruno Haible  <bruno@clisp.org>
47146
47147         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47148         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47149         Reported by Thorsten Maerz <torte@netztorte.de> via
47150         Aaron Stone <aaron@serendipity.cx>.
47151
47152 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47153
47154         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47155         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47156         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47157         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47158         not really conditional on the cache.
47159         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47160
47161 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47162
47163         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47164         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47165         (my_usleep): Don't mishandle maximum value.
47166
47167 2006-05-19  Jim Meyering  <jim@meyering.net>
47168
47169         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47170
47171 2006-05-17  Bruno Haible  <bruno@clisp.org>
47172
47173         Cygwin portability.
47174         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47175
47176 2006-05-17  Bruno Haible  <bruno@clisp.org>
47177
47178         * lib/stdint_.h: Fix recognition of Cygwin.
47179
47180 2006-05-15  Bruno Haible  <bruno@clisp.org>
47181
47182         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47183         on libtool patch by Ralf Wildenhues.
47184
47185 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47186
47187         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47188         test for C99 conformance; (bool) 0.5 is an integer constant
47189         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47190         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47191
47192 2006-05-11  Simon Josefsson  <jas@extundo.com>
47193
47194         * m4/xvasprintf.m4: Fix obvious typo.
47195
47196 2006-05-11  Jim Meyering  <jim@meyering.net>
47197
47198         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47199         James Lemley.
47200
47201 2006-05-10  Simon Josefsson  <jas@extundo.com>
47202
47203         * lib/md4.c: Typo fix, update copyright years.
47204         (K1, K2): Don't use L because it turn computations into 64-bit on
47205         64-bit platforms.
47206
47207 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47208
47209         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47210         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47211         unwanted sign propagation, e.g., on hosts with 64-bit int.
47212         There still are some problems with reeelly weird theoretical hosts
47213         (e.g., 33-bit int) but it's not worth worrying about now.
47214         * lib/sha1.c (rol): Likewise.
47215         (K1, K2, K3, K4): Remove unnecessary L suffix.
47216
47217 2006-05-10  Bruno Haible  <bruno@clisp.org>
47218
47219         * lib/des.c: Cast to avoid warnings.
47220
47221 2006-05-09  Bruno Haible  <bruno@clisp.org>
47222
47223         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47224         (Depends-on): Depend also on xsize, stdarg.
47225         (configure.ac): Add gl_XVASPRINTF.
47226
47227 2006-05-09  Bruno Haible  <bruno@clisp.org>
47228
47229         * m4/xvasprintf.m4: New file.
47230
47231 2006-05-09  Bruno Haible  <bruno@clisp.org>
47232
47233         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47234         (EOVERFLOW): Define fallback value.
47235         (xstrcat): New function.
47236         (xvasprintf): Recognize the special case of a string concatenation.
47237
47238 2006-05-08  Eric Blake  <ebb9@byu.net>
47239
47240         * gnulib-tool (func_version): Base copyright year on CVS date.
47241         (func_emit_copyright_notice): New function.
47242         (func_emit_lib_Makefile_am): Use it.
47243         (func_emit_tests_Makefile_am): Likewise.
47244         (func_import): Likewise.
47245
47246 2006-05-08  Bruno Haible  <bruno@clisp.org>
47247
47248         * modules/stdarg: New file.
47249         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47250
47251 2006-05-08  Bruno Haible  <bruno@clisp.org>
47252
47253         * m4/stdarg.m4: New file, from GNU gettext.
47254
47255 2006-05-08  Bruno Haible  <bruno@clisp.org>
47256
47257         * config/srclist.txt (build-aux/config.rpath): different from latest
47258         release.
47259
47260 2006-05-08  Bruno Haible  <bruno@clisp.org>
47261
47262         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47263
47264 2006-05-05  Jim Meyering  <jim@meyering.net>
47265
47266         * m4/warning.m4: New file, derived from bison's file by the same name.
47267
47268 2006-05-03  Bruno Haible  <bruno@clisp.org>
47269
47270         * lib/stdint_.h: Shorter URL.
47271         * lib/inttypes.h: Likewise.
47272
47273 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47274
47275         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47276
47277 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47278
47279         * lib/verify.h: Document the internals better.  Most of this change
47280         was written by Bruno Haible.
47281
47282 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47283
47284         * doc/verify.texi: New file, partly based on a proposal by
47285         Bruno Haible.
47286
47287 2006-05-02  Bruno Haible  <bruno@clisp.org>
47288
47289         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47290         test from here...
47291         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47292
47293 2006-04-29  Bruno Haible  <bruno@clisp.org>
47294
47295         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47296         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47297
47298 2006-04-29  Bruno Haible  <bruno@clisp.org>
47299
47300         * gnulib-tool: Make --update option actually work.
47301
47302 2006-04-29  Bruno Haible  <bruno@clisp.org>
47303
47304         * doc/gcd.texi: New file.
47305         * doc/gnulib.texi: Include it.
47306
47307 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47308
47309         * lib/getdate.y (get_date): When adding relative date, start with the
47310         initial time, not with the result of the first mktime call.
47311
47312 2006-04-25  Bruno Haible  <bruno@clisp.org>
47313
47314         * gnulib-tool (func_import): Output the include directives in three
47315         blocks, sorted separately.
47316         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47317
47318 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47319
47320         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47321         to define main with arguments, for C++.  Reported by Eric Blake.
47322         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47323         Prefer 'int main ()' to 'int main (void)', for C++.
47324         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47325         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47326         for 'main', for C99 and C++.
47327
47328 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47329
47330         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47331         Don't assume that exit status -1 is valid.
47332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47333         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47334         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47335         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47336         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47337         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47338         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47339         functions can be used without declaring them, or that you can
47340         exit with status -1.
47341         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47342
47343 2006-04-24  Karl Berry  <karl@gnu.org>
47344
47345         * config/srclist.txt (longdouble.m4): sync lost.
47346
47347 2006-04-24  Eric Blake  <ebb9@byu.net>
47348
47349         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47350
47351 2006-04-24  Bruno Haible  <bruno@clisp.org>
47352
47353         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47354         poll() implementation in AIX.
47355         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47356
47357 2006-04-24  Bruno Haible  <bruno@clisp.org>
47358
47359         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47360         assigned exactly once.
47361
47362 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47363             Bruno Haible  <bruno@clisp.org>
47364
47365         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47366         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47367         for AM_CPPFLAGS.
47368
47369 2006-04-23  Bruno Haible  <bruno@clisp.org>
47370
47371         * modules/copy-file: Depend on unistd.
47372         * modules/execute: Likewise.
47373         * modules/fatal-signal: Likewise.
47374         * modules/findprog: Likewise.
47375         * modules/mkdtemp : Likewise.
47376         * modules/pipe: Likewise.
47377         * modules/wait-process: Likewise.
47378
47379 2006-04-23  Bruno Haible  <bruno@clisp.org>
47380
47381         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47382         condition was already detected.
47383         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47384
47385 2006-04-23  Bruno Haible  <bruno@clisp.org>
47386
47387         * lib/copy-file.c: Include <unistd.h> unconditionally.
47388         * lib/execute.c: Likewise.
47389         * lib/fatal-signal.c: Likewise.
47390         * lib/findprog.c: Likewise.
47391         * lib/mkdtemp.c: Likewise.
47392         * lib/pipe.h: Likewise.
47393         * lib/pipe.c: Likewise.
47394         * lib/wait-process.h: Likewise.
47395
47396 2006-04-23  Bruno Haible  <bruno@clisp.org>
47397
47398         * gnulib-tool (func_usage): Fix --import description. Document
47399         --update.
47400         (func_import): Create temporary file in a temporary directory, if
47401         --dry-run is specified. Silence errors from 'grep' when there are no
47402         m4 files in $m4dir.
47403         (func_create_testdir): Silence errors from 'grep' when there are no
47404         m4 files in $m4dir.
47405         Reported by Karl Berry <karl@freefriends.org>.
47406
47407 2006-04-20  Bruno Haible  <bruno@clisp.org>
47408
47409         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47410         one argument, so that the code will be portable to Autoconf 2.60.
47411         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47412         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47413         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47414
47415 2006-04-19  Derek Price  <derek@ximbiot.com>
47416             Eric Blake  <ebb9@byu.net>
47417
47418         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47419         rather than "/full/path.h".  Update comment to match.  Shorten &
47420         generalize m4_translit call via AS_TR_CPP.
47421
47422 2006-04-19  Derek Price  <derek@ximbiot.com>
47423             Eric Blake  <ebb9@byu.net>
47424
47425         * lib/inttypes.h: Correct grammar in comment.
47426
47427 2006-04-18  Derek Price  <derek@ximbiot.com>
47428             Paul Eggert  <eggert@cs.ucla.edu>
47429
47430         * modules/inttypes: New file.
47431         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47432
47433 2006-04-18  Derek Price  <derek@ximbiot.com>
47434             Paul Eggert  <eggert@cs.ucla.edu>
47435
47436         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47437         New files.
47438
47439 2006-04-18  Derek Price  <derek@ximbiot.com>
47440             Paul Eggert  <eggert@cs.ucla.edu>
47441
47442         * lib/inttypes.h: New file.
47443         * lib/strtoimax.c: Assume <inttypes.h>.
47444
47445 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47446
47447         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47448         isn't mounted.  Problem reported by Kir Kolyshkin.
47449
47450 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47451
47452         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47453         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47454         Derek R. Price.
47455         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47456         implementation.
47457
47458 2006-04-12  Eric Blake  <ebb9@byu.net>
47459
47460         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47461         is now done automatically by the corresponding Autoconf macro.
47462
47463 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47464
47465         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47466         time_r.h.
47467
47468 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47469
47470         Merge regex changes from libc, removing some of our
47471         POSIX-conformance changes that were rejected and redoing them in a
47472         less-intrusive way.
47473
47474         * lib/regcomp.c (re_compile_internal, init_dfa):
47475         Length arg is now size_t, not Idx.  All uses changed.
47476         (peek_token): Forward decl now says internal_function.
47477         (__re_error_msgid, __re_error_msgid_idx):
47478         Now static rather than extern with attribute_hidden.
47479         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47480         For some reason libc prefers K&R style defns for external functions.
47481         (regerror) [!defined _LIBC]: Likewise.
47482         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47483         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47484         (build_range_exp, build_collating_symbol):
47485         Use K&R-style defn.
47486         (re_compile_fastmap): Use '\0' to memset, not 0.
47487         (utf8_sb_map): Make the calculations more obvious.
47488         (init_dfa, parse_bracket_exp, build_charclass_op):
47489         Call calloc and cast result, as glibc does.
47490         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47491         (build_range_exp, build_collating_symbol):
47492         Now internal functions.
47493
47494         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47495
47496         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47497         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47498         Don't depend on VMS; depend on __VMS instead, for POSIX
47499         namespace cleanness.
47500         (regoff_t): Define to ssize_t, not long int.
47501
47502         Remove the REG_ macros named below.  Instead, make the old names
47503         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47504         __USE_GNU_REGEX.
47505         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47506         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47507         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47508         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47509         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47510         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47511         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47512         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47513         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47514         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47515         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47516         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47517         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47518         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47519         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47520         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47521         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47522         (REG_NREGS):
47523         Remove.  All uses replaced by the old RE_* names.
47524         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47525         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47526         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47527         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47528         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47529         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47530         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47531         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47532         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47533         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47534         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47535         Don't bother having these macros be independent of each others'
47536         values, since they no longer exist in the POSIX name space.
47537
47538         Rename the following member names back to their old names,
47539         unless !__USE_GNU_REGEX.  All uses changed back.
47540         (buffer): Renamed from re_buffer.
47541         (allocated): Renamed from re_allocated.
47542         (used): Renamed from re_used.
47543         (syntax): Renamed from re_syntax.
47544         (fastmap): Renamed from re_fastmap.
47545         (translate): Renamed from re_translate.
47546         (can_be_null): Renamed from re_can_be_null.
47547         (regs_allocated): Renamed from re_regs_allocated.
47548         (fastmap_accurate): Renamed from re_fastmap_accurate.
47549         (no_sub): Renamed from re_no_sub.
47550         (not_bol): Renamed from re_not_bol.
47551         (not_eol): Renamed from re_not_eol.
47552         (newline_anchor): Renamed from re_newline_anchor.
47553         (num_regs): Renamed from rm_num_regs.
47554         (start): Renamed from rm_start.
47555         (end): Renamed from rm_end.
47556
47557         (free_state): Move up a bit.
47558
47559         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47560         #define to be empty.
47561         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47562         when that is what is intended.
47563         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47564         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47565         (MAX): New macro.
47566         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47567         All uses changed back to re_malloc, etc.  It's now the caller's
47568         responsibility to check for overflow; all callers changed.
47569         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47570         (re_x2nrealloc): Remove.
47571         (free_state): Remove decl.
47572
47573         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47574         (re_set_registers, re_exec):
47575         Use K&R-style defn.
47576
47577         2006-01-31  Roland McGrath  <roland@redhat.com>
47578
47579         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47580         Reported by Mike Frysinger <vapier@gentoo.org>.
47581
47582         2006-01-15  Andreas Jaeger  <aj@suse.de>
47583
47584         [BZ #1950]
47585         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47586         build_wcs_upper_buffer change.
47587         (build_wcs_upper_buffer): Change return type.
47588
47589         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47590
47591         * lib/regex_internal.h: Include <stdint.h> if available.
47592
47593         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47594
47595         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47596
47597         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47598
47599         * lib/regcomp.c: Adjust for changed secondary hash function.
47600
47601         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47602
47603         * lib/regex.h: Pretty printing.
47604         Clean up namespace a bit.
47605
47606         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47607
47608         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47609         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47610
47611         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47612                     Ulrich Drepper  <drepper@redhat.com>
47613
47614         [BZ #1302]
47615         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47616         changed.
47617         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47618
47619         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47620
47621         [BZ #281]
47622         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47623         * lib/regcomp.c: Remove unnecessary uses of
47624         unsigned RE_TRANSLATE_TYPE.
47625         * lib/regex_internal.h: Likewise.
47626         * lib/regex_internal.c: Likewise.
47627         * lib/regexec.c: Likewise.
47628         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47629
47630         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47631
47632         * lib/regexec.c (find_recover_state): Remove unnecessary
47633         initialization.
47634         (transit_state_bkref): Make DFA a const pointer.
47635         (get_subexp): Likewise.
47636         (check_arrival): Likewise.
47637         (update_cur_sifted_state): Likewise.
47638         (re_search_internal): Likewise.
47639         (prune_impossible_nodes): Likewise.
47640         (acquire_init_state_context): Likewise.
47641         (proceed_next_node): Likewise.
47642         (set_regs): Likewise.
47643         (free_fail_stack_return): Likewise.
47644         (check_arrival_expand_ecl): Mark DFA parameter as const.
47645         (check_arrival_expand_ecl_sub): Likewise.
47646         (check_subexp_limits): Likewise.
47647         (sub_epsilon_src_nodes):  Likewise.
47648         (add_epsilon_src_nodes):  Likewise.
47649         (merge_state_array): Likewise.
47650         (update_regs): Likewise.
47651         (build_trtable): Likewise.
47652         (sift_states_backward): Mark MCTX parameter as const.
47653         (build_sifted_states): Likewise.
47654         (update_cur_sifted_state): Likewise.
47655         (sift_states_mkref): Likewise.
47656         (check_arrival_expand_ecl): Mark eclosure as const.
47657         (check_dst_limits_calc_pos_1): Likewise.
47658         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47659         pointer.
47660
47661         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47662
47663         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47664         (transit_state_sb): Likewise.
47665         (transit_state_mb): Likewise.
47666         (sift_states_iter_mb): Likewise.
47667         (check_arrival_add_next_nodes): Likewise.
47668         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47669         [_LIBC] (re_search_2_stub): Use mempcpy.
47670
47671         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47672         mbrtowc for very simple UTF-8 case.
47673
47674         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47675         a pointer-to-const.
47676         (re_acquire_state_context): Likewise.
47677         * lib/regex_internal.h: Adjust prototypes.
47678
47679         * lib/regex.c: Prevent using C++ compilers.
47680
47681         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47682         (re_acquire_state_context): Likewise.
47683
47684 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47685
47686         * modules/regex (Depends-on): Add ssize_t.
47687
47688 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47689
47690         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47691         translation table.
47692
47693 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47694
47695         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47696
47697 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47698             Bruno Haible  <bruno@clisp.org>
47699
47700         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47701         <sys/types.h> and <inttypes.h>.
47702
47703 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47704
47705         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47706         `__error_t_defined', so argp.h will not typedef the former.
47707
47708 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47709
47710         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47711         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47712         glibc names.  Even if glibc is changed to conform to POSIX, the
47713         traditional names will be available anyway, since regex depends on
47714         the extensions module.  Also, fix a longstanding typo in the
47715         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47716         reported by Emanuele Giaquinta.  Also, change sense of cached
47717         variable, so that the message makes sense.
47718
47719 2006-03-24  Simon Josefsson  <jas@extundo.com>
47720
47721         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47722         including some doc fixes.
47723         (base64_encode_alloc): Fix +1 bug on allocation failures.
47724
47725 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47726
47727         * lib/base64.c (base64_encode): Do not read past end of array with
47728         unsanitized input on systems with CHAR_BIT > 8.
47729
47730 2006-03-24  Eric Blake  <ebb9@byu.net>
47731
47732         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47733
47734 2006-03-22  Karl Berry  <karl@gnu.org>
47735
47736         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47737         * config/srclistvars.sh (COREUTILS): new var.
47738
47739 2006-03-17  Jim Meyering  <jim@meyering.net>
47740
47741         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47742         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47743
47744 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47745
47746         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47747         no longer needs it.  Instead, check that regoff_t is as least
47748         as wide as ptrdiff_t.
47749
47750         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47751         so that our regex.h stays compatible with the installed regex.
47752         This is helpful for installers who configure --without-included-regex.
47753         Problem reported by Emanuele Giaquinta.
47754
47755 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47756
47757         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47758         Typedef to long int, not to off_, as POSIX will likely change
47759         in that direction.
47760
47761 2006-03-15  Eric Blake  <ebb9@byu.net>
47762
47763         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47764
47765 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47766
47767         * lib/argp-help.c (validate_uparams): Fix typo
47768         * lib/argp-parse.c (argp_default_options): Consistently begin help
47769         messages with a lowercase letter.
47770
47771 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47772
47773         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47774         overrun buffers and shouldn't be used (much as gets shouldn't be
47775         used).
47776         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47777
47778 2006-03-08  Simon Josefsson  <jas@extundo.com>
47779
47780         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47781         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47782
47783 2006-03-08  Simon Josefsson  <jas@extundo.com>
47784
47785         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47786         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47787
47788 2006-03-08  Simon Josefsson  <jas@extundo.com>
47789
47790         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47791         signal that configure disabled the device.
47792
47793 2006-03-08  Simon Josefsson  <jas@extundo.com>
47794
47795         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47796         languages.
47797
47798 2006-03-07  Simon Josefsson  <jas@extundo.com>
47799
47800         * modules/getopt (Depends-on): Add unistd.
47801
47802         * modules/unistd: New file.
47803
47804 2006-03-07  Simon Josefsson  <jas@extundo.com>
47805
47806         * modules/gc-random: New file.
47807
47808 2006-03-07  Simon Josefsson  <jas@extundo.com>
47809
47810         * m4/unistd_h.m4: New file.
47811
47812 2006-03-07  Simon Josefsson  <jas@extundo.com>
47813
47814         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47815         test to be side-effect free by storing the result in the cache
47816         variable gl_cv_lib_readline, and moving the assignment of
47817         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47818         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47819
47820 2006-03-07  Simon Josefsson  <jas@extundo.com>
47821
47822         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47823         error on missing devices (the functions will return an error).
47824
47825         * m4/gc.m4: Move random stuff to gc-random.m4
47826
47827 2006-03-07  Simon Josefsson  <jas@extundo.com>
47828
47829         * lib/unistd_.h: New file.
47830
47831 2006-03-07  Simon Josefsson  <jas@extundo.com>
47832
47833         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47834
47835 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47836
47837         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47838         Problem reported by Juan Manuel Guerrero.
47839
47840 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47841
47842         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47843         the unistd module.
47844         * lib/getlogin_r.c: Likewise.
47845         * lib/getlogin_r.h: Likewise.
47846         * lib/glob.c: Likewise.
47847         * lib/pagealign_alloc.c: Likewise.
47848         * lib/unistd_.h: Remove; no longer needed.
47849
47850 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47851
47852         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47853         Add unistd.
47854         * modules/c-stack (Depends-on): Add unistd.
47855         * modules/getlogin_r: Likewise.
47856         * modules/glob: Likewise.
47857         * modules/pagealign_alloc: Likewise.
47858         * modules/unistd (Files): Remove lib/unistd_.h.
47859         (EXTRA_DIST): Remove.
47860         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47861         need unistd_.h.
47862         (MOSTLYCLEANFILES): Remove unistd.h-t.
47863
47864 2006-03-03  Simon Josefsson  <jas@extundo.com>
47865
47866         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47867
47868 2006-03-03  Simon Josefsson  <jas@extundo.com>
47869
47870         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47871         libidn and bison.
47872
47873 2006-03-03  Simon Josefsson  <jas@extundo.com>
47874
47875         * build-aux/maint.mk: Add indent target.
47876
47877 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47878
47879         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47880         our replacement poll.h in any case, to avoid a differing
47881         declaration from a system header.  Seen on AIX.
47882
47883 2006-03-01  Simon Josefsson  <jas@extundo.com>
47884
47885         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47886         <kasal@ucw.cz>.
47887
47888 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47889
47890         * modules/gettime (Depends-on): Add extensions module.
47891         * modules/nanosleep (Depends-on): Likewise.
47892         * modules/settime (Depends-on): Likewise.
47893
47894 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47895
47896         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47897         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47898         pedantically.
47899         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47900         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47901
47902         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47903         not "==".  Reported by Ralf Wildenhues.
47904
47905 2006-03-01  Karl Berry  <karl@gnu.org>
47906
47907         * doc/Copyright/request-*: new files, synced from gnuorg.
47908
47909 2006-03-01  Karl Berry  <karl@gnu.org>
47910
47911         * config/srclist.txt (Copyright/*): new entries.
47912
47913 2006-02-28  Simon Josefsson  <jas@extundo.com>
47914
47915         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47916
47917 2006-02-27  Simon Josefsson  <jas@extundo.com>
47918
47919         * lib/base64.h: Indent #define's.  From Jim Meyering
47920         <jim@meyering.net>.
47921
47922 2006-02-27  Jim Meyering  <jim@meyering.net>
47923
47924         Revert the change of 2006-02-24, so these files can continue
47925         to be sync'd from gettext.
47926         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47927         of `config.h'.
47928
47929 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47930
47931         * modules/intprops: New file.
47932         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47933         Add intprops.
47934         * modules/getloadavg (Files): Remove lib/intprops.h.
47935         (Depends-on): Add intprops.
47936         * modules/human: Likewise.
47937         * modules/inttostr: Likewise.
47938         * modules/openat: Likewise.
47939         * modules/sig2str: Likewise.
47940         * modules/userspec: Likewise.
47941         * modules/utimecmp: Likewise.
47942         * modules/xnanosleep: Likewise.
47943         * modules/xstrtol: Likewise.
47944
47945 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47946
47947         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47948         * modules/lock-tests (TESTS): Use $(EXEEXT).
47949         * modules/tls-tests: Likewise.
47950         * modules/argp-tests: Likewise.
47951         (check_PROGRAMS): New var, replacing...
47952         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47953
47954 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47955
47956         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47957         `config.h'.
47958
47959 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47960
47961         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47962
47963 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47964
47965         Sync from coreutils.
47966         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47967         gl_CHDIR_SAFER.
47968
47969 2006-02-22  Jim Meyering  <jim@meyering.net>
47970
47971         Sync from coreutils.
47972         * m4/chdir-safer.m4: New file.
47973
47974 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47975
47976         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47977         AT_FDCWD exceeds INT_MAX.
47978         * lib/openat.h (AT_FDCWD): Likewise.
47979
47980 2006-02-17  Eric Blake  <address@hidden>
47981
47982         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47983
47984 2006-02-16  Simon Josefsson  <jas@extundo.com>
47985
47986         * modules/getaddrinfo (Depends-on): Add sys_socket.
47987
47988 2006-02-15  Simon Josefsson  <jas@extundo.com>
47989
47990         * build-aux/maint.mk: Add dsyntax-check rule.
47991
47992 2006-02-15  Eric Blake  <ebb9@byu.net>
47993
47994         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47995         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47996         'present but cannot compile' warnings on cygwin.
47997         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
47998         use ws2tcpip.h if sys/socket.h works.
47999         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
48000         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
48001
48002 2006-02-14  Simon Josefsson  <jas@extundo.com>
48003
48004         * modules/maintainer-makefile (Files): Rename.
48005
48006         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
48007         and (the local) Makefile.cfg to maint-cfg.mk.
48008
48009         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
48010         to the latter.
48011
48012         * modules/maintainer-makefile: New module.
48013
48014         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48015         severaly stripped to make it possible to build it up from scratch
48016         with reliable tests.
48017
48018         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48019         fixes to permit overriding the default actions when configure and
48020         makefile are not available.
48021
48022 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48023
48024         Sync from coreutils.
48025         * modules/lstat (Depends-on): Don't depend on xalloc.
48026         (License): Change from GPL to LGPL, since this is now simply a
48027         replacement for a libc function.
48028
48029 2006-02-14  Jim Meyering  <jim@meyering.net>
48030
48031         Sync from coreutils.
48032
48033         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48034         failure on deficient systems, and simplify gnulib lgpl dependencies.
48035         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48036         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48037
48038         * lib/xalloc-die.c: Remove unused definition of N_.
48039
48040 2006-02-14  Jim Meyering  <jim@meyering.net>
48041
48042         Sync from coreutils.
48043         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48044         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48045         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48046         double-quote uses of that variable, to accommodate the rare case in
48047         which getmntent is available in none of the libraries checked.  This
48048         happens at least on FreeBSD 5.0.
48049
48050 2006-02-13  Simon Josefsson  <jas@extundo.com>
48051
48052         * gnulib-tool (Usage): Fix --import, from
48053         karl@freefriends.org (Karl Berry).
48054
48055 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48056
48057         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48058
48059 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48060
48061         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48062         "autoupdate" on 2005-12-12.
48063
48064 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48065
48066         * modules/closeout (Depends-on): Remove atexit.
48067
48068 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48069
48070         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48071         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48072
48073 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48074
48075         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48076         __EXTENSIONS__ if this causes compilation to fail.  Problem
48077         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48078         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48079
48080 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48081
48082         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48083         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48084         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48085         All uses changed.
48086
48087 2006-01-26  Simon Josefsson  <jas@extundo.com>
48088
48089         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48090         prototype is visible on mingw32.
48091
48092         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48093         for mingw32.
48094
48095         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48096         mingw32).
48097
48098 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48099
48100         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48101         attempt to open for write; this always fails, at least on POSIX
48102         hosts.  This reinstates the 2006-01-09 change, which was
48103         inadvertently removed.
48104
48105 2006-01-26  Bruno Haible  <bruno@clisp.org>
48106
48107         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48108         Reported by Paul Eggert.
48109
48110 2006-01-26  Bruno Haible  <bruno@clisp.org>
48111             Paul Eggert  <eggert@cs.ucla.edu>
48112
48113         * lib/stdbool_.h (_Bool)
48114         [(! (defined __cplusplus || defined __BEOS__)
48115           && !defined __GNUC__
48116           && !(defined __HP_cc || defined __xlc__
48117                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48118                || defined __sgi))]:
48119         #define to signed char in these cases too; this simplifies
48120         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48121         etc., separately) and makes it more conservative.
48122
48123 2006-01-25  Simon Josefsson  <jas@extundo.com>
48124
48125         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48126         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48127         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48128
48129 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48130
48131         * lib/argp-namefrob.h: Bugfix. Remove stray #
48132
48133 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48134
48135         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48136         so that we test the test.
48137         Check for yet another HP-UX cc bug involving *bool |= bool.
48138
48139 2006-01-25  Karl Berry  <karl@gnu.org>
48140
48141         * config/srclist.txt (vasnprintf.c): sync lost.
48142
48143 2006-01-25  Jim Meyering  <jim@meyering.net>
48144
48145         Sync from the stable (b5) branch of coreutils:
48146
48147         * lib/fts.c (fts_children): Don't let close() clobber errno from
48148         failed fchdir().
48149
48150         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48151         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48152         a dangling symlink.  That can also happen at least for ELOOP.
48153         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48154         FYI, this bug predates the inclusion of fts.c in coreutils.
48155
48156         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48157         in their own block, so pre-c99 compilers don't object.
48158
48159         Avoid the double-free (first in fts_read, second in fts_close) that
48160         would occur when an `active' directory is made inaccessible (e.g.,
48161         via chmod a-x) during a traversal.
48162         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48163         before returning.  Reproduce this failure by
48164         mkdir -p a/b; cd a; chmod a-x . b
48165         Reported by Stavros Passas.
48166
48167 2006-01-25  Jim Meyering  <jim@meyering.net>
48168
48169         * lib/fileblocks.c: Remove more useless parentheses.
48170         * lib/readutmp.h: Likewise.
48171
48172 2006-01-25  Bruno Haible  <bruno@clisp.org>
48173
48174         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48175         warnings.
48176         Reported by Paul Eggert.
48177
48178 2006-01-25  Bruno Haible  <bruno@clisp.org>
48179
48180         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48181         rid of a trap command. For Solaris sh.
48182         Reported by Mark D. Baushke <mdb@gnu.org>.
48183
48184 2006-01-24  Simon Josefsson  <jas@extundo.com>
48185
48186         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48187         Bruno.
48188
48189 2006-01-24  Karl Berry  <karl@gnu.org>
48190
48191         * config/srclist.txt (argp-namefrob.h): sync lost.
48192
48193 2006-01-24  Jim Meyering  <jim@meyering.net>
48194
48195         * modules/openat (Files): Add lib/intprops.h.
48196         From Mark D. Baushke.
48197
48198 2006-01-24  Jim Meyering  <jim@meyering.net>
48199
48200         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48201         Reported by Mark D. Baushke.
48202
48203 2006-01-24  Jim Meyering  <jim@meyering.net>
48204
48205         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48206
48207 2006-01-24  Bruno Haible  <bruno@clisp.org>
48208
48209         * modules/strnlen (Maintainer): Change from glibc to all.
48210
48211 2006-01-24  Bruno Haible  <bruno@clisp.org>
48212
48213         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48214         Patch by Paul Eggert.
48215
48216 2006-01-24  Bruno Haible  <bruno@clisp.org>
48217
48218         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48219         already has it.
48220         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48221         2005-11-26.
48222
48223         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48224         'signed char' to avoid problems with the built-in _Bool type.
48225         Reported by Paul Eggert on 2005-11-26.
48226
48227 2006-01-24  Bruno Haible  <bruno@clisp.org>
48228
48229         * gnulib-tool (func_import): Avoid constructing complicated sed
48230         expressions inside backquote.
48231         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48232
48233 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48234
48235         These changes imported from libc.
48236         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48237         test and two separate function calls.
48238         * lib/strndup.c (__strndup): Add libc_hidden_def.
48239
48240 2006-01-23  Simon Josefsson  <jas@extundo.com>
48241
48242         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48243         Remove the test_*_SOURCES variable: automake infers it by default.
48244         * modules/tls-tests: Likewise.
48245
48246 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48247
48248         Work around porting bugs reported by Dieter in
48249         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48250         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48251         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48252         Include "getopt.h" first, to check interface.
48253         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48254         !HAVE_DECL_GETENV.
48255         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48256         (__strndup): Revert to K&R-style function dfns, the glibc style.
48257         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48258         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48259         Include strnlen.h first, to get prototype properly.
48260         (strnlen): Renamed from __strnlen.
48261         Remove weak alias.
48262
48263 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48264
48265         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48266
48267 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48268
48269         * config/srclist.txt: Adjust to reflect glibc reorganization.
48270         This affects only comments.
48271
48272 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48273
48274          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48275          Reported by Bruce Korb <bkorb@gnu.org>.
48276
48277 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48278
48279         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48280         to pacify gcc -Wswitch-default.
48281
48282 2006-01-22  Bruno Haible  <bruno@clisp.org>
48283
48284         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48285         temporary buffer for sprintf, take into account the precision also
48286         for 'd', 'i', 'u', 'o', 'x', 'X'.
48287
48288 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48289
48290         * modules/argp-tests: New module
48291         * tests/test-argp.c: New file
48292         * tests/test-argp-2.sh: New file
48293
48294 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48295
48296         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48297         (__argp_base_name): Removed
48298         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48299         typo.
48300         (__argp_base_name): Provide macro definition or extern declaration
48301         depending on the configuration
48302
48303 2006-01-20  Simon Josefsson  <jas@extundo.com>
48304
48305         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48306
48307 2006-01-20  Simon Josefsson  <jas@extundo.com>
48308
48309         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48310
48311 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48312
48313         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48314         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48315         Suggested by Bruno Haible.
48316
48317 2006-01-20  Karl Berry  <karl@gnu.org>
48318
48319         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48320         until changes propagate, I guess.
48321
48322 2006-01-19  Simon Josefsson  <jas@extundo.com>
48323
48324         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48325
48326 2006-01-19  Simon Josefsson  <jas@extundo.com>
48327
48328         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48329
48330 2006-01-19  Simon Josefsson  <jas@extundo.com>
48331
48332         * gnulib-tool: Set check_PROGRAMS.
48333
48334         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48335         modules/des-tests, modules/gc-arcfour-tests,
48336         modules/gc-arctwo-tests, modules/gc-des-tests,
48337         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48338         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48339         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48340         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48341         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48342         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48343         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48344         test_*_SOURCES.
48345
48346 2006-01-18  Simon Josefsson  <jas@extundo.com>
48347
48348         * modules/socklen (Depends-on): Depend on sys_socket.
48349
48350 2006-01-18  Simon Josefsson  <jas@extundo.com>
48351
48352         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48353         modules/des-tests, modules/gc-arcfour-tests,
48354         modules/gc-arctwo-tests, modules/gc-des-tests,
48355         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48356         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48357         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48358         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48359         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48360         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48361         $(EXEEXT) to automake TESTS variable, for mingw32.
48362
48363 2006-01-17  Simon Josefsson  <jas@extundo.com>
48364
48365         * modules/socklen (Include): Need sys/socket.h.
48366
48367 2006-01-17  Bruno Haible  <bruno@clisp.org>
48368
48369         * modules/ssize_t (Include): Add <sys/types.h>.
48370
48371 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48372
48373         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48374         it's not portable and it doesn't work with cross-compiles.
48375         Problem reported by Bruno Haible.  Fix missing-$ typo in
48376         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48377         -zignore from being used with Sun's C compiler.
48378
48379 2006-01-12  Simon Josefsson  <jas@extundo.com>
48380
48381         * lib/base64.c: Fix warning, reported by Bruno Haible
48382         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48383
48384 2006-01-12  Bruno Haible  <bruno@clisp.org>
48385
48386         * modules/ldd: New file.
48387         * build-aux/ldd.sh.in: New file.
48388         * MODULES.html.sh (Support for building libraries and executables): Add
48389         ldd.
48390
48391 2006-01-12  Bruno Haible  <bruno@clisp.org>
48392
48393         * m4/ldd.m4: New file.
48394
48395 2006-01-12  Bruno Haible  <bruno@clisp.org>
48396
48397         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48398         endless loop while replacing $auxdir with build-aux.
48399
48400 2006-01-11  Simon Josefsson  <jas@extundo.com>
48401
48402         * lib/stdint_.h (SIZE_MAX): Add missing (.
48403
48404 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48405
48406         Sync from coreutils.
48407         * lib/md5.c: Fix commentary typos.
48408         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48409         * lib/md5.h (__attribute__): Remove; unused.
48410         * lib/sha1.c: Fix commentary to match md5 better.
48411         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48412         so that we don't need to worry about alignment.  All uses changed.
48413         This merges the 2005-10-28 md5 change into sha1.
48414
48415 2006-01-11  Jim Meyering  <jim@meyering.net>
48416
48417         Sync from coreutils.
48418         * lib/md5.c (OP): Fix spacing.
48419
48420 2006-01-11  Bruno Haible  <bruno@clisp.org>
48421
48422         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48423         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48424         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48425
48426 2006-01-11  Bruno Haible  <bruno@clisp.org>
48427
48428         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48429         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48430         the "early" section as well.
48431
48432 2006-01-11  Bruno Haible  <bruno@clisp.org>
48433
48434         Avoid "ar: no archive members specified" error on MacOS X.
48435         * gnulib-tool (func_modules_add_dummy): New function.
48436         (func_import, func_create_testdir): Invoke it.
48437
48438 2006-01-11  Bruno Haible  <bruno@clisp.org>
48439
48440         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48441         with $auxdir in AC_CONFIG_FILES statements.
48442
48443 2006-01-11  Bruno Haible  <bruno@clisp.org>
48444
48445         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48446         Initialize also noinst_HEADERS to empty.
48447
48448 2006-01-11  Bruno Haible  <bruno@clisp.org>
48449
48450         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48451         variables.
48452         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48453         autoreconf.
48454
48455 2006-01-11  Bruno Haible  <bruno@clisp.org>
48456
48457         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48458         overridable by the user.
48459         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48460
48461 2006-01-10  Simon Josefsson  <jas@extundo.com>
48462
48463         * modules/sys_socket: New file.
48464
48465 2006-01-10  Simon Josefsson  <jas@extundo.com>
48466
48467         * m4/sys_socket_h.m4: New file.
48468
48469 2006-01-10  Simon Josefsson  <jas@extundo.com>
48470
48471         * lib/socket_.h: New file.
48472
48473 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48474
48475         * modules/readutmp (Maintainer): Add myself.
48476
48477 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48478
48479         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48480         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48481         People who are still concerned with buggy memcmp implementations
48482         can invoke gl_FUNC_MEMCMP themselves.
48483
48484 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48485
48486         * lib/regex_internal.h (BITSET_WORD_BITS):
48487         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48488         preprocessor mishandles large unsigned values as if they were signed.
48489         Problem reported by Claudio Fontana in
48490         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48491
48492 2006-01-10  Jim Meyering  <jim@meyering.net>
48493
48494         Avoid the double-free (first in fts_read, second in fts_close) that
48495         would occur when an `active' directory is made inaccessible (e.g.,
48496         via chmod a-x) during a traversal.
48497         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48498         before returning.  Reproduce this failure by
48499         mkdir -p a/b; cd a; chmod a-x . b
48500         Reported by Stavros Passas.
48501
48502         Sync from coreutils.
48503         * lib/sha1.c: Tweak grammar in a comment.
48504
48505 2006-01-10  Jim Meyering  <jim@meyering.net>
48506
48507         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48508         Patch by Joerg Sonnenberger.
48509
48510 2006-01-10  Bruno Haible  <bruno@clisp.org>
48511
48512         * modules/readutmp: Depend on module free.
48513         * modules/strtok_r: Depend on module restrict.
48514
48515 2006-01-10  Bruno Haible  <bruno@clisp.org>
48516
48517         * modules/gettext (configure.ac): Add an invocation of
48518         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48519
48520 2006-01-10  Bruno Haible  <bruno@clisp.org>
48521
48522         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48523         Reported by Werner Lemberg <wl@gnu.org>.
48524
48525 2006-01-10  Bruno Haible  <bruno@clisp.org>
48526
48527         * lib/localcharset.c: Update from GNU gettext.
48528
48529 2006-01-10  Bruno Haible  <bruno@clisp.org>
48530
48531         * lib/argp.h (__const): Remove macro. Use const instead.
48532         * lib/argp-fmtstream.h (__const): Likewise.
48533         * lib/glob_.h (__const): Remove macro.
48534         * lib/glob-libc.h: Use const instead of __const.
48535
48536 2006-01-10  Bruno Haible  <bruno@clisp.org>
48537
48538         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48539         variable.
48540         Needed to avoid an automake error regarding the 'gettext' module.
48541
48542 2006-01-09  Simon Josefsson  <jas@extundo.com>
48543
48544         * modules/inet_ntop (Depends-on): Add restrict.
48545
48546 2006-01-09  Simon Josefsson  <jas@extundo.com>
48547
48548         * modules/gc-rijndael-tests (License): Put under LGPL.
48549
48550         * modules/gc-des-tests (License): Likewise.
48551
48552         * modules/gc-arcfour-tests (License): Likewise.
48553
48554         * modules/gc-arctwo-tests (License): Likewise.
48555
48556         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48557
48558         * modules/gc-hmac-sha1-tests (Files): Likewise.
48559
48560         * modules/gc-hmac-md5-tests (License): Likewise.
48561
48562         * modules/gc-sha1-tests (License): Likewise.
48563
48564         * modules/gc-md5-tests (License): Likewise.
48565
48566         * modules/gc-md4-tests (License): Likewise.
48567
48568         * modules/gc-md2-tests (License): Likewise.
48569
48570         * modules/gc-tests (License): Likewise.
48571
48572         * modules/des-tests (License): Likewise.
48573
48574         * modules/md4-tests (License): Likewise.
48575
48576         * modules/md2-tests (License): Likewise.
48577
48578 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48579
48580         Sync from coreutils:
48581
48582         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48583         * modules/lib-ignore: New file.
48584         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48585         chdir-safer.m4, lchmod.m4.
48586         * modules/openat: Add mkdirat.c, openat-priv.h.
48587
48588 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48589
48590         Sync from coreutils.
48591         * m4/lib-ignore.m4: New file.
48592         * m4/lchmod.m4: New file.
48593
48594 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48595
48596         Sync from coreutils.
48597         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48598         for write access: POSIX says that must fail.
48599         * lib/fts.c (diropen): Likewise.
48600         * lib/save-cwd.c (save_cwd): Likewise.
48601         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48602         well, for minor improvements on hosts that lack O_DIRECTORY.
48603         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48604         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48605         Fall back on chown if open failed with EACCES.
48606
48607         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48608         Report an error at compile-time if only a 1-second nominal clock
48609         resolution is found.
48610
48611         * lib/lchmod.h: New file.
48612         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48613         (make_dir_parents): Use lchown rather than chown, and
48614         lchmod rather than chmod.
48615
48616         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48617         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48618         "proc" reported by n0dalus.
48619
48620         * lib/mountlist.c: Include <limits.h>.
48621         (dev_from_mount_options)
48622         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48623         New function.  It no longer assumes "dev=" has the System V meaning
48624         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48625         (read_file_system_list)
48626         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48627         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48628         dev= in that case.
48629
48630         * lib/posixtm.h (PDS_PRE_2000): New macro.
48631         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48632         allow_century.  All usages changed.  Reject dates outside the range
48633         1969-1999 if PDS_PRE_2000 is used.
48634
48635 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48636
48637         Sync from coreutils.
48638         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48639         (Time of day items): Mention the possibility of leap seconds.
48640         Problem reported by Dr. David Alan Gilbert.
48641
48642 2006-01-09  Jim Meyering  <jim@meyering.net>
48643
48644         Sync from coreutils.
48645
48646         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48647
48648         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48649
48650         * lib/modechange.c (mode_compile): Reject an invalid mode string
48651         that starts with an octal digit.  From Andreas Gruenbacher.
48652
48653         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48654         and dup to open_safer and dup_safer, respectively.
48655         (openat_permissive): Fix typo in comment.
48656
48657         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48658         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48659         (_): Remove; no longer needed.
48660         (openat): Renamed from rpl_openat; no need for rpl_openat
48661         since openat.h renames openat for us.
48662         Replace most of the body with a call to openat_permissive,
48663         to avoid duplicate code.
48664         Port to (probably hypothetical) environments were mode_t is
48665         wider than int.
48666         (openat_permissive): Require mode arg, so that we can check
48667         types better.  Put it just after flags.  Change cwd failure
48668         indicator from pointer-to-bool to pointer-to-errno-value.
48669         All callers changed.
48670         Invoke openat_save_fail and/or openat_restore_fail if
48671         cwd_errno is null, so that openat can call us.
48672         (openat_permissive, fdopendir, fstatat, unlinkat):
48673         Simplify errno handling to avoid some duplicate code,
48674         as it's OK to set errno on success.
48675         * lib/openat.h: Revamp code so that function macros depend on
48676         __OPENAT_PREFIX only, not also on AT_FDCWD.
48677         (openat_ro): Remove.  Caller changed to use openat_permissive.
48678         (openat_permissive): Now a macro, if not a function.
48679         (openat_restore_fail, openat_save_fail): Now always functions,
48680         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48681
48682         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48683         and openat.c.
48684         * lib/mkdirat.c: Include openat-priv.h.
48685         Remove definitions of macros defined therein.
48686         * lib/openat.c: Likewise.
48687
48688         * lib/mkdirat.c (mkdirat): New file and function.
48689         * lib/openat.h (mkdirat): Declare.
48690
48691         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48692
48693         * lib/openat.h (openat_permissive): Declare.
48694         (openat_ro): Define.
48695
48696         * lib/openat.c (EXPECTED_ERRNO): New macro.
48697         (openat_permissive): New function -- used in remove.c rewrite.
48698         (all functions): Set errno just before returning, only if there
48699         was an actual failure.
48700         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48701
48702         Emulate openat-family functions using Linux's procfs, if possible.
48703         Idea and some code based on Ulrich Drepper's glibc changes.
48704
48705         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48706         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48707         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48708         before falling back on save_cwd and restore_cwd.
48709         (fdopendir, fstatat, unlinkat): Likewise.
48710
48711         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48712         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48713
48714         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48715         as second argument to va_arg.  Otherwise, some versions of gcc
48716         warn that `if this code is reached, the program will abort'.
48717
48718 2006-01-09  Jim Meyering  <jim@meyering.net>
48719
48720         Sync from coreutils.
48721         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48722         Require openat-priv.h.
48723
48724 2006-01-09  Bruno Haible  <bruno@clisp.org>
48725
48726         * modules/strnlen (Include): Use strnlen.h.
48727
48728 2006-01-09  Bruno Haible  <bruno@clisp.org>
48729
48730         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48731
48732 2006-01-09  Bruno Haible  <bruno@clisp.org>
48733
48734         * lib/sysexit_.h (EX_OK): New macro.
48735         Suggested by Martin Lambers <marlam@marlam.de>.
48736
48737 2006-01-09  Bruno Haible  <bruno@clisp.org>
48738
48739         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48740         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48741
48742 2006-01-09  Bruno Haible  <bruno@clisp.org>
48743
48744         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48745         numbers.
48746
48747 2006-01-09  Bruno Haible  <bruno@clisp.org>
48748
48749         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48750         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48751         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48752         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48753
48754 2006-01-09  Bruno Haible  <bruno@clisp.org>
48755
48756         * build-aux/javacomp.sh.in: New file, moved from lib/.
48757         * modules/javacomp-script (Files): Update.
48758         (configure.ac): Add AC_CONFIG_FILES invocation.
48759         (EXTRA_DIST): Remove variable.
48760
48761         * build-aux/javaexec.sh.in: New file, moved from lib/.
48762         * modules/javaexec (Files): Update.
48763         (configure.ac): Add AC_CONFIG_FILES invocation.
48764         (EXTRA_DIST): Remove javaexec.sh.in.
48765
48766         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48767         * modules/csharpcomp-script (Files): Update.
48768         (configure.ac): Add AC_CONFIG_FILES invocation.
48769         (EXTRA_DIST): Remove variable.
48770
48771         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48772         * modules/csharpexec (Files): Update.
48773         (configure.ac): Add AC_CONFIG_FILES invocation.
48774         (EXTRA_DIST): Remove csharpexec.sh.in.
48775
48776 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48777
48778         Sync from coreutils.
48779
48780         Add POSIX ACL support
48781         * lib/acl.h (copy_acl, set_acl): Add declarations.
48782         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48783         systems other than Linux.
48784         (chmod_or_fchmod): New function: use fchmod when possible,
48785         and chmod otherwise.
48786         (file_has_acl): Add a POSIX ACL implementation, with a
48787         Linux-specific subcase.
48788         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48789         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48790         acls are unsupported.
48791         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48792         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48793         are unsupported.
48794
48795 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48796
48797         Sync from coreutils.
48798         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48799
48800 2006-01-07  Bruno Haible  <bruno@clisp.org>
48801
48802         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48803         gl_EARLY.
48804
48805 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48806
48807         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48808         Problem reported for Mingw by Mark Junker.
48809
48810 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48811
48812         * README: Gnulib normally doesn't generate a tarball.
48813
48814 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48815
48816         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48817         long int, not int, for nanosecond counts, so that people who are
48818         used to POSIX struct timespec won't be surprised.  Reported by Jim
48819         Meyering.
48820
48821 2005-12-28  Bruno Haible  <bruno@clisp.org>
48822
48823         * build-aux/config.rpath: Update from GNU gettext.
48824
48825 2005-12-16  Jim Meyering  <jim@meyering.net>
48826
48827         * modules/fprintftime: New module.
48828         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48829
48830 2005-12-16  Jim Meyering  <jim@meyering.net>
48831
48832         * m4/fprintftime.m4: New file.
48833
48834 2005-12-16  Jim Meyering  <jim@meyering.net>
48835
48836         * lib/fprintftime.c, lib/fprintftime.h: New files.
48837
48838 2005-12-15  Simon Josefsson  <jas@extundo.com>
48839
48840         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48841         new m4/socklen.m4.
48842
48843 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48844
48845         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48846         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48847
48848 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48849
48850         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48851         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48852         struct uparams is valid. Fall back to the default values if it is
48853         not.
48854
48855 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48856
48857         * modules/argp (Files): Add argp-pin.c
48858         (Depends-on): dirname
48859         (lib_SOURCES): Add argp-pin.c
48860
48861 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48862
48863         * m4/argp.m4:  Check if program_invocation_name and
48864         program_invocation_short_name are declared and define appropriate
48865         macros if they are not.
48866
48867 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48868
48869         * lib/argp-help.c (__argp_base_name): New function
48870         (__argp_short_program_name): Rewrite using __argp_base_name
48871         * lib/argp-namefrob.h: Define program_invocation_name and
48872         program_invocation_short_name if requested
48873         (__argp_base_name): Add prototype
48874         * lib/argp-parse.c (argp_def): Use gettext wrappers
48875         (argp_default_parser): Use __argp_base_name
48876         * lib/argp-pin.c: New file. Defines program_invocation_name and
48877         program_invocation_short_name on systems that lack them.
48878
48879 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48880
48881         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48882         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48883         porting problem reported by Georg Schwarz in
48884         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48885
48886 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48887
48888         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48889         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48890         porting problem reported by Georg Schwarz in
48891         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48892
48893 2005-12-05  Bruno Haible  <bruno@clisp.org>
48894
48895         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48896         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48897         Reported by Mark Junker <mjscod@gmx.de>.
48898
48899 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48900
48901         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48902         Use implementation from Albert Chin, with some
48903         comments/corrections by Stepan Kasal and myself.
48904
48905 2005-12-02  Bruno Haible  <bruno@clisp.org>
48906
48907         * gnulib-tool (func_import): Accept GPLed build tool modules when
48908         --lgpl is given.
48909         * modules/csharpcomp-script: New file.
48910         * modules/csharpcomp: Depend on it.
48911         * modules/javacomp-script: New file.
48912         * modules/javacomp: Depend on it.
48913         Suggested by Simon Josefsson.
48914
48915 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48916
48917         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48918         statement, to work around an HP-UX 10.20 compiler bug reported by
48919         Peter O'Gorman.
48920
48921 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48922
48923         * modules/savedir (Depends-on): Add openat.
48924
48925 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48926
48927         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48928         (uintmax_t) [defined uintmax_t]: Do not declare.
48929         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48930         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48931         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
48932         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48933         sake of portability to weird hosts that C allows (though we don't
48934         know of any practical examples).
48935
48936         * lib/savedir.h (fdsavedir): New decl.
48937         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48938         contains most of the former guts of savedir.
48939         (savedir): Use savedirstream.
48940         Include "openat.h".
48941
48942 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48943
48944         * modules/obstack (Files): Add m4/ulonglong.m4.
48945         Problem reported by Davide Angelocola.
48946
48947 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48948
48949         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48950         coreutils no longer futzes with rounding modes.
48951
48952 2005-11-14  Jim Meyering  <jim@meyering.net>
48953
48954         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48955         replacement of mkstemp.
48956
48957 2005-11-10  Simon Josefsson  <jas@extundo.com>
48958
48959         * lib/readline.c: Remove EOL.
48960
48961 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48962
48963         * modules/gethrxtime (Depends-on): Add gettime.
48964
48965 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48966
48967         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48968         or gettimeofday; no longer needed.
48969
48970 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48971
48972         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48973         time business.
48974         (gethrxtime) [! (HAVE_NANOUPTIME
48975         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48976         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48977         our own approximation.
48978
48979 2005-11-08  Eric Blake  <ebb9@byu.net>
48980
48981         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48982
48983 2005-11-08  Eric Blake  <ebb9@byu.net>
48984
48985         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48986
48987 2005-11-04  Bruno Haible  <bruno@clisp.org>
48988
48989         * gnulib-tool: Implement --update mode.
48990
48991 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48992
48993         Fix porting problem reported by Theodoros V. Kalamatianos.
48994         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48995         Don't assume that futimes failing means we must fail.
48996
48997 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48998
48999         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
49000         variables to suggest the intended function of the PATH_MAX check.
49001
49002 2005-10-30  Kean Johnston  <jkj@sco.com>
49003
49004         Trivial changes to support SCO systems.
49005         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
49006         as PATH_MAX.
49007         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
49008         where __ptr is null when no I/O is pending.
49009
49010 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49011
49012         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49013         leave errno alone.  Problem reported by Dmitry V. Levin.
49014
49015 2005-10-28  Simon Josefsson  <jas@extundo.com>
49016
49017         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49018         Test more.
49019
49020         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49021
49022         * modules/md2, modules/md2-tests: New files.
49023
49024 2005-10-28  Simon Josefsson  <jas@extundo.com>
49025
49026         * m4/inet_ntop.m4: More tests.
49027
49028         * m4/gc-md2.m4, md2.m4: New file.
49029
49030 2005-10-28  Simon Josefsson  <jas@extundo.com>
49031
49032         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49033         "restrict" keywords, as per POSIX.  Protect the function
49034         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49035         Don't use K&R prototypes.  Check the sprintf return values.
49036         Re-define EAFNOSUPPORT if not present.  Indent.
49037
49038         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49039         suggested by Bruno Haible <bruno@clisp.org>.
49040
49041         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49042
49043         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49044
49045         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49046         libgcrypt).
49047
49048         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49049
49050         * lib/md2.h, lib/md2.c: New files.
49051
49052 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49053
49054         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49055         errno alone.  Problem reported by Frederic Jolliton.
49056
49057 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49058
49059         * modules/verify (License): Change from GPL to LGPL.  This is a
49060         tiny module and there are apparently near-equivalents that are
49061         under the BSD license.
49062
49063 2005-10-24  Simon Josefsson  <jas@extundo.com>
49064
49065         * modules/sha1: Relicense to LGPL.
49066
49067 2005-10-24  Simon Josefsson  <jas@extundo.com>
49068
49069         * lib/md4.h: Shrink buffer size, now that we changed the type.
49070
49071 2005-10-23  Simon Josefsson  <jas@extundo.com>
49072
49073         * gnulib-tool (func_import): Fix --tests-base.
49074
49075 2005-10-22  Simon Josefsson  <jas@extundo.com>
49076
49077         * modules/arcfour (Depends-on): Need stdint.
49078
49079 2005-10-22  Simon Josefsson  <jas@extundo.com>
49080
49081         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49082         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49083
49084 2005-10-22  Simon Josefsson  <jas@extundo.com>
49085
49086         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49087         suggested by Bruno Haible <bruno@clisp.org>.
49088
49089 2005-10-22  Simon Josefsson  <jas@extundo.com>
49090
49091         * lib/crc.h: Include stddef.h, for size_t.
49092
49093 2005-10-22  Simon Josefsson  <jas@extundo.com>
49094
49095         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49096         arcfour_context struct (simplify test vector testing in GNU
49097         Shishi).
49098
49099 2005-10-21  Simon Josefsson  <jas@extundo.com>
49100
49101         * modules/des, modules/des-tests: New files.
49102
49103         * modules/gc-des, modules/gc-des-tests: New files.
49104
49105         * tests/test-des.c, tests/test-gc-des.c: New file.
49106
49107 2005-10-21  Simon Josefsson  <jas@extundo.com>
49108
49109         * modules/arctwo, modules/arctwo-tests: New files.
49110
49111         * tests/test-arctwo.c: New file.
49112
49113         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49114
49115         * tests/test-gc-arctwo.c: New file.
49116
49117 2005-10-21  Simon Josefsson  <jas@extundo.com>
49118
49119         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49120         Bruno Haible <bruno@clisp.org>.
49121
49122         * m4/gc-des.m4: New file.
49123
49124 2005-10-21  Simon Josefsson  <jas@extundo.com>
49125
49126         * m4/arctwo.m4: New file.
49127
49128         * m4/gc-arctwo.m4: New file.
49129
49130 2005-10-21  Simon Josefsson  <jas@extundo.com>
49131
49132         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49133         block.
49134
49135 2005-10-21  Simon Josefsson  <jas@extundo.com>
49136
49137         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49138         <bruno@clisp.org>.
49139
49140         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49141
49142         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49143         Bruno Haible <bruno@clisp.org>.
49144
49145         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49146         <bruno@clisp.org>.
49147
49148 2005-10-21  Simon Josefsson  <jas@extundo.com>
49149
49150         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49151
49152 2005-10-21  Simon Josefsson  <jas@extundo.com>
49153
49154         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49155
49156 2005-10-21  Simon Josefsson  <jas@extundo.com>
49157
49158         * lib/des.h, lib/des.c: New files.
49159
49160         * lib/gc-gnulib.c: Support DES.c
49161
49162 2005-10-21  Simon Josefsson  <jas@extundo.com>
49163
49164         * lib/arctwo.h, lib/arctwo.c: New files.
49165
49166         * lib/gc-gnulib.c: Support ARCTWO.
49167
49168 2005-10-21  Simon Josefsson  <jas@extundo.com>
49169
49170         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49171         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49172
49173 2005-10-21  Simon Josefsson  <jas@extundo.com>
49174
49175         * gnulib-tool (func_import, func_create_testdir): Define automake
49176         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49177         Makefile.am snippet),
49178         suggested by Bruno Haible <bruno@clisp.org>.
49179
49180         * modules/gc (Makefile.am): Use it.
49181
49182 2005-10-21  Bruno Haible  <bruno@clisp.org>
49183
49184         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49185         patch.
49186
49187 2005-10-19  Simon Josefsson  <jas@extundo.com>
49188
49189         * tests/test-gc-rijndael.c: New file.
49190
49191         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49192
49193 2005-10-19  Simon Josefsson  <jas@extundo.com>
49194
49195         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49196         interface too.
49197
49198 2005-10-19  Simon Josefsson  <jas@extundo.com>
49199
49200         * tests/test-gc-arcfour.c: New file.
49201
49202         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49203
49204 2005-10-19  Simon Josefsson  <jas@extundo.com>
49205
49206         * modules/gc-md4, modules/gc-md4-tests: New file.
49207
49208         * tests/test-gc-md4.c: New file.
49209
49210 2005-10-19  Simon Josefsson  <jas@extundo.com>
49211
49212         * m4/gc-md4.m4: New file.
49213
49214 2005-10-19  Simon Josefsson  <jas@extundo.com>
49215
49216         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49217         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49218         <kasal@ucw.cz>.
49219
49220 2005-10-19  Simon Josefsson  <jas@extundo.com>
49221
49222         * m4/gc-arcfour.m4: New file.
49223
49224         * m4/gc-rijndael.m4: New file.
49225
49226 2005-10-19  Simon Josefsson  <jas@extundo.com>
49227
49228         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49229
49230 2005-10-19  Simon Josefsson  <jas@extundo.com>
49231
49232         * lib/gc-gnulib.c: Support ARCFOUR.
49233
49234 2005-10-19  Simon Josefsson  <jas@extundo.com>
49235
49236         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49237         support.
49238
49239         * lib/gc.h: Add ECB enum type.
49240
49241         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49242
49243 2005-10-18  Simon Josefsson  <jas@extundo.com>
49244
49245         * tests/test-md5.c: New file.
49246
49247         * modules/md5-tests: New file.
49248
49249 2005-10-18  Simon Josefsson  <jas@extundo.com>
49250
49251         * tests/test-md4.c: New file.
49252
49253         * modules/md4, modules/md4-tests: New files.
49254
49255 2005-10-18  Simon Josefsson  <jas@extundo.com>
49256
49257         * m4/md4.m4: New file.
49258
49259 2005-10-18  Simon Josefsson  <jas@extundo.com>
49260
49261         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49262
49263 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49264
49265         * gnulib-tool (func_create_testdir): Omit the second check whether
49266         BUILT_SOURCES in nonempty.
49267
49268 2005-10-17  Simon Josefsson  <jas@extundo.com>
49269
49270         * tests/test-rijndael.c: New file.
49271
49272 2005-10-17  Simon Josefsson  <jas@extundo.com>
49273
49274         * modules/sha1: Depend on stdint instead of md5.
49275
49276         * modules/md5: Depend on stdint, remove uint32_t.
49277
49278 2005-10-17  Simon Josefsson  <jas@extundo.com>
49279
49280         * modules/gc-sha1-tests: New file.
49281
49282         * tests/test-gc-sha1.c: New file.
49283
49284 2005-10-17  Simon Josefsson  <jas@extundo.com>
49285
49286         * m4/md5.m4: Remove call to uint32_t.m4.
49287
49288 2005-10-17  Simon Josefsson  <jas@extundo.com>
49289
49290         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49291
49292         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49293         md5.h.
49294
49295         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49296
49297         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49298
49299 2005-10-17  Simon Josefsson  <jas@extundo.com>
49300
49301         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49302
49303 2005-10-17  Simon Josefsson  <jas@extundo.com>
49304
49305         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49306
49307 2005-10-17  Simon Josefsson  <jas@extundo.com>
49308
49309         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49310
49311         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49312
49313 2005-10-17  Bruno Haible  <bruno@clisp.org>
49314
49315         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49316         that it can also be used in a test.
49317
49318 2005-10-16  Bruno Haible  <bruno@clisp.org>
49319
49320         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49321         TESTS_ENVIRONMENT, so that individual tests can augment it.
49322
49323         * gnulib-tool (func_create_testdir): Use an intermediate target for
49324         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49325         macros, like $(ALLOCA_H), which cannot be passed through the command
49326         line.
49327
49328 2005-10-15  Simon Josefsson  <jas@extundo.com>
49329
49330         * modules/rijndael-tests: New file.
49331
49332         * modules/rijndael: New file.
49333
49334 2005-10-15  Simon Josefsson  <jas@extundo.com>
49335
49336         * m4/rijndael.m4: New file.
49337
49338 2005-10-15  Simon Josefsson  <jas@extundo.com>
49339
49340         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49341
49342         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49343
49344 2005-10-14  Simon Josefsson  <jas@extundo.com>
49345
49346         * tests/test-arcfour.c: New file.
49347
49348         * modules/arcfour, modules/arcfour-tests: New files.
49349
49350 2005-10-14  Simon Josefsson  <jas@extundo.com>
49351
49352         * m4/arcfour.m4: New file.
49353
49354 2005-10-14  Simon Josefsson  <jas@extundo.com>
49355
49356         * lib/arcfour.h, lib/arcfour.c: New files.
49357
49358 2005-10-14  Roland McGrath  <roland@redhat.com>
49359
49360         Import from libc.  [BZ #1331]
49361         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49362         macro argument.
49363         Reported by Matej Vela <vela@debian.org>.
49364
49365 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49366
49367         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49368         include <wchar.h>; no longer needed.
49369
49370 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49371
49372         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49373
49374 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49375         and  Ulrich Drepper  <drepper@redhat.com>
49376
49377         Import from libc.
49378         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49379         instead of inline stream orientation test and two separate
49380         function calls.  Pay no attention to USE_IN_LIBIO.
49381
49382 2005-10-13  Simon Josefsson  <jas@extundo.com>
49383
49384         * modules/gc-hmac-md5-tests: New file.
49385
49386         * tests/test-gc-hmac-sha1.c: New file.
49387
49388         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49389
49390         * modules/gc-hmac-md5-tests: New file.
49391
49392         * tests/test-gc-md5.c: New file.
49393
49394         * modules/gc-md5-tests: New file.
49395
49396 2005-10-13  Simon Josefsson  <jas@extundo.com>
49397
49398         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49399         Move memory allocation outside of loop.
49400
49401 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49402
49403         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49404         intermediate directory is in a read-only file system.  Problem
49405         reported by Eric Blake.
49406
49407 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49408
49409         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49410
49411 2005-10-12  Simon Josefsson  <jas@extundo.com>
49412
49413         * tests/test-hmac-sha1.c: New file.
49414
49415         * modules/hmac-sha1-tests: New file.
49416
49417         * modules/hmac-sha1: New file.
49418
49419 2005-10-12  Simon Josefsson  <jas@extundo.com>
49420
49421         * modules/gc-sha1: New file.
49422
49423 2005-10-12  Simon Josefsson  <jas@extundo.com>
49424
49425         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49426
49427         * tests/test-gc-pbkdf2-sha1.c: New file.
49428
49429 2005-10-12  Simon Josefsson  <jas@extundo.com>
49430
49431         * modules/gc-md5, modules/gc-hmac-md5: New files.
49432
49433         * modules/gc (Files): Remove md5, memxor and hmac files.
49434
49435 2005-10-12  Simon Josefsson  <jas@extundo.com>
49436
49437         * m4/gc-pbkdf2-sha1.m4: New file.
49438
49439         * m4/gc-hmac-sha1.m4: New file.
49440
49441         * m4/gc-sha1: New file.
49442
49443         * m4/hmac-sha1.m4: New file.
49444
49445 2005-10-12  Simon Josefsson  <jas@extundo.com>
49446
49447         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49448
49449         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49450
49451 2005-10-12  Simon Josefsson  <jas@extundo.com>
49452
49453         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49454         suggested by Bruno Haible <bruno@clisp.org>.
49455
49456 2005-10-12  Simon Josefsson  <jas@extundo.com>
49457
49458         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49459
49460 2005-10-12  Simon Josefsson  <jas@extundo.com>
49461
49462         * lib/gc-pbkdf2-sha1.c: New file.
49463
49464         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49465
49466 2005-10-12  Simon Josefsson  <jas@extundo.com>
49467
49468         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49469
49470         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49471
49472 2005-10-12  Simon Josefsson  <jas@extundo.com>
49473
49474         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49475         GC_USE_HMAC_MD5, respectively.
49476
49477         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49478         (gc_md5): Fix typo.
49479
49480         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49481
49482         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49483
49484         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49485
49486 2005-10-12  Bruno Haible  <bruno@clisp.org>
49487
49488         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49489         Reported by Stepan Kasal <kasal@ucw.cz>.
49490
49491 2005-10-11  Simon Josefsson  <jas@extundo.com>
49492
49493         * tests/test-crc.c: New file.
49494
49495         * modules/crc, modules/crc-tests: New files.
49496
49497 2005-10-11  Simon Josefsson  <jas@extundo.com>
49498
49499         * m4/crc.m4: New file.
49500
49501 2005-10-11  Simon Josefsson  <jas@extundo.com>
49502
49503         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49504
49505         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49506
49507         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49508
49509 2005-10-11  Simon Josefsson  <jas@extundo.com>
49510
49511         * lib/crc.h, lib/crc.c: New files.
49512
49513         * lib/gc.h (gc_hash_buffer): Add doc.
49514
49515 2005-10-11  Bruno Haible  <bruno@clisp.org>
49516
49517         * modules/c-strcasestr: New file.
49518         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49519
49520 2005-10-11  Bruno Haible  <bruno@clisp.org>
49521
49522         * modules/c-strcase: New file.
49523         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49524
49525 2005-10-11  Bruno Haible  <bruno@clisp.org>
49526
49527         * lib/strcasecmp.c: Include limits.h.
49528         (strcasecmp): Avoid integer overflow on exotic platforms.
49529         * lib/strncasecmp.c: Include limits.h.
49530         (strncasecmp): Avoid integer overflow on exotic platforms.
49531         Reported by Paul Eggert.
49532
49533 2005-10-11  Bruno Haible  <bruno@clisp.org>
49534
49535         * lib/c-strcasestr.h: New file, from GNU gettext.
49536         * lib/c-strcasestr.c: New file, from GNU gettext.
49537
49538 2005-10-11  Bruno Haible  <bruno@clisp.org>
49539
49540         * lib/c-strcase.h: New file, from GNU gettext.
49541         * lib/c-strcasecmp.c: New file, from GNU gettext.
49542         * lib/c-strncasecmp.c: New file, from GNU gettext.
49543
49544 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49545
49546         * modules/mempcpy (License): GPL -> LGPL.
49547         * modules/strchrnul (License): Likewise.
49548         * modules/sysexits (License): Likewise.
49549
49550 2005-10-08  Simon Josefsson  <jas@extundo.com>
49551
49552         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49553
49554 2005-10-07  Simon Josefsson  <jas@extundo.com>
49555
49556         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49557
49558 2005-10-06  Simon Josefsson  <jas@extundo.com>
49559
49560         * tests/test-hmac-md5.c: New file.
49561
49562         * modules/hmac-md5-tests: New file.
49563
49564         * modules/hmac-md5: New file.
49565
49566 2005-10-06  Simon Josefsson  <jas@extundo.com>
49567
49568         * m4/hmac-md5.m4: New file.
49569
49570         * m4/memxor.m4: Require gl_C_RESTRICT.
49571
49572 2005-10-06  Simon Josefsson  <jas@extundo.com>
49573
49574         * lib/memxor.c (memxor): Avoid casts and warnings.
49575
49576 2005-10-06  Simon Josefsson  <jas@extundo.com>
49577
49578         * lib/hmac-md5.c: New file.
49579
49580         * lib/hmac.h: New file.
49581
49582 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49583
49584         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49585         promotes to int, not unsigned int, to catch the AIX 5.3
49586         compiler bug.
49587
49588 2005-10-05  Simon Josefsson  <jas@extundo.com>
49589
49590         * modules/memxor: New file.
49591
49592         * modules/iconv (Files): Move config.rpath to havelib, it is used
49593         there.
49594
49595         * modules/havelib (Files): Add config.rpath.
49596
49597 2005-10-05  Simon Josefsson  <jas@extundo.com>
49598
49599         * m4/memxor.m4: New file.
49600
49601 2005-10-05  Simon Josefsson  <jas@extundo.com>
49602
49603         * lib/memxor.c (memxor): Fix compiler error.
49604
49605         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49606         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49607
49608         * lib/memxor.h, lib/memxor.c: New files.
49609
49610         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49611         we assume all systems have it, suggested by Jim Meyering
49612         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49613         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49614         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49615         same reasons.
49616
49617 2005-10-05  Simon Josefsson  <jas@extundo.com>
49618
49619         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49620
49621 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49622
49623         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49624         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49625         needed, since the source code now assumes these .h files.
49626
49627 2005-10-05  Derek Price  <derek@ximbiot.com>
49628
49629         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49630
49631 2005-10-05  Bruno Haible  <bruno@clisp.org>
49632
49633         * modules/stdint (License): Change to LGPL.
49634
49635 2005-10-04  Simon Josefsson  <jas@extundo.com>
49636
49637         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49638         D. Baushke" <mdb@gnu.org>.
49639
49640 2005-10-04  Bruno Haible  <bruno@clisp.org>
49641
49642         * lib/verify.h (verify_true): Provide alternative definition for C++.
49643
49644 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49645
49646         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49647         (SSIZE_MAX): New macro, if not already defined.
49648         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49649         than 2 GiB.
49650
49651 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49652
49653         Sync from coreutils.
49654         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49655         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49656         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49657         ULLONG_MAX doesn't work with 2.7.2.1.
49658
49659 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49660
49661         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49662         From Ben Pfaff.
49663
49664         * modules/exclude (Depends-on): Depend on verify.
49665         * modules/strtoimax (Depends-on): Likewise.
49666         * modules/utimecmp (Depends-on): Likewise.
49667
49668 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49669
49670         * lib/exclude.c: Include verify.h.
49671         (verify): Remove.  All callers changed to use verify.h's version.
49672         * lib/strtoimax.c: Likewise.
49673         * lib/utimecmp.c: Likewis.e
49674
49675         Sync from coreutils.
49676         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49677         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49678         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49679         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49680         bother returning ENOSYS if settimeofday or stime fails; just let
49681         them return whatever errno they want to return.
49682         * lib/utimens.c: Include unistd.h, for dup2.
49683         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49684         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49685
49686 2005-10-02  Jim Meyering  <jim@meyering.net>
49687
49688         Sync from coreutils.
49689         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49690         from glibc-2.2.5 that fails for read-only files.
49691
49692 2005-10-02  Jim Meyering  <jim@meyering.net>
49693
49694         Sync from coreutils.
49695         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49696         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49697         `#if HAVE_CONFIG_H'.
49698         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49699         Remove AT_FDCWD test.
49700         Do not consume the fd unless successful.
49701         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49702         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49703         block, so that we don't even try to compile it if settimeofday is
49704         available.  This works around a compilation failure on OSF1 V5.1,
49705         due to stime requiring a `long int*' while tv_sec is `int'.
49706
49707 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49708
49709         Sync from coreutils.
49710         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49711         against `yes', rather than just testing for nonempty.
49712
49713 2005-10-01  Simon Josefsson  <jas@extundo.com>
49714
49715         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49716         and Darwin.
49717
49718         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49719         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49720         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49721         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49722         Check if struct addrinfo is declared.
49723
49724 2005-10-01  Simon Josefsson  <jas@extundo.com>
49725
49726         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49727         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49728         AI_* and EAI_* definitions.  Protect function declarations.
49729
49730 2005-10-01  Jim Meyering  <jim@meyering.net>
49731
49732         Sync from coreutils.
49733
49734         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49735         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49736         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49737         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49738         in the inet and nsl libraries.  Required on Solaris 5.7.
49739
49740 2005-10-01  Jim Meyering  <jim@meyering.net>
49741
49742         Sync from coreutils.
49743         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49744         in the inet and nsl libraries.  Required on Solaris 5.7.
49745
49746 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49747
49748         * lib/getdelim.c (getdelim): Remove unused variables.
49749
49750 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49751
49752         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49753         so that the code works even with ancient cpp.  Portability problem
49754         with GCC 2.7.2.1 reported by Thomas M.Ott.
49755
49756 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49757
49758         * modules/regex (Depends-on): Add strcase.
49759
49760         * modules/gethostname (Licence): Change from GPL to LGPL, since
49761         gethostname.c is a trivial implementation of a standard library
49762         function.
49763         * modules/poll (License): Change from GPL to LGPL, since it's
49764         derived from LGPL code.
49765
49766 2005-09-27  Jim Meyering  <jim@meyering.net>
49767
49768         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49769         HAVE_CONFIG_H.
49770
49771         * lib/intprops.h (signed_type_or_expr__): Define.
49772         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49773         for unsigned types.
49774
49775 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49776
49777         * lib/verify.h (verify_expr): Remove, replacing with:
49778         (verify_true): New macro that returns true instead of void.
49779         (verify_type__): Remove.
49780         (verify): Use verify_true rather than verify_type__.
49781
49782 2005-09-26  Bruno Haible  <bruno@clisp.org>
49783
49784         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49785         is necessary.
49786         (lib_SOURCES): Remove mbchar.c.
49787         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49788         (Files): Add m4/mbrtowc.m4.
49789         * modules/mbiter: Likewise.
49790         * modules/mbuiter: Likewise.
49791
49792 2005-09-26  Bruno Haible  <bruno@clisp.org>
49793
49794         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49795         compile mbchar.c if they are not both present.
49796         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49797         * m4/mbiter.m4 (gl_MBITER): Likewise.
49798         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49799         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49800         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49801
49802 2005-09-25  Jim Meyering  <jim@meyering.net>
49803
49804         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49805         also uses socklen_t.
49806
49807 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49808
49809         * lib/utimens.c (ENOSYS): Define if not already defined.
49810         (futimens): Support having a null PATH if the file descriptor
49811         is nonnegative.
49812
49813         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49814         Remove.
49815         (__attribute): Define to empty unless GCC 3.1 or later.
49816         This works around a core dump on OpenBSD 3.4, which has GCC
49817         2.95.3, which dumps core when given __attribute__(()).  It also
49818         simplifies other tests, since we really don't want to bother with
49819         worrying about which ancient version of GCC supported what.
49820         Original problem reported by Yoann Vandoorselaere, with part of
49821         the fix suggested by Derek Price.
49822
49823 2005-09-24  Jim Meyering  <jim@meyering.net>
49824
49825         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49826         so we can once again use a positive bitfield width of 1 -- now we
49827         don't have to explain why we were using a bitfield width of 2.
49828
49829 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49830
49831         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49832         and similarly for the other external symbols.  Problem reported
49833         by James Gallager.
49834
49835         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49836         bug reported by Jim Meyering.
49837
49838         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49839         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49840         not needed, since socklen is a prerequisite module.
49841
49842 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49843
49844         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49845         Problem reported by Eric Blake.
49846         (getaddrinfo): Initialize se so that it's not garbage.
49847         Redo internal storage allocation so that it doesn't make unportable
49848         assumptions about alignment.
49849         Fix a memory leak.
49850
49851         * lib/utimens.c (futimens): Use futimesat if available.
49852         Prefer it to futimes since it doesn't have the futimes bug.
49853
49854         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49855         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49856         Instead, declare a function that returns a pointer to an array,
49857         and use verify_type__ to declare the size of the array.
49858         Problem and germ of a solution reported by Bruno Haible.
49859         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49860         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49861
49862 2005-09-23  Jim Meyering  <jim@meyering.net>
49863
49864         Sync from coreutils.
49865         Correct build failure (socklen_t not defined) on at least
49866         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49867         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49868
49869 2005-09-23  Jim Meyering  <jim@meyering.net>
49870
49871         * modules/getaddrinfo (Depends-on): Add socklen.
49872
49873 2005-09-23  Bruno Haible  <bruno@clisp.org>
49874
49875         * tests/test-verify.c: New file.
49876
49877 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49878
49879         Sync from coreutils.
49880
49881         * modules/argmatch (Depends-on): Add verify.
49882         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49883         unistd-safer.
49884         * modules/save-cwd (Depends-on): Likewise.
49885
49886         * modules/openat (Files): Add lib/openat-die.c.
49887         (Depends-on): Remove error, exitfail.
49888         Add dirname.
49889
49890         * modules/verify: New file.
49891         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49892         with "verify" module.
49893
49894 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49895
49896         Sync from coreutils.
49897
49898         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49899         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49900         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49901         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49902         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49903         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49904         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49905         Don't bother checking for string.h, stdlib.h, unistd.h.
49906         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49907         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49908         module's job.
49909         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49910         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49911
49912         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49913         (gl_GETDATE): Use it.
49914
49915         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49916
49917 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49918
49919         Sync from coreutils.
49920
49921         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49922         stat-time.h.
49923         * lib/argmatch.h: Include verify.h
49924         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49925         (ARGMATCH_ASSERT): Remove; unused.
49926         * lib/canonicalize.c: Assume STDC_HEADERS.
49927         * lib/exclude.c: Include "strcase.h".
49928         * lib/regex_internal.h [!defined _LIBC]: Likewise.
49929         * lib/getusershell.c: Include stdio--.h rather than stdio.h
49930         and stdio-safer.h.
49931         (getusershell): Call fopen, not fopen_safer.
49932         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49933         Do not include unistd-safer.h.
49934         (save_cwd): Don't call fd_safer; no longer needed
49935         now that we include fcntl--.h.
49936
49937         * lib/getdate.y (relative_time): New type.
49938         (RELATIVE_TIME_0): New constant.
49939         (parser_control): Use relative_time instead of doing it ourselves.
49940         (%union): Add new relative_time rel member.
49941         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49942         Now typeless.
49943         (relunit, relunit_snumber): Now of type rel.
49944         (zone, rel, relunit, get_date): Adjust to above changes.
49945
49946         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49947         Do not include unistd-safer.h.
49948         (getloadavg): Don't call fd_safer; no longer needed
49949         now that we include fcntl--.h.
49950
49951         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49952         (make_dir_parents): Treat ENOSYS like EEXIST.
49953
49954         Improve quality of diagnostics on restore_cwd failure.
49955         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49956         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49957         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49958         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49959         each time through the loop.  Do not diagnose restore_cwd failure;
49960         that is the caller's job (and perhaps the caller does not care).
49961
49962         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49963         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49964         If the file already exists but is not a directory, don't bother
49965         to try to make its parents.
49966         Close potential file descriptor leak if we can't chdir("/") (!).
49967         Don't always return true if chdir($PWD) fails; return true only
49968         if the requested action was done successfully (except for the
49969         chdir($PWD)).
49970         Don't log final directory unless we actually made it.
49971         Refactor to avoid duplicate code to fix up permissions.
49972         Don't attempt to fix up parent permissions if chdir($PWD) fails.
49973
49974         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49975         to make it a bit faster and (I hope) clearer.
49976         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49977         Fix bug in formats like %2N.
49978
49979         * lib/verify.h: New file.
49980
49981 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49982
49983         Sync from coreutils.
49984         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49985
49986 2005-09-22  Jim Meyering  <jim@meyering.net>
49987
49988         Sync from coreutils.
49989
49990         * m4/lstat.m4 (gl_FUNC_LSTAT):
49991         Use AC_LIBSOURCES to require lstat.c and lstat.h.
49992         Remove obsolete comment.
49993         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49994         * m4/xstrtod.m4: Likewise.
49995
49996         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49997
49998 2005-09-22  Jim Meyering  <jim@meyering.net>
49999
50000         Sync from coreutils.
50001
50002         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
50003
50004         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
50005         the .tm_year member, since otherwise gcc-4.0 would now warn about
50006         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
50007
50008         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
50009         order to avoid an unsuppressible warning from gcc on 64-bit systems.
50010
50011         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50012         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50013         when run in a time zone for which daylight savings time is in effect
50014         for the starting date.
50015
50016         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50017         stop us from restricting permissions of just-created absolute-named
50018         directories.
50019         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50020         to restore initial working directory.
50021         * lib/mkdir-p.c (make_dir_parents): New parameter:
50022         different_working_dir, to tell caller if/when we change the working
50023         directory and are unable to return to the initial one.
50024         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50025         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50026         `return false'.  This fixes a bug introduced on 2004-07-30.
50027
50028         * lib/openat.c (fdopendir): Be sure to close the supplied
50029         file descriptor before returning.  This makes our replacement
50030         implementation a little closer to Solaris's, where fdopendir
50031         ties the file descriptor to the returned DIR* pointer.
50032         * lib/openat.c (unlinkat): New function.
50033         * lib/openat.h (unlinkat): Add prototype.
50034         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50035         (openat_restore_fail): Rename from openat_restore_die.
50036         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50037
50038         Provide an alternative to exiting immediately upon save_cwd or
50039         restore_cwd failure.  Now, an application can arrange e.g.,
50040         to perform a longjump in that case.
50041         * lib/openat.c: Include dirname.h.
50042         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50043         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50044         and openat_restore_die rather than calling error directly.
50045         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50046
50047         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50048         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50049         define.
50050
50051         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50052         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50053                             int utc, int nanoseconds);
50054         Background:
50055         date should not have to allocate a megabyte of virtual memory to
50056         handle a format argument like +%1048575T.  When implemented with
50057         strftime, it must allocate such a buffer, use strftime to fill it
50058         in, print it, then free it.
50059         With fprintftime, it simply prints everything and exits.
50060         With no need for memory allocation, that's one fewer way to fail.
50061         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50062         optional field width, not before, so we accept %9:z, not %:9z.
50063         (my_strftime): Be sure to use L_('x') for literals.
50064
50065         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50066         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50067         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50068         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50069         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50070         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50071         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50072         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50073         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50074         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50075         * lib/xgethostname.c, lib/xreadlink.c:
50076         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50077
50078         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50079         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50080         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50081         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50082         and don't include <sys/file.h>).
50083
50084 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50085
50086         Sync from coreutils.
50087
50088         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50089         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50090         [!LDAV_DONE]: Avoid unused variable warning.
50091
50092 2005-09-21  Bruno Haible  <bruno@clisp.org>
50093
50094         * lib/unicodeio.h (unicode_to_mb): New declaration.
50095
50096 2005-09-20  Derek Price  <derek@ximbiot.com>
50097
50098         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50099         getaddrinfo.h.
50100
50101 2005-09-20  Bruno Haible  <bruno@clisp.org>
50102
50103         * gnulib-tool: Remove trailing slashes from the values specified for
50104         --source-base, --m4-base, --tests-base, --aux-dir.
50105         Suggested by Simon Josefsson <jas@extundo.com>.
50106
50107 2005-09-20  Bruno Haible  <bruno@clisp.org>
50108
50109         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50110         func_modules_to_filelist, func_import, func_create_testdir): Make all
50111         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50112         change when gnulib-tool is invoked in a different locale.
50113
50114 2005-09-19  Simon Josefsson  <jas@extundo.com>
50115
50116         * m4/socklen.m4: Fix typo.
50117
50118 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50119
50120         Use a consistent style for including <config.h>.
50121         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50122         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50123         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50124         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50125         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50126         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50127         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50128         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50129         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50130         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50131         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50132         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50133         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50134         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50135         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50136         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50137         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50138         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50139         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50140         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50141         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50142         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50143         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50144         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50145         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50146         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50147         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50148         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50149         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50150         lib/xstrtoumax.c, lib/yesno.c:
50151         Standardize inclusion of config.h.
50152         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50153         lib/inttostr.h:  Removed inclusion of config.h from header files.
50154         * lib/inttostr.c:  Adjusted in-tree users.
50155         * lib/timespec.h: Remove superfluous warning to include config.h.
50156         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50157         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50158         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50159         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50160         config.h with HAVE_CONFIG_H.
50161
50162 2005-09-19  Jim Meyering  <jim@meyering.net>
50163
50164         * modules/pathmax (License): Change to LGPL.
50165
50166 2005-09-19  Derek Price  <derek@ximbiot.com>
50167
50168         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50169
50170 2005-09-19  Bruno Haible  <bruno@clisp.org>
50171
50172         * gnulib-tool (import): Provide default for --tests-base.
50173
50174 2005-09-19  Bruno Haible  <bruno@clisp.org>
50175
50176         * doc/quote.texi: New file, extracted from gnulib.texi.
50177         * doc/ctime.texi: New file, extracted from gnulib.texi.
50178         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50179         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50180         * doc/gnulib.texi: Include them.
50181
50182 2005-09-18  Bruno Haible  <bruno@clisp.org>
50183
50184         Portability fix.
50185         * gnulib-tool (func_readlink): New function.
50186         (func_ln_if_changed): Use it.
50187
50188 2005-09-18  Bruno Haible  <bruno@clisp.org>
50189
50190         * gnulib-tool: Support --with-tests also with --import.
50191         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50192         (func_import): Use variables $testsbase and $inctests. Emit a
50193         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50194         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50195         SUBDIRS += $testsdir.
50196         (func_create_testdir): Update.
50197
50198 2005-09-18  Bruno Haible  <bruno@clisp.org>
50199
50200         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50201         instead of $dry_run.
50202         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50203         (func_ln_if_changed): Don't handle dry-run here.
50204         (func_import): In dry-run mode, detect more precisely which actions
50205         would be performed, and don't use "...ing" verbs.
50206
50207 2005-09-18  Bruno Haible  <bruno@clisp.org>
50208
50209         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50210         (func_import): Use join on two temporary files instead of three nested
50211         loops, in order to determine which files are new or old.
50212
50213 2005-09-18  Bruno Haible  <bruno@clisp.org>
50214
50215         * gnulib-tool (func_import): Comment out code that spits out the
50216         new files with --dry-run.
50217
50218 2005-09-18  Bruno Haible  <bruno@clisp.org>
50219
50220         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50221
50222 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50223
50224         * lib/stat-time.h: New file.
50225         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50226         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50227         in a different way.
50228         (timespec_cmp): New function.
50229         * lib/utimecmp.c: Include stat-time.h.
50230         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50231         members exist, not on the obsolescent ST_MTIM_NSEC.
50232         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50233
50234 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50235
50236         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50237
50238 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50239
50240         * MODULES.html.sh (File system functions): Add stat-time.
50241         * modules/stat-time: New file.
50242         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50243         is now done in a different way, by the stat-time module.
50244         * modules/utimecmp (Depends-on): Add stat-time.
50245
50246 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50247
50248         * m4/st_mtim.m4: Remove.  Superseded by...
50249         * m4/stat-time.m4: New file.
50250         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50251         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50252
50253 2005-09-15  Derek Price  <derek@ximbiot.com>
50254
50255         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50256
50257 2005-09-15  Derek Price  <derek@ximbiot.com>
50258
50259         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50260         * lib/regex_internal.c: Ditto, using this...
50261         (__GNUC_PREREQ): ...new macro.
50262         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50263         using...
50264         (__GNUC_PREREQ): ...this new macro.
50265
50266         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50267
50268 2005-09-15  Derek Price  <derek@ximbiot.com>
50269             Paul Eggert  <eggert@cs.ucla.edu>
50270
50271         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50272         changes, consolidating in...
50273         * lib/regex_internal.h: ...this file.
50274
50275 2005-09-13  Jim Meyering  <jim@meyering.net>
50276
50277         * lib/canon-host.c: Filter through gnu indent and reword comments
50278         slightly.
50279         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50280
50281 2005-09-13  Derek Price  <derek@ximbiot.com>
50282
50283         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50284         failure.
50285         Reported by Jim Meyering  <jim@meyering.net>.
50286
50287 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50288
50289         * lib/base64.c: Typo.
50290         (base64_encode): Put b64str in initialized data section.
50291
50292 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50293
50294         Merge glibc and coreutils changes into gnulib, plus a few
50295         extra fixes.
50296         * lib/md5.c: Use #error rather than a string.
50297         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50298         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50299         (__attribute__): Define to empty for non recent-GCC.
50300         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50301         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50302         Renamed from their non-__ counterparts, with new macros replacing
50303         them if not _LIBC.  Add __THROW attribute.
50304         (rol): Remove.
50305         (struct md5_ctx): Align buffer if using GCC.
50306         * lib/sha1.h (struct sha1_ctx): Likewise.
50307         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50308         The old name was backwards.
50309         (NOTSWAP): Remove; not used.
50310         (rol): New macro, moved here from md5.h.
50311         (sha1_process_block): Remove a FIXME that doesn't make sense.
50312
50313 2005-09-12  Derek Price  <derek@ximbiot.com>
50314
50315         Return usable errors from canon-host.
50316         * lib/canon-host.h: New file.
50317         * lib/canon-host.c (canon_host): Wrap...
50318         (canon_host_r): ...this new function, which now relies exclusively on
50319         getaddrinfo.
50320         (ch_strerror): New function.
50321         (last_cherror): New global.
50322         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50323         interface.
50324         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50325         void *.
50326         (freeaddrinfo): Free ai->ai_canonname when set.
50327
50328 2005-09-12  Derek Price  <derek@ximbiot.com>
50329
50330         Make canon-host require getaddrinfo.
50331         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50332         AC_LIBSOURCE canon-host.h.  Call...
50333         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50334         gl_GETADDRINFO.
50335         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50336
50337 2005-09-12  Derek Price  <derek@ximbiot.com>
50338
50339         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50340         LGPL.
50341         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50342
50343 2005-09-12  Derek Price  <derek@ximbiot.com>
50344
50345         * lib/gai_strerror.c: Include config.h when available.  Include
50346         getaddrinfo.h before other headers to test interface.
50347         Reported by Larry Jones <lawrence.jones@ugs.com>.
50348
50349 2005-09-12  Derek Price  <derek@ximbiot.com>
50350             Paul Eggert  <eggert@cs.ucla.edu>
50351
50352         * modules/glob (Files): Add glob-libc.h.
50353
50354 2005-09-12  Derek Price  <derek@ximbiot.com>
50355             Paul Eggert  <eggert@cs.ucla.edu>
50356
50357         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50358         glob_.h, glob-libc.h.
50359         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50360
50361 2005-09-12  Derek Price  <derek@ximbiot.com>
50362             Paul Eggert  <eggert@cs.ucla.edu>
50363
50364         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50365         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50366         protecting things that should be done only in gnulib contexts.
50367         * lib/glob_.h: New file, containing only the glob things needed for
50368         gnulib.
50369         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50370         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50371         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50372         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50373         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50374         and to respect the namespace rules better.
50375
50376 2005-09-08  Simon Josefsson  <jas@extundo.com>
50377
50378         * modules/socklen: New file.
50379
50380 2005-09-08  Simon Josefsson  <jas@extundo.com>
50381
50382         * m4/socklen.m4: New file.
50383
50384 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50385
50386         * modules/utimens (Files): Add m4/utimbuf.m4, since
50387         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50388         Reported by Sergey Poznyakoff.
50389
50390 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50391
50392         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50393         definitions, since that's the preferred style in glibc.
50394         Fix a minor spacing issue, and update copyright notice to match
50395         glibc's.
50396
50397 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50398
50399         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50400
50401 2005-09-06  Simon Josefsson  <jas@extundo.com>
50402
50403         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50404         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50405
50406 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50407
50408         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50409         warning.
50410
50411 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50412
50413         * config/srclist.txt: Add glibc bug 1302.
50414
50415 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50416
50417         Change bitset word type from unsigned int to unsigned long int,
50418         as this has better performance on typical 64-bit hosts.
50419         Port bitset code to hosts with unusual word sizes.
50420         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50421         (build_collating_symbol):
50422         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50423         argument is a bitset.  This is merely a style issue, but it makes
50424         it clearer that an entire array is expected.
50425         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50426         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50427         Port to the case where bitset_word is not the same as unsigned int.
50428         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50429         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50430         Likewise.
50431         * lib/regexec.c (check_dst_limits_calc_pos_1,
50432         check_subexp_matching_top):
50433         (build_trtable, group_nodes_into_DFAstates):
50434         Likewise.
50435         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50436         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50437         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50438         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50439         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50440         * lib/regcomp.c (optimize_subexps, lower_subexp):
50441         Work even if bitset_word has holes in its bitwise representation.
50442         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50443         * lib/regexec.c (check_dst_limits_calc_pos_1,
50444         check_subexp_matching_top):
50445         Likewise.
50446         * lib/regex_internal.c (re_string_reconstruct):
50447         Don't assume UCHAR_MAX == 255.
50448         * lib/regex_internal.h (bitset_set_all): Likewise.
50449         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50450         All uses changed.
50451         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50452         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50453         All uses changed.
50454         (BITSET_WORD_MAX): New macro.
50455         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50456         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50457         (bitset_empty, bitset_copy):
50458         Prefer sizeof (bitset) to multiplying it out ourselves.
50459         (bitset_not_merge): Remove; unused.
50460         (bitset_contain): Return bool, not unsigned int with one bit on.
50461         All callers changed.
50462         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50463         alignment than re_node_set; do this by defining a new internal
50464         type struct dests_alloc and using it to allocate memory.
50465
50466 2005-09-05  Bruno Haible  <bruno@clisp.org>
50467
50468         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50469         links.
50470
50471 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50472
50473         * modules/size_max (Makefile.am): Add size_max.h
50474
50475 2005-09-04  Derek Price  <derek@ximbiot.com>
50476
50477         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50478
50479 2005-09-03  Simon Josefsson  <jas@extundo.com>
50480
50481         * gnulib-tool: Fix typo.
50482
50483 2005-09-03  Simon Josefsson  <jas@extundo.com>
50484
50485         * config/srclist.txt: Add glibc bug 1293.
50486
50487 2005-09-03  Derek Price  <derek@ximbiot.com>
50488
50489         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50490         From Larry Jones <lawrence.jones@ugs.com>.
50491
50492 2005-09-02  Simon Josefsson  <jas@extundo.com>
50493
50494         * modules/socklen: New file.
50495
50496 2005-09-02  Simon Josefsson  <jas@extundo.com>
50497
50498         * modules/havelib: New module.
50499
50500         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50501         Use havelib.
50502
50503 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50504
50505         Check for arithmetic overflow when calculating sizes, to prevent
50506         some buffer-overflow issues.  These patches are conservative, in the
50507         sense that when I couldn't determine whether an overflow was possible,
50508         I inserted a run-time check.
50509         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50510         macros.
50511         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50512         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50513         (re_xnrealloc, re_x2nrealloc): New inline functions.
50514         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50515         parse_bracket_exp):
50516         (build_equiv_class, build_charclass): Check for arithmetic overflow
50517         in size expression calculations.
50518         * lib/regex_internal.c (re_string_realloc_buffers):
50519         (build_wcs_upper_buffer, re_node_set_add_intersect):
50520         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50521         (re_dfa_add_node, register_state): Likewise.
50522         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50523         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50524         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50525         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50526
50527 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50528
50529         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50530         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50531
50532 2005-09-02  Bruno Haible  <bruno@clisp.org>
50533
50534         Support for lib vs. lib64 distinction on biarch platforms.
50535         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50536         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50537         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50538
50539 2005-09-02  Bruno Haible  <bruno@clisp.org>
50540
50541         * gnulib-tool (import): In the other first-use case, provide defaults
50542         as well.
50543
50544 2005-09-02  Bruno Haible  <bruno@clisp.org>
50545
50546         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50547         patches not yet found in the latest gettext release.
50548
50549 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50550
50551         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50552         to avoid a collision with bits/local_lim.h in glibc.
50553         All uses changed.  Problem reported by Dmitry V. Levin in
50554         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50555
50556         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50557         bugs in int versus size_t comparisons.
50558         (re_string_context_at): Fix bug where the code assumed that
50559         Idx is signed.
50560
50561         Use bool where appropriate.
50562         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50563         All callers changed.
50564         (calc_eclosure_iter): Likewise, for ROOT arg.
50565         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50566         (build_charclass_op): Likewise, for NON_MATCH arg.
50567         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50568         (re_string_construct_common): Likewise, for ICASE arg.
50569         * lib/regexec.c (re_search_2_stub, re_search_stub):
50570         Likewise, for RET_LEN arg.
50571         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50572         (set_regs): Likewise, for FL_BACKTRACK arg.
50573         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50574         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50575         (calc_eclosure_iter, parse_bracket_exp):
50576         Use bool for internal variables that are booleans.
50577         * lib/regexec.c (re_search_internal, check_matching,
50578         proceed_next_node):
50579         (set_regs, build_sifted_states, sift_states_bkref):
50580         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50581         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50582         (find_collation_sequence_value):
50583         Likewise.
50584         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50585         (re_node_set_compare):
50586         Return bool, not int. All callers changed.
50587         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50588         (build_trtable, check_node_accept): Likewise.
50589         * lib/regex_internal.h: Include stdbool.h.
50590
50591         Fix bugs uncovered when converting to bool.
50592         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50593         failure instead of charging ahead blindly.
50594         * lib/regex_internal.c (register_state): Likewise.
50595         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50596         for freeing internal storage.
50597         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50598         bitset pieces used as boolean, to avoid undefined behavior
50599         on hosts that do int overflow checking.
50600
50601 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50602
50603         * config/srclist.txt: Add glibc bugs 1285-1287.
50604
50605 2005-09-01  Jim Meyering  <jim@meyering.net>
50606
50607         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50608         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50609         Require gl_STAT_MACROS, too.
50610
50611 2005-09-01  Bruno Haible  <bruno@clisp.org>
50612
50613         * gnulib-tool (import): In the first-use case, provide defaults.
50614
50615 2005-09-01  Bruno Haible  <bruno@clisp.org>
50616
50617         * gnulib-tool (func_import): Remove the .tmp files.
50618
50619 2005-09-01  Bruno Haible  <bruno@clisp.org>
50620
50621         * gnulib-tool (func_import): Fix handling of symbolic links.
50622
50623 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50624
50625         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50626         old glibc regex code mishandles strings longer than 2**31 bytes.
50627         This patch fixes this when the regex code is used in gnulib
50628         (i.e., outside glibc).
50629
50630         This patch should not affect the use of the regex code inside
50631         glibc.  No doubt this problem also needs to be handled for glibc
50632         as well, but the result will be an incompatible change to the
50633         glibc ABI, and the old ABI will have to be supported too.  That
50634         can be the the subject for another patch.
50635
50636         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50637         governing whether the rest of this patch is active.  By default,
50638         the macro is disabled and the patch has no effect.
50639         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50640         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50641         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50642         (re_match_2, re_set_registers): Use the new types.
50643         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50644         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50645         New macros.
50646         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50647         (re_string_context_at, bin_tree_t, re_dfastate_t):
50648         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50649         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50650         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50651         (re_string_char_size_at, re_string_wchar_at):
50652         (re_string_elem_size_at):
50653         Use the new types and macros to port to 64-bit hosts.
50654         Use unsigned types for internal values, so that the code
50655         mostly works even for arrays larger than SSIZE_MAX.
50656         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50657         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50658         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50659         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50660         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50661         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50662         (calc_inveclosure, parse_dup_op, build_range_exp):
50663         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50664         (fetch_number, create_token_tree, mark_opt_subexp):
50665         Likewise.
50666         * lib/regex_internal.c (re_string_construct_common,
50667         create_ci_newstate):
50668         (create_cd_newstate, re_string_allocate, re_string_construct):
50669         (re_string_realloc_buffers, build_wcs_upper_buffer):
50670         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50671         (re_string_reconstruct, re_string_peek_byte_case):
50672         (re_string_fetch_byte_case, re_string_context_at):
50673         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50674         (re_node_set_init_copy, re_node_set_add_intersect):
50675         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50676         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50677         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50678         (re_acquire_state, re_acquire_state_context, register_state):
50679         Likewise.
50680         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50681         search_cur_bkref_entry):
50682         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50683         (re_search_internal, re_search_2_stub, re_search_stub)
50684         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50685         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50686         (update_cur_sifted_state, check_dst_limits):
50687         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50688         (check_subexp_limits, sift_states_bkref, merge_state_array):
50689         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50690         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50691         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50692         (expand_bkref_cache, check_node_accept_bytes):
50693         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50694         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50695         (acquire_init_state_context, check_halt_node_context):
50696         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50697         (sift_states_backward, clean_state_log_if_needed):
50698         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50699         (find_recover_state, transit_state_sb, transit_state_mb):
50700         (transit_state_bkref, build_trtable, match_ctx_clean):
50701         Likewise.
50702         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50703         to work around an assumption that REG_MISSING is negative.
50704
50705         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50706         (seek_collating_symbol_entry) [defined _LIBC]:
50707         (lookup_collation_sequence_value) [defined _LIBC]:
50708         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50709         Use prototypes rather than old-style function definitions.
50710         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50711         (transit_state_sb) [0]:
50712         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50713
50714         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50715         rm_eo.
50716
50717         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50718         (optimize_subexps, lower_subexp):
50719         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50720         since the signed shift might overflow.  Use 1u<<31 instead.
50721         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50722         Likewise.
50723         * lib/regexec.c (check_dst_limits_calc_pos_1,
50724         check_subexp_matching_top): Likewise.
50725
50726         * lib/regcomp.c (optimize_subexps, lower_subexp):
50727         Use CHAR_BIT rather than 8, for clarity.
50728         * lib/regexec.c (check_dst_limits_calc_pos_1):
50729         (check_subexp_matching_top): Likewise.
50730         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50731         have to worry about portability issues when shifting it left.
50732         Remove no-longer-needed test for table_size > 0.
50733         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50734         in a word, as the resulting behavior is undefined.
50735         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50736         in one case, a <= should have been an <, and in another case the
50737         whole test was missing.
50738         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50739         the standard name CHAR_BIT.
50740         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50741         this is not true on one's complement and signed-magnitude hosts.
50742
50743         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50744         next_last_offset.
50745         (struct re_dfa_t): Remove unused member states_alloc.
50746         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50747
50748 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50749
50750         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50751         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50752         and large-file glibc and in 32-bit large-file Solaris.
50753
50754 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50755
50756         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50757         lengths fit in regoff_t; this isn't true if regoff_t is the same
50758         width as size_t.
50759         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50760         (= START + RANGE) instead of RANGE.  This avoids overflow
50761         problems when regoff_t is the same width as size_t.
50762         All callers changed.
50763         (re_search_2_stub): Check for overflow when adding the
50764         sizes of the two strings.
50765         (re_search_stub): Check for overflow when adding START
50766         to RANGE; if it occurs, substitute the extreme value.
50767
50768 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50769
50770         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50771
50772 2005-08-31  Jim Meyering  <jim@meyering.net>
50773
50774         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50775         a pointer-to-const.
50776         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50777         (register_state): Likewise.
50778         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50779         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50780         (group_nodes_into_DFAstates): Likewise.
50781
50782 2005-08-31  Jim Meyering  <jim@meyering.net>
50783
50784         * check-module: Add a FIXME comment.
50785
50786 2005-08-31  Eric Blake  <ebb9@byu.net>
50787
50788         * modules/unistd-safer (Files): Add unistd--.h.
50789         * modules/stdio-safer (Files): Add stdio--.h.
50790
50791 2005-08-31  Derek Price  <derek@ximbiot.com>
50792
50793         * lib/getdelim.c (getdelim): Return EOF on EOF.
50794         Reported by Larry Jones <lawrence.jones@ugs.com>.
50795
50796 2005-08-31  Bruno Haible  <bruno@clisp.org>
50797
50798         Avoid unnecessary diffs in the generated lib/Makefile.am.
50799         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50800         the generated files.
50801         (func_import): Don't set cmd.
50802
50803 2005-08-31  Bruno Haible  <bruno@clisp.org>
50804
50805         * lib/strstr.c: Include <stddef.h>, for NULL.
50806         * lib/strcasestr.c: Likewise.
50807         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50808
50809 2005-08-31  Bruno Haible  <bruno@clisp.org>
50810
50811         * gnulib-tool: New option --macro-prefix.
50812         (func_import): Use macro_prefix.
50813         (import): Handle option --macro-prefix.
50814
50815 2005-08-31  Bruno Haible  <bruno@clisp.org>
50816
50817         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50818         Also use new variables cached_lgpl, cached_libtool.
50819
50820 2005-08-31  Bruno Haible  <bruno@clisp.org>
50821
50822         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50823         always instantiating them.
50824
50825 2005-08-31  Bruno Haible  <bruno@clisp.org>
50826
50827         * gnulib-tool (func_import): Read the previous cached settings
50828         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50829         earlier added by gnulib but are now dropped. Warn when a gnulib file
50830         overwrites a non-gnulib file.
50831
50832 2005-08-31  Bruno Haible  <bruno@clisp.org>
50833
50834         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50835         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50836         projects that don't keep autogenerated files in CVS. Put into
50837         actioncmd only the specified modules, not the transitive closure.
50838
50839 2005-08-31  Bruno Haible  <bruno@clisp.org>
50840
50841         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50842         Create directories that shall be filled.
50843         (import): Don't look for gl_* macros in configure.ac. Recurse across
50844         all directories containing a gnulib-cache.m4 files, if meaningful.
50845
50846 2005-08-31  Bruno Haible  <bruno@clisp.org>
50847
50848         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50849         (import): Set seen_libtool when we see gl_LIBTOOL.
50850
50851 2005-08-31  Bruno Haible  <bruno@clisp.org>
50852
50853         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50854         declaration macro definitions from generated gnulib.m4.
50855
50856 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50857
50858         * lib/iconvme.h: Add prototype for iconv_alloc.
50859
50860 2005-08-29  Simon Josefsson  <jas@extundo.com>
50861
50862         * lib/iconvme.c: Fix errno.
50863
50864 2005-08-29  Bruno Haible  <bruno@clisp.org>
50865
50866         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50867         that it works when the directory contains spaces.
50868
50869 2005-08-29  Bruno Haible  <bruno@clisp.org>
50870
50871         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50872
50873 2005-08-29  Bruno Haible  <bruno@clisp.org>
50874
50875         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50876         Emit more advice.
50877
50878 2005-08-29  Bruno Haible  <bruno@clisp.org>
50879         and Stepan Kasal  <kasal@ucw.cz>
50880
50881         * check-module: If more parameters are given, check each of them
50882         separately; add more exceptions, as noted by Jim Meyering.
50883         (check_module): New procedure.
50884         (%exempt_header): Now contains all exceptions.
50885
50886 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50887
50888         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50889
50890 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50891
50892         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50893
50894 2005-08-28  Bruno Haible  <bruno@clisp.org>
50895
50896         * m4/gnulib-tool.m4: New file.
50897
50898 2005-08-27  Jim Meyering  <jim@meyering.net>
50899
50900         * modules/unistd-safer (Files): Add pipe-safer.c.
50901         * modules/fcntl-safer (Files): Add creat-safer.c.
50902
50903 2005-08-27  Jim Meyering  <jim@meyering.net>
50904
50905         * m4/stdlib-safer.m4: New file.  From coreutils.
50906         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50907         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50908         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50909         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50910         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50911
50912 2005-08-27  Jim Meyering  <jim@meyering.net>
50913
50914         * lib/fopen-safer.c: Merge minor changes from coreutils.
50915         * lib/dup-safer.c: Likewise.
50916         * lib/fd-safer.c: Likewise.
50917
50918         Merge from coreutils.
50919         * lib/stdio--.h: New file.
50920         * lib/stdlib--.h: New file.
50921         * lib/mkstemp-safer.c: New file.
50922
50923         GNU tar needs these.
50924         * lib/pipe-safer.c: New file.
50925         * lib/creat-safer.c: New file.
50926         * lib/fcntl--.h (creat): Define to creat_safer.
50927         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50928         * lib/unistd--.h (pipe): Define to pipe_safer.
50929         * lib/unistd-safer.h: Declare pipe_safer.
50930
50931 2005-08-26  Simon Josefsson  <jas@extundo.com>
50932
50933         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50934         Haible <bruno@clisp.org>.
50935
50936 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
50937
50938         * lib/regex_internal.h: Remove all references to
50939         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50940         or better.
50941         (bitset_not, bitset_merge, bitset_not_merge):
50942         (bitset_mask, re_string_allocate, re_string_construct):
50943         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50944         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50945         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50946         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50947         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50948         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50949         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50950         (re_acquire_state_context):
50951         Remove unnecessary forward decls.
50952         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50953         Put __attribute at function definition,
50954         now that the function decl has been removed.
50955         * lib/regex_internal.c (re_string_peek_byte_case):
50956         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50957         Likewise.
50958
50959 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50960
50961         * m4/regex.m4: Add AC_PREREQ(2.50).
50962         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50963
50964 2005-08-25  Simon Josefsson  <jas@extundo.com>
50965
50966         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50967         __fsetlocking.
50968
50969 2005-08-25  Simon Josefsson  <jas@extundo.com>
50970
50971         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
50972         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
50973         GLIBC specific code.
50974
50975 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50976
50977         Make regex safe for g++.  This fixes one real bug (an "err"
50978         that should have been "*err").  g++ problem reported by
50979         Sam Steingold.
50980         * lib/regex_internal.h (re_calloc): New macro, consistent with
50981         re_malloc etc.  All callers of calloc changed to use re_calloc.
50982         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50983         not int.  All callers changed.
50984         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50985         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50986         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50987         (find_recover_state): Change "err" to "*err"; this fixes what
50988         appears to be a real bug.
50989         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50990         versus int.
50991
50992 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50993
50994         * modules/regex (Depends-on): Add malloc, since the code
50995         assumes that !malloc(0) means failure.
50996
50997 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50998
50999         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
51000
51001         alloca modernization/simplification for regex.
51002         * lib/regex.c: Remove portability cruft for alloca.  This no longer
51003         needs to be at the start of the file, and can be moved into
51004         regex_internal.h and simplified.
51005         * lib/regex_internal.h: Include <alloca.h>.
51006         (__libc_use_alloca) [!defined _LIBC]: New macro.
51007         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
51008         now works outside glibc.
51009
51010 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51011
51012         * config/srclist.txt: Add glibc bugs 1241, 1245.
51013
51014 2005-08-25  Jim Meyering  <jim@meyering.net>
51015
51016         * lib/open-safer.c: Include <config.h>.
51017         Otherwise, we'd lose LARGEFILE support in any file using
51018         e.g. "fcntl--.h"
51019
51020 2005-08-25  Bruno Haible  <bruno@clisp.org>
51021
51022         * m4/minmax.m4: Require autoconf 2.52.
51023         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51024         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51025         alternatives of translit over the alphabet.
51026         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51027
51028 2005-08-24  Simon Josefsson  <jas@extundo.com>
51029
51030         * tests/test-getpass.c: New file.
51031
51032 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51033
51034         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51035         for GNU regex features.
51036
51037 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51038
51039         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51040         * lib/regex.h (regerror): Likewise.
51041
51042         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51043         requires this.  (The code never needed it.)
51044
51045         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51046         All uses of recently-renamed identifiers changed to use the new,
51047         POSIX-compliant names.  The code will build and run just fine
51048         without these changes, but it's better to eat our own dog food
51049         and use the standard-conforming names.
51050
51051         * lib/regex.h: Fix a multitude of POSIX name space violations.
51052         These changes have an effect only for programs that define
51053         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51054         do not change anything for programs compiled in the normal way.
51055         Also, there is no effect on the ABI.
51056
51057         (_REGEX_SOURCE): New macro.
51058         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51059         defined and _GNU_SOURCE is not; this fixes a name space violation.
51060
51061         Rename the following macros to obey POSIX requirements.
51062         The old names are still visible as macros if _REGEX_SOURCE is defined.
51063         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51064         RE_BACKSLASH_ESCAPE_IN_LISTS.
51065         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51066         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51067         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51068         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51069         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51070         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51071         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51072         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51073         (REG_INTERVALS): renamed from RE_INTERVALS.
51074         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51075         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51076         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51077         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51078         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51079         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51080         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51081         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51082         RE_UNMATCHED_RIGHT_PAREN_ORD.
51083         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51084         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51085         (REG_DEBUG): renamed from RE_DEBUG.
51086         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51087         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51088         unusual, since we can't clash with the POSIX REG_ICASE.
51089         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51090         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51091         (REG_NO_SUB): renamed from RE_NO_SUB.
51092         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51093         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51094         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51095         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51096         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51097         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51098         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51099         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51100         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51101         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51102         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51103         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51104         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51105         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51106         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51107         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51108         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51109         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51110         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51111         (REG_FIXED): Renamed from REGS_FIXED.
51112         (REG_NREGS): Renamed from RE_NREGS.
51113
51114         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51115         of other REG_* macros, since POSIX says the user is allowed to
51116         #undef these macros selectively.
51117
51118         (reg_errcode_t): Update comment stating what other tables need
51119         to be consistent.
51120
51121         Rename the following enum values to obey POSIX requirements.
51122         The old names are still visible as macros.
51123         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51124         is not defined, since GNU is supposed to be a superset of POSIX as
51125         much as possible, and since we want reg_errcode_t to be a signed
51126         type for implementation consistency.
51127         (_REG_NOERROR): Renamed from REG_NOERROR.
51128         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51129         (_REG_BADPAT): Renamed from REG_BADPAT.
51130         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51131         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51132         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51133         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51134         (_REG_EBRACK): Renamed from REG_EBRACK.
51135         (_REG_EPAREN): Renamed from REG_EPAREN.
51136         (_REG_EBRACE): Renamed from REG_EBRACE.
51137         (_REG_BADBR): Renamed from REG_BADBR.
51138         (_REG_ERANGE): Renamed from REG_ERANGE.
51139         (_REG_ESPACE): Renamed from REG_ESPACE.
51140         (_REG_BADRPT): Renamed from REG_BADRPT.
51141         (_REG_EEND): Renamed from REG_EEND.
51142         (_REG_ESIZE): Renamed from REG_ESIZE.
51143         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51144         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51145         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51146         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51147         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51148
51149         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51150         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51151         changed.  But support the old name if the new one is not defined
51152         and if _REGEX_SOURCE.
51153
51154         Change the following member names in struct re_pattern_buffer.
51155         The old names are still supported if !_REGEX_SOURCE.
51156         The new names are always supported, regardless of _REGEX_SOURCE.
51157         (re_buffer): Renamed from buffer.
51158         (re_allocated): Renamed from allocated.
51159         (re_used): Renamed from used.
51160         (re_syntax): Renamed from syntax.
51161         (re_fastmap): Renamed from fastmap.
51162         (re_translate): Renamed from translate.
51163         (re_can_be_null): Renamed from can_be_null.
51164         (re_regs_allocated): Renamed from regs_allocated.
51165         (re_fastmap_accurate): Renamed from fastmap_accurate.
51166         (re_no_sub): Renamed from no_sub.
51167         (re_not_bol): Renamed from not_bol.
51168         (re_not_eol): Renamed from not_eol.
51169         (re_newline_anchor): Renamed from newline_anchor.
51170
51171         Change the following member names in struct re_registers.
51172         The old names are still supported if !_REGEX_SOURCE.
51173         The new names are always supported, regardless of _REGEX_SOURCE.
51174         (rm_num_regs): Renamed from num_regs.
51175         (rm_start): Renamed from start.
51176         (rm_end): Renamed from end.
51177
51178         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51179         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51180         Prepend __ to parameter names.
51181
51182         Undo yesterday's changes.
51183
51184 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51185
51186         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51187         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51188         lib/regex.c.
51189
51190 2005-08-24  Jim Meyering  <jim@meyering.net>
51191
51192         Sync from coreutils.
51193         * m4/fcntl-safer.m4: New file.
51194
51195         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51196         and object files for this module.
51197
51198 2005-08-24  Jim Meyering  <jim@meyering.net>
51199
51200         Sync from coreutils.
51201         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51202
51203 2005-08-24  Jim Meyering  <jim@meyering.net>
51204
51205         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51206         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51207
51208 2005-08-24  Jim Meyering  <jim@meyering.net>
51209
51210         * modules/fcntl-safer: New module.
51211         * modules/fts (Depends-on): Add fcntl-safer.
51212         * MODULES.html.sh (File descriptor based Input/Output):
51213         Add fcntl-safer.
51214
51215 2005-08-24  Bruno Haible  <bruno@clisp.org>
51216
51217         Support for unit test modules.
51218         * modules/README: Mention tests modules.
51219         * modules/TEMPLATE-TESTS: New file.
51220         * gnulib-tool: New options --extract-tests-module, --with-tests and
51221         --tests-base (unused for the moment).
51222         (testsbase, inctests): New variables.
51223         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51224         (func_verify_module): Exclude TEMPLATE-TESTS.
51225         (func_verify_nontests_module, func_verify_tests_module): New functions.
51226         (func_get_dependencies): Add implicit dependency for tests modules.
51227         (func_get_tests_module): New function.
51228         (func_modules_transitive_closure): When --with-tests was specified,
51229         include the unit tests as well, unless explicitly avoided.
51230         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51231         (func_emit_tests_Makefile_am): New function.
51232         (func_create_testdir): When --with-tests was specified, emit a
51233         tests/ directory.
51234         * MODULES.html.sh (Future developments): Update.
51235
51236 2005-08-24  Bruno Haible  <bruno@clisp.org>
51237
51238         * modules/tls-tests: New file.
51239         * tests/test-tls.c: New file, from GNU gettext.
51240
51241 2005-08-24  Bruno Haible  <bruno@clisp.org>
51242
51243         * modules/lock-tests: New file.
51244         * tests/test-lock.c: New file, from GNU gettext.
51245
51246 2005-08-24  Bruno Haible  <bruno@clisp.org>
51247
51248         * lib/lock.h: Add multiple inclusion guard.
51249         * lib/tls.h: Add multiple inclusion guard.
51250
51251 2005-08-24  Bruno Haible  <bruno@clisp.org>
51252
51253         * gnulib-tool: Add support for the --aux-dir option to
51254         --create-testdir, --create-megatestdir, --test, --megatest.
51255         (func_create_testdir, func_create_megatestdir): Optionally emit a
51256         AC_CONFIG_AUX_DIR directive.
51257         (create-testdir, create-megatestdir, test, megatest): Provide a
51258         default value for $auxdir.
51259
51260 2005-08-24  Bruno Haible  <bruno@clisp.org>
51261
51262         * gnulib-tool (import): Use compound statement instead of subshell
51263         where possible.
51264
51265 2005-08-24  Bruno Haible  <bruno@clisp.org>
51266
51267         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51268
51269 2005-08-24  Bruno Haible  <bruno@clisp.org>
51270
51271         * gnulib-tool (func_version): Update.
51272
51273 2005-08-24  Bruno Haible  <bruno@clisp.org>
51274
51275         * gnulib-tool (func_import, func_create_testdir,
51276         func_create_megatestdir): Quote all autoconf macro arguments.
51277
51278 2005-08-24  Bruno Haible  <bruno@clisp.org>
51279
51280         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51281         option --force, because --force causes the aclocal.m4 of each
51282         subdirectory to be newer than the corresponding config.h.in.
51283
51284 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51285
51286         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51287         All contents moved to gl_REGEX.
51288         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51289         assume that it does.
51290
51291 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51292
51293         * lib/regex.h (REG_NOSYS)
51294         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51295         Define, since POSIX requires it as of 2001.
51296         (_REG_ENOSYS)
51297         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51298         New private symbol, used to keep the enum signed in all cases.
51299         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51300         Youngman in
51301         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51302
51303         * lib/regex_internal.c (re_string_skip_chars, register_state):
51304         (calc_state_hash):
51305         Remove forward decls; no longer needed now that we use prototypes.
51306         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51307         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51308         (clean_state_log_if_needed): Likewise.
51309
51310 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51311
51312         * config/srclist.txt: Add glibc bugs 1231-1233.
51313
51314 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51315
51316         Fix problems reported by Sam Steingold in
51317         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51318         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51319         assumed that reg_errcode_t is a signed type, which is not
51320         necessarily true if _XOPEN_SOURCE is not defined.
51321         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51322         since some compilers warn about it otherwise.
51323
51324 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51325
51326         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51327         (init_word_char, create_initial_state, duplicate_node_closure):
51328         (fetch_token, peek_token_bracket, build_range_exp):
51329         (build_collating_symbol): Remove forward decls; no longer needed
51330         now that we use prototypes.
51331
51332         * lib/regcomp.c:
51333         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51334         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51335         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51336         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51337         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51338         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51339         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51340         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51341         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51342         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51343         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51344         (build_charclass, build_charclass_op, fetch_number, create_tree):
51345         (create_token_tree, mark_opt_subexp, duplicate_tree):
51346         Use prototypes rather than old-style definitions.
51347
51348         * lib/regex_internal.c:
51349         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51350         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51351         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51352         (re_string_reconstruct, re_string_peek_byte_case):
51353         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51354         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51355         (re_node_set_init_copy, re_node_set_add_intersect):
51356         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51357         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51358         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51359         (re_acquire_state, re_acquire_state_context, register_state):
51360         (create_ci_newstate, create_cd_newstate, free_state):
51361         Likewise.
51362         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51363         re_search_2):
51364         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51365         (re_search_internal, prune_impossible_nodes):
51366         (acquire_init_state_context, check_matching, static):
51367         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51368         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51369         (update_regs, sift_states_backward, build_sifted_states):
51370         (clean_state_log_if_needed, merge_state_array):
51371         (update_cur_sifted_state, add_epsilon_src_nodes):
51372         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51373         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51374         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51375         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51376         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51377         (check_arrival, check_arrival_add_next_nodes):
51378         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51379         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51380         (check_node_accept_bytes, check_node_accept, extend_buffers):
51381         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51382         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51383         (sift_ctx_init):
51384         Likewise.
51385
51386         * lib/regex_internal.h:
51387         (re_string_allocate, re_string_construct, re_string_reconstruct):
51388         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51389         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51390         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51391         (re_string_context_at, re_string_peek_byte_case):
51392         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51393         is defined, since we now use prototypes always.
51394
51395         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51396         C89 or better.  All uses removed.
51397
51398 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51399
51400         * config/srclist.txt: Add glibc bugs 1220-1227.
51401
51402 2005-08-20  Jim Meyering  <jim@meyering.net>
51403
51404         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51405         of unused local, dfa.
51406
51407 2005-08-20  Bruno Haible  <bruno@clisp.org>
51408
51409         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51410
51411 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51412
51413         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51414         (re_node_set_insert_last, re_dfa_add_node):
51415         Rename local variables to avoid GCC shadowing warnings.
51416
51417 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51418
51419         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51420         [defined lint]: Suppress bogus uninitialized-variable warnings.
51421
51422         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51423         and let the caller return REG_ESPACE if out of space.  This
51424         removes an uninitialied-variable warning with GCC 4.0.1, and also
51425         avoids taking the address of a local variable.  All callers
51426         changed.
51427
51428 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51429
51430         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51431         $LIBCSRC/posix/regexec.c.
51432         Add glibc bug 1217 for regcomp.c.
51433
51434 2005-08-19  Jim Meyering  <jim@meyering.net>
51435
51436         * lib/regexec.c (proceed_next_node): Redo local variables to
51437         avoid GCC shadowing warnings.
51438
51439 2005-08-18  Bruno Haible  <bruno@clisp.org>
51440
51441         * lib/strstr.c (strstr): Fix return value in multibyte case.
51442         * lib/strcasestr.c (strcasestr): Likewise.
51443
51444 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51445
51446         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51447
51448 2005-08-17  Jim Meyering  <jim@meyering.net>
51449
51450         Make the %s format (seconds since the epoch) work for a negative
51451         number and when used with a zero-padded field width, e.g. %015s.
51452
51453         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51454         label so that it precedes the code to set `digits'.  Otherwise,
51455         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51456         print `00-22'.  Now, it prints `-0022', as it should.
51457
51458 2005-08-17  Bruno Haible  <bruno@clisp.org>
51459
51460         * modules/strstr (Files): Add m4/mbrtowc.m4.
51461         (Depends-on): Add mbuiter.
51462
51463 2005-08-17  Bruno Haible  <bruno@clisp.org>
51464
51465         * modules/strcasestr: New file.
51466         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51467         strcasestr.
51468
51469 2005-08-17  Bruno Haible  <bruno@clisp.org>
51470
51471         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51472
51473 2005-08-17  Bruno Haible  <bruno@clisp.org>
51474
51475         * modules/mbuiter: New file.
51476         * MODULES.html.sh (Extended multibyte and wide character utilities):
51477         Add mbuiter.
51478
51479 2005-08-17  Bruno Haible  <bruno@clisp.org>
51480
51481         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51482         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51483
51484 2005-08-17  Bruno Haible  <bruno@clisp.org>
51485
51486         * m4/strcasestr.m4: New file.
51487
51488 2005-08-17  Bruno Haible  <bruno@clisp.org>
51489
51490         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51491         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51492
51493 2005-08-17  Bruno Haible  <bruno@clisp.org>
51494
51495         * lib/strcasestr.h: New file.
51496         * lib/strcasestr.c: New file.
51497
51498 2005-08-17  Bruno Haible  <bruno@clisp.org>
51499
51500         * lib/strcasecmp.c: Use mbuiter.h.
51501
51502 2005-08-17  Bruno Haible  <bruno@clisp.org>
51503
51504         * lib/mbuiter.h: New file.
51505
51506 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51507
51508         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51509         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51510         and gl_GETOPT are both invoked via different paths (as happens
51511         with GNU tar CVS because it uses both argp and getopt), the former
51512         wins.
51513
51514 2005-08-16  Bruno Haible  <bruno@clisp.org>
51515
51516         * modules/tls: New file.
51517         * MODULES.html.sh (Multithreading): Add tls.
51518
51519 2005-08-16  Bruno Haible  <bruno@clisp.org>
51520
51521         * modules/strnlen1: New file.
51522         * MODULES.html.sh (String handling): Add strnlen1.
51523
51524 2005-08-16  Bruno Haible  <bruno@clisp.org>
51525
51526         * modules/strcase (Files): Add m4/mbrtowc.m4.
51527         (Depends-on): Add strnlen1, mbchar.
51528
51529 2005-08-16  Bruno Haible  <bruno@clisp.org>
51530
51531         * modules/mbiter: New file.
51532         * MODULES.html.sh (Extended multibyte and wide character utilities):
51533         Add mbiter.
51534
51535 2005-08-16  Bruno Haible  <bruno@clisp.org>
51536
51537         * modules/mbfile: New file.
51538         * MODULES.html.sh (Extended multibyte and wide character utilities):
51539         Add mbfile.
51540
51541 2005-08-16  Bruno Haible  <bruno@clisp.org>
51542
51543         * modules/mbchar: New file.
51544         * MODULES.html.sh (Extended multibyte and wide character utilities):
51545         New section.
51546
51547 2005-08-16  Bruno Haible  <bruno@clisp.org>
51548
51549         * m4/tls.m4: New file, from GNU gettext.
51550
51551 2005-08-16  Bruno Haible  <bruno@clisp.org>
51552
51553         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51554         always.
51555         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51556
51557 2005-08-16  Bruno Haible  <bruno@clisp.org>
51558
51559         * m4/mbiter.m4: New file.
51560
51561 2005-08-16  Bruno Haible  <bruno@clisp.org>
51562
51563         * m4/mbfile.m4: New file.
51564
51565 2005-08-16  Bruno Haible  <bruno@clisp.org>
51566
51567         * m4/mbchar.m4: New file.
51568
51569 2005-08-16  Bruno Haible  <bruno@clisp.org>
51570
51571         * lib/tls.h: New file, from GNU gettext.
51572         * lib/tls.c: New file, from GNU gettext.
51573
51574 2005-08-16  Bruno Haible  <bruno@clisp.org>
51575
51576         * lib/strnlen1.h: New file.
51577         * lib/strnlen1.c: New file.
51578
51579 2005-08-16  Bruno Haible  <bruno@clisp.org>
51580
51581         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51582         (mbi_init): Update.
51583         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51584         NUL byte, not after it.
51585
51586 2005-08-16  Bruno Haible  <bruno@clisp.org>
51587
51588         * lib/strcase.h (strcasecmp): Add note in comments.
51589         * lib/strncasecmp.c: Use code from strcasecmp.c.
51590         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51591         (strcasecmp): Work correctly in multibyte locales.
51592
51593 2005-08-16  Bruno Haible  <bruno@clisp.org>
51594
51595         * lib/mbiter.h: New file.
51596
51597 2005-08-16  Bruno Haible  <bruno@clisp.org>
51598
51599         * lib/mbfile.h: New file.
51600
51601 2005-08-16  Bruno Haible  <bruno@clisp.org>
51602
51603         * lib/mbchar.h: New file.
51604         * lib/mbchar.c: New file.
51605
51606 2005-08-16  Bruno Haible  <bruno@clisp.org>
51607
51608         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51609         the valid ones. Makes the comparison operations transitive:
51610         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51611         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51612
51613 2005-08-15  Simon Josefsson  <jas@extundo.com>
51614
51615         * modules/ssize_t (License): Change to 'unlimited'.
51616
51617         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51618
51619 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51620
51621         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51622         Add comments for each pending glibc patch.
51623
51624 2005-08-15  Bruno Haible  <bruno@clisp.org>
51625
51626         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51627         __cplusplus is defined.
51628
51629 2005-08-14  Jim Meyering  <jim@meyering.net>
51630
51631         Sync from coreutils.
51632
51633         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51634         Use the hash-table-based cycle-detection code not just when
51635         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51636         Reported by James Youngman in
51637         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51638         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51639         FTS_TIGHT_CYCLE_CHECK.
51640         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51641         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51642         once again.
51643         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51644         * lib/fts.c (fd_safer): Remove decl.
51645         Include fcntl--.h rather than unistd-safer.h
51646         (fts_safe_changedir): Don't call fd_safer; no longer needed
51647         now that we include fcntl--.h.
51648
51649 2005-08-12  Simon Josefsson  <jas@extundo.com>
51650
51651         * modules/getndelim2: Use ssize_t module.
51652         * modules/getnline: Likewise.
51653         * modules/safe-read: Likewise.
51654         * modules/xreadlink: Likewise.
51655
51656         * modules/ssize_t: New file.
51657
51658 2005-08-12  Simon Josefsson  <jas@extundo.com>
51659
51660         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51661
51662 2005-08-12  Simon Josefsson  <jas@extundo.com>
51663
51664         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51665         ssize_t.
51666
51667 2005-08-12  Simon Josefsson  <jas@extundo.com>
51668
51669         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51670         readline, getdelim and check_version.
51671         (Support for systems lacking ISO C 99: Sizes of integer types):
51672         Add size_max.
51673
51674 2005-08-12  Bruno Haible  <bruno@clisp.org>
51675
51676         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51677
51678 2005-08-11  Simon Josefsson  <jas@extundo.com>
51679
51680         * modules/readline: New file.
51681
51682         * modules/strnlen (Files): Add strnlen.h.
51683
51684 2005-08-11  Simon Josefsson  <jas@extundo.com>
51685
51686         * m4/readline.m4: New file.
51687
51688 2005-08-11  Simon Josefsson  <jas@extundo.com>
51689
51690         * lib/readline.h, readline.c: New file.
51691
51692 2005-08-11  Simon Josefsson  <jas@extundo.com>
51693
51694         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51695         gl_AVOID.
51696
51697 2005-08-11  Bruno Haible  <bruno@clisp.org>
51698
51699         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51700
51701 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51702
51703         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51704
51705 2005-08-10  Simon Josefsson  <jas@extundo.com>
51706
51707         * tests/test-iconvme.c: New file.
51708
51709 2005-08-10  Simon Josefsson  <jas@extundo.com>
51710
51711         * m4/strnlen.m4: New file.
51712
51713         * m4/strndup.m4: Don't check for strnlen declaration, done in
51714         strnlen.m4.
51715
51716 2005-08-10  Simon Josefsson  <jas@extundo.com>
51717
51718         * lib/strndup.c: Use strnlen.h.
51719
51720         * lib/strnlen.h: New file.
51721
51722 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51723
51724         * README: Typos.
51725
51726 2005-08-02  Simon Josefsson  <jas@extundo.com>
51727
51728         * modules/readline: New file.
51729
51730 2005-08-02  Simon Josefsson  <jas@extundo.com>
51731
51732         * modules/getdelim: New file.
51733
51734         * modules/getline: Rewrite, don't use getndelim2.
51735
51736 2005-08-02  Simon Josefsson  <jas@extundo.com>
51737
51738         * m4/getline.m4: Separate out getdelim stuff into separate module.
51739
51740         * m4/getdelim.m4: New file.
51741
51742 2005-08-02  Simon Josefsson  <jas@extundo.com>
51743
51744         * lib/getline.h, getline.c: Rewrite.
51745
51746         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51747
51748 2005-07-31  Bruno Haible  <bruno@clisp.org>
51749
51750         * lib/lock.h (gl_lock_initializer): New macro.
51751         (gl_lock_define_initialized): Use it.
51752         (gl_rwlock_initializer): New macro.
51753         (gl_rwlock_define_initialized): Use it.
51754         (gl_recursive_lock_initializer): New macro.
51755         (gl_recursive_lock_define_initialized): Use it.
51756
51757 2005-07-30  Karl Berry  <karl@gnu.org>
51758
51759         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51760         Report from Ben Pfaff, regarding getopt.
51761
51762 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51763
51764         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51765         normal way.
51766         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51767         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51768         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51769         (gl_GETOPT): Use the new macros.  Most of the implementation
51770         is moved to the new macros.  This is for programs like Emacs
51771         that don't want all the functionality of gl_GETOPT.
51772
51773 2005-07-26  Bruno Haible  <bruno@clisp.org>
51774
51775         * m4/lock.m4: Update from GNU gettext.
51776
51777 2005-07-26  Bruno Haible  <bruno@clisp.org>
51778
51779         * lib/lock.h: Update from GNU gettext.
51780         * lib/lock.c: Update from GNU gettext.
51781
51782 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51783
51784         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51785         obsolescent AC_TRY_RUN.  Include the default includes files, for
51786         'exit'.
51787
51788 2005-07-24  Bruno Haible  <bruno@clisp.org>
51789
51790         * modules/visibility: New file.
51791         * MODULES.html.sh (Misc): Add visibility.
51792
51793 2005-07-24  Bruno Haible  <bruno@clisp.org>
51794
51795         * m4/visibility.m4: New file.
51796
51797 2005-07-24  Bruno Haible  <bruno@clisp.org>
51798
51799         * doc/visibility.texi: New file.
51800
51801 2005-07-22  Bruno Haible  <bruno@clisp.org>
51802
51803         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51804         $(ALLOCA_H), redundant through BUILT_SOURCES.
51805         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51806         redundant through BUILT_SOURCES.
51807         * modules/byteswap (Makefile.am): Remove explicit dependency on
51808         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51809         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51810         $(FNMATCH_H), redundant through BUILT_SOURCES.
51811         * modules/getopt (Makefile.am): Remove explicit dependency on
51812         $(GETOPT_H), redundant through BUILT_SOURCES.
51813         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51814         redundant through BUILT_SOURCES.
51815         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51816         redundant through BUILT_SOURCES.
51817         * modules/stdbool (Makefile.am): Remove explicit dependency on
51818         $(STDBOOL_H), redundant through BUILT_SOURCES.
51819         * modules/stdint (Makefile.am): Remove explicit dependency on
51820         $(STDINT_H), redundant through BUILT_SOURCES.
51821         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51822         Remove explicit dependency on $(SYSEXITS_H).
51823         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51824
51825 2005-07-18  Simon Josefsson  <jas@extundo.com>
51826
51827         * lib/check-version.c (check_version): Accept identical versions too.
51828
51829 2005-07-18  Bruno Haible  <bruno@clisp.org>
51830
51831         * modules/lock: New file.
51832         * MODULES.html.sh (Multithreading): New section.
51833
51834 2005-07-18  Bruno Haible  <bruno@clisp.org>
51835
51836         * m4/lock.m4: New file, from GNU gettext.
51837
51838 2005-07-18  Bruno Haible  <bruno@clisp.org>
51839
51840         * lib/lock.h: New file, from GNU gettext.
51841         * lib/lock.c: New file, from GNU gettext.
51842
51843 2005-07-18  Bruno Haible  <bruno@clisp.org>
51844
51845         * lib/lock.h (gl_once_t): New type.
51846         (gl_once_define, gl_once): New macros.
51847         * lib/lock.c (fresh_once): New variable.
51848         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51849         functions.
51850
51851 2005-07-16  Simon Josefsson  <jas@extundo.com>
51852
51853         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51854         workaround, suggested by Bruno.
51855
51856 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51857
51858         * modules/xalloc (Depends-on): Add xalloc-die.
51859         * modules/xvasprintf (Depends-on): Add xalloc-die.
51860
51861 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51862
51863         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51864         with a minor change.
51865
51866 2005-07-15  Bruno Haible  <bruno@clisp.org>
51867
51868         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51869         When using lib/poll.c, define poll as rpl_poll.
51870
51871 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51872
51873         * modules/argp (Depends-on): Remove unlocked-io.
51874
51875 2005-07-14  Derek Price  <derek@ximbiot.com>
51876
51877         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51878         for glob symlink bug.
51879
51880 2005-07-14  Bruno Haible  <bruno@clisp.org>
51881
51882         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51883         Instead, test for *_unlocked function declarations directly.
51884
51885 2005-07-11  Simon Josefsson  <jas@extundo.com>
51886
51887         * modules/size_max: New file.
51888
51889         * modules/xsize: Depend on size_max module for size_max.m4.
51890
51891 2005-07-11  Simon Josefsson  <jas@extundo.com>
51892
51893         * lib/size_max.h: New file.
51894
51895 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51896
51897         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51898         copyright symbol and the year.
51899         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51900         (version_etc_va): Use parameterized copyright notice.
51901         Reword to conform to the current GNU coding standards.
51902
51903 2005-07-11  Karl Berry  <karl@gnu.org>
51904
51905         * doc/gnulib.texi (Quoting): new node.
51906         (Initial import): more info, from Patrice.
51907
51908 2005-07-11  Bruno Haible  <bruno@clisp.org>
51909
51910         * gnulib-tool (func_usage): Document option --avoid.
51911         (Command line options): Handle --avoid.
51912         (func_acceptable): New function.
51913         (func_modules_transitive_closure): Use it.
51914
51915 2005-07-11  Bruno Haible  <bruno@clisp.org>
51916
51917         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51918         Reported by Jim Meyering.
51919
51920 2005-07-10  Bruno Haible  <bruno@clisp.org>
51921
51922         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51923         Needed when size_t is smaller than 'unsigned int'.
51924         Reported by Paul Eggert.
51925
51926 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51927
51928         * modules/argp (Depends-on): Add unlocked-io
51929
51930 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51931
51932         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51933         block of defines.
51934
51935 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51936
51937         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51938         fix now.
51939
51940 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51941         and Paul Eggert  <eggert@cs.ucla.edu>
51942
51943         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51944         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51945
51946 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51947
51948         * modules/regex (Files): Add lib/regex_internal.c,
51949         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51950         (Depends-on): Add extensions.
51951         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51952
51953 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51954
51955         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51956         pathconf.
51957         * m4/same.m4 (gl_SAME): Likewise.
51958         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51959
51960         * m4/regex.m4: Adjust to new libc regex implementation.
51961         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51962         all the .c and .h parts of (the new) regex.
51963         Quote the m4 stuff better.
51964         Check for RE_ICASE bug of old gnulib.
51965         Check for REG_STARTEND of recent libc.
51966         Rename local variables from jm_* to gl_*.
51967         Quote operand of "test -f".
51968         Say "recent enough" version of libc, not "version 2".
51969         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51970         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
51971         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51972         Remove check for btowc, isascii.
51973         Require AM_LANGINFO_CODESET.
51974
51975 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51976
51977         * lib/regex.c, regex.h: Sync from libc.
51978         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51979         * lib/regexec.c:
51980         New files, synced from libc, except that regex_internal.h
51981         currently has a small porting fix.
51982
51983 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51984
51985         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51986         regex_internal.c, regexec.c.
51987         Add regex_internal.h too, but as a comment, since the libc version
51988         is currently broken in gnulib mode.
51989
51990 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51991
51992         Support programs like Emacs that use gnulib but not gettext.
51993         * MODULES.html.sh (Internationalization functions): Add gettext-h.
51994         * modules/gettext-h: New file.
51995         * modules/gettext (Files): Remove lib/gettext.h.
51996         (Depends-on): Add gettext-h.
51997         (Makefile.am): Remove lib_SOURCES.
51998         * modules/argmatch, modules/c-stack, modules/closeout:
51999         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
52000         * modules/execute, modules/file-type, modules/getaddrinfo:
52001         * modules/getopt, modules/human, modules/javacomp:
52002         * modules/javaexec, modules/mkdir-p, modules/obstack:
52003         * modules/openat, modules/pagealign_alloc, modules/pipe:
52004         * modules/quotearg, modules/regex, modules/rpmatch:
52005         * modules/unicodeio, modules/userspec, modules/version-etc:
52006         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
52007         * modules/xsetenv:
52008         Depend on gettext-h, not gettext.
52009
52010 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52011
52012         * gnulib-tool (func_import): Add support for 'public domain' license.
52013         * modules/alloca, modules/atexit, modules/memmove:
52014         Now public domain, not GPL.
52015         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52016         * modules/realloc, modules/strerror, modules/strtod:
52017         Now LGPL, not GPL.
52018
52019 2005-07-05  Bruno Haible  <bruno@clisp.org>
52020
52021         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52022         autoconf CVS. Needed for mingw.
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         * modules/strftime (Depends-on): Remove dependency on tzset.
52028
52029 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52030
52031         Remove the dependency of the strftime module on the tzset module.
52032         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52033         gl_FUNC_TZSET_CLOBBER.
52034
52035 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52036
52037         Remove the dependency of the strftime module on the tzset module.
52038         * lib/strftime.c (my_strftime)
52039         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52040         Copy the input structure, to work around some of the bug with
52041         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52042         Solaris releases, you should also use the tzset module, but we won't
52043         require it as a dependency any more since we don't want LGPLed code
52044         to depend on GPLed code.
52045
52046 2005-07-02  Jim Meyering  <jim@meyering.net>
52047
52048         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52049         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52050         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52051         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52052
52053 2005-07-02  Jim Meyering  <jim@meyering.net>
52054
52055         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52056
52057 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52058
52059         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52060         declares only 'struct timespec;' (!).
52061
52062 2005-07-01  Jim Meyering  <jim@meyering.net>
52063
52064         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52065         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52066         * lib/save-cwd.c, tempname.c:
52067         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52068         and don't include <sys/file.h>).
52069
52070 2005-06-29  Jim Meyering  <jim@meyering.net>
52071
52072         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52073         type name.  Use the variable name instead.
52074         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52075         Likewise.
52076
52077 2005-06-28  Simon Josefsson  <jas@extundo.com>
52078
52079         * modules/check-version (Files): Add check-version.m4.
52080
52081 2005-06-28  Simon Josefsson  <jas@extundo.com>
52082
52083         * m4/check-version.m4: New file, suggested by Jim Meyering
52084         <jim@meyering.net>.
52085
52086 2005-06-28  Simon Josefsson  <jas@extundo.com>
52087
52088         * lib/check-version.h, lib/check-version.c: New files.
52089
52090 2005-06-28  Simon Josefsson  <jas@extundo.com>
52091
52092         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52093         collision with global variable.  Better indentation.  Don't
52094         increment buffer pointer beyond buffer end.  Based on comments
52095         from Paul Eggert <eggert@cs.ucla.edu>.
52096
52097         * lib/base64.h: Indent.
52098
52099 2005-06-28  Simon Josefsson  <jas@extundo.com>
52100
52101         * doc/gnulib.texi (Library version handling): New section.
52102
52103 2005-06-28  Jim Meyering  <jim@meyering.net>
52104
52105         * check-module (find_included_lib_files): Hard-code another
52106         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52107         but modules/fts-lgpl (correctly) does not list those files.
52108
52109         * modules/canonicalize (Files): Add lib/pathmax.h.
52110
52111 2005-06-25  Simon Josefsson  <jas@extundo.com>
52112
52113         * modules/check-version: New file.
52114
52115 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52116
52117         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52118         initializer of struct addrinfo, as an indication that we don't
52119         care how many members the structure has.
52120
52121 2005-06-24  Derek Price  <derek@ximbiot.com>
52122         and Bruno Haible  <bruno@clisp.org>
52123
52124         Remove stat module & update lstat.
52125         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52126         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52127         * m4/stat.m4: Remove this file.
52128
52129 2005-06-24  Derek Price  <derek@ximbiot.com>
52130         and Bruno Haible  <bruno@clisp.org>
52131
52132         Remove stat module & update lstat.
52133         * lib/stat.c: Remove this file...
52134         (slash_aware_lstat): ...moving this content and its support...
52135         * lib/lstat.c (rpl_lstat): ...into here.
52136         * lib/lstat.h: New file.
52137
52138 2005-06-24  Derek Price  <derek@ximbiot.com>
52139         and Bruno Haible  <bruno@clisp.org>
52140
52141         Remove stat module & update lstat.
52142         * config/srclist.txt (libc sources): Remove stat.
52143
52144 2005-06-24  Derek Price  <derek@ximbiot.com>
52145         and Bruno Haible  <bruno@clisp.org>
52146
52147         Remove stat module & update lstat.
52148         * MODULES.html.sh (stat): Remove.
52149         * MODULES.html: Regenerated.
52150         * modules/lstat (Description): Correct function name.
52151         (Files): Add "lstat.h".
52152         (Depends-on): Remove stat, add xalloc, stat-macros.
52153         * modules/stat: Remove this file.
52154         (Include): Add "lstat.h", remove <sys/stat.h>.
52155
52156 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52157
52158         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52159         (ranged_convert): Don't save conversion in a temporary struct.
52160         This causes a warning with GCC 4.0.0, and anyway in the typical
52161         case it's not worth the extra 100 bytes or so of code.
52162         (ranged_convert, __mktime_internal): When calling a function via a
52163         pointer P, use P () rather than (*P) (), as we now assume C89 or
52164         better.
52165
52166 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52167
52168         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52169         "who -r" failed to give output.  Problem reported by Tim Waugh.
52170
52171         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52172         (xcalloc): Use it to avoid needless tests.
52173         Problem reported by Jim Meyering.
52174
52175 2005-06-20  Derek Price  <derek@ximbiot.com>
52176
52177         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52178         unnecessary for Autoconfs > 2.59c.
52179
52180 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52181
52182         * lib/argp.h (__option_is_short): Check upper limit of
52183         __key. Isprint() requires its argument to have the value
52184         of an unsigned char or EOF.
52185
52186 2005-06-16  Jim Meyering  <jim@meyering.net>
52187
52188         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52189         when either N or S is zero.
52190
52191 2005-06-16  Derek Price  <derek@ximbiot.com>
52192
52193         * m4/bison.m4: Declare YACC & YFLAGS precious.
52194
52195 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52196
52197         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52198         multibyte string or pattern, fall back on unibyte matching.
52199         Problem reported by James Youngman.
52200
52201 2005-06-08  Bruno Haible  <bruno@clisp.org>
52202
52203         * modules/csharpcomp: New file.
52204         * MODULES.html.sh (C#): Add csharpcomp.
52205
52206 2005-06-08  Bruno Haible  <bruno@clisp.org>
52207
52208         * m4/csharpcomp.m4: New file, from GNU gettext.
52209
52210 2005-06-08  Bruno Haible  <bruno@clisp.org>
52211
52212         * lib/csharpcomp.h: New file, from GNU gettext.
52213         * lib/csharpcomp.c: New file, from GNU gettext.
52214         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52215
52216 2005-06-08  Bruno Haible  <bruno@clisp.org>
52217
52218         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52219         warning on mingw.
52220
52221 2005-06-07  Derek Price  <derek@ximbiot.com>
52222
52223         Sync from CVS.
52224         * lib/glob_.h: Indent nested #ifdef.
52225
52226 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52227
52228         Sync from coreutils.
52229         Use "file name" when talking about file names, instead of "filename"
52230         or "path", as per the GNU coding standards.
52231         * lib/mkdir-p.c: Renamed from makepath.c.
52232         (make_dir_parents): Renamed from make_path.  All callers changed.
52233         * lib/mkdir-p.h: Likewise.  All includers changed.
52234         * lib/filenamecat.c: Renamed from path-concat.c.
52235         (file_name_concat): Renamed from path_concat.  All callers changed.
52236         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52237         * lib/filenamecat.h: Likewise.  All includers changed.
52238         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52239         in comments or local variable names.
52240         * lib/basename.c: Likewise.
52241         * lib/canonicalize.c, canonicalize.h: Likewise.
52242         * lib/dirname.c, dirname.h: Likewise.
52243         * lib/euidaccess.c: Likewise.
52244         * lib/exclude.c: Likewise
52245         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52246         * lib/fsusage.c, fsuage.h: Likewise.
52247         * lib/fts.c, fts_.h: Likewise.
52248         * lib/getcwd.c: Likewise.
52249         * lib/getloadavg.c: Likewise.
52250         * lib/mkstemp.c: Likewise.
52251         * lib/mountlist.c, mountlist.h: Likewise.
52252         * lib/openat.c, openat.h: Likewise.
52253         * lib/readlink-stub.c: Likewise.
52254         * lib/readutmp.c, readutmp.h: Likewise.
52255         * lib/rename.c: Likewise.
52256         * lib/rmdir.c: Likewise.
52257         * lib/same.c: Likewise.
52258         * lib/savedir.c: Likewise.
52259         * lib/stripslash.c: Likewise.
52260         * lib/tempname.c: Likewise.
52261         * lib/xreadlink.c: Likewise.
52262         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52263         All uses changed.
52264         * lib/exclude.h: Likewise.
52265
52266         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52267         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52268         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52269         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52270         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52271         files have been getting away with it for years (MORE/BSD 4.3
52272         is extinct now).
52273         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52274         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52275
52276         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52277         Define to 256, not 255, as per modern POSIX.
52278
52279 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52280
52281         Sync from coreutils.
52282         Use "file name" when talking about file names, instead of "filename"
52283         or "path", as per the GNU coding standards.
52284         * MODULES.html.sh: mkdir-p renamed from makepath.
52285         filenamecat renamed from path-concat.
52286         * modules/filenamecat: Renamed from modules/path-concat.
52287         (Files): filenamecat.h and filenamecat.c renamed from
52288         path-concat.h and path-concat.c.
52289         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52290         (Include): filenamecat.h, not path-concat.h.
52291         * modules/mkdir-p: Renamed from modules/makepath.
52292         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52293         makepath.c.
52294         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52295         (Include): mkdir-p.h, not makepath.h.
52296
52297 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52298
52299         Sync from coreutils.
52300         * m4/mkdir-p.m4: Renamed from makepath.m4.
52301         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52302         Rename files from makepath.c to mkdir-p.c, and from
52303         makepath.h to mkdir-p.h.
52304         * m4/filenamecat.m4: Renamed from path-concat.m4.
52305         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52306         Rename files from path-concat.c to filenamecat.c,
52307         and from path-concat.h to filenamecat.h.
52308         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52309         "file name" in local variables or comments.
52310         * m4/rename.m4: Likewise.
52311
52312 2005-06-01  Bruno Haible  <bruno@clisp.org>
52313
52314         * modules/csharpexec: New file.
52315         * MODULES.html.sh (C#): New section.
52316
52317 2005-06-01  Bruno Haible  <bruno@clisp.org>
52318
52319         * m4/csharp.m4: New file, from GNU gettext.
52320         * m4/csharpexec.m4: New file, from GNU gettext.
52321
52322 2005-06-01  Bruno Haible  <bruno@clisp.org>
52323
52324         * lib/csharpexec.h: New file, from GNU gettext.
52325         * lib/csharpexec.c: New file, from GNU gettext.
52326         * lib/csharpexec.sh.in: New file, from GNU gettext.
52327
52328 2005-05-31  Derek Price  <derek@ximbiot.com>
52329             Paul Eggert  <eggert@cs.ucla.edu>
52330
52331         Sync from cvs.
52332         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52333
52334 2005-05-31  Derek Price  <derek@ximbiot.com>
52335             Paul Eggert  <eggert@cs.ucla.edu>
52336
52337         Sync from cvs.
52338         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52339
52340 2005-05-29  Derek Price  <derek@ximbiot.com>
52341
52342         * config/srclist.txt (glob_.h, glob.c): Add these files.
52343
52344 2005-05-29  Derek Price  <derek@ximbiot.com>
52345
52346         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52347         * modules/glob: New file.
52348         * modules/getlogin_r: Add link to POSIX spec in description.
52349
52350 2005-05-29  Derek Price  <derek@ximbiot.com>
52351             Paul Eggert  <eggert@cs.ucla.edu>
52352
52353         * m4/glob.m4: New file.
52354
52355 2005-05-29  Derek Price  <derek@ximbiot.com>
52356             Paul Eggert  <eggert@cs.ucla.edu>
52357
52358         * lib/glob_.h, lib/glob.c: New files.
52359
52360 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52361
52362         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52363         * modules/fts-lgpl (Depends-on): Remove gettext.
52364
52365 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52366
52367         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52368         and don't require gt_INTTYPES_PRI.
52369
52370 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52371
52372         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52373
52374         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52375         the configuration hassle isn't worth it.
52376         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52377         (LONGEST_MODIFIER, PRIuMAX): Remove.
52378
52379 2005-05-27  Bruno Haible  <bruno@clisp.org>
52380
52381         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52382
52383 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52384
52385         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52386         _POSIX_PTHREAD_SEMANTICS for Solaris.
52387
52388 2005-05-25  Derek Price  <derek@ximbiot.com>
52389
52390         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52391
52392 2005-05-25  Derek Price  <derek@ximbiot.com>
52393             Paul Eggert  <eggert@cs.ucla.edu>
52394
52395         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52396         * lib/getlogin_r.c, getlogin_r.h: New files.
52397
52398 2005-05-25  Bruno Haible  <bruno@clisp.org>
52399             Derek Price  <derek@ximbiot.com>
52400
52401         * lib/getlogin_r.h: Simplify API documentation.
52402
52403 2005-05-23  Derek Price  <derek@ximbiot.com>
52404
52405         * modules/minmax (Files): Add m4/minmax.m4.
52406         (configure.ac): Add gl_MINMAX.
52407
52408 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52409
52410         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52411         so that unistd-safer.h (GPL'ed code) need not be included.
52412
52413 2005-05-22  Bruno Haible  <bruno@clisp.org>
52414
52415         * m4/minmax.m4: New file.
52416         Based on a patch by Derek Price <derek@ximbiot.com>.
52417
52418 2005-05-22  Bruno Haible  <bruno@clisp.org>
52419
52420         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52421         (INT64_MIN): Fix definition.
52422         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52423
52424         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52425         NEED_SIGNED_INT_TYPES.
52426
52427         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52428         HAVE_SYSTEM_INTTYPES.
52429
52430 2005-05-22  Bruno Haible  <bruno@clisp.org>
52431
52432         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52433         Also include <sys/param.h> if it defines MIN, MAX.
52434         Based on a patch by Derek Price <derek@ximbiot.com>.
52435
52436 2005-05-21  Jim Meyering  <jim@meyering.net>
52437
52438         * modules/fts (Files): Add m4/inttypes-pri.m4.
52439         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52440
52441 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52442
52443         New fts module.
52444         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52445         (setup_dir, free_dir): New functions.
52446         (enter_dir, leave_dir): Define trivial
52447         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52448         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52449         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52450         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52451         Move to fts-cycle.c.
52452         (fts_open): Use setup_dir.
52453         (fts_close): Use free_dir.
52454         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52455         This adds a label and some gotos, but the alternatives were messier.
52456         Check for memory allocation failure when entering a dir.
52457         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52458         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52459         (FTS): New member fts_cycle, that is a union that contains the
52460         old active_dir_ht and cycle_state.  All uses changed to mention
52461         fts_cycle.ht and fts_cycle.state.
52462         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52463         fts.c, with the following changes:
52464         (setup_dir, free_dir): New functions.
52465         (enter_dir): Now returns bool.  Return true if successful, false
52466         if memory exhausted.  All callers changed.
52467         Do not bother partly cleaning up on
52468         memory allocation failure; that is free_dir's job.
52469         However, free ad if hash_insert fails, to avoid memory leak.
52470         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52471         fts->fts_options to see which union member to use.
52472
52473 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52474
52475         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52476         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52477
52478 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52479
52480         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52481
52482 2005-05-20  Jim Meyering  <jim@meyering.net>
52483
52484         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52485         Now a macro, to pacify GCC.
52486
52487 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52488
52489         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52490         of -1.
52491
52492 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52493
52494         * lib/chown.c (rpl_chown): Return -1 on failure.
52495
52496 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52497
52498         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52499         Don't check for stddef.h.
52500         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52501         don't use its results.
52502         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52503         since we include them unconditionally.  Don't require
52504         AM_STDBOOL_H, since stdbool is a prerequisite.
52505         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52506         since we assume C89 or better.
52507         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52508         as we don't use their results.
52509         Don't check for fchdir, memmove, memset, strrchr, as we use
52510         them unconditionally.
52511         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52512         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52513
52514 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52515
52516         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52517         Include <stddef.h> unconditionally, since we assume C89 now.
52518         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52519         * lib/fts.c: Include fts_.h first, to check interface.
52520         Do not include intprops.h; no longer needed.
52521         Include cycle-check.h and hash.h, since fts_.h no longer does.
52522         Remove unnecessary casts of closedir to void.
52523         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52524         decide whether to decrement nlinks.
52525         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52526         (FTS): Use struct hash_table * instead of Hash_table, so that
52527         we no longer need to include hash.h here.
52528
52529 2005-05-18  Jim Meyering  <jim@meyering.net>
52530
52531         * modules/dirfd (License): Change to LGPL.  Most of the code
52532         is already in the public domain.
52533
52534 2005-05-18  Jim Meyering  <jim@meyering.net>
52535
52536         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52537         Reported by Yoann Vandoorselaere.
52538
52539 2005-05-17  Jim Meyering  <jim@meyering.net>
52540
52541         * m4/fts.m4: New file, from coreutils.
52542
52543 2005-05-17  Jim Meyering  <jim@meyering.net>
52544
52545         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52546
52547 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52548
52549         Sync from coreutils.
52550         * m4/unlinkdir.m4: New file.
52551
52552 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52553
52554         Sync from coreutils.
52555         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52556         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52557         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52558         White space changes only.
52559         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52560         special.
52561         * lib/yesno.c: Include getline.h, not ctype.h.
52562         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52563         Use getline to remove arbitrary restriction on response length.
52564
52565 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52566
52567         * config/srclist-update: Spell out "Street" in FSF postal
52568         mail address; this is the style the FSF seems to prefer.
52569
52570         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52571         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52572         this updates FSF postal mail address.
52573
52574         Sync from coreutils.
52575         * modules/unlinkdir: New file.
52576         * modules/yesno (Depends-on): Add getline.
52577         * MODULES.html.sh (File system functions): Add unlinkdir.
52578
52579 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52580
52581         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52582         lib/strsep.h:
52583         Change the initial comment to refer to GPL, not LGPL.
52584         gnulib-tool will change it to LGPL as needed.
52585
52586         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52587         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52588         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52589         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52590         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52591         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52592         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52593         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52594         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52595         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52596         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52597         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52598         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52599         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52600         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52601         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52602         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52603         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52604         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52605         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52606         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52607         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52608         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52609         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52610         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52611         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52612         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52613         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52614         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52615         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52616         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52617         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52618         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52619         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52620         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52621         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52622         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52623         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52624         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52625         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52626         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52627         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52628         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52629         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52630         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52631         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52632         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52633         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52634         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52635         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52636         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52637         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52638         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52639         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52640         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52641         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52642         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52643         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52644         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52645         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52646         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52647         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52648         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52649         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52650         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52651         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52652         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52653         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52654         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52655         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52656         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52657         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52658         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52659         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52660         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52661         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52662         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52663         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52664         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52665         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52666         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52667         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52668         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52669         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52670         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52671         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52672         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52673         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52674         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52675         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52676         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52677         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52678         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52679         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52680         lib/yesno.c, lib/yesno.h:
52681         Update FSF postal mail address.
52682
52683 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52684
52685         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52686         tests/test-memmem.c, tests/test-stpncpy.c:
52687         Update FSF postal mail address.
52688
52689 2005-05-13  Bruno Haible  <bruno@clisp.org>
52690
52691         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52692         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52693         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52694         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52695         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52696         Add support for 64-bit integers in the MSVC compiler.
52697
52698 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52699
52700         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52701
52702 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52703
52704         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52705
52706 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52707
52708         * doc/getdate.texi (General date syntax): Don't say that date
52709         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52710         Problem reported by Nic Ferrier.
52711
52712 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52713
52714         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52715         specified in ai_socktype. Fix invalid ai_protocol
52716         check. ai_protocol is usually set to 0 or depending on
52717         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52718         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52719         ai_socktype / ai_protocol in the returned addrinfo structure.
52720
52721 2005-05-10  Simon Josefsson  <jas@extundo.com>
52722
52723         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52724         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52725
52726 2005-05-10  Karl Berry  <karl@gnu.org>
52727
52728         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52729         (from http://www.gnu.org/licenses).
52730         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52731         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52732         fdl.texi suffices.
52733
52734 2005-05-10  Karl Berry  <karl@gnu.org>
52735
52736         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52737         (COPYING.DOC): remove.
52738
52739         * config/srclist-update: new FSF address.
52740
52741 2005-05-10  Derek Price  <derek@ximbiot.com>
52742
52743         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52744         possible.
52745
52746 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52747             Bruno Haible  <bruno@clisp.org>
52748
52749         * modules/inet_ntop: New file.
52750         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52751         inet_ntop.
52752
52753 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52754             Bruno Haible  <bruno@clisp.org>
52755
52756         * m4/inet_ntop.m4: New file.
52757
52758 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52759             Bruno Haible  <bruno@clisp.org>
52760
52761         * lib/inet_ntop.h: New file.
52762         * lib/inet_ntop.c: New file, from glibc with modifications.
52763
52764 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52765
52766         * modules/time_r (License): Change to LGPL.
52767         * modules/extensions (License): Change to LGPL.  Actually,
52768         the license is more permissive than that, but currently gnulib-tool
52769         doesn't know how to handle more-permissive licenses.
52770
52771         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52772         Problem reported by Dave Love.
52773
52774 2005-05-08  Jim Meyering  <jim@meyering.net>
52775
52776         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52777         blank.
52778
52779 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52780
52781         * modules/argmatch (Depends-on): Add stdbool.
52782         * modules/backupfile (Depends-on): Likewise.
52783         * modules/chdir-long (Depends-on): Likewise.
52784         * modules/closeout (Depends-on): Likewise.
52785         * modules/cycle-check (Depends-on): Likewise.
52786         * modules/dirname (Depends-on): Likewise.
52787         * modules/fnmatch (Depends-on): Likewise.
52788         * modules/fsusage (Depends-on): Likewise.
52789         * modules/fwriteerror (Depends-on): Likewise.
52790         * modules/getcwd (Depends-on): Likewise.
52791         * modules/getloadavg (Depends-on): Likewise.
52792         * modules/hard-locale (Depends-on): Likewise.
52793         * modules/makepath (Depends-on): Likewise.
52794         * modules/mountlist (Depends-on): Likewise.
52795         * modules/nanosleep (Depends-on): Likewise.
52796         * modules/posixtm (Depends-on): Likewise.
52797         * modules/quotearg (Depends-on): Likewise.
52798         * modules/readtokens (Depends-on): Likewise.
52799         * modules/readtokens0 (Depends-on): Likewise.
52800         * modules/readutmp (Depends-on): Likewise.
52801         * modules/save-cwd (Depends-on): Likewise.
52802         * modules/strftime (Depends-on): Likewise.
52803         * modules/userspec (Depends-on): Likewise.
52804         * modules/utimecmp (Depends-on): Likewise.
52805         * modules/xgetcwd (Depends-on): Likewise.
52806         * modules/xnanosleep (Depends-on): Likewise.
52807         * modules/xstrtod (Depends-on): Likewise.
52808         * modules/yesno (Depends-on): Likewise.
52809
52810 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52811
52812         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52813         needless checks.
52814
52815 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52816
52817         Merge from coreutils.  Among other things,
52818         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52819         * lib/fd-safer.c: New file.
52820         * lib/fcntl-safer.h, open-safer.c: Remove.
52821         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52822         * lib/dup-safer.c: Include unistd-safer.h first.
52823         Don't include errno.h.
52824         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52825         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52826         * lib/file-type.c: Rely on file-type.h change.
52827         * lib/getloadavg.c: Include unistd-safer.h.
52828         (getloadavg): Use safer open.
52829         * lib/getusershell.c: Include "stdio-safer.h".
52830         (getusershell): Use safer fopen.
52831         * lib/long-options.c (long_options): Use NULL rather than 0.
52832         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52833         'free'.
52834         * lib/modechange.c: Likewise.
52835         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52836         (MODE_DONE): New constant.
52837         (struct mode_change): Remove 'next' member.
52838         (make_node_op_equals): New function; like the old one of the
52839         same name, except it allocates an array.
52840         (mode_compile, mode_create_from_ref): Use it.
52841         (mode_compile): Allocate result as an array, not a linked list.
52842         Parse octal string ourself, so that we catch mistakes like "+0".
52843         (mode_adjust): Arg is an array, not a linked list.
52844         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52845         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52846         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52847         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52848         Remove.  This is now stat-macros.h's job.
52849         (talloc): Remove.  All callers replaced by xalloc, so that
52850         our invokers don't have to worry about reporting memory failures.
52851         (make_node_op_equals): Remove.
52852         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52853         New constants.
52854         (struct mode_change): Moved here from modechange.h.
52855         (mode_append_entry): Remove.
52856         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52857         apps to have incorrect behavior.  Use simpler algorithm for head
52858         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52859         Detect more invalid usages rather than having somewhat-random behavior.
52860         Don't insert an "a=" action, as that leads to incorrect behavior.
52861         (mode_compile, mode_create_from_ref): Return NULL on error instead
52862         of an enum, since now there's only one way to have an error.  All
52863         callers changed.
52864         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52865         at the correct time.  Simplify calculation of "+u" and its ilk.
52866         Don't mishandle "+X".
52867         (mode_free): Remove "register" and localize decls.
52868         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52869         (struct mode_change): Move to modechange.c; callers don't
52870         need to see this stuff.
52871         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52872         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52873         (mode_change, mode_adjust): Reflect the new signatures noted above.
52874         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52875         that might redefine system include files.
52876         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52877         (my_usleep): Use NULL rather than (void *) 0.
52878         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52879         Use siginterrupt to specify that system calls should be interrupted.
52880         (rpl_nanosleep): Move initialization of suspended closer to call of
52881         my_usleep.
52882         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52883         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52884         (desirable_utmp_entry): New function.
52885         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52886         using x2nrealloc, to simplify logic.
52887         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52888         size calculation.  Do not assume utmp file is a regular file.
52889         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52890         (READ_UTMP_CHECK_PIDS): New constant.
52891         * lib/save-cwd.c: Include unistd-safer.h.
52892         (save_cwd): Use fd_safer.
52893         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52894         [!_LIBC] Include "stat-macros.h" instead.
52895         * lib/unistd-safer.h (fd_safer): New decl.
52896
52897 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52898
52899         * modules/getloadavg (Depends-on): Add unistd-safer.
52900         * modules/getusershell (Depends-on): Add stdio-safer.
52901         * modules/lstat (Depends-on): Remove xalloc.
52902         * modules/mkstemp (Depends-on): Add stat-macros.
52903         * modules/modechange (Depends-on): Remove xstrtol.
52904         Add stat-macros, xalloc.
52905         * modules/save-cwd (Depends-on): Add unistd-safer.
52906         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52907         * modules/unistd-safer (Files): Add lib/fd-safer.c
52908         (Makefile.am): Remove lib_SOURCES.
52909
52910         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52911         Remove fcntl-safer; unistd-safer supersedes it.
52912
52913 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52914
52915         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52916         AC_HEADER_STAT.
52917         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52918         (gl_PREREQ_CHOWN): Remove.
52919         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52920         it.  Don't require AC_HEADER_STAT.
52921         (gl_PREREQ_LSTAT): Remove.
52922         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52923         Don't require AC_HEADER_STAT.
52924         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52925         (gl_PREREQ_RMDIR): Remove.
52926         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52927         mention stat-macros.h or AC_HEADER_STAT, since we'll make
52928         the stat-macros module a prerequisite.
52929         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52930         * m4/filemode.m4 (gl_FILEMODE): Likewise.
52931         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52932         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52933         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52934         variable names.
52935         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52936         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
52937         variable prefixes.
52938         * m4/fcntl-safer.m4: Remove.
52939         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52940         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52941         Invoke gl_PREREQ_FD_SAFER.
52942         (gl_PREREQ_FD_SAFER): New macro.
52943         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52944         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52945         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52946         Remove duplicate call to AC_LIBOBJ(readutmp).
52947         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52948
52949         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52950         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52951
52952 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52953
52954         * MODULES.html.sh (Misc): Add byteswap.
52955
52956 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52957
52958         * modules/getcwd (Depends-on): Add extensions.
52959         * modules/openat (Depends-on): Likewise.
52960
52961 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52962
52963         * modules/byteswap: New file.
52964
52965 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52966
52967         * m4/byteswap.m4: New file.
52968
52969 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52970
52971         * lib/byteswap_.h: New file.
52972
52973 2005-04-25  Karl Berry  <karl@gnu.org>
52974
52975         * m4/gettext.m4: Update from GNU gettext 0.14.4.
52976
52977 2005-04-25  Albert Chin  <china@thewrittenword.com>
52978
52979         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52980         Toolkit C bug.
52981
52982 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
52983
52984         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52985         (func_ln_if_changed) Remove forcibly for no error message
52986         in case file does not exist.
52987
52988 2005-04-19  Simon Josefsson  <jas@extundo.com>
52989
52990         * gnulib-tool (Options): Make --symlink mean --symbolic.
52991
52992 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
52993
52994         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
52995
52996 2005-04-16  Simon Josefsson  <jas@extundo.com>
52997
52998         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52999
53000 2005-04-15  Simon Josefsson  <jas@extundo.com>
53001
53002         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
53003
53004 2005-04-15  Simon Josefsson  <jas@extundo.com>
53005
53006         * gnulib-tool: Rename --symlink to --symbolic.
53007
53008 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
53009
53010         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53011         symbolic links to files instead of copying/moving.  Add --aux-dir,
53012         specifying directory relative --dir where auxiliary build tools
53013         are placed.
53014
53015 2005-04-14  Bruno Haible  <bruno@clisp.org>
53016
53017         * modules/allocsa (License): Change to LGPL.
53018         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53019
53020 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53021
53022         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53023         that "UTC +1 second" continues to work.  Problem reported
53024         by Dmitry V. Levin.
53025         (relunit_snumber): New rule.
53026         (relunit): Use it.
53027
53028 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53029
53030         * lib/getdate.y (universal_time_zone_table): New constant.
53031         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53032         universal_time_zone_table.
53033         (lookup_zone): Prefer universal_time_zone_table to
53034         local_time_zone_table, so that "GMT" time stamps are allowed in
53035         London during the summer.  Problem reported by Ian Abbott.
53036
53037 2005-04-12  Jim Meyering  <jim@meyering.net>
53038
53039         * lib/human.c (humblock): Set *options even when returning due to
53040         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53041         warning from gcc-4.
53042
53043 2005-04-09  Jim Meyering  <jim@meyering.net>
53044
53045         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53046         -Wuninitialized: initialize tm0.tm_year.
53047
53048 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53049
53050         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53051         count, since there's no maximum.  All uses changed.
53052         Add member dsts_seen.
53053         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53054         not being INT_MAX.
53055         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53056         Use pc_rels_seen to decide whther a date is absolute.
53057
53058         * lib/getdate.y (number): Don't overwrite year.
53059         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53060         check.
53061
53062 2005-04-02  Simon Josefsson  <jas@extundo.com>
53063
53064         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53065         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53066
53067 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53068
53069         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53070         where no absolute path name can be longer than PATH_MAX.
53071
53072 2005-03-27  Jim Meyering  <jim@meyering.net>
53073
53074         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53075
53076 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53077
53078         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53079         "one's complement" -> "ones' complement" in comment, as per Knuth.
53080         "value of type" -> "type or expression" in comment.
53081         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53082
53083 2005-03-26  Jim Meyering  <jim@meyering.net>
53084
53085         Comment nits.
53086         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53087         Correct typos: s/or/of/.
53088
53089 2005-03-26  Jim Meyering  <jim@meyering.net>
53090
53091         * modules/check-include-files: Move to ../ and rename to...
53092         * check-module: ...this.
53093
53094 2005-03-25  Jim Meyering  <jim@meyering.net>
53095
53096         * modules/xvasprintf (Files): Add xalloc.h.
53097
53098 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53099
53100         * modules/gettext (Files): config/config.rpath ->
53101         build-aux/config.rpath
53102         * modules/iconv (Files): Likewise.
53103         Problem reported by Oskar Liljeblad.
53104
53105 2005-03-23  Jim Meyering  <jim@meyering.net>
53106
53107         * modules/check-include-files: New script to check for
53108         missing dependencies, multiple includes, etc.
53109
53110         * modules/c-strtold (Depends-on): Add xalloc.
53111         * modules/c-strtod (Depends-on): Add xalloc.
53112         * modules/hash (Depends-on): Add xalloc.
53113         (Files): Remove lib/xalloc.h.
53114
53115         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53116         * modules/userspec (Files): Add lib/inttostr.h.
53117
53118 2005-03-23  Jim Meyering  <jim@meyering.net>
53119
53120         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53121
53122 2005-03-22  Jim Meyering  <jim@meyering.net>
53123
53124         * modules/stat-macros: New module.
53125         * modules/canonicalize, modules/euidaccess, modules/file-type,
53126         * modules/filemode, modules/lchown, modules/makepath,
53127         * modules/rmdir, modules/stat: Depend on new stat-macros module
53128         rather than listing lib/stat-macros.h manually.
53129         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53130
53131 2005-03-22  Jim Meyering  <jim@meyering.net>
53132
53133         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53134
53135 2005-03-22  Bruno Haible  <bruno@clisp.org>
53136
53137         * config/srclist.txt: Replace target directory 'config' with
53138         'build-aux'.
53139         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53140         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53141         ../build-aux/.
53142
53143 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53144
53145         * modules/chdir-long (Depends-on): Add mempcpy.
53146
53147         * modules/acl, modules/backupfile, modules/c-strtod,
53148         modules/c-strtold, modules/canon-host, modules/canonicalize,
53149         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53150         modules/exclude, modules/exitfail, modules/file-type,
53151         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53152         modules/getdate, modules/getline, modules/getpagesize,
53153         modules/getpass, modules/getugroups, modules/group-member,
53154         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53155         modules/inttostr, modules/long-options, modules/makepath,
53156         modules/md5, modules/memcasecmp, modules/memcoll,
53157         modules/modechange, modules/mountlist, modules/path-concat,
53158         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53159         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53160         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53161         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53162         modules/strftime, modules/strndup, modules/strverscmp,
53163         modules/timespec, modules/unlocked-io, modules/userspec,
53164         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53165         modules/yesno:
53166         Remove lib_SOURCES line from Makefile.am section, as this is now
53167         done automatically by the corresponding Autoconf macro.
53168
53169 2005-03-21  Jim Meyering  <jim@meyering.net>
53170
53171         Changes imported from coreutils.
53172
53173         * lib/cycle-check.c: Don't include xalloc.h.
53174
53175         * lib/path-concat.c: Don't include assert.h.
53176         (path_concat): Remove assertion that would have triggered
53177         for ABASE starting with more than one slash.
53178         Reported by Andreas Schwab.
53179
53180         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53181         properly when ABASE is an absolute file name.
53182         Correct the description of this function.
53183         Include <assert.h>.
53184         Add an assertion and a test driver.
53185         This fixes a bug introduced on 2004-07-02.
53186         Andreas Schwab reported the resulting failure of cp --parents:
53187         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53188
53189 2005-03-21  Jim Meyering  <jim@meyering.net>
53190
53191         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53192         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53193
53194 2005-03-21  Jim Meyering  <jim@meyering.net>
53195         and  Paul Eggert  <eggert@cs.ucla.edu>
53196
53197         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53198         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53199         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53200         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53201         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53202         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53203         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53204         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53205         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53206         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53207         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53208         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53209         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53210         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53211         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53212         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53213         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53214         for these modules.
53215
53216 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53217
53218         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53219         (which shouldn't happen), generate nothing instead of returning 0
53220         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53221
53222 2005-03-16  Bruno Haible  <bruno@clisp.org>
53223
53224         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53225         HAVE_LONGLONG_64BIT.
53226
53227 2005-03-16  Bruno Haible  <bruno@clisp.org>
53228
53229         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53230         HAVE_LONGLONG_64BIT.
53231
53232 2005-03-16  Bruno Haible  <bruno@clisp.org>
53233
53234         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53235         HAVE_LONGLONG_64BIT.
53236
53237 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53238
53239         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53240         reliably distinguish strftime failure from empty output on POSIX
53241         hosts.
53242
53243 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53244
53245         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53246         (iconv_string): Don't guess a size-zero buffer, as that might cause
53247         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53248         result would be 'too large', where 'too large' is (heuristically)
53249         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53250         overflow concerns.  This will prevent some unwanted malloc failures
53251         when the inputs are very large.
53252
53253 2005-03-15  Karl Berry  <karl@gnu.org>
53254
53255         * config/srclist.txt (config.rpath): from gettext.
53256         * config/config.rpath: update.
53257
53258 2005-03-15  Bruno Haible  <bruno@clisp.org>
53259
53260         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53261         to 'negate'.
53262
53263         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53264         variable.
53265
53266         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53267         results.
53268
53269 2005-03-14  Simon Josefsson  <jas@extundo.com>
53270
53271         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53272         <fx@gnu.org>.
53273
53274 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53275
53276         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53277         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53278         intprops.h.
53279         * lib/strtol.c: Likewise.
53280
53281 2005-03-14  Jim Meyering  <jim@meyering.net>
53282
53283         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53284         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53285         to be nonzero so that we (and caller) can detect the difference
53286         between a valid zero-length expansion and an error return, even
53287         when the underlying strftime fails before writing anything into
53288         that location.
53289
53290 2005-03-14  Bruno Haible  <bruno@clisp.org>
53291
53292         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53293         Update from GNU gettext 0.14.3.
53294
53295 2005-03-10  Jim Meyering  <jim@meyering.net>
53296
53297         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53298
53299 2005-03-10  Jim Meyering  <jim@meyering.net>
53300
53301         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53302         so that this module works on systems without fchdir.
53303
53304 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53305
53306         Factor int-properties macros into a single file, except for
53307         glibc-related files.
53308         * lib/intprops.h: New file.
53309         * lib/getloadavg.c: Include it instead of limits.h.
53310         (INT_STRLEN_BOUND): Remove.
53311         * lib/human.c: Include intprops.h.
53312         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53313         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53314         302/1000.
53315         * lib/inttostr.h: Include intprops.h instead of limits.h.
53316         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53317         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53318         for consistency with intprops.h.
53319         (time_t_is_integer, twos_complement_arithmetic): Use them.
53320         * lib/sig2str.h: Include <signal.h>, intprops.h.
53321         (INT_STRLEN_BOUND): Remove.
53322         * lib/strftime.c (TYPE_SIGNED): Remove.
53323         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53324         * lib/strtol.c: Adjust comments to match intprops.h.
53325         * lib/userspec.c: Include intprops.h.
53326         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53327         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53328         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53329         instead of rolling our own expressions.
53330         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53331
53332         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53333         instead of int.
53334         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53335         the right thing even if adding 1900 would overflow.  Similarly
53336         for tm_mon + 1 and tm_yday + 1.
53337         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53338         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53339         (DO_SIGNED_NUMBER): New macro.
53340         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53341
53342 2005-03-07  Bruno Haible  <bruno@clisp.org>
53343
53344         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53345
53346 2005-03-07  Bruno Haible  <bruno@clisp.org>
53347
53348         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53349
53350 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53351
53352         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53353         (func_import): Only replace files via --import when they have actually
53354         changed.
53355
53356 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53357
53358         * m4/mmap-anon.m4: New file.
53359         * m4/pagealign_alloc.m4: New file.
53360
53361 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53362             Bruno Haible  <bruno@clisp.org>
53363
53364         * modules/pagealign_alloc: New file.
53365         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53366
53367 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53368             Bruno Haible  <bruno@clisp.org>
53369
53370         * lib/pagealign_alloc.h: New file.
53371         * lib/pagealign_alloc.c: New file.
53372
53373 2005-03-03  Bruno Haible  <bruno@clisp.org>
53374
53375         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53376         Use an all-permissive copyright notice, recommended by RMS.
53377
53378 2005-03-02  Bruno Haible  <bruno@clisp.org>
53379
53380         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53381         of AIX, the replacement has to be done only after <string.h> is
53382         included, therefore not in config.h. stpncpy.h does the replacement,
53383         and stpncpy.c uses it.
53384
53385 2005-03-02  Bruno Haible  <bruno@clisp.org>
53386
53387         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53388         stpncpy.c uses it.
53389
53390 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53391
53392         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53393         The workaround isn't strictly needed for POSIX conformance, and
53394         it's too much of a pain to configure and maintain.  We'll ask
53395         people to fix their kernels instead.
53396         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53397         (NANOSLEEP_BUG_WORKAROUND): Remove.
53398         (xnanosleep): Remove the workaround.
53399
53400 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53401
53402         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53403         Reported by Derek Price.
53404         (Include): Add "timespec.h".
53405
53406         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53407
53408 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53409
53410         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53411         to detect nanosleep bug.
53412
53413 2005-03-01  Bruno Haible  <bruno@clisp.org>
53414
53415         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53416
53417 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53418
53419         * modules/gethrxtime: New file.
53420         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53421         (Depends-on): Add gethrxtime.
53422         (configure.ac): Add gl_XNANOSLEEP.
53423         (Makefile.am): Remove lib_SOURCES line.
53424
53425 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53426
53427         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53428         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53429
53430 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53431
53432         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53433         * lib/timespec.h (gettime): Return void, since it always
53434         succeeds now.  All uses changed.
53435         * lib/gettime.c (gettime) Likewise.
53436         [HAVE_NANOTIME]: Prefer nanotime.
53437         Assume gettimeofday succeeds, as POSIX requires.
53438         Assime time () succeeds, since other code already does.
53439         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53440         (timespec_subtract): Remove.
53441         (NANOSLEEP_BUG_WORKAROUND): New constant.
53442         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53443         things considerably.  Use it only on GNU/Linux hosts, since the
53444         workaround shouldn't be needed elsewhere.
53445
53446 2005-02-24  Bruno Haible  <bruno@clisp.org>
53447
53448         * modules/gettext (Files): Add m4/glibc2.m4.
53449
53450 2005-02-24  Bruno Haible  <bruno@clisp.org>
53451
53452         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53453         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53454         * m4/progtest.m4:
53455         Update from GNU gettext 0.14.2.
53456         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53457
53458 2005-02-24  Bruno Haible  <bruno@clisp.org>
53459
53460         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53461         * lib/config.charset: Update from GNU gettext 0.14.2.
53462
53463 2005-02-24  Bruno Haible  <bruno@clisp.org>
53464
53465         * lib/gettext.h: Update from GNU gettext 0.14.2.
53466
53467 2005-02-23  Simon Josefsson  <jas@extundo.com>
53468
53469         * m4/iconvme.m4: New file.
53470
53471 2005-02-23  Jim Meyering  <jim@meyering.net>
53472
53473         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53474         change.
53475         Thanks to Bruno Haible for catching it.
53476
53477 2005-02-22  Simon Josefsson  <jas@extundo.com>
53478
53479         * modules/iconvme: New file.
53480
53481         * MODULES.html.sh: Add iconvme.
53482
53483 2005-02-22  Simon Josefsson  <jas@extundo.com>
53484
53485         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53486
53487 2005-02-22  Simon Josefsson  <jas@extundo.com>
53488
53489         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53490
53491 2005-02-22  Jim Meyering  <jim@meyering.net>
53492
53493         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53494         s/ifndef/ifdef/.
53495
53496 2005-02-20  Neil Conway  <neilc@samurai.com>
53497
53498         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53499         returned by OSX/Darwin if the specified buffer is not large
53500         enough for the hostname.
53501
53502 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53503
53504         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53505         pass it to _help, otherwise the latter coredumps trying to
53506         dereference state.root_argp.
53507
53508 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53509
53510         * modules/chdir-long (Depends-on): Add memrchr.
53511         * modules/memrchr (Files): Add lib/memrchr.h.
53512         (Include): "memrchr.h".
53513
53514 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53515
53516         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53517
53518 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53519
53520         * lib/memrchr.h: New file.
53521         * lib/chdir-long.c: Include it.
53522         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53523         Don't bother including stddef.h.
53524
53525 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53526
53527         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53528         inclusion.
53529         Include <sys/types.h>, for dev_t.
53530         (ME_DUMMY, ME_REMOTE): Move from here....
53531         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53532         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53533         Dmitry V. Levin.
53534         Include mountlist.h first, to test the interface.
53535
53536 2005-01-29  Bruno Haible  <bruno@clisp.org>
53537
53538         * lib/progname.c (program_name): Initialize.
53539         Needed when linking statically on MacOS X.
53540
53541 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53542
53543         Sync from coreutils.
53544         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53545         (Depends-on): Add c-strtod.
53546         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53547
53548 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53549
53550         Sync from coreutils.
53551         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53552
53553         Remove files that are specific to coreutils.
53554         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53555
53556 2005-01-28  Bruno Haible  <bruno@clisp.org>
53557
53558         * modules/javacomp: New file.
53559         * MODULES.html.sh (Java): Add javacomp.
53560
53561 2005-01-28  Bruno Haible  <bruno@clisp.org>
53562
53563         * m4/javacomp.m4: New file, from GNU gettext.
53564
53565 2005-01-28  Bruno Haible  <bruno@clisp.org>
53566
53567         * lib/javacomp.sh.in: New file, from GNU gettext.
53568         * lib/javacomp.h: New file, from GNU gettext.
53569         * lib/javacomp.c: New file, from GNU gettext.
53570
53571 2005-01-26  Simon Josefsson  <jas@extundo.com>
53572
53573         * lib/gai_strerror.c: Use GPL in header.
53574
53575 2005-01-26  Bruno Haible  <bruno@clisp.org>
53576
53577         * modules/javaexec: New file.
53578         * MODULES.html.sh (Java): Add javaexec.
53579
53580 2005-01-26  Bruno Haible  <bruno@clisp.org>
53581
53582         * m4/javaexec.m4: New file, from GNU gettext.
53583
53584 2005-01-26  Bruno Haible  <bruno@clisp.org>
53585
53586         * lib/javaexec.sh.in: New file, from GNU gettext.
53587         * lib/javaexec.h: New file, from GNU gettext.
53588         * lib/javaexec.c: New file, from GNU gettext.
53589
53590 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53591
53592         * modules/lchown (Depends-on): Remove lchown.h
53593
53594 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53595
53596         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53597         must be defined if the header file was not found, in order
53598         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53599
53600 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53601
53602         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53603         initializers for struct pentry_state.
53604         (__argp_error): Check return value of __asprintf
53605         (__argp_failure): Translate error message
53606
53607         * lib/argp-parse.c: Removed braces around the expansion of N_()
53608
53609 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53610
53611         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53612         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53613         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53614         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53615         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53616         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53617         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53618         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53619         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53620         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53621         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53622         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53623         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53624         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53625         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53626         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53627         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53628         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53629         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53630         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53631         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53632         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53633         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53634         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53635         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53636         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53637         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53638         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53639         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53640         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53641         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53642         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53643         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53644         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53645         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53646         Use an all-permissive copyright notice, recommended by RMS.
53647
53648 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53649
53650         * modules/chdir-long (Depends-on): Remove mempcpy.
53651
53652 2005-01-21  Jim Meyering  <jim@meyering.net>
53653
53654         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53655         same value as for Solaris 9.
53656
53657         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53658         component length.  This included changing the parameter to be
53659         of type `char *' rather than `char const *'.
53660         * lib/chdir-long.h (chdir_long): Update prototype.
53661
53662         * lib/openat.c (fdopendir, fstatat): New functions.
53663         * lib/openat.h: Include headers required for use of DIR and struct
53664         stat.
53665         [AT_SYMLINK_NOFOLLOW]: Define.
53666         (fdopendir, fstatat): Add prototypes.
53667
53668 2005-01-21  Bruno Haible  <bruno@clisp.org>
53669
53670         * modules/classpath: New file.
53671         * MODULES.html.sh (Java): Add classpath.
53672
53673 2005-01-21  Bruno Haible  <bruno@clisp.org>
53674
53675         * lib/classpath.h: New file, from GNU gettext.
53676         * lib/classpath.c: New file, from GNU gettext.
53677
53678 2005-01-20  Simon Josefsson  <jas@extundo.com>
53679
53680         * modules/version-etc-fsf: New file.
53681
53682 2005-01-20  Simon Josefsson  <jas@extundo.com>
53683
53684         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53685         * lib/version-etc.c: Remove version_etc_copyright.
53686         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53687         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53688
53689 2005-01-20  Simon Josefsson  <jas@extundo.com>
53690
53691         * lib/base64.h (isbase64): Add.
53692
53693         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53694         using a unsigned prototype, don't inline.
53695         (base64_decode): Use it.
53696
53697 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53698
53699         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53700         it.
53701
53702 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53703
53704         * lib/save-cwd.c (save_cwd): Remove code to support the case
53705         where fchdir is missing or flaky.
53706
53707 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53708
53709         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53710
53711 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53712
53713         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53714         AC_LIBSOURCES now does this.
53715         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53716         with new ullong_max module.
53717
53718 2005-01-19  Bruno Haible  <bruno@clisp.org>
53719
53720         * modules/sh-quote: New file.
53721         * MODULES.html.sh (Executing programs): Add sh-quote.
53722
53723 2005-01-19  Bruno Haible  <bruno@clisp.org>
53724
53725         * lib/sh-quote.h: New file, from GNU gettext.
53726         * lib/sh-quote.c: New file, from GNU gettext.
53727
53728 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53729
53730         Merge from coreutils.
53731         * m4/ullong_max.m4: New file.
53732         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53733         (gl_MACROS): Assume localeconv exists.
53734
53735 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53736
53737         Merge changes from coreutils, as described below in several
53738         changelogs dated today.
53739
53740         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53741         (O_DIRECTORY): Remove; not needed here, since "." must be
53742         a directory.  All uses removed.
53743         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53744         universal on Suns, and we also need to test for IRIX.
53745         Revamp code to use 'if' rather than '#if'.
53746         Avoid unnecessary comparison of cwd->desc to 0.
53747
53748         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53749         for known valid error numbers rather than observed invalid ones.
53750
53751 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53752
53753         * modules/ullong_max: New file.
53754
53755         * modules/chdir-long, modules/openat: New files.
53756         * modules/save-cwd (Depends-on): Depend on chdir-long.
53757         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53758
53759 2005-01-18  Jim Meyering  <jim@meyering.net>
53760
53761         Merge from coreutils.
53762         * m4/chdir-long.m4, m4/openat.m4: New files.
53763         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53764         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53765         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53766         is sane and DOES follow symlinks.  Besides, testing 20 different
53767         systems found no broken chown implementations.
53768         Prompted by a change in rsync's copy of this macro.
53769         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53770
53771         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53772
53773         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53774         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53775         NULL-means-set-to-current-time semantics.
53776         Remove temporary file immediately, rather than waiting
53777         for configure's at-exit trap code to do it.
53778
53779 2005-01-18  Jim Meyering  <jim@meyering.net>
53780
53781         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53782
53783         * lib/utimens.c (futimens): Account for the fact that futimes
53784         can also fail with errno == ENOSYS or errno == ENOENT.
53785         Patch from Dmitry V. Levin.
53786
53787         Change the name of the robust chdir function from chdir to chdir_long.
53788         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53789         (restore_cwd): Use chdir_long, not chdir.
53790         * lib/chdir-long.c: Renamed from chdir.c.
53791         * lib/chdir-long.h: Renamed from chdir.h.
53792         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53793         Hurd.
53794
53795 2005-01-18  Bruno Haible  <bruno@clisp.org>
53796
53797         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53798         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53799         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53800         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53801         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53802         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53803         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53804         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53805         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53806         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53807         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53808         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53809         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53810         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53811         Use an all-permissive copyright notice, recommended by RMS.
53812
53813 2005-01-18  Bob Proulx  <bob@proulx.com>
53814
53815         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53816         simplify offsetof() macro construct to avoid compile failure with
53817         native HP-UX 11.0 ANSI C compiler.
53818
53819 2005-01-17  Bruno Haible  <bruno@clisp.org>
53820
53821         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53822         redundant because stpncpy.m4 takes care of it.
53823
53824 2005-01-17  Bruno Haible  <bruno@clisp.org>
53825
53826         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53827
53828 2005-01-17  Bruno Haible  <bruno@clisp.org>
53829
53830         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53831         used.
53832
53833 2005-01-17  Bruno Haible  <bruno@clisp.org>
53834
53835         * lib/fwriteerror.h (fwriteerror): Change specification to include
53836         fclose.
53837         * lib/fwriteerror.c: Include <stdbool.h>.
53838         (fwriteerror): At the end, close the file stream. Record whether
53839         stdout was already closed.
53840
53841 2005-01-17  Bruno Haible  <bruno@clisp.org>
53842
53843         * lib/execute.c (environ): Declare if needed.
53844         * lib/pipe.c (environ): Likewise.
53845         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53846
53847 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53848
53849         * modules/argp: Depend on vsnprintf
53850
53851 2005-01-10  Jim Meyering  <jim@meyering.net>
53852
53853         * modules/closeout (Depends-on): Add atexit.
53854
53855 2005-01-06  Bruno Haible  <bruno@clisp.org>
53856
53857         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53858
53859 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53860
53861         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53862         definitions to be after all include files, to avoid collisions.
53863         Problem reported by Bob Proulx.
53864
53865 2005-01-04  Jim Meyering  <jim@meyering.net>
53866
53867         Changes imported from coreutils.
53868         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53869         as the mkstemp template, use a temporary directory and an
53870         8.3-friendly template to avoid trouble on systems like DJGPP.
53871         Reported by Juan M. Guerrero via Stepan Kasal.
53872         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53873         close. Remove the temporary directory right away, rather than waiting
53874         for configure's at-exit trap code to do it.
53875         Suggestion from Stepan Kasal.
53876
53877 2005-01-01  Simon Josefsson  <jas@extundo.com>
53878
53879         * gnulib-tool: Print #include directives when --import'ing.
53880
53881 2004-12-28  Simon Josefsson  <jas@extundo.com>
53882
53883         * tests/test-base64.c: Include required header files.  Remove
53884         unused variables.
53885
53886 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53887
53888         * modules/error (Depends-on): Remove gettext.
53889
53890 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53891
53892         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53893         not needed.  This removes a dependency on the gettext module.
53894         [defined _LIBC]: Do not include <libintl.h>; not needed.
53895
53896 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53897
53898         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53899         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53900
53901 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53902
53903         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53904         HAVE_DECL_STRTOLD.
53905
53906 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53907
53908         * modules/getdate (Depends-on): Remove alloca-opt.
53909
53910 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53911
53912         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53913
53914 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53915
53916         * lib/argp-parse.c: Include <stddef.h>.
53917         (alignof, alignto): New macros.
53918         (parser_init): Don't assume that void * is aligned sufficiently
53919         for struct option.
53920
53921         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53922         need to extend the stack.
53923         (YYINITDEPTH): New macro, so that the initial stack isn't overly
53924         large.
53925
53926 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53927
53928         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53929
53930 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53931
53932         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53933         (2004-10-24) change.  Apparently this was a false alarm.
53934
53935         * modules/getdate: Depend on alloca-opt, not alloca.
53936
53937 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53938
53939         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53940         Remove now-obsolete comment about AIX.
53941         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53942         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53943         (YYMAXDEPTH): New macro.
53944
53945 2004-12-18  Simon Josefsson  <jas@extundo.com>
53946
53947         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53948
53949 2004-12-18  Bruno Haible  <bruno@clisp.org>
53950
53951         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53952
53953 2004-12-18  Bruno Haible  <bruno@clisp.org>
53954
53955         * lib/fatal-signal.c (fatal_signals): Make non-const.
53956         (init_fatal_signals): New function.
53957         (uninstall_handlers, install_handlers): Ignore signals that were set to
53958         SIG_IGN.
53959         (at_fatal_signal): Call init_fatal_signals.
53960         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53961         SIG_IGN.
53962         Reported by Paul Eggert.
53963
53964 2004-12-18  Bruno Haible  <bruno@clisp.org>
53965
53966         * doc/alloca.texi: New file.
53967         * doc/alloca-opt.texi: New file.
53968
53969 2004-12-17  Jim Meyering  <jim@meyering.net>
53970
53971         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53972         Otherwise, install-sh could exit with improper exit status when
53973         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
53974
53975 2004-12-16  Simon Josefsson  <jas@extundo.com>
53976
53977         * tests/test-base64.c: Add license.
53978
53979 2004-12-15  Stepan Kasal  <address@hidden>
53980
53981         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53982
53983 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
53984
53985         * modules/getcwd (Files): Add m4/d-ino.m4.
53986         Suggested by Mark D. Baushke.
53987
53988 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53989
53990         * lib/getdate.y (textint): New member "negative".
53991         (time_zone_hhmm): New function.
53992         Expect 14 shift-reduce conflicts, not 13.
53993         (o_colon_minutes): New rule.
53994         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53995         (yylex): Set the "negative" member of signed numbers.
53996
53997 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53998
53999         * doc/getdate.texi (Time of day items, Time zone items):
54000         Describe new formats +00:00, UTC+00:00.
54001
54002 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54003
54004         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
54005         spurious "-l"s.  Problem reported by Stepan Kasal.
54006
54007 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
54008
54009         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
54010         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54011
54012 2004-12-04  Simon Josefsson  <jas@extundo.com>
54013
54014         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54015         Vandoorselaere <yoann@prelude-ids.org>.
54016
54017 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54018
54019         Changes imported from coreutils.
54020         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54021         exist.
54022         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54023
54024 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54025
54026         Changes imported from coreutils.
54027         * lib/hard-locale.c: Assume <locale.h> exists.
54028         Include "strdup.h".
54029         (GLIBC_VERSION): New macro.
54030         (hard_locale): Assume setlocale exists.
54031         Rewrite to avoid #ifdef.
54032         Use strdup rather than malloc + strcpy.
54033         * lib/human.c: Assume <locale.h> exists.
54034         (human_readable): Assume localeconv exists.
54035
54036 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54037
54038         * modules/hard-locale (Depends-on): Add strdup.
54039
54040 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54041
54042         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54043         convert T2, not T.  (Imported from libc.)
54044
54045 2004-11-30  Simon Josefsson  <jas@extundo.com>
54046
54047         * modules/restrict (License): Change to LGPL.
54048
54049 2004-11-30  Simon Josefsson  <jas@extundo.com>
54050
54051         * m4/restrict.m4: Add copyright and copying conditions.
54052
54053 2004-11-30  Simon Josefsson  <jas@extundo.com>
54054
54055         * m4/base64.m4: New file.
54056
54057 2004-11-30  Simon Josefsson  <jas@extundo.com>
54058
54059         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54060         base64.
54061
54062         * tests/test-base64.c: New file.
54063
54064         * modules/base64: New file.
54065
54066 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54067
54068         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54069         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54070
54071         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54072
54073 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54074
54075         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54076         (__getcwd.c): Don't restore errno; glibc doesn't.
54077         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54078         first, falling back to our code only if its results look suspicious.
54079         Ensure that the resulting buffer is only as large as necessary.
54080
54081         * lib/readutmp.c: Include readutmp.h first.
54082         Include <errno.h>, since readutmp.h no longer does that.
54083         * lib/readutmp.h: Don't include <errno.h>,
54084         <sys/param.h>, <time.h>; not needed to establish interface.
54085         (errno): Remove decl.
54086         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54087         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54088         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54089
54090 2004-11-28  Simon Josefsson  <jas@extundo.com>
54091
54092         * lib/base64.h, base64.c: New file.
54093
54094 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54095
54096         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54097
54098 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54099
54100         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54101         (Depends-on): Remove pathmax, same.  Add mempcpy.
54102         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54103         (Makefile.am): Append getcwd.h to lib_SOURCES.
54104         (Include): Add getcwd.h.
54105         (Maintainer): Change from Jim Meyering to "all, glibc",
54106         since getdate now uses intended-for-glibc code.
54107         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54108         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54109
54110 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54111
54112         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54113         HP's ANSI C compiler.
54114         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54115         Declaring int functions causes warnings on some modern systems and
54116         shouldn't be needed to compile on ancient ones.
54117         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54118         defined.
54119
54120         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54121         with the following changes.
54122         (__set_errno): Parenthesize properly.
54123         Include <stdbool.h>.
54124         (MIN, MAX, MATCHING_INO): New macros.
54125         (__getcwd): Define with prototype, not K&R form.
54126         Use heuristics to allocate default buffer on stack if possible.
54127         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54128         behavior, and to avoid the PATH_MAX limit when computing
54129         ../../../../...
54130         Use MATCHING_INO to compare inode number to file.
54131         Check for arithmetic overflow in size calculations.
54132         Fix bug in reallocation of dot array that caused getcwd to fail
54133         on directories nested deeper than 75.
54134         Be more careful about saving errno on error.
54135         Do not use realloc; use only free+malloc, as this is a bit
54136         more flexible and avoids a needless copy operation.
54137         Do not inspect st_dev and st_ino for symbolic links; POSIX
54138         doesn't specify the latter.
54139         Check for closedir errors.
54140         Avoid needless casts.
54141         Use "#ifdef weak_alias" around weak_alias, to be like other
54142         glibc code.
54143         The following changes to getcwd.c have effect only when used in
54144         gnulib; they have no effect inside glibc proper.
54145         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54146         as alloca isn't used.
54147         (alloca, __alloca): Likewise.
54148         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54149         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54150         unconditionally, as gnulib assumes C89 or better.
54151         Do not include <sys/param.h>.
54152         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54153         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54154         better.
54155         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54156         Include <dirent.h> in a way that is compatible with modern Autoconf.
54157         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54158         New macros, if not already defined.
54159         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54160         Use "_LIBC", not "defined _LIBC", for consistency.
54161         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54162         a mempcpy module.
54163         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54164         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54165         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54166         credit only to Jim Meyering and adjust the copyright dates.
54167         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54168         <stdlib.h>, <unistd.h>, "pathmax.h".
54169         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54170         (INITIAL_BUFFER_SIZE): Remove.
54171         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54172
54173 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54174
54175         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54176         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54177         Use the _ONCE methods, for efficiency.
54178         Check for fcntl.h.  In test program, include <errno.h>
54179         and <fcntl.h> if available.  Remove old K&R cruft from
54180         test program.  Check for common errors in GNU/Linux,
54181         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54182         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54183         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54184         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54185         name accordingly.
54186         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54187         accommodate new getcwd.c.
54188         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54189         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54190         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54191         that's all we need now.
54192
54193 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54194
54195         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54196         argp-parse.c depends on getopt internals, that means we should
54197         always use our getopt, to be on the safe side.
54198         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54199         order not to spoil the result of an eventual previous invocation
54200         of gl_GETOPT_SUBSTITUTE.
54201
54202 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54203
54204         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54205         redefinition warnings. To avoid them, include the defines
54206         in `#if !defined __need_getopt ... #endif'. The only place
54207         where __getopt_argv_const is used is in definitions
54208         of getopt_long and getopt_long_only below, which are as well
54209         protected by `#ifndef __need_getopt'.
54210         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54211         __need_getopt after including <stdio.h> and <unistd.h> These
54212         headers might have defined it.
54213
54214 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54215
54216         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54217
54218 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54219
54220         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54221         (futimens): New function, which uses futimes if available.
54222         (futimens, utimens): Support timespec==NULL, with same semantics
54223         as utime and utimens.
54224         * lib/utimens.h (futimens): New decl.
54225
54226 2004-11-23  Jim Meyering  <jim@meyering.net>
54227
54228         * lib/getopt_.h: Remove trailing blanks.
54229
54230 2004-11-23  Jim Meyering  <jim@meyering.net>
54231
54232         * lib/__fpending.c: Add comment.
54233
54234 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54235
54236         * modules/canonicalize (Depends-on): Add xreadlink.
54237         Problem reported by James Youngman.
54238
54239 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54240
54241         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54242         New macros.
54243         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54244         optopt): Use them instead of invoking ## directly; otherwise, the
54245         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54246
54247 2004-11-19  Bruno Haible  <bruno@clisp.org>
54248
54249         * lib/strtok_r.c: Move comments from here...
54250         * lib/strtok_r.h: ... to here.
54251
54252 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54253
54254         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54255         implementations that mishandle size_t overflow.
54256
54257 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54258
54259         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54260         might fail.  Problem reported by Yoann Vandoorselaere.
54261         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54262         implementations that mishandle size_t overflow.
54263
54264 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54265
54266         * modules/canon-host (Depends-on): Add strdup.
54267
54268 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54269
54270         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54271
54272 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54273
54274         * lib/canon-host.c: Include "strdup.h".
54275         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54276         Use strdup instead of malloc/strcpy to duplicate strings.
54277
54278         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54279         (human_space_before_unit): New constant.
54280         * lib/human.c (human_readable): Support it.
54281
54282         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54283         (xgetcwd): Set errno correctly when failing.
54284         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54285         the failure is actually due to a PATH_MAX problem.
54286
54287         Further getopt changes to make it more likely that glibc will
54288         buy the changes back.
54289         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54290         (getopt): Use it, so to preserve glibc semantic
54291         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54292         when compiling for libc.
54293         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54294         (getopt_long, getopt_long_only): Use it.
54295
54296         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54297         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54298         (getopt): Argv is now char * const *, as per standard.
54299         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54300         not char *__getopt_argv_const *.
54301         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54302         _getopt_long_only_r): Likewise.
54303         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54304         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54305         _getopt_long_r, _getopt_long_only_r): Likewise.
54306         * lib/getopt_.h (__getopt_argv_const): Remove.
54307         (getopt): Argv is now char * const *, as per standard.
54308
54309         * lib/getdate.y (tORDINAL): New token.
54310         (day, relunit): Allow it for relative times.
54311         (relative_time_table): Use tORDINAL for ordinals.
54312
54313 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54314
54315         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54316         Document that "second" isn't allowed as an ordinal number.
54317
54318 2004-11-16  Jim Meyering  <jim@meyering.net>
54319
54320         * modules/closeout (Depends-on): Add fpending.
54321
54322 2004-11-15  Jim Meyering  <jim@meyering.net>
54323
54324         * lib/closeout.c: Include "__fpending.h" once again.
54325         Include <stdbool.h>.
54326         (close_stdout): Don't fail just because stdout was closed initially,
54327         since some programs don't write to stdout in the normal course of
54328         operation (other than --version and --help), and we don't want this
54329         function to make e.g. `touch file >&-' fail.
54330         But do fail if it was closed and someone has tried to write to it.
54331         E.g., `printf foo >&-' must fail.
54332
54333 2004-11-13  Jim Meyering  <jim@meyering.net>
54334
54335         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54336
54337 2004-11-12  Simon Josefsson  <jas@extundo.com>
54338
54339         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54340         small doc fix is still pending.
54341
54342 2004-11-11  Simon Josefsson  <jas@extundo.com>
54343
54344         * modules/strtok_r: New file.
54345
54346         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54347         strtok_r.
54348
54349 2004-11-11  Simon Josefsson  <jas@extundo.com>
54350
54351         * m4/strtok_r.m4: New file.
54352
54353         * m4/getopt.m4: Replace opterr.
54354
54355 2004-11-11  Simon Josefsson  <jas@extundo.com>
54356
54357         * lib/strtok_r.h, strtok_r.c: New file.
54358
54359 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54360
54361         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54362         of replacing opterr, getopt, etc.  This should handle the
54363         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54364
54365 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54366
54367         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54368         we can stop lying to compilers about the constness of argv when we
54369         are compiled outside glibc.
54370         (getopt, getopt_long, getopt_long_only): Use it.
54371         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54372         _getopt_internal, getopt): Likewise.
54373         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54374         _getopt_long_only_r): Likewise.
54375         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54376         _getopt_long_r, _getopt_long_only_r): Likewise.
54377
54378         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54379         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54380         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54381         the other external symbols.
54382         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54383         declaration, since the above renaming now works around collisions.
54384
54385 2004-11-11  Jim Meyering  <jim@meyering.net>
54386
54387         * lib/linebreak.c: Remove trailing blanks.
54388         * lib/alloca_.h: Likewise.
54389         * lib/acosl.c: Likewise.
54390         * lib/euidaccess.c: Likewise.
54391         * lib/allocsa.h: Likewise.
54392
54393 2004-11-10  Simon Josefsson  <jas@extundo.com>
54394
54395         * m4/getaddrinfo.m4: New file.
54396
54397 2004-11-10  Simon Josefsson  <jas@extundo.com>
54398
54399         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54400
54401 2004-11-10  Simon Josefsson  <jas@extundo.com>
54402
54403         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54404         getaddrinfo.
54405
54406         * modules/getaddrinfo: New file.
54407
54408 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54409
54410         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54411
54412 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54413
54414         * lib/mktime.c (SHR): New macro, which is a portable
54415         substitute for >> that should work even on Crays.
54416         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54417         Problem reported by Mark D. Baushke in
54418         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54419         * lib/getdate.y (SHR): Likewise.
54420         (tm_diff): Use it.
54421         * lib/strftime.c (SHR): Likewise.
54422         (tm_diff): Use it.
54423         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54424         quote_these_too, so that right shifts are well defined.  All uses
54425         changed.
54426
54427 2004-11-10  Jim Meyering  <jim@meyering.net>
54428
54429         Ensure that no close failure goes unreported.
54430         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54431         return early when it seems there's nothing to flush.
54432         Don't include __fpending.h.
54433
54434 2004-11-10  Jim Meyering  <jim@meyering.net>
54435
54436         * modules/closeout (Depends-on): Remove fpending.
54437
54438 2004-11-10  Jim Meyering  <jim@meyering.net>
54439
54440         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54441
54442 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54443
54444         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54445         gl_FUNC_STRFTIME.
54446         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54447         and AC_REQUIRE when possible, to avoid duplicate checks.
54448         Check for <wchar.h>.
54449
54450 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54451
54452         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54453
54454 2004-11-09  Bruno Haible  <bruno@clisp.org>
54455
54456         * m4/sockpfaf.m4: New file.
54457
54458 2004-11-05  Bruno Haible  <bruno@clisp.org>
54459
54460         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54461         Reported by Mark D. Baushke <mdb@cvshome.org>.
54462
54463 2004-11-04  Bruno Haible  <bruno@clisp.org>
54464
54465         2004-09-11  Bruno Haible  <bruno@clisp.org>
54466                 * allocsa.valgrind: New file.
54467         2004-02-06  Bruno Haible  <bruno@clisp.org>
54468                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54469                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54470                 Reported by Christopher Seip <chris.seip@hp.com>.
54471
54472 2004-11-04  Bruno Haible  <bruno@clisp.org>
54473
54474         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54475         (Makefile.am): Distribute it.
54476
54477 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54478
54479         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54480         with errno == ERANGE if the buffer is too small.
54481         Problem reported by Mark D. Baushke.
54482
54483 2004-11-03  Albert Chin  <china@thewrittenword.com>
54484             Paul Eggert  <eggert@cs.ucla.edu>
54485
54486         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54487         equivalent, substitute $ac_type for equivalent type rather than
54488         blindly using uint32_t *always* which won't work if uint32_t is not
54489         available.  Define _UINT32_T to work around typedef of uint32_t if
54490         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54491         2.5.1.
54492
54493 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54494
54495         * m4/jm-macros.m4: Sync from coreutils.
54496         (gl_MACROS): Check for mbrlen, for pathchk.
54497         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54498
54499 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54500
54501         * lib/xreadlink.c (MAXSIZE): New macro.
54502         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54503         size does not exceed MAXSIZE.  Avoid cast.
54504         As suggested by Mark D. Baushke in
54505         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54506         if readlink fails with buffer size just under MAXSIZE, try again
54507         with MAXSIZE.
54508
54509 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54510
54511         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54512
54513 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54514         and  Paul Eggert  <eggert@cs.ucla.edu>
54515
54516         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54517         (get_date): Overparenthesize to avoid GCC warning.
54518
54519 2004-11-02  Bruno Haible  <bruno@clisp.org>
54520
54521         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54522         returns void.
54523
54524 2004-11-02  Bruno Haible  <bruno@clisp.org>
54525
54526         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54527         function returns void.
54528
54529 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54530
54531         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54532         fflush_unlocked, flockfile, funlockfile, funlockfile,
54533         fputs_unlocked, putc_unlocked.
54534
54535 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54536
54537         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54538         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54539         already declared.
54540
54541 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54542
54543         * modules/getdate (Files): Add doc/getdate.texi.
54544         (Depends-on): Add setenv, xalloc.
54545
54546 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54547
54548         * lib/getdate.y: Add support for TZ="foo" within a date string.
54549         Fix some bugs near time_t boundaries.  Reject dates with
54550         out-of-range components, e.g., "Sept 31".
54551         Include <stdlib.h>, "setenv.h", "xalloc.h".
54552         (ISDIGIT_LOCALE): Remove; unused.
54553         Note that the TZ and time functions used here are not reentrant.
54554         (mktime_ok, get_tz): New functions.
54555         (TZBUFSIZE): New constant.
54556         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54557         This requires that we sometimes generate our own TZ="XXX..." setting.
54558
54559 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54560
54561         * doc/getdate.texi: New file, from coreutils with modifications for
54562         the new TZ parsing.
54563
54564 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54565
54566         * lib/mktime.c (not_equal_tm): Remove redundant check.
54567
54568 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54569
54570         * modules/regex (lib_SOURCES): Add regex.c.
54571         Reported by James Youngman in
54572         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54573
54574 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54575
54576         * lib/getdate.y: Use Bison 1.875 features, and some minor
54577         code cleanups.  This change does not affect semantics.
54578         Don't include <stdlib.h>; no longer needed.
54579         Don't include unlocked-io.h; only the "#if TEST" code uses
54580         stdio, and performance isn't crucial there.
54581         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54582         Bison 1.875 features as described below.
54583         All uses of "PC." replaced by "pc->".
54584         (YYSTYPE): Add a forward declaration.
54585         (yylex, yyerror): Use full prototypes in forward decls.
54586         Use "%pure-parser" rather than obsolescent "%pure_parser".
54587         Use %parse-param and %lex-param instead of obsolescent
54588         YYPARSE_PARAM and YYLEX_PARAM.
54589         (meridian_table, month_and_day_table, time_units_table,
54590         relative_time_table, time_zone_table, military_table,
54591         lookup_zone, lookup_word, get_date):
54592         Use NULL instead of 0 where appropriate.
54593         (to_hour): Avoid abort (), to avoid a dependency on
54594         stdlib.h.
54595         (yyerror, yylex): Now accepts parser_control * arg.
54596         (main) [TEST]: Use '\0' rather than 0 for char.
54597
54598 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54599
54600         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54601
54602 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54603
54604         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54605         It's now the caller's responsibility to handle the case where
54606         !HAVE_GETPAGESIZE && !defined getpagesize.
54607
54608         * lib/mktime.c (leapyear): Arg is long int, not int.
54609
54610 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54611
54612         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54613
54614 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54615
54616         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54617         missing.  Problem reported by James Youngman.
54618
54619 2004-10-16  Simon Josefsson  <jas@extundo.com>
54620
54621         * gnulib-tool: Fix comments.  Fix parse problem.
54622         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54623
54624 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54625
54626         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54627         implementation of getopt_long.  Problem reported by Alexander Taler in:
54628         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54629
54630 2004-10-15  Bruno Haible  <bruno@clisp.org>
54631
54632         * gnulib-tool: Untabify. Initialize supplied_libname.
54633         (func_usage): More homogenous output.
54634         (func_modules_transitive_closure, func_modules_to_filelist,
54635         func_emit_lib_Makefile_am): New functions.
54636         (func_import): New function, extracted from big case statement. Use
54637         func_get_license, func_modules_transitive_closure,
54638         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54639         opt_lgpl. Don't use test -a, as it's not portable.
54640         (func_create_testdir): Use func_modules_transitive_closure,
54641         func_modules_to_filelist, func_emit_lib_Makefile_am.
54642
54643 2004-10-15  Bruno Haible  <bruno@clisp.org>
54644
54645         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54646
54647 2004-10-15  Bruno Haible  <bruno@clisp.org>
54648
54649         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54650         the portions belonging to each module.
54651         Suggested by Derek Robert Price <derek@ximbiot.com>.
54652
54653 2004-10-12  Simon Josefsson  <jas@extundo.com>
54654
54655         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54656         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54657         to real functions.
54658
54659 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54660
54661         * modules/vsnprintf: New file.
54662
54663 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54664
54665         * m4/vsnprintf.m4: New file.
54666
54667 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54668
54669         * lib/vsnprintf.h: New file.
54670         * lib/vsnprintf.c: New file.
54671
54672 2004-10-11  Bruno Haible  <bruno@clisp.org>
54673
54674         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54675         vsnprintf.
54676
54677 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54678
54679         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54680
54681 2004-10-07  Bruno Haible  <bruno@clisp.org>
54682
54683         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54684         fits into the provided buffer.
54685
54686 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54687
54688         * lib/diacrit.c, diacrit.h: Add GPL notice.
54689
54690         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54691         notice.
54692         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54693         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54694         This avoids a potential constant-folding bug.
54695
54696 2004-10-05  Bruno Haible  <bruno@clisp.org>
54697
54698         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54699         for the declaration of strsep.
54700
54701 2004-10-05  Bruno Haible  <bruno@clisp.org>
54702
54703         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54704
54705 2004-10-04  Simon Josefsson  <jas@extundo.com>
54706
54707         * modules/memmem: New file.
54708         * tests/test-memmem.c: New file.
54709         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54710
54711 2004-10-04  Simon Josefsson  <jas@extundo.com>
54712
54713         * m4/memmem.m4: New file.
54714
54715 2004-10-04  Simon Josefsson  <jas@extundo.com>
54716
54717         * lib/memmem.h: New file.
54718         * lib/memmem.c: New file, taken from glibc.
54719
54720 2004-10-04  Simon Josefsson  <jas@extundo.com>
54721
54722         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54723         '#ifdef USE_UNLOCKED_IO'.
54724
54725 2004-10-04  Simon Josefsson  <jas@extundo.com>
54726
54727         * config/srclist.txt: Add memmem from glibc.
54728
54729 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54730
54731         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54732
54733         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54734         modules/exclude, modules/getdate, modules/getline,
54735         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54736         modules/getusershell, modules/linebuffer, modules/md5,
54737         modules/mountlist, modules/posixtm, modules/readtokens,
54738         modules/readutmp, modules/regex, modules/sha1,
54739         modules/version-etc, modules/yesno:
54740         Remove dependency on unlocked-io.
54741
54742 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54743
54744         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54745
54746         * m4/unlocked-io.m4: Add copyright notice.
54747         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54748
54749 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54750
54751         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54752         * lib/xmalloc.c (xmemdup): Likewise.
54753         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54754         XFREE): Remove these long-obsolescent macros.
54755         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54756         * lib/xstrdup.c: Remove.
54757
54758         * lib/regex.c (re_comp): Cast gettext return value to char *,
54759         Problem reported by Martin Neitzel via Mark D. Baushke.
54760
54761 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54762
54763         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54764         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54765         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54766         regex.c, sha1.c, version-etc.c, yesno.c:
54767         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54768         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54769         the includer's responsibility.
54770
54771         Sync from coreutils.
54772
54773         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54774         points to the start of a string, as the C Standard says the
54775         resulting behavior is undefined.
54776
54777         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54778         simple -> simple_backups, numbered_existing ->
54779         numbered_existing_backups, numbered -> numbered_backups
54780         to avoid shadowing problems.  All uses changed.
54781         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54782         * lib/backupfile.c (check_extension, numbered_backup):
54783         Rename locals to avoid shadowing 'basename'.
54784         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54785         once.
54786
54787         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54788         * lib/.cvsignore: Add getopt.h.
54789
54790 2004-10-04  Bruno Haible  <bruno@clisp.org>
54791
54792         * modules/README: New file.
54793         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54794         not a module.
54795
54796 2004-10-02  Jim Meyering  <jim@meyering.net>
54797
54798         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54799
54800 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54801
54802         * modules/strsep: New file.
54803
54804 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54805
54806         * m4/strsep.m4: New file.
54807
54808 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54809
54810         * lib/strsep.h: New file.
54811         * lib/strsep.c: New file.
54812
54813 2004-10-01  Simon Josefsson  <jas@extundo.com>
54814
54815         * lib/snprintf.c (snprintf): Handle size==0.
54816
54817 2004-10-01  Simon Josefsson  <jas@extundo.com>
54818             Bruno Haible  <bruno@clisp.org>
54819
54820         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54821         (snprintf): Declare 'args'.
54822
54823 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54824
54825         * lib/snprintf.c: Remove comments as to why each header is needed.
54826
54827 2004-10-01  Bruno Haible  <bruno@clisp.org>
54828
54829         * MODULES.html.sh: Add strsep.
54830
54831 2004-09-30  Simon Josefsson  <jas@extundo.com>
54832
54833         * modules/snprintf: New file.
54834
54835 2004-09-30  Simon Josefsson  <jas@extundo.com>
54836
54837         * m4/snprintf.m4: New file.
54838
54839 2004-09-30  Simon Josefsson  <jas@extundo.com>
54840
54841         * lib/snprintf.h, lib/snprintf.c: New files.
54842
54843 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54844
54845         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54846         (hol_entry_help): Never translate an empty string.
54847         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54848         * lib/argp.h (OPTION_NO_TRANS): New option.
54849
54850 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54851
54852         * modules/argp (Maintainer): Replace Simon Josefsson
54853         by Sergey Poznyakoff.
54854
54855 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54856
54857         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54858         changes merged back into glibc.
54859
54860 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54861
54862         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54863
54864 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54865
54866         * lib/xvasprintf.c: Include xalloc.h.
54867         (xvasprintf): Use xalloc_die, not xmalloc_die.
54868
54869 2004-09-29  Bruno Haible  <bruno@clisp.org>
54870
54871         * modules/alloca-opt: New file, derived from modules/alloca.
54872         * modules/allocsa: Depend on alloca-opt instead of alloca.
54873         * modules/setenv: Likewise.
54874         * modules/vasnprintf: Likewise.
54875         * MODULES.html.sh: Add alloca-opt.
54876
54877 2004-09-28  Simon Josefsson  <jas@extundo.com>
54878
54879         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54880         LGPL, and to replace license template from GPL to LGPL.
54881
54882 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54883
54884         * modules/dummy: Change license to LGPL.
54885
54886 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54887
54888         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54889
54890 2004-09-24  Simon Josefsson  <jas@extundo.com>
54891
54892         * modules/minmax (License): Change from GPL to LGPL.
54893
54894 2004-09-23  Simon Josefsson  <jas@extundo.com>
54895
54896         * gnulib-tool (--import): Typo.
54897
54898 2004-09-23  Simon Josefsson  <jas@extundo.com>
54899
54900         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54901
54902 2004-09-22  Bruno Haible  <bruno@clisp.org>
54903
54904         * modules/*: Add 'License' field.
54905         * gnulib-tool: Accept --extract-license option.
54906         (func_get_license): New function.
54907
54908 2004-09-21  Bruno Haible  <bruno@clisp.org>
54909
54910         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54911         Reported by Simon Josefsson.
54912
54913 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54914
54915         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54916         gl_AC_TYPE_LONG_LONG.
54917
54918 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54919
54920         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54921
54922 2004-09-18  Simon Josefsson  <jas@extundo.com>
54923         and  Paul Eggert  <eggert@cs.ucla.edu>
54924
54925         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54926         calls with autoreconf.  Define GL_LIB.
54927
54928 2004-09-14  Karl Berry  <karl@gnu.org>
54929
54930         * config/srclist.txt: unsync setenv.c, sigh.
54931
54932 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54933
54934         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54935         Problem reported by Bruno Haible in:
54936         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54937
54938 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54939
54940         * config/srclist.txt: Comment out argp-pvh.c.
54941
54942 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54943
54944         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54945         in case some system header has #define'd it.  Problem reported by
54946         Soeren D. Schulze in
54947         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54948
54949 2004-09-09  Karl Berry  <karl@gnu.org>
54950
54951         * regex.[ch]: delete from the root.  These were supposed to be
54952                 synced with emacs cvs, but this has not happened for about
54953                 a year, and anyway nothing else uses emacs regex.[ch].
54954                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54955                 lib/regex[.ch] is untouched.
54956
54957 2004-09-09  Bruno Haible  <bruno@clisp.org>
54958
54959         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54960
54961 2004-09-09  Bruno Haible  <bruno@clisp.org>
54962
54963         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54964         modifications.
54965         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54966
54967 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54968
54969         * modules/xvasprintf: New file.
54970         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54971
54972 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54973
54974         * lib/xvasprintf.h: New file.
54975         * lib/xvasprintf.c: New file.
54976         * lib/xasprintf.c: New file.
54977
54978 2004-09-08  Bruno Haible  <bruno@clisp.org>
54979
54980         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54981
54982 2004-09-08  Bruno Haible  <bruno@clisp.org>
54983
54984         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54985         length is > INT_MAX.
54986         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54987         more.
54988
54989 2004-09-08  Bruno Haible  <bruno@clisp.org>
54990
54991         * lib/stdint_.h: New file, taken from GNU clisp.
54992
54993 2004-09-08  Bruno Haible  <bruno@clisp.org>
54994             Oskar Liljeblad  <oskar@osk.mine.nu>
54995
54996         * modules/stdint: New file.
54997         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54998
54999 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55000
55001         Import from coreutils.
55002         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
55003         strings on unbounded length.  alloca's performance benefits aren't
55004         that important here.
55005         (V_STRDUP): Remove.
55006         (parse_with_separator): New function, with most of the internals
55007         of the old parse_user_spec.  Allow user to omit both user and group,
55008         for compatibility with FreeBSD.
55009         Clone only the user name, not the entire spec.
55010         Do not set *uid, *gid unless entirely successful.
55011         Avoid memory leak in some failing cases.
55012         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55013         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55014         (parse_user_spec): Rewrite to use parse_with_separator.
55015
55016 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55017
55018         * modules/userspec: Don't depend on alloca.
55019
55020 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55021
55022         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55023
55024 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55025
55026         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55027         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55028         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55029
55030 2004-08-16  Simon Josefsson  <jas@extundo.com>
55031
55032         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55033         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55034         Add --dry-run for --import.
55035         Let user provided command line parameters override configure.ac
55036         settings.
55037
55038 2004-08-12  Simon Josefsson  <jas@extundo.com>
55039
55040         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55041         as discussed with Paul Eggert in threads rooted at
55042         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55043         and
55044         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55045         Before, the test was empty, and relied on ELIDE_CODE in source
55046         code.)
55047         (gl_PREREQ_GETOPT): New macro.
55048         (gl_GETOPT): Use them.
55049
55050 2004-08-12  Simon Josefsson  <jas@extundo.com>
55051
55052         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55053         * lib/getopt_.h: Renamed from getopt.h.
55054
55055 2004-08-12  Simon Josefsson  <jas@extundo.com>
55056
55057         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55058         Change default library name from libfoo to libgnu.
55059         Now, if you have a configure.ac that says:
55060                 gl_SOURCE_BASE(gl)
55061                 gl_M4_BASE(gl/m4)
55062                 gl_MODULES(error getopt etcetera)
55063                 gl_INIT
55064         you can import all you need by running:
55065                 ../gnulib/gnulib-tool --import
55066
55067         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55068         (Makefile.am): Rewrite, use logic from argz.
55069         (Include): Use <getopt.h> instead of "getopt.h".
55070
55071 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55072
55073         * modules/argp (Files): Add m4/unlocked-io.m4.
55074         (Depends-on): Add extensions.
55075
55076 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55077
55078         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55079         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55080         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55081         Check for program_invocation_name, program_invocation_short_name,
55082         flockfile, funlockfile, features.h, _getopt_long_only_r.
55083
55084 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55085
55086         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55087         its complicated substitute.
55088         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55089         and program_invocation_name.
55090         (__argp_basename) [!_LIBC]: Remove; the only use was
55091         replaced by its body.
55092         (__argp_short_program_name): Change condition from
55093         !defined __argp_short_program_name to
55094         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55095         to match argp-namefrob.h.
55096         (__argp_failure): Don't assume strerror_r returns char *.
55097         * lib/argp-parse.c (N_): Define unconditionally.
55098         (argp_default_options): Fill out initializers with 0 to avoid
55099         gcc warnings.
55100
55101 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55102
55103         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55104         getopt1.c.
55105
55106 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55107
55108         Merge from coreutils.
55109
55110         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55111
55112         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55113         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55114
55115 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55116
55117         Merge from coreutils.
55118
55119         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55120         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55121         for Reliant Unix 5.43.
55122
55123         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55124         (union fooround): Use uintmax_t, not long int.
55125         The rest is a merge from libc:
55126         [defined _LIBC]: Include <shlib-compat.h>.
55127         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55128
55129         * lib/settime.c (settime): Recode to avoid warning with
55130         Sun Forte C 6U2.
55131
55132         * lib/strverscmp.c: Convert to UTF-8.
55133
55134 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55135
55136         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55137         m4/uintmax_t.m4.
55138
55139 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55140
55141         * modules/xalloc-die: New file.
55142         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55143
55144         * modules/md5 (Files): Add m4/uint32_t.m4.
55145         * modules/sha1: Renamed from modules/sha.
55146         (Files):
55147         Rename lib/sha.h to lib/sha1.h.
55148         Rename lib/sha.c to lib/sha1.c.
55149         Rename m4/sha.m4 to m4/sha1.m4.
55150         (lib_SOURCES): Likewise.
55151         (configure.ac): Rename gl_SHA to gl_SHA1.
55152         (Include): sha.h -> sha1.h.
55153
55154 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55155
55156         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55157         * m4/sha1.m4: Renamed from sha.m4.
55158         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55159
55160 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55161
55162         * lib/obstack.h (obstack_empty_p):
55163         Don't assume that chunk->contents is suitably aligned.
55164         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55165         Likewise. Problem reported by Benno in
55166         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55167
55168         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55169         readable.  This could be improved further but it'd take some work.
55170
55171 2004-08-08  Simon Josefsson  <jas@extundo.com>
55172
55173         * modules/xgethostname (Depends-on): Remove exit and error (not
55174         used).
55175
55176         * modules/getpass-gnu: Add getpass.h.
55177         (Depends-on): Add stdbool.
55178         * modules/getpass: Add getpass.h.
55179
55180 2004-08-08  Simon Josefsson  <jas@extundo.com>
55181
55182         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55183         Check getpass declaration.
55184
55185 2004-08-08  Simon Josefsson  <jas@extundo.com>
55186
55187         * lib/xgethostname.c: Don't include error.h (not used).
55188
55189         * lib/getpass.h: Add.
55190         * lib/getpass.c: Include getpass.h first.
55191
55192 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55193
55194         * lib/xalloc-die.c: New file.
55195         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55196         All uses removed.
55197         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55198         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55199         xalloc-die.c.
55200         (_, N_, xalloc_die): Move to xalloc-die.c.
55201         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55202         so that we needn't mess with xalloc_msg_memory_exhausted.
55203
55204         * lib/sha1.h: Renamed from sha.h.
55205         (SHA1_H): Renamed from _SHA_H.
55206         (sha1_ctx): Renamed from sha_ctx.
55207         (sha1_init_ctx): Renamed from sha_init_ctx.
55208         (sha1_process_block): Renamed from sha_process_block.
55209         (sha1_process_bytes): Renamed from sha_process_bytes.
55210         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55211         (sha1_read_ctx): Renamed from sha_read_ctx.
55212         (sha1_stream): Renamed from sha_stream.
55213         (sha1_buffer): Renamed from sha_buffer.
55214         * lib/sha1.c: Likewise; renamed from sha.c.
55215         Do not include <sys/types.h>.
55216         Include <stddef.h> rather than <stdlib.h>.
55217
55218 2004-08-08  Bruno Haible  <bruno@clisp.org>
55219
55220         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55221         FILESYSTEM_PREFIX_LEN.
55222         * lib/progreloc.c: Likewise.
55223         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55224
55225 2004-08-06  Simon Josefsson  <jas@extundo.com>
55226
55227         * modules/progname (Depends-on): Don't depend on stdbool.
55228
55229 2004-08-06  Simon Josefsson  <jas@extundo.com>
55230
55231         * modules/getsubopt: New file.
55232         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55233         getsubopt.
55234
55235 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55236
55237         More merge from coreutils.
55238
55239         * m4/utimens.m4, m4/utimecmp.m4: New files.
55240         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55241         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55242         prereq.m4, sha.m4: Import changes from coreutils.
55243
55244 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55245
55246         More merge from coreutils.
55247         * modules/raise, modules/readtokens0, modules/utimens:
55248         * modules/utimecmp, module/xnanosleep: New files.
55249         * modules/strftime: Add lib/strftime.h.
55250         Change include from <time.h> to "strftime.h".
55251         * modules/yesno: Add lib/yesno.h.
55252         * modules/backupfile: Remove lib/addext.c.
55253         * modules/euidaccess: Add stat-macros.h.
55254         * modules/canonicalize, modules/euidaccess,
55255         modules/filemode, modules/lchown, modules/makepath,
55256         modules/rmdir, modules/stat: Likewise.
55257
55258 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55259
55260         Merge from tar.
55261         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55262         SIZE_MAX is a valid preprocessor constant.
55263         (__argp_basename): Change from "#ifndef _LIBC"
55264         to "#ifndef __argp_short_program_name", so that
55265         we don't compile these functions for tar.
55266
55267         More merges from coreutils.
55268         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55269         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55270         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55271         * lib/addext.c: Remove; no longer needed.
55272         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55273         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55274         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55275         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55276         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55277         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55278         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55279         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55280         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55281         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55282         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55283         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55284         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55285         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55286         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55287         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55288         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55289         Import changes from coreutils.
55290
55291 2004-08-05  Simon Josefsson  <jas@extundo.com>
55292
55293         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55294
55295 2004-08-05  Simon Josefsson  <jas@extundo.com>
55296
55297         * m4/getsubopt.m4: New file.
55298
55299 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55300
55301         Merge from coreutils.
55302
55303         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55304         * m4/getcwd-path-max.m4: New files.
55305
55306         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55307         FILESYSTEM_PREFIX_LEN ->
55308         FILE_SYSTEM_PREFIX_LEN.
55309         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55310         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55311         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55312         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55313
55314         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55315         prerequisite modules now handle the DOS stuff.
55316         Don't check for unistd.h.
55317
55318 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55319
55320         Merge from coreutils.
55321
55322         * lib/.gdb-history: Remove; this doesn't belong here.
55323
55324         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55325         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55326         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55327         * lib/getcwd.c: New files.
55328
55329         * lib/dirname.h: Include <stdbool.h>.
55330         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55331         for consistency with POSIX terminology.  All uses changed.
55332         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55333         (strip_trailing_slashes): Use bool for booleans.
55334         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55335
55336         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55337         sometimes returns a positive errno value even when it succeeds.
55338         (print_errno_message) [!LIBC]: Fall back on strerror if
55339         __strerror_r fails.
55340
55341         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55342         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55343         (longest_relative_suffix): New function.
55344         (path_concat): Use it.  Assume first argument is not NULL.
55345         Port to DOS.  Omit redundant separators.
55346         Report an error instead of returning NULL.
55347         Use mempcpy instead of memcpy.
55348         (xpath_concat): Remove: not declared or used.
55349
55350         * lib/same.h: Include <stdbool.h>
55351         (same_name): Return bool, not int.
55352         * lib/same.c (same_name): Likewise.
55353         (errno): Don't declare; we assume C89 or better now.
55354
55355         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55356         if not already defined.
55357
55358         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55359         * lib/dup-safer.c (errno): Likewise.
55360
55361 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55362
55363         Merge from coreutils.
55364         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55365         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55366         * modules/path-concat: Don't depend on strdup.
55367
55368 2004-08-03  Simon Josefsson  <jas@extundo.com>
55369
55370         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55371         * lib/progname.h: Don't include stdbool.h.
55372
55373 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55374
55375         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55376         * MODULES.html.sh (func_all_modules): Remove fatal.
55377
55378 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55379
55380         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55381
55382 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55383
55384         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55385         working.
55386
55387 2004-08-02  Simon Josefsson  <jas@extundo.com>
55388
55389         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55390         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55391         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55392
55393 2004-08-01  Simon Josefsson  <jas@extundo.com>
55394
55395         * lib/xgetdomainname.c: Include stdlib.h, for free().
55396
55397 2004-07-19  Bruno Haible  <bruno@clisp.org>
55398
55399         * MODULES.html.sh (func_all_modules): Add dummy.
55400
55401 2004-07-16  Simon Josefsson  <jas@extundo.com>
55402
55403         * modules/dummy: New file.
55404
55405 2004-07-16  Simon Josefsson  <jas@extundo.com>
55406
55407         * lib/dummy.c: New file.
55408
55409 2004-07-16  Bruno Haible  <bruno@clisp.org>
55410
55411         * lib/backupfile.h: Add extern "C" for C++.
55412         * lib/closeout.h: Likewise.
55413         * lib/copy-file.h: Likewise.
55414         * lib/findprog.h: Likewise.
55415         * lib/full-write.h: Likewise.
55416         * lib/pathname.h: Likewise.
55417         * lib/progname.h: Likewise.
55418         * lib/stpcpy.h: Likewise.
55419         * lib/stpncpy.h: Likewise.
55420         * lib/strcase.h: Likewise.
55421         * lib/strstr.h: Likewise.
55422         * lib/xalloc.h: Likewise.
55423
55424         * lib/mbswidth.h: Add extern "C" for C++.
55425         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55426
55427 2004-07-13  Robert Millan  <robertmh@gnu.org>
55428
55429         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55430
55431 2004-07-09  Simon Josefsson  <jas@extundo.com>
55432
55433         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55434         failed without this.)
55435
55436 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55437
55438         * modules/chown (Files): Add lib/fchown-stub.c, since
55439         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55440
55441 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55442
55443         * lib/fchown-stub.c: New file.
55444
55445 2004-06-24  Jim Meyering  <jim@meyering.net>
55446
55447         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55448
55449 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55450
55451         * modules/argz: Omit "#include".
55452
55453         * MODULES.html.sh (func_all_modules): Add calloc, to match
55454         2004-06-01 addition of calloc module.
55455
55456 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55457
55458         * m4/argz.m4: New file, which is autoupdated from libtool.
55459
55460 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55461
55462         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55463         libtool.
55464
55465 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55466
55467         * config/srclist-update: Don't insist on "USA." before the
55468         close-comment, as libtool omits the period and puts the */ on a
55469         separate line.
55470         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55471         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55472
55473 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55474
55475         * modules/argz: New file.
55476         * MODULES.html.sh (func_all_modules): Add argz.
55477
55478 2004-06-12  Jim Meyering  <jim@meyering.net>
55479         and  Paul Eggert  <eggert@cs.ucla.edu>
55480
55481         * modules/hash (Files): Add lib/xalloc.h.
55482         * modules/pipe (Depends-on): Add wait-process.
55483         * modules/stat (Depends-on): Add xalloc.
55484         * modules/userspec (Files): Add lib/userspec.h.
55485         * modules/xstrto
55486
55487         Upgrade from gettext-0.13.
55488         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55489         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55490         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55491
55492 2004-06-10  Jim Meyering  <jim@meyering.net>
55493
55494         * lib/calloc.c: New file.
55495
55496 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55497
55498         * lib/getdate.y (yylex): Allow space between sign and number.
55499         Problem reported by Dan Jacobson.
55500
55501 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55502
55503         Merge from coreutils CVS.
55504
55505         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55506         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55507         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55508         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55509         xstrtol.m4: Fix copyright date and/or serial number.
55510
55511         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55512         See if we need an fchown replacement.
55513         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55514         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55515         and use the replacement function if we detect either defect.
55516
55517         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55518         gl_UTIMECMP.
55519
55520 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55521         and  Jim Meyering  <jim@meyering.net>
55522
55523         Merge from coreutils CVS.
55524
55525         * lib/stat-macros.h: New file, with contents from file-type.h
55526         and coreutils' system.h.
55527         * lib/file-type.c: Include "stat-macros.h".
55528         * lib/file-type.h (file_type): Move all macro definitions to new file,
55529         stat-macros.h.
55530
55531         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55532         Wrap old code with this conditional.
55533         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55534         function that does not dereference symlinks.
55535         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55536
55537         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55538         dependency problems.
55539         (xreadlink): Accept new arg SIZE, for efficiency.
55540         All decls and uses changed.
55541         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55542
55543         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55544         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55545
55546         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55547         sysexits.h.
55548
55549 2004-06-01  Jim Meyering  <jim@meyering.net>
55550
55551         * m4/calloc.m4: New file.
55552
55553 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55554
55555         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55556         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55557         Also, fix a typo in a diagnostic.
55558
55559 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55560
55561         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55562         or AC_FUNC_REALLOC.
55563
55564 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55565
55566         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55567         macros to be defined.
55568         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55569         the allocator returns NULL because the requested size is zero.
55570
55571 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55572
55573         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55574         var.  Add comment explaining why libc still defines it.  This
55575         merges the following patch from glibc:
55576         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55577
55578 2004-05-20  Andreas Schwab  <schwab@suse.de>
55579
55580         * m4/free.m4: Replace free if it not known to work, not the other
55581         way round.
55582
55583 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55584
55585         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55586         present in glibc since revision 1.1 of this file.
55587         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55588         obstack_alignment_mask, obstack_alloc, obstack_base,
55589         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55590         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55591         obstack_grow0, obstack_init, obstack_int_grow,
55592         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55593         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55594         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55595         nonexistent functions.
55596
55597 2004-05-18  Karl Berry  <karl@gnu.org>
55598
55599         * config/srclist.txt: break link for vasnprintf.c.
55600
55601 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55602
55603         Port obstack to the AS/400, where pointers are 16 bytes wide and
55604         you cannot cast an integer to a valid pointer.  This patch is
55605         currently waiting to be integrated into glibc; see
55606         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55607
55608         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55609         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55610         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55611         (struct obstack): temp member is now a union of a pointer and
55612         an integer, instead of an integer.  All integer uses changed.
55613         This does not affect the physical layout of struct obstack,
55614         except on hosts (like the AS/400) where the size or alignment of
55615         void * is greater than that of ptrdiff_t.
55616         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55617         __STDC__)]: Store temporary in pointer member of union, not
55618         integer member.
55619         * lib/obstack.c: Include <stddef.h>, for offsetof.
55620         (struct fooalign): Remove; it doesn't need a name.
55621         (union fooround): Change double to long double, and add void *.
55622         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55623         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55624         not a macro.  Hence the values are always int; so remove all
55625         casts-to-int in uses.
55626
55627 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55628
55629         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55630         we can get this patch merged into glibc.
55631
55632 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55633             Paul Eggert  <eggert@cs.ucla.edu>
55634
55635         * m4/argp: Depend on alloca.
55636
55637 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55638             Paul Eggert  <eggert@cs.ucla.edu>
55639
55640         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55641         freecoding.
55642
55643 2004-05-17  Bruno Haible  <bruno@clisp.org>
55644
55645         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55646         precision that consists of a '.' followed by an empty digit string.
55647         Patch by Tor Lillqvist <tml@iki.fi>.
55648
55649 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55650
55651         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55652         for backward compatibility with older code.  We need our own
55653         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55654         it under some other name, and our alloca.h will define it.
55655
55656 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55657             Derek Price  <derek@ximbiot.com>
55658
55659         * lib/alloca.c: Include <alloca.h>, to get our interface.
55660         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55661         include <alloca.h> first.  Use C89 prototype for alloca; this
55662         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55663         Use #elif for simplicity, since we can assume C89 now.
55664         Don't try to source the system alloca.h since it will not be found
55665         and to prevent recursively including its replacement.
55666         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55667         * lib/regex.c: Likewise.
55668
55669 2004-05-16  Derek Price  <derek@ximbiot.com>
55670             Paul Eggert  <eggert@cs.ucla.edu>
55671
55672         getline cleanup.  This changes the getndelim2 API: both order of
55673         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55674         no delimiter).
55675
55676         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55677         interface does that.
55678         (getline): Always use getdelim, so that we don't have two
55679         copies of this code.
55680         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55681         if available.
55682         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55683         (GETNDELIM2_MAXIMUM): New macro.
55684         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55685         instead of the old practice of delim2==0.  All callers changed.
55686         Return -1 on overflow, instead of returning junk.
55687         Do not set *linesize unless allocation succeeds.
55688         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55689         that we include sys/types.h.
55690         * lib/getnline.h: Likewise.
55691         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55692         (getndelim2): Reorder arguments.
55693         * lib/getnline.c (getnline, getndelim):
55694         Don't discard the NMAX argument.
55695         (getnline): Invoke getndelim, to avoid code duplication.
55696         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55697         of (size_t) -1 by callers of the getnline family.
55698
55699 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55700
55701         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55702         Check for gettimeofday.
55703         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55704         Check for settimeofday, stime.
55705
55706 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55707
55708         * lib/nanosleep.c (suspended): Change its type from int to
55709         sig_atomic_t volatile.
55710         (first_call): Make it private to rpl_nanosleep, and have it
55711         be zero initially as that's a bit faster.
55712         (my_usleep): Round up fractional times instead of truncating them,
55713         as this is the usual meaning for 'sleep'.
55714
55715         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55716         doesn't work.
55717         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55718         (ENOSYS): Define if not defined.
55719         (settime): Fall back on stime if it exists and settimeofday fails.
55720         But don't bother with fallbacks if a method fails with errno == EPERM.
55721
55722 2004-05-11  Jim Meyering  <jim@meyering.net>
55723
55724         Prior to this change, the save_cwd caller required read access to the
55725         current directory on most systems (ones with the fchdir function).
55726
55727         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55728         fails, try write-only, and finally, resort to using xgetcwd.
55729
55730 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55731
55732         * lib/obstack.c, obstack.h: Import changes from libc.
55733
55734 2004-04-28  Bruno Haible  <bruno@clisp.org>
55735
55736         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55737         also implicitly appends .exe to executables.
55738         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55739         accepts Windows pathnames.
55740         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55741         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55742         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55743         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55744         Reported by Derek Robert Price <derek@ximbiot.com>.
55745
55746 2004-04-21  Karl Berry  <karl@gnu.org>
55747
55748         * config/srclist.txt (localcharset.c): break sync.
55749
55750 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55751
55752         * m4/host-os.m4: Add a copyright notice.
55753
55754 2004-04-20  Jim Meyering  <jim@meyering.net>
55755
55756         Change UTILS_ to gl_ in AC_DEFINE'd names.
55757         Change utils_- and jm_-prefixed variables, too.
55758         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55759         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55760         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55761
55762         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55763         Don't emit trailing blanks.
55764         Also rename jm_-prefixed variables to have gl_ prefix.
55765
55766         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55767         Also rename jm_-prefixed variables to have gl_ prefix.
55768
55769         * m4/jm-macros.m4: Reflect the renamings.
55770         * m4/prereq.m4: Likewise.
55771
55772 2004-04-20  Jim Meyering  <jim@meyering.net>
55773
55774         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55775         memory.
55776
55777 2004-04-20  Jim Meyering  <jim@meyering.net>
55778             Bruno Haible  <bruno@clisp.org>
55779
55780         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55781         memory when realloc fails.
55782
55783 2004-04-19  Jim Meyering  <jim@meyering.net>
55784
55785         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55786         now that readutmp.c may call `free (0)'.
55787
55788 2004-04-19  Bruno Haible  <bruno@clisp.org>
55789
55790         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55791         * m4/inttypes_h.m4: Likewise.
55792         * m4/stdint_h.m4: Likewise.
55793         * m4/intmax_t.m4: Likewise.
55794         * m4/uintmax_t.m4: Likewise.
55795
55796 2004-04-18  Jim Meyering  <jim@meyering.net>
55797
55798         * m4/prereq.m4: Don't forbid jm_ prefix.
55799
55800         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55801         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55802         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55803         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55804         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55805         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55806         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55807         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55808         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55809         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55810         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55811         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55812         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55813         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55814         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55815         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55816         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55817         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55818         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55819
55820 2004-04-18  Jim Meyering  <jim@meyering.net>
55821
55822         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55823         failure, don't leak memory and do call END_UTMP_ENT.
55824
55825 2004-04-16  Jim Meyering  <jim@meyering.net>
55826
55827         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55828         coreutils' stat program.
55829         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55830
55831 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55832
55833         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55834         C89.
55835         (CHAR_BIT): Remove, since we assume C89.
55836         Include <stdint.h> if available, as per current Autoconf CVS advice.
55837
55838 2004-03-31  Jim Meyering  <jim@meyering.net>
55839
55840         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55841         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55842         * m4/xalloc.m4: Likewise.
55843
55844 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55845
55846         Merge from coreutils.
55847
55848         * m4/inttostr.m4: New file.
55849         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55850         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55851         Require gl_CLOCK_TIME.
55852         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55853
55854 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55855
55856         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55857         not bool, to be more consistent with Unix conventions.
55858         Suggested by Bruno Haible.
55859
55860         Merge from coreutils.
55861
55862         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55863         * lib/umaxtostr.c: New files.
55864
55865         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55866         the usual <time.h> dance.
55867         (get_date): Change signature to support fractional time stamps.
55868         All callers changed.
55869         * lib/getdate.y: Include "getdate.h" first, as we can now
55870         assume C89 and don't need to worry about 'const'.
55871         Similarly, include "unlocked-io.h" near start, not in middle.
55872         Include <limits.h>.
55873         (textint.value): Use long int rather than int.
55874         (textint.digits): Use size_t rather than int.
55875         (BILLION, LOG10_BILLION): New constants.
55876         (parser_control): New member rel_ns.  Members day_ordinal,
55877         time_zone, month, day, hour, minutes, rel_year, rel_month,
55878         rel_day, rel_hour, rel_minutes, rel_seconds
55879         are now long int, not int.  Member seconds is now struct timespec,
55880         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55881         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55882         not int.
55883         (%union.intval): Now long int, not int.
55884         New member timespec.
55885         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55886         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55887         (spec): Now is a timespec or an item list.
55888         (timespec, items): New nonterminals.
55889         (time, rel, relunit, number, get_date):
55890         Add support for fractional seconds.
55891         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55892         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55893         (to_hour): First arg is now long int, not int.
55894         (to_year): Returns long int, not int.
55895         Don't treat year -70 like 70.
55896         (tm_diff): Returns long int, not int.
55897         (lookup_word): Use bool instead of int when appropriate.
55898         (yylex): Use size_t for count, not int.
55899         Detect overflow when parsing large integer constants.
55900         Add support for fractions.
55901         (get_date): Make pointers 'const' if possible.
55902         Use more-portable code to detect integer overflow.
55903         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55904         Don't use ctime; it's not reliable if the year has >4 digits.
55905
55906         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55907         This is for compatibility with BSD.
55908
55909         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55910         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55911         From coreutils' system.h.
55912
55913         * lib/userspec.c: Don't include "posixver.h".
55914         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55915         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55916         compatible extension.  Simplify code by removing a boolean int
55917         that was always nonzero if a string was nonnull.
55918
55919 2004-03-30  Jim Meyering  <jim@meyering.net>
55920
55921         Merge from coreutils.
55922
55923         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55924         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55925         on some systems one must include <grp.h> before it.
55926         Reported by Christian Krackowizer.
55927
55928 2004-03-30  Jim Meyering  <jim@meyering.net>
55929
55930         Merge from coreutils.
55931
55932         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55933
55934         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55935         an empty input stream.
55936
55937         * lib/readtokens.c: Include <stdbool.h>.
55938         (readtoken): Use `size_t' rather than int/long.
55939         All callers adjusted.
55940         Use `bool' rather than `int' where appropriate.
55941         Use memset rather than an explicit loop.
55942         Use x2nrealloc rather than xrealloc.
55943         Allow the use of `\0' as a delimiter.
55944         (readtokens): Likewise.
55945         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55946
55947 2004-03-30  Jim Meyering  <jim@meyering.net>
55948
55949         * m4/realloc.m4: Remove file, since now it does no more than
55950         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55951         the `configure.ac' section of module/realloc.
55952         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55953
55954 2004-03-30  Bruno Haible  <bruno@clisp.org>
55955
55956         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55957         nonnull.
55958
55959 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55960
55961         Merge changes to getloadavg.c from coreutils and Emacs.
55962
55963         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55964         Define to an expression, not to the empty string.
55965         Include cloexec.h and xalloc.h.
55966         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55967         Use set_cloexec_flag rather than rolling our own.
55968         * lib/cloexec.c, lib/cloexec.h: New files.
55969
55970 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55971
55972         * m4/cloexec.m4: New file.
55973
55974 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55975
55976         * lib/getopt.h: Sync with libc CVS.
55977
55978 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55979             Bruno Haible  <bruno@clisp.org>
55980
55981         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55982         mbswidth.
55983
55984 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55985             Bruno Haible  <bruno@clisp.org>
55986
55987         * lib/mbswidth.h: Include <wchar.h> only if
55988         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55989         <wchar.h>.
55990         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55991
55992 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55993
55994         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55995         Sync with libc CVS.
55996         * lib/getopt_int.h: New file, also synced from libc.
55997
55998 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55999
56000         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
56001         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
56002         Bring back getopt.c, getopt.h, getopt1.c.
56003
56004 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56005
56006         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
56007         All uses changed.  Check for sa_sigaction member; this fixes
56008         a bug first reported by Jason Andrade in
56009         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56010
56011 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56012
56013         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56014         '#if' expressions.  Unlike the code it replaces, it does not
56015         depend on (defined _SC_PAGESIZE).  However, it does depend on
56016         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56017         first reported by Jason Andrade in
56018         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56019
56020 2004-02-25  Simon Josefsson  <jas@extundo.com>
56021
56022         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56023
56024 2004-02-25  Simon Josefsson  <jas@extundo.com>
56025
56026         * lib/strdup.h: New file.
56027         * lib/strdup.c: Include it.
56028         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56029         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56030
56031 2004-02-23  Karl Berry  <karl@gnu.org>
56032
56033         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56034         (from fencepost.gnu.org:/gd/gnuorg).
56035
56036 2004-02-23  Karl Berry  <karl@gnu.org>
56037
56038         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56039         * config/srclist.txt: add maintain/standards documents.
56040
56041 2004-02-18  Bruno Haible  <bruno@clisp.org>
56042
56043         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56044         Reported by Derek Robert Price <derek@ximbiot.com>.
56045
56046 2004-02-16  Karl Berry  <karl@gnu.org>
56047
56048         * config/mkinstalldirs, install-sh: update from automake.
56049
56050 2004-02-06  Karl Berry  <karl@gnu.org>
56051
56052         * m4/po.m4: update from gettext 0.14.1.
56053
56054 2004-02-06  Karl Berry  <karl@gnu.org>
56055
56056         * lib/config.charset: update from gettext 0.14.1.
56057
56058 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56059
56060         Add comments and code, prompted by suggestions from Bruno Haible
56061         for sh-quote.
56062         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56063         describing the enum quoting_style values.
56064         * lib/quotearg.c (quotearg_alloc): New function.
56065         (quotearg_buffer_restyled): Treat lone { and } as special.
56066         Treat = as special.  Work around bug with older shells
56067         that "see" a '\' that is really the 2nd byte of a multibyte char.
56068         Quote empty string with shell_quoting_style.
56069
56070 2004-02-03  Bruno Haible  <bruno@clisp.org>
56071
56072         * m4/pipe.m4: New file, from GNU gettext.
56073
56074 2004-02-03  Bruno Haible  <bruno@clisp.org>
56075
56076         * lib/pipe.h: New file, from GNU gettext.
56077         * lib/pipe.c: New file, from GNU gettext.
56078
56079 2004-01-27  Bruno Haible  <bruno@clisp.org>
56080
56081         * m4/execute.m4: New file, from GNU gettext.
56082
56083 2004-01-27  Bruno Haible  <bruno@clisp.org>
56084
56085         * lib/execute.h: New file, from GNU gettext.
56086         * lib/execute.c: New file, from GNU gettext.
56087         * lib/w32spawn.h: New file, from GNU gettext.
56088
56089 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56090
56091         Merge from diffutils.
56092
56093         * lib/file-type.c (file_type): Add typed memory objects.
56094         * lib/file-type.h (S_TYPEISTMO): New macro.
56095
56096         * lib/c-stack.h (c_stack_action): Remove argv argument.
56097         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56098         (die): Don't calculate message unless segv_action returns.
56099         (get_stack_location, min_address_from_argv, max_address_from_argv,
56100         volatile stack_base, volatile_stack_size): Remove.
56101         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56102         that every segmentation violation is a stack overflow.  (Ouch!)
56103         See Debian bug 136249 (still outstanding) for more info about why
56104         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56105
56106 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56107
56108         Exit-status fix from coreutils.
56109
56110         Use exit_failure consistently in place of EXIT_FAILURE,
56111         so that program exit statuses are consistent on failure.
56112
56113         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56114         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56115         * lib/argmatch.h: Comment fix to match the above.
56116         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56117         Now a macro referring to exit_failure, instead of a separate
56118         variable.  Include "exitfail.h" to get it.
56119         * lib/xstrtol.h: Include "exitfail.h".
56120         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56121
56122         * lib/long-options.c (parse_long_options): Use prototype
56123         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56124         for clarity.
56125
56126 2004-01-21  Jim Meyering  <jim@meyering.net>
56127
56128         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56129         so as not to conflict with a different-sized __mktime_internal
56130         function in GNU libc.
56131         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56132         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56133
56134 2004-01-20  Karl Berry  <karl@gnu.org>
56135
56136         * config/config.guess: update from config.
56137
56138         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56139
56140 2004-01-20  Bruno Haible  <bruno@clisp.org>
56141
56142         Safer stack allocation.
56143         * lib/setenv.c: Include allocsa.h.
56144         (alloca): Remove fallback definition.
56145         (freea): Remove macro.
56146         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56147         instead of freea.
56148
56149 2004-01-20  Bruno Haible  <bruno@clisp.org>
56150
56151         * m4/eealloc.m4: New file, from GNU gettext.
56152
56153 2004-01-20  Bruno Haible  <bruno@clisp.org>
56154
56155         * m4/allocsa.m4: New file, from GNU gettext.
56156
56157 2004-01-20  Bruno Haible  <bruno@clisp.org>
56158
56159         * lib/xallocsa.h: New file, from GNU gettext.
56160         * lib/xallocsa.c: New file, from GNU gettext.
56161
56162 2004-01-20  Bruno Haible  <bruno@clisp.org>
56163
56164         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56165
56166 2004-01-20  Bruno Haible  <bruno@clisp.org>
56167
56168         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56169         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56170         specially.
56171
56172 2004-01-20  Bruno Haible  <bruno@clisp.org>
56173
56174         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56175         patch.
56176
56177 2004-01-20  Bruno Haible  <bruno@clisp.org>
56178
56179         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56180
56181 2004-01-20  Bruno Haible  <bruno@clisp.org>
56182
56183         * lib/eealloc.h: New file.
56184
56185 2004-01-20  Bruno Haible  <bruno@clisp.org>
56186
56187         * lib/binary-io.h: Avoid warnings on Cygwin.
56188
56189 2004-01-20  Bruno Haible  <bruno@clisp.org>
56190
56191         * lib/allocsa.h: New file, from GNU gettext.
56192         * lib/allocsa.c: New file, from GNU gettext.
56193
56194 2004-01-18  Karl Berry  <karl@gnu.org>
56195
56196         * doc/gpl.texi, doc/lgpl.texi: new files.
56197
56198 2004-01-18  Karl Berry  <karl@gnu.org>
56199
56200         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56201         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56202
56203 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56204
56205         Merge from coreutils.
56206
56207         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56208         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56209         (gl_DEFAULT_POSIX2_VERSION): Move
56210         the documentation from 'configure' into 'config.hin',
56211         so that 'configure --help' isn't burdened by it and
56212         we don't have to worry about its formatting there.
56213         Reword the documentation so that it's more succinct
56214         and can be run together into a single paragraph.
56215         * m4/same.m4 (gl_SAME): Check for pathconf.
56216
56217 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56218
56219         Merge from coreutils.
56220
56221         * lib/posixver.c: Include posixver.h.
56222
56223         * lib/same.c: Include <stdbool.h>, <limits.h>.
56224         (_POSIX_NAME_MAX): Define if not defined.
56225         (MIN): New macro.
56226         (same_name): If file names are silently truncated, report
56227         that the file names are the same if they are the same after
56228         the silent truncation.
56229
56230         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56231         conversion function.
56232         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56233         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56234         longer needed.
56235
56236 2004-01-15  Jim Meyering  <jim@meyering.net>
56237
56238         Merge from coreutils.
56239
56240         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56241         if no library is required.
56242         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56243         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56244         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56245         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56246         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56247         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56248         value, $ac_cv_search_crypt, if it's "none required".
56249         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56250         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56251         not gl_FUNC_GETLOADAVG.
56252         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56253         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56254
56255 2004-01-15  Jim Meyering  <jim@meyering.net>
56256
56257         Merge from coreutils.
56258
56259         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56260         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56261         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56262
56263         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56264         optional configure-time default.
56265
56266         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56267
56268         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56269
56270 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56271
56272         Merge from coreutils.
56273
56274         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56275         value, $ac_cv_search_nanosleep, if it's "none required".
56276
56277 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56278
56279         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56280         with like-named macro in fnmatch.c.
56281         (EXT): Use an internal constant instead.
56282
56283         Merge fnmatch patches from glibc.
56284         * lib/fnmatch.c (mbsinit): Remove define.
56285         Add libc_hidden_ver (__fnmatch, fnmatch).
56286         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56287         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56288
56289 2004-01-14  Karl Berry  <karl@gnu.org>
56290
56291         * config/install-sh: update from automake.
56292
56293 2004-01-13  Karl Berry  <karl@gnu.org>
56294
56295         * config/install-sh: update from automake.
56296
56297 2004-01-09  Karl Berry  <karl@gnu.org>
56298
56299         * config/install-sh: update from automake.
56300
56301 2004-01-05  Karl Berry  <karl@gnu.org>
56302
56303         * config/config.{sub,guess}: update from config.
56304
56305 2003-12-31  Karl Berry  <karl@gnu.org>
56306
56307         * config/depcomp: update from automake.
56308
56309 2003-12-14  Karl Berry  <karl@gnu.org>
56310
56311         * lib/config.charset: update from gettext-runtime.
56312
56313 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56314
56315         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56316         Bug reported by Alfred M. Szmidt.
56317
56318 2003-12-03  Bruno Haible  <bruno@clisp.org>
56319
56320         * m4/gettext.m4: Upgrade from gettext-0.13.
56321         * m4/po.m4: Upgrade from gettext-0.13.
56322         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56323         * m4/intmax.m4: New file, from gettext-0.13.
56324         * m4/printf-posix.m4: New file, from gettext-0.13.
56325
56326 2003-11-29  Karl Berry  <karl@gnu.org>
56327
56328         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56329
56330 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56331             Bruno Haible  <bruno@clisp.org>
56332
56333         * lib/printf-parse.h: Don't include sys/types.h.
56334         (ARG_NONE): New macro.
56335         (char_directive): Change type of *arg_index fields to size_t.
56336         * lib/printf-parse.c: Don't include sys/types.h.
56337         (SSIZE_MAX): Remove macro.
56338         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56339         Remove unnecessary overflow check.
56340         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56341         fields.
56342
56343 2003-11-25  Bruno Haible  <bruno@clisp.org>
56344
56345         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56346
56347 2003-11-25  Bruno Haible  <bruno@clisp.org>
56348
56349         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56350         gt_TYPE_SSIZE_T.
56351
56352 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56353
56354         * modules/alloca: Remove dependency on xalloc.
56355
56356 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56357
56358         * lib/alloca.c: Remove dependency on xalloc module.
56359         (xalloc_die): Remove.
56360         (memory_full) [!defined emacs]: New macro.
56361         [!defined emacs]: Don't include xalloc.h.
56362         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56363         address arithmetic overflows.  Change datatypes a bit to avoid
56364         unnecessary casts.
56365
56366 2003-11-22  Jim Meyering  <jim@meyering.net>
56367
56368         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56369         s/size/size_t/.
56370
56371 2003-11-21  Karl Berry  <karl@gnu.org>
56372
56373         * config/config.{sub,guess}: update from config.
56374
56375 2003-11-18  Karl Berry  <karl@gnu.org>
56376
56377         * config/config.{sub,guess}: update from config.
56378
56379         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56380
56381 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56382
56383         * README: Mention that S+T cannot overflow if S is the size of
56384         an existing object and T is sufficiently small.
56385
56386 2003-11-17  Jim Meyering  <jim@meyering.net>
56387
56388         On systems without utime and without a utimes function capable of
56389         dealing with a NULL struct utimbuf* argument, this utime replacement
56390         could -- in unusual circumstances -- leak a file descriptor.
56391         * lib/utime.c: Include <unistd.h> and <errno.h>.
56392         (utime_null): Be sure to close `fd' and to preserve errno.
56393         Reported by Geoff Collyer via Arnold Robbins.
56394
56395 2003-11-17  Bruno Haible  <bruno@clisp.org>
56396
56397         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56398         (Depends-on): Add xsize.
56399
56400 2003-11-17  Bruno Haible  <bruno@clisp.org>
56401
56402         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56403
56404 2003-11-17  Bruno Haible  <bruno@clisp.org>
56405
56406         * lib/vasnprintf.c (alloca): Remove fallback definition.
56407         (freea): Remove definition.
56408         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56409         Reported by Paul Eggert.
56410
56411 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56412             Bruno Haible  <bruno@clisp.org>
56413
56414         Protect against address arithmetic overflow.
56415         * lib/printf-args.h: Include stddef.h.
56416         (arguments): Change type of field 'count' to size_t.
56417         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56418         'unsigned int' where appropriate.
56419         * lib/printf-parse.h: Include sys/types.h.
56420         (char_directive): Change type of *arg_index fields to ssize_t.
56421         (char_directives): Change type of fields 'count', max_*_length to
56422         size_t.
56423         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56424         (SSIZE_MAX): Define fallback value.
56425         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56426         instead of 'int' where appropriate. Check a_allocated, d_allocated
56427         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56428         * lib/vasnprintf.c: Include xsize.h.
56429         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56430         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56431         overflow. Avoid wraparound when converting a width or precision from
56432         decimal to binary.
56433
56434 2003-11-16  Bruno Haible  <bruno@clisp.org>
56435
56436         Update from GNU gettext.
56437         * lib/printf-parse.c: Generalize to it can be compiled for wide
56438         strings.
56439         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56440         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56441         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56442         SNPRINTF): New macros.
56443         Don't include <alloca.h> if the file is used inside libintl.
56444         (local_wcslen): New function, for Solaris 2.5.1.
56445         (VASNPRINTF): Use it instead of wcslen.
56446
56447 2003-11-16  Bruno Haible  <bruno@clisp.org>
56448
56449         * lib/xsize.h (xmax): New function.
56450         (xsum, xsum3, xsum4): Declare as "pure" functions.
56451
56452 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56453
56454         * modules/xalloc (Files): Undo latest change, since xalloc.h
56455         no longer needs SIZE_MAX or PTRDIFF_MAX.
56456
56457 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56458
56459         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56460         gl_PTRDIFF_MAX.
56461
56462 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56463
56464         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56465         "return", to pacify some unknown compiler.  Problem reported
56466         by Joerg Schilling.
56467
56468 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56469
56470         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56471         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56472         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56473         heuristic is just as accurate as far as we know, and it removes a
56474         dependency on size_max.m4 and ptrdiff_max.m4.
56475
56476 2003-11-11  Bruno Haible  <bruno@clisp.org>
56477
56478         * modules/xsize (Files): Add m4/size_max.m4.
56479         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56480
56481 2003-11-11  Bruno Haible  <bruno@clisp.org>
56482
56483         * m4/size_max.m4: New file.
56484         * m4/ptrdiff_max.m4: New file.
56485         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56486         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56487         (gl_XALLOC): Invoke it.
56488
56489 2003-11-11  Bruno Haible  <bruno@clisp.org>
56490
56491         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56492         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56493         defined.
56494
56495 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56496
56497         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56498         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56499         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56500         From Bruno Haible.
56501         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56502         not (size_t) -1, since it's defined here.
56503
56504 2003-11-09  Karl Berry  <karl@gnu.org>
56505
56506         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56507
56508 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56509
56510         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56511         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56512         Reject sizes of exactly SIZE_MAX bytes.
56513         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56514         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56515
56516 2003-11-05  Bruno Haible  <bruno@clisp.org>
56517
56518         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56519         SIZE_MAX defined in <limits.h> on Solaris.
56520
56521 2003-11-04  Jim Meyering  <jim@meyering.net>
56522
56523         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56524         variable names, rather than @VAR@.
56525         * modules/poll: Likewise.
56526
56527 2003-11-04  Bruno Haible  <bruno@clisp.org>
56528
56529         * modules/xsize: New file.
56530         * modules/linebreak: Depend on xsize.
56531         * MODULES.html.sh (func_all_modules): Add xsize.
56532
56533 2003-11-04  Bruno Haible  <bruno@clisp.org>
56534
56535         * m4/xsize.m4: New file.
56536
56537 2003-11-04  Bruno Haible  <bruno@clisp.org>
56538
56539         * lib/xsize.h: New file.
56540         * lib/linebreak.c: Include xsize.h.
56541         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56542         argument for overflow.
56543         Suggested by Paul Eggert.
56544
56545 2003-11-03  Karl Berry  <karl@gnu.org>
56546
56547         * config/config.{guess,sub}: update from config.
56548
56549 2003-11-03  Jim Meyering  <jim@meyering.net>
56550
56551         * modules/userspec (lib_SOURCES): Add userspec.h.
56552         (Include): Add "userspec.h".
56553         Improve description.
56554
56555 2003-11-03  Jim Meyering  <jim@meyering.net>
56556
56557         * lib/userspec.c: Include "userspec.h".
56558         * lib/userspec.h: New file.
56559
56560 2003-11-03  Bruno Haible  <bruno@clisp.org>
56561
56562         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56563
56564 2003-11-03  Bruno Haible  <bruno@clisp.org>
56565
56566         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56567         available, to avoid (extremely rare) race condition.
56568         Suggested by Paul Eggert.
56569
56570 2003-11-02  Karl Berry  <karl@gnu.org>
56571
56572         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56573
56574 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56575
56576         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56577         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56578         (read_filesystem_list): Set and use me_type_malloced.
56579         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56580         whatever the type happens to be), for brevity and consistency.
56581         Check for size calculation overflow on Alphas running OSF/1.
56582
56583 2003-10-31  Jim Meyering  <jim@meyering.net>
56584
56585         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56586
56587         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56588
56589 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56590             Bruno Haible  <bruno@clisp.org>
56591
56592         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56593         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56594
56595 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56596
56597         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56598         netbsd*-gnu*.  Suggested by Robert Millan.
56599
56600 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56601
56602         * modules/group-member: Depend on stdbool.
56603
56604 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56605
56606         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56607
56608 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56609
56610         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56611         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56612         after the 'gnu' in these cases.  This fixes some bugs in the
56613         previous change, and is based on suggestions by Robert Millan.
56614
56615 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56616
56617         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56618         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56619         no longer needed.
56620         * lib/quotearg.c (quotearg_n_options): Use it.
56621         * lib/group-member.c: Include <stdbool.h>.
56622         (free_group_info): Arg is now const *; don't free arg.
56623         (get_group_info): Now returns bool and accepts struct group_info *,
56624         rather than returning a malloc'ed struct group_info *.
56625         All uses changed.  Check for overflow in internal size calculation.
56626
56627         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56628         rather than xmalloc/xrealloc.
56629         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56630         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56631         conformance bug: the old code used a pointer after freeing the
56632         storage that it addressed.
56633         * lib/hash.c (hash_initialize): Simplify the code by using
56634         xalloc_oversized rather than doing it by hand.
56635         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56636         the buffer preserved.  Use free and xmalloc instead.
56637         * lib/quotearg.c (quotearg_n_options): Likewise.
56638         Use a simpler test for size overflow.  Don't use xalloc_oversized
56639         because unsigned int might be wider than size_t (!); this suggests
56640         that we should switch from unsigned int to size_t for slot numbers.
56641
56642 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56643
56644         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56645         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56646         NetBSD kernels.  Requested by Richard Stallman.
56647
56648 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56649
56650         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56651         to allocate the returned structure.  Do not allocate a subarray,
56652         as x2nrealloc will do that.
56653         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56654         instead of xnrealloc.
56655         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56656
56657 2003-10-27  Bruno Haible  <bruno@clisp.org>
56658
56659         * lib/stdbool_.h: Better support for BeOS.
56660
56661 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56662
56663         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56664         now uses inline.
56665
56666 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56667
56668         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56669         callers that want to do their own size-overflow checking.  Include
56670         <stdbool.h>, since xalloc_oversized returns bool.
56671         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56672         to use xalloc_oversized.
56673
56674         Add two functions x2realloc, x2nrealloc, for programs that grow
56675         arrays dynamically by doubling their sizes.
56676         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56677         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56678         New functions.
56679
56680         Port to C99 semantics for 'inline' of external functions.
56681         Bug reported by Bruno Haible.
56682         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56683         with the old contents of xnmalloc.
56684         (xnmalloc, xmalloc): Use it.
56685         (xnrealloc_inline): New static inline function,
56686         with the old contents of xnrealloc.
56687         (xnrealloc, xrealloc): Use it.
56688
56689         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56690         that.
56691
56692 2003-10-26  Karl Berry  <karl@gnu.org>
56693
56694         * config/srclist.txt (COPYING.DOC): no longer available from
56695         /gd/gnuorg; don't know where the ultimate source is.
56696
56697 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56698
56699         Fix several address-calculation bugs in the hash modules,
56700         plus some minor code cleanup.
56701
56702         * lib/hash.h: Include <stdbool.h>, for bool.
56703         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56704         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56705         hash_get_n_entries, hash_get_max_bucket_length,
56706         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56707         hash_rehash): Use size_t rather than unsigned.
56708         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56709         hash_get_n_buckets_used, hash_get_n_entries,
56710         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56711         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56712         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56713         Likewise.
56714         (SIZE_MAX): Define if not defined.
56715         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56716         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56717         hash_print):
56718         Use const * when possible.
56719         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56720         (check_tuning): Fix bug: if tuning parameters were very close to
56721         0 or 1, rounding errors could have caused subscript violations.
56722         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56723         (hash_initialize): Add 'fail:' label
56724         to free table and return NULL, and use it to simplify code.
56725         Use calloc rather than clearing the storage ourself.
56726         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56727         buffer size calculations.
56728         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56729         Include <stddef.h>, for size_t.
56730         * lib/hash-pjw.c (hash_pjw): Likewise.
56731         Switch to method described by Bruno Haible.
56732         Include <limits.h>, for CHAR_BIT.
56733         (SIZE_BITS): New macro.
56734
56735 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56736
56737         * m4/getline.m4 (AM_FUNC_GETLINE):
56738         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56739         hosts.  Problem reported by Derek Robert Price in
56740         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56741         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56742         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56743
56744 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56745
56746         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56747         ceiling the allocation at NMAX bytes rather than silently
56748         discarding input bytes before NMAX is reached.  This makes
56749         a difference only if NMAX exceeds SIZE_MAX / 2.
56750
56751         * lib/obstack.c: Merge from glibc.
56752         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56753         Add libc_hidden_def (_obstack_newchunk).
56754         (_obstack_free) [! defined _LIBC]: Remove.
56755         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56756         a clone of the function body.
56757         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56758         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56759
56760         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56761         glibc.
56762         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56763         arg to memcpy.
56764
56765         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56766         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56767         Don't use lvalue casts, as GCC plans to remove support for them
56768         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56769         was also present in the non-GCC version, indicating that this
56770         code had always been buggy and had never been widely used.
56771         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56772         Use the fast variant of each macro, rather than copying the
56773         definiens of the fast variant; that way, we'll be more likely to
56774         catch future bugs in the fast variants.
56775
56776 2003-10-20  Bruno Haible  <bruno@clisp.org>
56777
56778         * modules/wait-process: New file.
56779         * MODULES.html.sh (func_all_modules): Add wait-process.
56780
56781 2003-10-20  Bruno Haible  <bruno@clisp.org>
56782
56783         * m4/wait-process.m4: New file.
56784
56785 2003-10-20  Bruno Haible  <bruno@clisp.org>
56786
56787         * lib/wait-process.h: New file, from GNU gettext.
56788         * lib/wait-process.c: New file, from GNU gettext.
56789
56790 2003-10-19  Jim Meyering  <jim@meyering.net>
56791
56792         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56793         HPUX 10.20.
56794
56795 2003-10-18  Karl Berry  <karl@gnu.org>
56796
56797         * config/config.guess: update from config.
56798
56799 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56800
56801         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56802         (getgroups): First arg is int, not size_t.
56803         Don't let 'free' mangle errno.
56804
56805 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56806
56807         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56808
56809 2003-10-16  Karl Berry  <karl@gnu.org>
56810
56811         * config/config.{guess,sub}: update from config.
56812
56813 2003-10-16  Jim Meyering  <jim@meyering.net>
56814
56815         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56816         memcpy.
56817
56818 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56819
56820         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56821         (SIZE_MAX): Remove.
56822         (new_exclude, add_exclude_file): Initial size no longer needs to
56823         be a power of 2.
56824         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56825         our own address arithmetic overflow checking.
56826
56827         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56828         (fnmatch): Do not alloca more than 2000 wide characters;
56829         instead, use malloc for large buffers.
56830         Check for address arithmetic overflow, and return -1
56831         with errno set to ENOMEM in that case.
56832         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56833         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56834         instead, return -1.  Check for address arithmetic overflow.
56835
56836 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56837
56838         Handle invalid suffixes and overflow independently, so that
56839         callers can treat them independently as needed.  Fix some bugs in
56840         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56841         suffix for a human-readable blocksize.  The major caller-visible
56842         change is the addition of a new
56843         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56844         that both overflow and suffix chars were found.
56845
56846         * lib/human.c (humblock): Don't check separately for invalid suffix
56847         char; that is xstrtoumax's job (now that its bug is fixed).
56848         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56849         INTMAX_MAX]: New macros.
56850         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56851         TYPE_MAXIMUM): New macros.
56852         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56853         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56854         if overflow occurs, as it's what __strtol does and it's more useful
56855         in practice.
56856         (__xstrtol): If __strtol reports some error other than ERANGE,
56857         reflect it to the caller as LONGINT_INVALID.  If it reports
56858         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56859         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56860         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56861         value.
56862         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56863         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56864         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56865         [defined UINTMAX_MAX]: New macros.
56866
56867 2003-10-14  Bruno Haible  <bruno@clisp.org>
56868
56869         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56870
56871 2003-10-14  Bruno Haible  <bruno@clisp.org>
56872
56873         * m4/sig_atomic_t: New file, from GNU gettext.
56874         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56875
56876 2003-10-14  Bruno Haible  <bruno@clisp.org>
56877
56878         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56879         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56880         Also use volatile where needed.
56881
56882 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56883
56884         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56885         Change maintainer from Bruno Haible to 'all'.
56886
56887 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56888
56889         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56890
56891 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56892
56893         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56894         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56895         and define in terms of the other primitives.
56896         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56897         (SIZE_MAX): Define if not already defined.
56898         (array_size_overflow): New function.
56899         (xalloc_die): Abort instead of exiting if 'error' returns.
56900         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56901         (xmalloc, xrealloc): Use them.
56902         (xcalloc): Check for address arithmetic overflow.
56903         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56904         a bit faster than strcpy.
56905
56906 2003-10-10  Simon Josefsson  <jas@extundo.com>
56907
56908         * modules/argp (Depends-on): Add restrict and strcase.
56909
56910 2003-10-10  Simon Josefsson  <jas@extundo.com>
56911
56912         * m4/argp.m4: Add AC_C_INLINE.
56913
56914 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56915
56916         Merge getpass from libc, plus a few fixes.
56917
56918         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56919         Include <stdbool.h>.
56920         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56921         __fsetlocking to empty.
56922         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56923         do include <bits/libc-lock.h>.
56924         Do not include <fcntl.h>; not needed.
56925         [_LIBC]: Include <wchar.h>.
56926         (NOTCANCEL_MODE): New macro.
56927         (flockfile, funlockfile) [_LIBC]: New macros.
56928         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56929         [!_LIBC]: New macros.
56930         (call_fclose): New function.
56931         (getpass): Use it.  Save tty stream separately; this simplifies the
56932         code and makes it more reliable if stdin happens to equal stdout.
56933         Invoke __fsetlocking on tty.
56934         Handle thread cancellation if needed.
56935         Namespace cleanup (use __tcgetattr, __getline).
56936         Use bool for Booleans.
56937         [USE_IN_LIBIO]: Handle wide streams.
56938         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56939         stream might go where.
56940
56941         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56942         doesn't have to include <stdio.h> before us.
56943         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56944         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56945         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56946         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56947         if not declared, so that we can use getpass.c code from libc without
56948         rewriting it.
56949         (flockfile, ftrylockfile, funlockfile): New macros.
56950
56951 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56952
56953         * modules/getpass: Depend on stdbool.
56954
56955 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56956
56957         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56958
56959 2003-10-07  Karl Berry  <karl@gnu.org>
56960
56961         * config/config.{guess,sub}: update from config.
56962
56963 2003-10-06  Jim Meyering  <jim@meyering.net>
56964             Bruno Haible  <bruno@clisp.org>
56965
56966         This lets translators provide better translations for the
56967         "Written by ..." part of --version output.
56968         * lib/version-etc.h: Include stdarg.h.
56969         (version_etc_copyright): Declare as readonly.
56970         (version_etc): Make this function variadic with a NULL-terminated list
56971         of author name strings.
56972         (version_etc_va): New declaration.
56973         * lib/version-etc.c: Include stdarg.h, stdlib.h.
56974         (version_etc_copyright): Declare as readonly.
56975         (version_etc_va): New function. Provide a different translatable string
56976         for each possible number of authors < 10. Abbreviate when there are 10
56977         authors or more.
56978         (version_etc): Make this function variadic. Call version_etc_va.
56979         Suggestion from Gary V. Vaughan.
56980
56981         * lib/long-options.h (parse_long_options): Change prototype: the
56982         authors string is moved to the end and becomes variadic.
56983         * lib/long-options.c: Include stdarg.h.
56984         (parse_long_options): Make this function variadic, too.
56985         Call version_etc_va, not version_etc.
56986
56987 2003-10-06  Bruno Haible  <bruno@clisp.org>
56988
56989         * modules/version-etc-2: Remove file.
56990         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56991
56992 2003-10-06  Bruno Haible  <bruno@clisp.org>
56993
56994         * modules/fatal-signal: New file.
56995         * MODULES.html.sh (func_all_modules): Add fatal-signal.
56996
56997 2003-10-06  Bruno Haible  <bruno@clisp.org>
56998
56999         * m4/fatal-signal.m4: New file.
57000         * m4/signalblocking.m4: New file, from GNU gettext.
57001
57002 2003-10-06  Bruno Haible  <bruno@clisp.org>
57003
57004         * lib/version-etc-2.h: Remove file.
57005         * lib/version-etc-2.c: Remove file.
57006
57007 2003-10-06  Bruno Haible  <bruno@clisp.org>
57008
57009         * lib/fatal-signal.h: New file, from GNU gettext.
57010         * lib/fatal-signal.c: New file, from GNU gettext.
57011
57012 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57013
57014         * README: Rework advice for preventing empty .o files.
57015         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57016         not <sys/types.h>.
57017
57018 2003-10-04  Karl Berry  <karl@gnu.org>
57019
57020         * lib/argp*: update from libc.
57021
57022 2003-10-04  Karl Berry  <karl@gnu.org>
57023
57024         * config/config.{guess,sub}: update from config.
57025
57026 2003-10-02  Bruno Haible  <bruno@clisp.org>
57027
57028         * modules/lchown (Include): Add lchown.h.
57029         * modules/time_r (Include): Use "..." syntax.
57030         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57031
57032 2003-10-01  Simon Josefsson  <jas@extundo.com>
57033
57034         * MODULES.html.sh (func_all_modules): Move gethostname from section
57035         'based on' to section 'lacking' POSIX:2001.
57036
57037 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57038
57039         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57040         to output mode on the same stream.
57041
57042 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57043
57044         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57045         Fix arg typo in previous patch.
57046
57047 2003-09-28  Jim Meyering  <jim@meyering.net>
57048
57049         * lib/error.c: Correct cpp indentation.
57050
57051 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57052
57053         * modules/free: New file.
57054
57055 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57056
57057         * m4/free.m4: New file.
57058
57059 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57060
57061         * lib/minmax.h (MIN, MAX)
57062         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57063         Omit the special code that used __typeof__, since we worry that
57064         it could be more trouble than it's worth.  See:
57065         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57066         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57067
57068         * lib/free.c: New file.
57069
57070 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57071
57072         Trivial fixes to Makefile.am parts of module listings.
57073         * modules/strstr: Append strstr.h to lib_SOURCES.
57074         * modules/strcase: Likewise, for strcase.h.
57075
57076 2003-09-27  Karl Berry  <karl@gnu.org>
57077
57078         * config/mkinstalldirs: update from automake.
57079
57080 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57081
57082         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57083         (error_tail): Do not loop, reallocating temporary buffer, since
57084         the output cannot contain more wide characters than the input
57085         contains bytes, the size must be big enough already.  This avoids
57086         one potential size overflow calculation.  Check for size overflow
57087         when calculating temporary buffer size.  Free temporary buffer
57088         when done, if it was allocated with malloc; this plugs a memory
57089         leak.  Remove casts from void * to pointers, that are no longer
57090         needed now that we're assuming C89 or better.
57091
57092         Merge error changes from glibc.
57093
57094         * lib/error.c, error.h: Update copyright notice header to match glibc.
57095         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57096         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57097         Disable cancellation while printing error.
57098         * lib/error.h: Prepend __ to parameter names.
57099
57100 2003-09-26  Jim Meyering  <jim@meyering.net>
57101
57102         * lib/error.c (error_tail): Move some declarations
57103         into inner scope where the local variables are used.
57104
57105 2003-09-26  Bruno Haible  <bruno@clisp.org>
57106
57107         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57108         stpncpy().
57109         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57110
57111 2003-09-26  Bruno Haible  <bruno@clisp.org>
57112
57113         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57114         (stpncpy): Define as alias for gnu_stpncpy.
57115         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57116
57117 2003-09-25  Simon Josefsson  <jas@extundo.com>
57118
57119         * lib/xgetdomainname.h: New file.
57120         * lib/xgetdomainname.c: New file.
57121
57122 2003-09-25  Simon Josefsson  <jas@extundo.com>
57123             Bruno Haible  <bruno@clisp.org>
57124
57125         * modules/getdomainname: New file.
57126         * modules/xgetdomainname: New file.
57127         * MODULES.html.sh (func_all_modules): Add getdomainname,
57128         xgetdomainname.
57129
57130 2003-09-25  Simon Josefsson  <jas@extundo.com>
57131             Bruno Haible  <bruno@clisp.org>
57132
57133         * m4/getdomainname.m4: New file.
57134
57135 2003-09-25  Simon Josefsson  <jas@extundo.com>
57136             Bruno Haible  <bruno@clisp.org>
57137
57138         * lib/getdomainname.h: New file.
57139         * lib/getdomainname.c: New file.
57140
57141 2003-09-25  Karl Berry  <karl@gnu.org>
57142
57143         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57144
57145 2003-09-25  Karl Berry  <karl@gnu.org>
57146
57147         * config/install-sh: update from automake.
57148
57149 2003-09-25  Bruno Haible  <bruno@clisp.org>
57150
57151         * modules/version-etc-2: New file, from modules/version-etc with
57152         modifications.
57153         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57154
57155 2003-09-25  Bruno Haible  <bruno@clisp.org>
57156
57157         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57158         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57159
57160 2003-09-24  Simon Josefsson  <jas@extundo.com>
57161
57162         * modules/xgethostname: Add xgethostname.h.
57163
57164 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57165
57166         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57167         the buffer associated with the argument.  Bug reported by
57168         Simon Josefsson.
57169
57170 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57171
57172         * README: Document assumptions that 'int' is at least 32 bits
57173         wide, that integer arithmetic is 2's complement without overflow,
57174         that there are no holes in integer values, that adding sizes of
57175         two nonoverlapping objects can't overflow, and that all-bits-zero
57176         yields scalar zero.  Fix spelling and capitalization typos.
57177
57178 2003-09-19  Karl Berry  <karl@gnu.org>
57179
57180         * lib/argp.h: update from libc.
57181
57182 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57183
57184         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57185         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57186         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57187
57188 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57189
57190         * gnulib-tool: Use "test -h", not "test -L", for portability
57191         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57192         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57193         (sed_extract_prog): Issue s commands one-by-one, rather than
57194         using \| in one s command.
57195
57196 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57197
57198         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57199         input error, instead of returning NULL the next time we are called
57200         (and therefore losing track of errno).
57201
57202 2003-09-16  Bruno Haible  <bruno@clisp.org>
57203
57204         * gnulib-tool (func_create_testdir): Warn about duplicated
57205         dependencies.
57206
57207 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57208
57209         * modules/argmatch, modules/fatal, modules/obstack,
57210         modules/xalloc, modules/xgethostname: Sort dependencies by
57211         importance, not alphabetically.
57212
57213 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57214
57215         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57216         fails, so that the caller gets the proper errno.
57217
57218         * lib/readutmp.c (read_utmp): Likewise.
57219         Check for fstat error.  Close stream and free storage
57220         when failing.
57221
57222 2003-09-14  Karl Berry  <karl@gnu.org>
57223
57224         * config/srclist.txt (strdup.c): disable for c89 changes.
57225
57226 2003-09-14  Jim Meyering  <jim@meyering.net>
57227
57228         * lib/getloadavg.c: Correct cpp indentation.
57229         * lib/strdup.c: Likewise.
57230         * lib/vasnprintf.c: Likewise.
57231
57232 2003-09-14  Bruno Haible  <bruno@clisp.org>
57233
57234         * modules/fwriteerror: New file.
57235         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57236
57237 2003-09-14  Bruno Haible  <bruno@clisp.org>
57238
57239         * lib/fwriteerror.h: New file.
57240         * lib/fwriteerror.c: New file.
57241
57242 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57243
57244         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57245         modules/xgethostname, modules/xalloc: Depend on exit.
57246
57247 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57248
57249         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57250
57251         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57252         and AC_MINIX, too, so that their extensions are available.
57253
57254         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57255         This macro has been superseded by gl_BACKUPFILE.
57256
57257         More patches to assume C89 or better.
57258
57259         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57260
57261         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57262         unconditionally.
57263         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57264         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57265         Include <string.h>, <stdlib.h> unconditionally.
57266         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57267         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57268         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57269         headers or for string.h.
57270         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57271         or strtoul.
57272
57273         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57274         headers.
57275         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57276         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57277         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57278         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57279         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57280         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57281         memcpy, memset.
57282         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57283         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57284         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57285         strtol.
57286         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57287         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57288         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57289         strtoul.
57290
57291 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57292
57293         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57294         * lib/obstack.c [!defined _LIBC]: Likewise.
57295         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57296         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57297         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57298
57299         More changes to assume C89 or better.
57300
57301         * lib/error.c (error_tail): Assume vprintf.
57302
57303         * lib/argmatch.c (getenv): Remove decl.
57304         * lib/progreloc.c (get_full_program_name): Define via prototype.
57305         * lib/setenv.c (clearenv): Likewise.
57306         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57307         needed.
57308         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57309         (malloc, memcpy): Remove decls.
57310         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57311         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57312         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57313         (memcpy): Remove macro.
57314         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57315         (__P): Remove.  All uses removed.
57316         (PTR): Remove.  All uses changed to void *.
57317         (CHAR_BIT, NULL): Remove.
57318         (spaces, zeros, memset_space, memset_zero)
57319         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57320         Remove.
57321         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57322         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57323         Define with prototype.
57324         Remove now-unnecessary prototype decl.
57325         (extra_args_spec): Assume ANSI C.  All uses changed.
57326         (extra_args_spec_iso): Remove.
57327         (my_strftime, emacs_strftimeu): Define via prototype.
57328         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57329         unconditionally.
57330         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57331         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57332         (strtoul, strtol): Remove decls.
57333         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57334         LONG_MAX): Remove.
57335         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57336         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57337         (LOCALE_PARAM_PROTO): New macro.
57338         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57339         (INTERNAL (strtol), strtol): Define with a prototype.
57340         (PARAMS): Remove.  All uses removed.
57341         * lib/tempname.c: Include <string.h> unconditionally.
57342         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57343         * lib/xgethostname.c (main): Define with a prototype.
57344         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57345         Include <stdlib.h> unconditionally.
57346         (calloc, malloc, realloc, free): Remove decls.
57347         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57348         Include <stdlib.h> unconditionally.  Sort include file names.
57349         (strtod): Remove.
57350         (xstrtod): Define with a prototype.
57351         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57352         (strtol, strtoul): Remove decls.
57353
57354 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57355
57356         More patches to assume C89 or better.
57357         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57358         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57359         string.h, memchr, STDC_HEADERS.
57360
57361 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57362
57363         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57364         Include <stdlib.h>, <string.h> unconditionally.
57365         Remove now-unnecessary cast to char *.
57366         * lib/strnlen.c: Include <string.h> unconditionally.
57367         * lib/yesno.c (yesno): Define with a prototype.
57368
57369 2003-09-11  Bruno Haible  <bruno@clisp.org>
57370
57371         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57372
57373 2003-09-10  Jim Meyering  <jim@meyering.net>
57374
57375         * lib/error.c: Correct indentation of cpp directives.
57376
57377 2003-09-10  Bruno Haible  <bruno@clisp.org>
57378
57379         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57380         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57381         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57382         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57383         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57384         <stdlib.h> and <string.h> checks.
57385         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57386         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57387
57388 2003-09-10  Bruno Haible  <bruno@clisp.org>
57389
57390         * lib/strcspn.c: Include <string.h> unconditionally.
57391         * lib/strpbrk.c: Include <string.h> unconditionally.
57392         * lib/strstr.c: Include <string.h> unconditionally.
57393         * lib/unicodeio.c: Include <string.h> unconditionally.
57394         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57395         * lib/unsetenv.c: Likewise.
57396         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57397         * lib/yesno.c: Include <stdlib.h> unconditionally.
57398         (rpmatch): Add prototype.
57399
57400 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57401
57402         More patches to assume C89 or better.
57403         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57404         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57405         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57406         or for string.h.
57407         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57408         stdlib.h.
57409         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57410         C headers.
57411         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57412         string.h.
57413         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57414         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57415         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57416         or for string.h.
57417         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57418         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57419         C headers.
57420         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57421         memcpy.
57422         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57423         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57424         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57425         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57426         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57427         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57428         string.h, free.
57429         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57430         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57431         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57432         C headers, or for string.h.
57433         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57434         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57435         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57436         headers, memory.h, stdlib.h, string.h, strings.h.
57437         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57438         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57439         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57440         strchr.
57441         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57442         headers, memory.h, string.h.
57443         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57444         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57445         free.
57446         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57447         headers.
57448         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57449         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57450         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57451         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57452         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57453
57454 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57455
57456         More K&R removal.
57457
57458         * lib/acosl.c (main): Use a prototype.
57459         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57460         tanl.c: Likewise.
57461
57462         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57463
57464         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57465         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57466         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57467         with a prototype.
57468         * lib/getopt.c (const): Remove macro.
57469         Include <string.h> unconditionally.
57470         (my_index): Remove; all uses changed to strchr.
57471         (strlen): Remove decl.
57472         (exchange): Remove forward decl; no longer needed.
57473         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57474         Define with prototype.
57475         * lib/getopt1.c (const): Remove macro.
57476         (getopt_long, getopt_long_only, main): Define with prototype.
57477
57478         * lib/getugroups.c: Include <string.h> unconditionally.
57479
57480         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57481         (getusershell, setusershell, endusershell, readname, main):
57482         Define with prototypes.
57483
57484         * lib/group-member.c: Include group-member.h first.
57485         Include <stdlib.h> unconditionally.
57486
57487         * lib/hard-locale.c: Include hard-locale.h first.
57488         Include <stdlib.h>, <string.h> unconditionally.
57489
57490         * lib/hash.c (free, malloc): Remove decls.
57491         Include <stdlib.h> unconditionally.
57492
57493         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57494         (getenv): Do not declare.
57495
57496         * lib/idcache.c: Include <string.h> unconditionally.
57497
57498         * lib/long-options.c: Include long-options.h first, to test interface.
57499         Include <stdlib.h> unconditionally.
57500
57501         * lib/makepath.c: Include makepath.h first, to test interface.
57502         Include <stdlib.h> and <string.h> unconditionally.
57503
57504         * lib/linebuffer.c: Include <stdlib.h>.
57505         (free): Remove decl.
57506
57507         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57508         stddef.h. rpl_malloc returns void *, not char *.
57509         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57510         prototype.
57511
57512         * lib/md5.h: Include <limits.h> unconditionally.
57513         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57514         (__P): Remove; all uses removed.
57515         * lib/md5.c: Include "md5.h" first.
57516         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57517         md5_buffer, md5_process_bytes, md5_process_block):
57518         Define with prototypes.
57519         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57520         * lib/sha.c: Include "sha.h" first.
57521         Include <stdlib.h>, <string.h> unconditionally.
57522
57523         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57524         * lib/memcmp.c (__ptr_t): Likewise.
57525         * lib/memrchr.c (__ptr_t): Likewise.
57526         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57527         Include <string.h> unconditionally.
57528         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57529         * lib/memchr.c: Include <stdlib.h> unconditionally.
57530         * lib/memchr.c (LONG_MAX): Remove.
57531         * lib/memrchr.c (LONG_MAX): Likewise.
57532         * lib/memchr.c (__memchr): Define via a prototype.
57533         * lib/memrchr.c (__memrchr): Likewise.
57534         * lib/memcmp.c (__P): Remove, and remove all uses.
57535         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57536         Remove forward decls; no longer needed.
57537         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57538         Use types required by C89 in prototype.
57539
57540         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57541         * lib/savedir.c: Likewise.
57542         * lib/mkdir.c (free): Remove decl.
57543         * lib/rmdir.c (rmdir): Define with a prototype.
57544         * lib/savedir.c: Include savedir.h first, to test interface.
57545
57546         * lib/mktime.c (STDC_HEADERS): Remove.
57547         Include <stdlib.h>, <string.h> unconditionally.
57548
57549         * lib/modechange.c: Include <stdlib.h> unconditionally.
57550         (malloc): Remove decl.
57551
57552         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57553         (free): Remove decl.
57554
57555         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57556         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57557         (This type really should be intptr_t, but that's a C99ism.)
57558         (_obstack_memcpy): Remove: all uses changed to memcpy.
57559         Include <string.h> unconditionally.
57560         (struct obstack): Assume __STDC__ for types of members
57561         chunkfun, freefun, extra_arg.
57562         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57563         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57564         obstack_begin, obstack_specify_allocation,
57565         obstack_specify_allocation_with_arg, obstack_chunkfun,
57566         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57567         Remove unprototyped decls and the macros that use them.
57568         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57569         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57570         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57571         (defined __STDC__ && __STDC__)]:
57572         Remove nonprototyped code.
57573         Include <stdlib.h> unconditionally.
57574         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57575         _obstack_allocated_p, _obstack_free, obstack_free,
57576         _obstack_memory_used, print_and_abort):
57577         Define using prototypes.
57578         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57579         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57580         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57581         obstack_next_free, obstack_object_size, obstack_room) [0]:
57582         Remove unused, unprototyped code.
57583
57584         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57585
57586         * lib/physmem.c (physmem_total, physmem_available, main): Define
57587         with prototypes.
57588
57589         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57590         (main): Define with a prototype.
57591
57592         * lib/posixver.c (getenv): Remove decl.
57593
57594         * lib/putenv.c (malloc): Returns void *, not char *.
57595         Include <string.h> unconditionally.
57596         (strchr, memcpy, NULL): Do not define.
57597
57598         * lib/readtokens.c: Include readtokens.h first, to test interface.
57599         Include <stdlib.h>, <string.h> unconditionally.
57600         (init_tokenbuffer): Define with a prototype.
57601
57602         * lib/regex.c (PARAMS): Remove.  All uses removed.
57603         All uses of _RE_ARGS removed, too.
57604         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57605         unconditionally.
57606         (bzero): Assume memset exists.
57607         (memcmp, memcpy, NULL): Remove.
57608         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57609         char, or assignments to local vars of type signed char.
57610         (init_syntax_once, PREFIX(extract_number_and_incr),
57611         PREFIX(print_partial_compiled_pattern),
57612         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57613         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57614         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57615         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57616         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57617         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57618         wcs_compile_range, byte_compile_range, truncate_wchar,
57619         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57620         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57621         count_mbs_length, wcs_re_match_2_internal,
57622         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57623         PREFIX(alt_match_null_string_p),
57624         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57625         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57626         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57627         now-unnecessary declaration, if any.
57628         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57629         regcomp, regexec):
57630         Remove now-unnecessary casts among pointer types.
57631         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57632
57633         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57634         (free): Remove decl.
57635
57636         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57637
57638         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57639         (free): Remove decl.
57640
57641         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57642         * lib/xgetcwd.c: Likewise.
57643
57644         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57645         (free): Remove decl.
57646
57647         * lib/strchrnul.c (strchrnul): Define with a prototype.
57648         Fix bug: c_in was not converted to char before searching.
57649
57650         The following changes are not K&R related:
57651
57652         * lib/group-member.h: Include <sys/types.h>, so that this file is
57653         self-contained.
57654         * lib/makepath.h: Likewise.
57655
57656         * lib/getusershell.c (readname, default_index, line_size, readname):
57657         Use size_t, not int, for sizes.
57658         (readname): If the size overflows, report an error instead of
57659         looping forever.
57660
57661 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57662
57663         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57664         libc.
57665
57666 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57667
57668         * README: New section: portability guidelines.
57669
57670 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57671
57672         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57673         C89 spec.
57674
57675 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57676
57677         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57678
57679 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57680
57681         Assume C89 or better; remove K&R cruft.
57682         A few of these changes were first proposed by Derek Robert Price
57683         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57684
57685         * lib/addext.c: Include <string.h> unconditionally.
57686         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57687         Don't declare getenv or malloc.
57688
57689         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57690         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57691         (NULL): Remove.
57692         (find_stack_direction, alloca): Use prototypes.
57693
57694         * lib/atexit.c (atexit): Define using a prototype.
57695
57696         * lib/basename.c, dirname.c, stripslash.c:
57697         Include <string.h> unconditionally.
57698
57699         * lib/bcopy.c: Include <stddef.h>.
57700         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57701
57702         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57703
57704         * lib/error.h (error, error_at_line, error_print_progname)
57705         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57706         * lib/error.c: Include error.h first, to check interface.
57707         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57708         (VA_START): Remove; all uses changeed to va_start.
57709         (exit, strerror): Remove decls.
57710         (error_print_progname): Prototype uncondionally.
57711         Don't include <errno.h>; no longer needed.
57712         (private_strerror): Remove.
57713         (error_tail): Always define.
57714         (error, error_at_line): Assume C89 or better; always use prototypes.
57715         * lib/fatal.c: Include "fatal.h" first, to test interface.
57716         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57717         (VA_START): Remove; all uses changed to va_start.
57718         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57719         this case.
57720         (exit): Remove decl.
57721         (fatal): Prototype unconditionally.  Assume va_start works.
57722         Abort at end, to pacify gcc.
57723
57724         * lib/euidaccess.c (main): Define with a prototype.
57725
57726         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57727
57728         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57729
57730         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57731         prototypes.
57732         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57733         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57734         (getenv): Remove decl.
57735         (fnmatch): Define using a prototype.
57736         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57737         (FCT): Define using a prototype.
57738
57739         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57740
57741         * lib/gethostname.c: Include <stddef.h>.
57742         (gethostname): Define with prototype.  Length is size_t, not int.
57743
57744 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57745
57746         Assume C89 or better; remove K&R cruft.
57747         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57748         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57749         string.h, getenv, malloc.
57750         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57751         headers.
57752         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57753         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57754         do not check for strerror.
57755         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57756         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57757         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57758         do not check for doprnt or vprintf.
57759         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57760         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57761
57762 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57763
57764         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57765         getversion.c should have been removed then, but was accidentally
57766         preserved.
57767
57768         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57769         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57770
57771 2003-09-08  Karl Berry  <karl@gnu.org>
57772
57773         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57774                 config, forget about prep.
57775
57776         * config/depcomp, missing: update from automake.
57777
57778 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57779
57780         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57781         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57782
57783 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57784
57785         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57786         copy_tm_result.  Bug reported by Simon Josefsson in
57787         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57788
57789 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57790
57791         * m4/time_r.m4: New file.
57792         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57793         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57794         is. Check for timegm declaration.
57795         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57796         Do not check for gmtime_r.
57797         Replace mktime if __mktime_internal does not exist and if mktime
57798         hasn't been replaced already.
57799
57800 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57801
57802         * lib/time_r.c, lib/time_r.h: New files.
57803
57804         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57805         __localtime_r.
57806         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57807         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57808
57809         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57810         __gmtime_r.
57811         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57812         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57813         Include <time_r.h>.
57814
57815         * lib/timegm.c: Switch to glibc implementation, with the following
57816         changes:
57817         [defined HAVE_CONFIG_H]: Include <config.h>.
57818         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57819         (__mktime_internal) [!defined _LIBC]: New decl.
57820         (__gmtime_r) [!defined _LIBC]: New macro and function.
57821         (timegm): Use a prototype, since gnulib assumes C89.
57822         Do not bother declaring tmp to be const, as it's not really usefu.
57823         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57824         (timegm): Declare only if HAVE_DECL_TIMEGM.
57825
57826 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57827
57828         * MODULES.html.sh (func_all_modules): Add time_r.
57829         * modules/time_r: New file.
57830         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57831         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57832
57833 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57834
57835         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57836         Bug reported by Lute Kamstra in
57837         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57838
57839         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57840         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57841         course with correspondingly smaller numbers for tomorrow and
57842         yesterday.  From Tadayoshi Funaba.  Originally installed into
57843         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57844         coreutils merge?).
57845
57846 2003-08-31  Simon Josefsson  <jas@extundo.com>
57847
57848         * modules/timegm: New file.
57849         * MODULES.html.sh (func_all_modules): Add timegm.
57850
57851 2003-08-31  Simon Josefsson  <jas@extundo.com>
57852
57853         * m4/timegm.m4: New file.
57854
57855 2003-08-31  Simon Josefsson  <jas@extundo.com>
57856
57857         * lib/timegm.h: New file.
57858         * lib/timegm.c: New file.  Based on
57859         wget-1.8.2/src/http.c:mktime_from_utc.
57860
57861 2003-08-31  Karl Berry  <karl@gnu.org>
57862
57863         * lib/argp.h: update from libc.
57864
57865 2003-08-28  Bruno Haible  <bruno@clisp.org>
57866
57867         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57868         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57869         followed by '#define fnmatch fnmatch_posix' gives an error.
57870
57871 2003-08-28  Bruno Haible  <bruno@clisp.org>
57872
57873         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57874         warning on QNX, which defines O_BINARY to 000000.
57875
57876 2003-08-27  Jim Meyering  <jim@meyering.net>
57877
57878         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57879         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57880         would fail after 32.  Reported by Danny Levinson.  Details here:
57881         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57882
57883 2003-08-24  Bruno Haible  <bruno@clisp.org>
57884
57885         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57886         MSVC7 <stdio.h> is included later.
57887
57888 2003-08-22  Simon Josefsson  <jas@extundo.com>
57889
57890         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57891
57892 2003-08-20  Karl Berry  <karl@gnu.org>
57893
57894         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57895
57896 2003-08-20  Bruno Haible  <bruno@clisp.org>
57897
57898         * modules/progname: New file.
57899         * MODULES.html.sh (func_all_modules): Add progname.
57900
57901 2003-08-20  Bruno Haible  <bruno@clisp.org>
57902
57903         * lib/progname.h: New file, from GNU gettext.
57904         * lib/progname.c: New file, from GNU gettext.
57905         * lib/progreloc.c: New file, from GNU gettext.
57906
57907 2003-08-19  Jim Meyering  <jim@meyering.net>
57908
57909         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57910         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57911
57912 2003-08-19  Bruno Haible  <bruno@clisp.org>
57913
57914         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57915         more.
57916
57917 2003-08-19  Bruno Haible  <bruno@clisp.org>
57918
57919         * lib/xstrdup.c: Assume <string.h> exists.
57920
57921 2003-08-18  Paul Eggert  <eggert@twinsun.com>
57922
57923         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
57924         in makefile rules.
57925
57926 2003-08-18  Jim Meyering  <jim@meyering.net>
57927
57928         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57929         * m4/lib-ld.m4: Likewise.
57930
57931 2003-08-18  Jim Meyering  <jim@meyering.net>
57932
57933         * lib/setenv.h: Indent nested cpp directive.
57934         * lib/vasnprintf.c: Remove trailing blanks.
57935
57936 2003-08-17  Simon Josefsson  <jas@extundo.com>
57937
57938         * modules/xstrndup: New file.
57939         * MODULES.html.sh (func_all_modules): Add xstrndup.
57940
57941 2003-08-17  Simon Josefsson  <jas@extundo.com>
57942
57943         * modules/argp: Fix autoconf macro name. Add more dependencies.
57944
57945 2003-08-17  Simon Josefsson  <jas@extundo.com>
57946
57947         * m4/xstrndup.m4: New file.
57948
57949 2003-08-17  Simon Josefsson  <jas@extundo.com>
57950
57951         * m4/argp.m4: New file.
57952
57953 2003-08-17  Simon Josefsson  <jas@extundo.com>
57954             Bruno Haible  <bruno@clisp.org>
57955
57956         * lib/xstrndup.h: New file.
57957         * lib/xstrndup.c: New file.
57958
57959 2003-08-17  Bruno Haible  <bruno@clisp.org>
57960
57961         * modules/strndup (Files, Include): Add lib/strndup.h.
57962
57963 2003-08-17  Bruno Haible  <bruno@clisp.org>
57964
57965         * modules/euidaccess (Files): Add lib/euidaccess.h.
57966
57967 2003-08-17  Bruno Haible  <bruno@clisp.org>
57968
57969         * lib/strndup.h: New file.
57970
57971 2003-08-17  Bruno Haible  <bruno@clisp.org>
57972
57973         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57974         like AC_GNU_SOURCE.
57975         * modules/extensions (configure.ac): Comment out the invocation of
57976         gl_USE_SYSTEM_EXTENSIONS.
57977
57978 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57979
57980         Merges from coreutils, etc.
57981         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57982         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
57983         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57984         fixing a typo.
57985         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57986         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57987
57988 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57989
57990         Document merge from coreutils.
57991         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57992         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57993         * modules/utime: Add m4/utimes-null.m4.
57994
57995 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57996
57997         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57998         space, undoing this 2003-08-12 change:
57999         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58000
58001 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58002
58003         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
58004         strtoul.c from libc, undoing this 2003-08-12 change:
58005         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58006
58007 2003-08-16  Jim Meyering  <jim@meyering.net>
58008
58009         Merges from coreutils.
58010         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58011         prefix.  Adjust cache variables similarly.  Create 500 rather than
58012         just 300 files, to exercise bug on Darwin6.5, too.
58013         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58014         $missing_dir.
58015         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58016         AM_SYS_POSIX_TERMIOS.
58017         Reported by mkc@mathdogs.com.
58018         Also change use of $am_cv_sys_posix_termios
58019         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58020         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58021         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58022         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58023         in /proc/mounts until it finds one with matching device number.  This
58024         is unnecessary when the FILE argument *is* a mount point.  No stat call
58025         is necessary in that case.  So, disable the statvfs-testing code on
58026         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58027         as RedHat bug# 84846.
58028         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58029         to 1MB, so as not to render systems with no stack size limit (e.g.,
58030         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58031         Include <unistd.h>.  On some systems,
58032         it is required for the definition of _SC_PAGESIZE.
58033
58034 2003-08-16  Jim Meyering  <jim@meyering.net>
58035
58036         Merge from coreutils.
58037         * lib/xstrtoimax.c: #else #if -> #elif.
58038         * lib/xstrtoumax.c: Likewise.
58039
58040 2003-08-16  Jim Meyering  <jim@meyering.net>
58041
58042         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58043         * m4/utimes.m4: Removed.
58044         * m4/utimes-null.m4: Renamed from utimes.m4.
58045
58046         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58047         to 1MB, so as not to render systems with no stack size limit (e.g.,
58048         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58049         Include <unistd.h>.  On some systems,
58050         it is required for the definition of _SC_PAGESIZE.
58051
58052 2003-08-16  Jim Meyering  <jim@meyering.net>
58053         and Paul Eggert  <eggert@cs.ucla.edu>
58054
58055         Merges from coreutils, etc.
58056
58057         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58058         using the latest version from cvs.  This avoids problems with #line
58059         directives using a vendor (Sun) compiler.
58060         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58061         Don't set GETGROUPS_LIB here; now it's
58062         done via getgroups.m4's wrapper function.
58063         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58064         rather than just in sh-util/configure.in, so that the
58065         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58066         same.
58067         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58068         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58069         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58070         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58071         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58072         Remove code that is now done by the newly-required macros.
58073         Append $(EXEEXT) to DF_PROG.
58074         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58075         Do not invoke or require the following here,
58076         since prereq.m4 or some gnulib .m4 now does this for us:
58077         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58078         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58079         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58080         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58081         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58082         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58083         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58084         AC_FUNC_OBSTACK.
58085         Do not replace the following functions, as this is now the job
58086         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58087         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58088         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58089         atexit getpass, strdup, getpagesize.
58090         Replace 'raise'.
58091         Do not check for the following functions, as this is now the job
58092         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58093         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58094         setregid.
58095         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58096         Check for sys/sysctl.h.
58097         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58098         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58099         of checking for ssize_t ourselves.
58100
58101         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58102         Require every macro that gnulib/modules/* suggests for us.
58103         (jm_PREREQ_ADDEXT): New macro.
58104         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58105         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58106
58107         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58108         (gl_PHYSMEM): Use it.
58109         Also check for `table' function.
58110         Check for new headers and functions.
58111         Add check for sys/sysmp.h.
58112         With suggestions from Kaveh Ghazi.
58113         Ignore headers that are present but cannot be compiled.  This
58114         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58115         C 5.4.
58116
58117 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58118
58119         Document merge from coreutils.
58120         * modules/userspec: Depend on posixver.
58121         * modules/strftime: Depend on tzset.
58122
58123 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58124
58125         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58126         rather than tab, after '#' in shell-script copyright notices.
58127         Suggested by Bruno Haible.
58128
58129 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58130
58131         * config/srclist-update: Use three spaces, rather than tab, after '#'
58132         in shell-script copyright notices.  Suggested by Bruno Haible.
58133         Remove unnecessary parenthesization in regular expression.
58134
58135 2003-08-15  Jim Meyering  <jim@meyering.net>
58136
58137         Merge from coreutils.
58138         * lib/xgethostname.c: Include <stdlib.h>.
58139         (xghostname): Don't exit for anything other than memory-related
58140         failure; just return NULL.
58141         * lib/userspec.c: Include "posixver.h".
58142         (parse_user_spec): Accept `.' as a separator only
58143         in pre-POSIX-200112 mode.
58144         * lib/strtoimax.c: Use #elif rather than #else #if.
58145         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58146         Remove function, now that we can rely on a working tzset function.
58147         [!_LIBC]: Ensure that the required autoconf test has been run.
58148         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58149         Use underlying_strftime for %r.
58150         * lib/sha.c: Merge in some clean-up and optimization changes from
58151         glibc.
58152         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58153         Ensure that it is a multiple of 64.
58154         Rearrange loop exit tests so as to avoid performing an
58155         additional fread after encountering an error or EOF.
58156         * lib/realloc.c: Update copyright date.
58157
58158 2003-08-15  Jim Meyering  <jim@meyering.net>
58159         and Paul Eggert  <eggert@twinsun.com>
58160
58161         Merge from coreutils.
58162         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58163         member but strut utmpx does not.  Needed for AIX 4.3.3.
58164         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58165
58166 2003-08-15  Jim Meyering  <jim@meyering.net>
58167         and Paul Eggert  <eggert@cs.ucla.edu>
58168
58169         Merges from coreutils, etc.
58170         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58171         Require gl_FUNC_TZSET_CLOBBER.
58172         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58173         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58174         members.
58175
58176 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58177
58178         Help the merge from coreutils.
58179         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58180         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58181         * m4/tzset.m4: Use it too.
58182
58183 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58184
58185         * modules/tzset: New file.
58186
58187 2003-08-14  Jim Meyering  <jim@meyering.net>
58188
58189         Merges from coreutils.
58190         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58191         variable names, rather than @FNMATCH_H@.
58192         * modules/alloca: Likewise for $(ALLOCA_H).
58193
58194         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58195         the three copies of the literal target, `fnmatch.h'.
58196         * modules/alloca (alloca.h): Likewise.
58197
58198 2003-08-14  Jim Meyering  <jim@meyering.net>
58199
58200         Merge from coreutils.
58201         * m4/tzset.m4: New file.
58202         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58203         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58204         otherwise, AIX 5.1 systems would end up using the latter.
58205         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58206         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58207         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58208         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58209
58210 2003-08-14  Jim Meyering  <jim@meyering.net>
58211
58212         Merge from coreutils.
58213         * lib/obstack.h: Whitespace changes.
58214         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58215         and xcalloc return values.
58216         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58217         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58218         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58219         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58220         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58221         error from mntctl.
58222         Use mntctl's return value to drive the entry-processing loop, since
58223         we can't rely on the value of the vmt_length member in the last
58224         entry.  On some systems doing so could result in exhausting
58225         virtual memory.  Based in part on a patch from Mike Jetzer.
58226
58227 2003-08-14  Jim Meyering  <jim@meyering.net>
58228         and Paul Eggert  <eggert@twinsun.com>
58229
58230         Merges from coreutils, plus other fixes.
58231         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58232         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58233         for credits and details.  Thanks to Kaveh Ghazi for helping
58234         to keep these files in sync.
58235         (ARRAY_SIZE): Define it.
58236         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58237         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58238         (memcasecmp): Don't assume size_t fits in unsigned int.
58239         Remove casts and duplicate code.
58240         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58241         (memcpy): Remove definition.
58242         Merge in some clean-up and optimization changes from glibc.
58243         [BLOCKSIZE]: Move definition to top of file.
58244         Ensure that it is a multiple of 64.
58245         Rearrange loop exit tests so as to avoid performing an
58246         additional fread after encountering an error or EOF.
58247         * lib/md5.h (md5_uintptr): Define.
58248         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58249         return to the initial working directory.  Preserve errno
58250         for caller.
58251         * lib/idcache.c: Include "xalloc.h".
58252         (xmalloc, xrealloc): Remove decls.
58253         (getuser): Remove casts no longer required in C89.
58254         * lib/human.c: Include stdio.h, for sprintf.
58255         * lib/group-member.c: Include "xalloc.h".
58256         (xmalloc, xrealloc): Remove decls.
58257         (get_group_info): Remove casts no longer required in C89.
58258         * lib/getusershell.c (readname): Remove casts no longer required in
58259         C89.
58260         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58261         * lib/getline.c: Whitespace fix, from coreutils.
58262
58263 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58264
58265         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58266         Check for isascii.
58267
58268         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58269         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58270         Undo previous (whitespace-only) change.
58271
58272 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58273
58274         * lib/exclude.c: Include <ctype.h>
58275         (IN_CTYPE_DOMAIN): New macro.
58276         (is_space): New fn.
58277         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58278         and empty lines.
58279
58280         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58281         Undo previous (whitespace-only) change.
58282
58283 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58284
58285         * config/srclist-update: Change update back to the old behavior,
58286         leaving whitespace alone.  Use one 'sed' command rather than a
58287         pipeline.
58288         (fixlicense): Now a variable, not a function.
58289         (remove_trailing_blanks): Remove.
58290         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58291         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58292         Undo previous (whitespace-only) change.
58293
58294 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58295
58296         Merge from coreutils.
58297         * modules/euidaccess: Add lib_SOURCES, include for new
58298         file euidaccess.h
58299
58300 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58301
58302         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58303         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58304         Normalize leading white space and remove trailing white space.
58305
58306         Merge from coreutils
58307         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58308
58309         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58310         0.12.1.  These files are now being upgraded automatically by
58311         ../config/srclist-update.
58312
58313 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58314
58315         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58316         Normalize leading white space and remove trailing white space.
58317         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58318         notice, as per ../config/srclist-update.
58319
58320         Merge from coreutils.
58321         * lib/euidaccess.h: New file.
58322         * lib/euidaccess.c: Include it.
58323         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58324         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58325         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58326
58327 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58328
58329         * config/srclist-update: Add copyright notice.
58330         (remove_id_lines, remove_trailing_blanks): New constants.
58331         (fixfile): Use them to normalize spacing a bit in copied files.
58332         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58333         Normalize leading white space and remove trailing white space.
58334
58335         * config/texinfo.tex: Sync with texinfo.
58336
58337         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58338         strtoul.c from libc, to merge coreutils whitespace changes.
58339
58340         * config/srclist.txt: Get the following m4 files from gettext:
58341         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58342         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58343         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58344         wint_t.m4.
58345
58346 2003-08-12  Karl Berry  <karl@gnu.org>
58347
58348         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58349         been made.
58350
58351 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58352
58353         * modules/gnu-source, m4/gnu-source.m4:
58354         Remove; we're assuming Autoconf 2.54 or later now.
58355         Suggested by Bruno Haible.
58356         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58357
58358 2003-08-11  Bruno Haible  <bruno@clisp.org>
58359
58360         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58361
58362 2003-08-11  Bruno Haible  <bruno@clisp.org>
58363
58364         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58365         (vasnprintf): Use it instead of wcslen.
58366
58367 2003-08-11  Bruno Haible  <bruno@clisp.org>
58368
58369         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58370         value to ensure that _Bool promotes to int. Use #define for _Bool when
58371         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58372
58373 2003-08-10  Karl Berry  <karl@gnu.org>
58374
58375         * lib/regex.h: update from libc (whitespace fix).
58376
58377 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58378
58379         Merge some files from coreutils.  These changes were
58380         originally made by Jim Meyering.
58381         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58382         many older Unixes require this.
58383         * lib/alloca.c (alloca): Remove cast to argument of free;
58384         no longer needed in C89.
58385         * lib/alloca_.h, regex.h: Fix white space to match
58386         what GNU indent does.
58387
58388 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58389
58390         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58391         apparently Emacs's Unicode mode got confused before my 2003-08-05
58392         checkin.
58393
58394 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58395
58396         * m4/extensions.m4: New file.
58397         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58398         Require gl_USE_SYSTEM_EXTENSIONS.
58399         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58400         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58401
58402 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58403
58404         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58405         * modules/extensions, modules/gnu-source: New files.
58406         * modules/timespec, modules/unlocked-io: Depend on extensions.
58407
58408 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58409
58410         * modules/restrict: New file.
58411         * MODULES.html.sh (func_all_modules): Add restrict.
58412         * modules/regex: Depend on restrict.
58413
58414 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58415
58416         * m4/restrict.m4: New file.
58417         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58418
58419 2003-08-07  Bruno Haible  <bruno@clisp.org>
58420
58421         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58422         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58423
58424 2003-08-07  Bruno Haible  <bruno@clisp.org>
58425
58426         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58427         makes the module 'getndelim2' compatible with the module 'getline'.
58428
58429 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58430
58431         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58432         byte with "\201" to avoid glitches when editing that source file
58433         with multi-gnome-terminal.
58434
58435 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58436
58437         * lib/bumpalloc.h: Remove.
58438
58439 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58440
58441         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58442         * modules/bumpalloc: Remove.
58443
58444 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58445
58446         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58447         GNU coding style.
58448
58449         Merge from coreutils.
58450         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58451         1. From glibc.
58452         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58453         from Karl Berry, implemented by Jim Meyering.
58454         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58455         from Dmitry V. Levin.
58456         Remove anachronistic cast of xrealloc.
58457         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58458         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58459         type. Otherwise, it wouldn't compile with at least /bin/cc on
58460         ymp-cray-unicos9.0.2.X.
58461         Combine two mostly-identical uses of alloca into one.
58462         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58463
58464 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58465
58466         [From Emacs.]
58467
58468         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58469         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58470         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58471         obsolete NLIST_NAME_UNION.
58472         [__GNU__]: Undef BSD and FSCALE.
58473         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58474
58475 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58476
58477         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58478         an enum type, so that it's guaranteed to promote to int.  See:
58479         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58480
58481 2003-08-03  Karl Berry  <karl@gnu.org>
58482
58483         * config/depcomp: update from automake.
58484
58485 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58486
58487         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58488         (strerror): Don't assume that a printable int fits in 14 bytes.
58489
58490 2003-07-31  Bruno Haible  <bruno@clisp.org>
58491
58492         * modules/getpass-gnu: New file.
58493         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58494
58495 2003-07-31  Bruno Haible  <bruno@clisp.org>
58496
58497         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58498
58499 2003-07-24  Karl Berry  <karl@gnu.org>
58500
58501         * config/missing: update from automake.
58502
58503 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58504             Bruno Haible  <bruno@clisp.org>
58505
58506         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58507         * lib/getline.c (getline, getdelim): Likewise.
58508         Remove _GNU_SOURCE define; now it's defined in config.h through
58509         m4/getline.m4.
58510
58511 2003-07-23  Karl Berry  <karl@gnu.org>
58512
58513         * config/config.sub: update from prep.
58514
58515 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58516
58517         * modules/xalloc (Depends-on): Add exitfail.
58518         * modules/xmemcoll: Likewise.
58519
58520 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58521
58522         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58523         over-parenthesization in macros.
58524
58525         Sync with coreutils.
58526
58527         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58528         required by C99.
58529
58530         Use `exit_failure' for xalloc and xmemcoll instead of their own
58531         private exit-failure variables.
58532         * lib/xalloc.h (xalloc_exit_failure): Remove.
58533         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58534         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58535         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58536         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58537         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58538
58539 2003-07-20  Jim Meyering  <jim@meyering.net>
58540
58541         * modules/closeout (Depends-on): Add exitfail.
58542         Suggestion from Bruno Haible.
58543
58544 2003-07-19  Karl Berry  <karl@gnu.org>
58545
58546         * config/config.sub: update from prep.
58547
58548 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58549
58550         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58551         Remove.
58552         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58553         to test that it can stand by itself.  Include "exitfail.h".
58554         Clients should set exit_failure instead.
58555         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58556
58557 2003-07-18  Bruno Haible  <bruno@clisp.org>
58558
58559         * modules/getndelim2: New file.
58560         * modules/getline: Share files with module getndelim2.
58561         * modules/getnline: Depend on getndelim2 instead of sharing files with
58562         it. Add getnline.c to lib_SOURCES.
58563         * MODULES.html.sh (func_all_modules): Add getndelim2.
58564
58565 2003-07-18  Bruno Haible  <bruno@clisp.org>
58566
58567         * m4/getndelim2.m4: New file.
58568         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58569         invoke gl_PREREQ_GETNDELIM2.
58570         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58571         gl_PREREQ_GETNDELIM2.
58572         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58573         gl_GETNDELIM2.
58574
58575 2003-07-18  Bruno Haible  <bruno@clisp.org>
58576
58577         * lib/getndelim2.h: New file.
58578         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58579         getndelim2.h.
58580         (getndelim2): Make non-static. Change return type to ssize_t.
58581         * lib/getline.h: Change argument names.
58582         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58583         * lib/getnline.c: Include getndelim2.h.
58584
58585 2003-07-18  Andreas Schwab  <schwab@suse.de>
58586
58587         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58588
58589 2003-07-17  Karl Berry  <karl@gnu.org>
58590
58591         * config/config.sub: update from prep.
58592
58593 2003-07-17  Bruno Haible  <bruno@clisp.org>
58594
58595         * modules/getnline: New file.
58596         * modules/getline: Add lib/getndelim2.c to source file list.
58597         * MODULES.html.sh (func_all_modules): Add getnline.
58598
58599 2003-07-17  Bruno Haible  <bruno@clisp.org>
58600
58601         * m4/getnline.m4: New file.
58602
58603 2003-07-17  Bruno Haible  <bruno@clisp.org>
58604
58605         * m4/Makefile.am.in: Remove file.
58606         * m4/Makefile.am: Remove file.
58607         * m4/Makefile.in: Remove file.
58608
58609 2003-07-17  Bruno Haible  <bruno@clisp.org>
58610
58611         * lib/getnline.h: New file.
58612         * lib/getnline.c: New file.
58613         * lib/getndelim2.c: New file, extracted from getline.c.
58614         (getndelim2): Renamed from getdelim2, with added nmax argument.
58615         * lib/getline.c: Include getndelim2.c.
58616         (getdelim2): Moved out to getndelim2.c.
58617         (getline, getdelim): Update.
58618
58619 2003-07-17  Bruno Haible  <bruno@clisp.org>
58620
58621         * lib/Makefile.am: Remove file.
58622         * lib/Makefile.in: Remove file.
58623
58624 2003-07-17  Bruno Haible  <bruno@clisp.org>
58625
58626         * configure.in: Remove file.
58627         * Makefile.in: Remove file.
58628
58629 2003-07-17  Bruno Haible  <bruno@clisp.org>
58630
58631         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58632
58633 2003-07-16  Karl Berry  <karl@gnu.org>
58634
58635         * config/srclist-update: was running fixlicense twice, which caused
58636                 texinfo.tex to be nullified for some reason.  Simplify,
58637                 $gplsrc is no longer needed as far as I can see?
58638
58639 2003-07-16  Jim Meyering  <jim@meyering.net>
58640
58641         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58642
58643 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58644
58645         * config/srclist.txt: Get the following files from gettext-runtime/intl
58646         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58647         ref-del.sin.  From Bruno Haible.
58648         * config/srclist-update (fixfile): Change grep pattern again, since the
58649         previous fix didn't work (there was another trailing $).  Use
58650         '[$]' to escape the $s.
58651
58652 2003-07-15  Karl Berry  <karl@gnu.org>
58653
58654         * lib/vasnprintf.c: update from gettext.
58655
58656 2003-07-15  Karl Berry  <karl@gnu.org>
58657
58658         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58659         gets expanded when surrounded by '$'.
58660
58661 2003-07-15  Jim Meyering  <jim@meyering.net>
58662
58663         * modules/save-cwd: Don't depend on error.  From Derek Price.
58664
58665 2003-07-15  Jim Meyering  <jim@meyering.net>
58666
58667         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58668
58669 2003-07-14  Simon Josefsson  <jas@extundo.com>
58670
58671         * modules/mempcpy: New file.
58672         * MODULES.html.sh (func_all_modules): Add mempcpy.
58673
58674 2003-07-14  Simon Josefsson  <jas@extundo.com>
58675
58676         * m4/mempcpy.m4: New file.
58677
58678 2003-07-14  Simon Josefsson  <jas@extundo.com>
58679
58680         * lib/mempcpy.h: New file.
58681         * lib/mempcpy.c: New file.
58682
58683 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58684
58685         * modules/getdate, modules/posixtm: Depend on mktime.
58686
58687 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58688
58689         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58690         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58691         unicodeio.c, unicodeio.h, unlocked-io.h:
58692         Switch from LGPL to GPL.
58693
58694 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58695
58696         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58697         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58698         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58699         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58700         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58701         updated automatically by ../config/srclist-update.  This changes
58702         their license from LPGL to GPL.
58703
58704 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58705
58706         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58707         assumed to refer to the root of the most recent stable gettext version.
58708         * config/srclistvars.sh: Add defaults for eggert.
58709         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58710         Match "This program" as well as "The program".  This is needed
58711         for gettext.
58712
58713 2003-07-14  Jim Meyering  <jim@meyering.net>
58714
58715         Don't emit diagnostics.  Let callers do that.
58716         * lib/save-cwd.c: Don't include "error.h".
58717         (save_cwd): Don't call error.  Ensure that errno is valid
58718         when returning nonzero.
58719
58720         * lib/save-cwd.h (restore_cwd): Update prototype.
58721         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58722         Simplify.  Don't call error upon failure.  Let callers do that.
58723         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58724         when auditing is enabled.  But don't bother updating the #if.
58725
58726 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58727
58728         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58729         it breaks C++ compilation.
58730         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58731
58732 2003-07-10  Simon Josefsson  <jas@extundo.com>
58733
58734         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58735
58736 2003-07-10  Jim Meyering  <jim@meyering.net>
58737
58738         * m4/clock_time.m4: Remove trailing blank.
58739         * m4/intmax_t.m4: Likewise.
58740
58741 2003-07-10  Jim Meyering  <jim@meyering.net>
58742
58743         * lib/vasnprintf.c: Remove trailing blanks.
58744         Make cpp indentation consistent.
58745
58746 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58747
58748         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58749         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58750         Switch from LGPL to GPL.
58751
58752 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58753
58754         * config/srclist.txt: Sort sublists.  Add
58755         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58756         that differ from gnulib for one reason or another; we'd like this list
58757         to be smaller but for now let's document what we have.
58758
58759 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58760
58761         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58762         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58763         and sweeter "eval x=$x".
58764         * config/srclist.txt: Get lib/argp* from glibc.
58765
58766 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58767
58768         * lib/mktime.c: Fix some boundary cases and remove need for floating
58769         point.
58770
58771         Issue a compile-time diagnostic if time_t is floating point, or if
58772         two's complement arithmetic is not in effect, or if arithmetic
58773         right shift does not propagate the sign.  These assumptions were
58774         all in the original code but they weren't checked.
58775
58776         (TIME_T_MIDPOINT, verify): New macros.
58777         (__isleap): Remove; it has integer overflow problems.
58778         (leapyear): New function, without those problems.
58779         (ydhms_tm_diff): Remove; splitting into two parts.
58780         (ydhms_diff): New function, containing the arithmetic part of
58781         the old ydhms_tm_diff function.  Issue a compile-time
58782         diagnostic if we are not using C99 integer division.
58783         Avoid casts when possible.
58784         (guess_time_tm): New function, containing the checking part of
58785         the old ydhms_tm_diff function.  Return the new value, rather than
58786         the difference between it and the old.  Accept a new argument T
58787         so that *T specifies the old value.  Check for overflow in the result.
58788
58789         (__mktime_internal): Use a time_t offset, not a long int offset.
58790         This undoes the 2003-06-04 change, which is no longer needed now
58791         that we have better overflow checking.
58792         (localtime_offset): Likewise.
58793
58794         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58795         and long are 64-bit but int is only 32-bit.
58796         (ydhms_diff): Use long int to store year1 and yday1.
58797         Issue a compile-time diagnostic if long int is not wide enough.
58798
58799         (__mktime_internal): Use long int to store adjusted year and yday.
58800         Use plain C rather than preprocessor commands, if that doesn't
58801         affect efficiency.
58802         Check for overflow (and try to repair) after each probe
58803         rather than checking only at the very end.  This avoids some bugs
58804         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58805         does not equal GMT offset at maximum time).
58806         Use integer to check for overflow rather than floating point; this
58807         is more portable to non-IEEE hosts, and is a tad faster.
58808         When we detect that we are oscillating between two values,
58809         don't check whether tm_isdst has the requested value, since
58810         we already know the answer.  When tm_isdst has the wrong value,
58811         use a different heuristic to find the right one, based on the
58812         extreme values actually observed in practice in tz2003a,
58813         rather than the (overly optimistic) "previous 3 calendar quarters".
58814
58815         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58816         "T const" to accommodate glibc style.
58817         (check_result): Use less-confusing report format.  "long" -> "long int.
58818         (main): Likewise.
58819         Don't loop if the iteration overflows time_t.
58820         Allow a negative step in the iteration.
58821
58822 2003-07-06  Karl Berry  <karl@gnu.org>
58823
58824         * config/depcomp: update from automake.
58825         * config/config.sub: update from prep.
58826
58827 2003-07-03  Karl Berry  <karl@gnu.org>
58828
58829         * config/config.guess: update from prep.
58830
58831 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58832
58833         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58834         xreadlink.c now includes it unconditionally.
58835
58836 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58837
58838         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58839         having it depend on HAVE_SYS_TYPES_H.
58840
58841 2003-07-01  Bruno Haible  <bruno@clisp.org>
58842
58843         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58844         <sys/types.h> should be sufficient.
58845         Reported by Paul Eggert.
58846
58847 2003-06-26  Karl Berry  <karl@gnu.org>
58848
58849         * config/depcomp: update from automake.
58850
58851 2003-06-26  Bruno Haible  <bruno@clisp.org>
58852
58853         * modules/human: Depend on module stdbool.
58854
58855 2003-06-25  Bruno Haible  <bruno@clisp.org>
58856
58857         * modules/readlink: New file.
58858         * modules/xreadlink: Depend on it.
58859         * MODULES.html.sh (func_all_modules): Add readlink.
58860
58861 2003-06-25  Bruno Haible  <bruno@clisp.org>
58862
58863         * m4/readlink.m4: New file.
58864
58865 2003-06-25  Bruno Haible  <bruno@clisp.org>
58866
58867         * lib/readlink.c: New file.
58868
58869 2003-06-22  Karl Berry  <karl@gnu.org>
58870
58871         * config/srclist.txt: update mkinstalldirs from automake.
58872         * config/mkinstalldirs: update.
58873
58874 2003-06-22  Bruno Haible  <bruno@clisp.org>
58875
58876         Portability to mingw32.
58877         * m4/ssize_t.m4: New file, from GNU gettext.
58878         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58879         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58880
58881 2003-06-22  Bruno Haible  <bruno@clisp.org>
58882
58883         * modules/safe-read: Add m4/ssize_t.m4.
58884         * modules/xreadlink: Add m4/ssize_t.m4.
58885
58886 2003-06-20  Bruno Haible  <bruno@clisp.org>
58887
58888         Assume C89, so PARAMS isn't needed.
58889         * lib/unicodeio.h (PARAMS): Remove.
58890         * lib/unicodeio.c: Don't use PARAMS.
58891
58892 2003-06-18  Karl Berry  <karl@gnu.org>
58893
58894         * config/config.{guess,sub}: update from prep.
58895
58896 2003-06-18  Jim Meyering  <jim@meyering.net>
58897
58898         Merge changes from coreutils.
58899         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58900         Remove explicit declarations of xmalloc and realloc.
58901         Include xalloc.h.
58902         (read_utmp): Remove anachronistic cast of xmalloc.
58903
58904 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58905
58906         Assume C89, so PARAMS isn't needed.
58907         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58908         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58909         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58910         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58911         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58912         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58913         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58914         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58915         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58916         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58917         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58918         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58919         no longer needed. Anyway, config.h should always be included before any
58920         other file.
58921
58922 2003-06-11  Simon Josefsson  <jas@extundo.com>
58923
58924         * modules/sysexits: New file.
58925         * MODULES.html.sh (func_all_modules): Add sysexits.
58926
58927 2003-06-11  Simon Josefsson  <jas@extundo.com>
58928
58929         * lib/sysexit_.h: New file.
58930
58931 2003-06-11  Derek Price  <derek@ximbiot.com>
58932
58933         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58934         necessary.
58935
58936 2003-06-11  Bruno Haible  <bruno@clisp.org>
58937
58938         * m4/sysexits.m4: New file.
58939
58940 2003-06-10  Simon Josefsson  <jas@extundo.com>
58941
58942         * lib/argp.h: New file, from glibc.
58943         * lib/argp-ba.c: New file, from glibc.
58944         * lib/argp-eexst.c: New file, from glibc.
58945         * lib/argp-fmtstream.c: New file, from glibc.
58946         * lib/argp-fmtstream.h: New file, from glibc.
58947         * lib/argp-fs-xinl.c: New file, from glibc.
58948         * lib/argp-help.c: New file, from glibc.
58949         * lib/argp-namefrob.h: New file, from glibc.
58950         * lib/argp-parse.c: New file, from glibc.
58951         * lib/argp-pv.c: New file, from glibc.
58952         * lib/argp-pvh.c: New file, from glibc.
58953         * lib/argp-xinl.c: New file, from glibc.
58954
58955 2003-06-10  Simon Josefsson  <jas@extundo.com>
58956
58957         * modules/strchrnul: New file.
58958
58959 2003-06-10  Simon Josefsson  <jas@extundo.com>
58960
58961         * modules/argp: New file.
58962
58963 2003-06-10  Simon Josefsson  <jas@extundo.com>
58964
58965         * m4/strchrnul.m4: New file.
58966
58967 2003-06-10  Simon Josefsson  <jas@extundo.com>
58968
58969         * lib/strchrnul.h: New file.
58970         * lib/strchrnul.c: New file.
58971
58972 2003-06-10  Bruno Haible  <bruno@clisp.org>
58973
58974         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58975
58976 2003-06-07  Karl Berry  <karl@gnu.org>
58977
58978         * config/config.{guess,sub}: update from prep.
58979
58980 2003-06-07  Jim Meyering  <jim@meyering.net>
58981
58982         * modules/strtod: Use $(...) notation, not @...@ for
58983         AC_REPLACE'd variables.
58984         * modules/localcharset: Likewise.
58985
58986 2003-06-07  Jim Meyering  <jim@meyering.net>
58987
58988         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58989         in place of my name in the copyright comment.
58990         Remove definition and uses of __P.
58991
58992         From coreutils.
58993         * lib/stat.c: Don't declare xmalloc explicitly.
58994         Instead, include "xalloc.h".
58995         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58996         xrealloc, and xcalloc return values.
58997         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58998         Improve comment.
58999         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
59000
59001 2003-06-07  Bruno Haible  <bruno@clisp.org>
59002
59003         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
59004         avoid AC_CONFIG_LINKS.
59005         * modules/fnmatch (Makefile.am): Use explicit creation rule for
59006         fnmatch.h, to avoid AC_CONFIG_LINKS.
59007         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
59008
59009 2003-06-07  Bruno Haible  <bruno@clisp.org>
59010
59011         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59012         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59013         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59014         directory.
59015         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59016         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59017         directory.
59018
59019 2003-06-06  Jim Meyering  <jim@meyering.net>
59020
59021         Merge from coreutils.
59022         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59023         Consolidate declarations and initializations of *_base* locals.
59024
59025         Merge from coreutils.
59026         This avoids a core dump on systems without GNU putenv,
59027         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59028         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59029         (unsetenv): New static function, from GNU libc.
59030         (rpl_putenv): Use it.
59031
59032         * lib/modechange.c: Remove trailing blanks.
59033
59034         Merge from coreutils.
59035         * lib/fsusage.c: Remove declaration of statfs.
59036         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59037
59038         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59039
59040 2003-06-06  Jim Meyering  <jim@meyering.net>
59041
59042         * lib/stdbool_.h: Renamed from stdbool.h.in.
59043
59044 2003-06-06  Jim Meyering  <jim@meyering.net>
59045             Bruno Haible  <bruno@clisp.org>
59046
59047         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59048         Adjust Makefile.am snippet not to redirect directly to target.
59049         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59050
59051 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59052
59053         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59054         mismatch, look in future quarters as well as past.  This fixes a
59055         bug when processing fall-backwards gaps immediately after a long
59056         period of daylight-saving time.
59057
59058         * lib/mktime.c: Assume freestanding C89 or better.
59059         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59060         (__P): Remove; not used.
59061         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59062         (mktime, not_equal_tm, print_tm, check_result,
59063         main): Use prototypes.  Use const * where appropriate.
59064         (main): Fix typo in testing code that uncovered by above changes.
59065         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59066
59067 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59068
59069         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59070         locale.h, localeconv.  This merges changes from coreutils.
59071
59072         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59073         It can be removed after the next Autoconf is released.
59074         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59075         needed.
59076
59077 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59078
59079         * lib/mktime.c: Fix Debian bug 177940
59080         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59081         (localtime_offset): Now long int, not time_t, because we want it
59082         to be guaranteed to be signed.  All uses changed.
59083         (__mktime_internal): If overflow would occur when adding offset,
59084         don't add it.
59085
59086         Merge 'human' changes from coreutils.  Rewrite to support
59087         locale-specific notations like thousands separators.
59088         * lib/human.c: Simplify authorship notice.
59089         Include human.h immediately after config.h.
59090         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59091         <limits.h>: Do not include, since human.h does.
59092         (SIZE_MAX, UINTMAX_MAX): New macros.
59093         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59094         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59095         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59096         (power_letter): Renamed from suffixes.
59097         (generate_suffix_backwards): Remove.
59098         (adjust_value): Now takes int style (because of human.h changes)
59099         and long double value (for greater precision on some platforms).
59100         (group_number): New function.
59101         (human_readable): Use it.  Use integer options, not enum.
59102         Put the options before the sizes in the arg list.
59103         Support all the new options.
59104         The old human_readable function has been removed;
59105         use inttostr.h instead.
59106         (human_readable, default_block_size, humblock):
59107         Use uintmax_t, not int, for block sizes.
59108         (human_readable_inexact, block_size_types): Remove.
59109         (block_size_opts): New constant.
59110         (human_options): Renamed from human_block_size, with new signature
59111         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59112         * lib/human.h: Add copyright and authorship notice.
59113         Include <limits.h> and <stdbool.h> unconditionally.
59114         (PARAMS): Remove.  All uses removed.
59115         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59116         (enum human_inexact_style): Remove tag; now a nameless enum.
59117         (human_floor, human_ceiling, human_round_to_even): Now have
59118         values 2, 0, 1 rather than -1, 1, 0.
59119         (human_group_digits, human_suppress_point_zero, human_autoscale,
59120         human_base_1024, human_SI, human_B): New constants.
59121         (human_readable_inexact, human_block_size): Remove.
59122         (human_readable): Size args are now uintmax_t, not int.
59123         (human_options): New decl.
59124
59125         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59126         unnecessary now that we assume C89 or better.  This change
59127         imported from coreutils.
59128
59129         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59130         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59131         in the 2003-05-30 sync from glibc.
59132
59133         .h files should stand alone, but we shouldn't include <sys/types.h>
59134         if we can get away with just <stddef.h>.
59135
59136         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59137         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59138         rather than <sys/types.h>, as we merely need size_t.
59139         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59140         to get size_t.
59141         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59142         Include <stdio.h>, to get FILE.
59143         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59144         memcasecmp.h has included <stddef.h> and all we need is size_t.
59145         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59146         our interface, instead of including <sys/types.h>
59147
59148 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59149
59150         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59151         now, as glibc mktime is buggy on non-glibc systems.
59152
59153 2003-06-03  Karl Berry  <karl@gnu.org>
59154
59155         * config/config.sub: update from prep.
59156
59157 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59158
59159         [from coreutils]
59160         Fix some minor time-related bugs with POSIX time arguments.
59161         Some valid time stamps were being rejected (notably -1, and
59162         time stamps before 1900 on 64-bit hosts).  And some invalid
59163         time stamps were being accepted, e.g. September 31.
59164
59165         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59166         that we can return (time_t) -1 successfully.
59167         * lib/posixtm.c: Likewise.
59168         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59169         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59170         (t): Remove static var.
59171         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59172         of static var.  All uses changed.
59173         (year): Do not reject years before 1900; they can occur with
59174         64-bit time_t.
59175         (posix_time_parse): Do not check for out-of-range components;
59176         that is now the caller's responsibility, since our checks were
59177         only approximations.
59178         (posixtime): Use mktime to check for out-of-range components,
59179         since it knows them exactly.
59180         If mktime returns (time_t) -1, check whether an error actually occurred
59181         by invoking localtime on -1.
59182         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59183         posixtime failures better.
59184         Improve the test data (in comments only).
59185
59186 2003-06-02  Karl Berry  <karl@gnu.org>
59187
59188         * config/mkinstalldirs (version): new variable.
59189         (--version): new option.
59190         (usage): improve message.
59191
59192 2003-05-30  Karl Berry  <karl@gnu.org>
59193
59194         * lib/mktime.c: update from libc.
59195
59196 2003-05-30  Bruno Haible  <bruno@clisp.org>
59197
59198         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59199         * config/config.rpath: Upgrade to gettext-0.12.1.
59200
59201 2003-05-30  Bruno Haible  <bruno@clisp.org>
59202
59203         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59204         * m4/nls.m4: New file, from gettext-0.12.1.
59205         * m4/po.m4: New file, from gettext-0.12.1.
59206         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59207
59208 2003-05-30  Bruno Haible  <bruno@clisp.org>
59209
59210         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59211         * lib/localcharset.h: Likewise.
59212         * lib/localcharset.c: Likewise.
59213
59214 2003-05-29  Karl Berry  <karl@gnu.org>
59215
59216         * config/config.rpath: update from gettext.
59217
59218 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59219
59220         Assume the headers required for C89 freestanding compilers.
59221         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59222         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59223         * m4/human.m4 (gl_HUMAN): Likewise.
59224         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59225         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59226         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59227         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59228         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59229         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59230
59231 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59232
59233         Assume the headers required for C89 freestanding compilers.
59234         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59235         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59236         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59237         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59238         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59239         define, since <limits.h> is guaranteed to do that.
59240         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59241         * lib/exclude.c: Include <stdbool.h> unconditionally.
59242         * lib/tempname.c: Include <stddef.h> unconditionally.
59243         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59244         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59245         <stddef.h> does that.
59246         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59247         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59248         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59249         needed.
59250         * lib/xstrtol.c: Likewise.
59251         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59252         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59253
59254         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59255         warnings on some platforms.
59256
59257         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59258         arbitrarily.
59259
59260 2003-05-26  Jim Meyering  <jim@meyering.net>
59261
59262         Merge in a change from coreutils:
59263         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59264         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59265         that condition, rather than `-1' which is slightly misleading.
59266         Change the name of the cache variable to have the gl_ prefix.
59267         Prompted by a patch from Richard Dawe for DJGPP.
59268
59269 2003-05-24  Karl Berry  <karl@gnu.org>
59270
59271         * config/config.guess: update from prep.
59272
59273 2003-05-22  Karl Berry  <karl@gnu.org>
59274
59275         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59276
59277 2003-05-20  Karl Berry  <karl@gnu.org>
59278
59279         * config/config.guess: update from prep.
59280
59281 2003-05-18  Karl Berry  <karl@gnu.org>
59282
59283         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59284         might actually be set by the user.
59285
59286         * config/depcomp, install-sh, mdate-sh: update from automake.
59287
59288 2003-05-17  Bruno Haible  <bruno@clisp.org>
59289
59290         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59291         invalid expansion for AC_EGREP_CPP.
59292         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59293         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59294         Suggested by Akim Demaille <akim@epita.fr> in
59295         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59296
59297 2003-05-12  Jim Meyering  <jim@meyering.net>
59298
59299         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59300         the space-padded-by-default conversion specifiers, %e, %k, %l.
59301
59302 2003-05-12  Bruno Haible  <bruno@clisp.org>
59303
59304         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59305         the string is longer than 4 KB.
59306
59307 2003-05-11  Karl Berry  <karl@gnu.org>
59308
59309         * config/config.{guess,sub}: update from prep.
59310
59311 2003-05-09  Bruno Haible  <bruno@clisp.org>
59312
59313         * modules/error: Add m4/strerror_r.m4 to file list.
59314
59315 2003-05-03  Bruno Haible  <bruno@clisp.org>
59316
59317         Upgrade to Unicode-4.0.
59318         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59319         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59320         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59321         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59322         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59323         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59324         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59325         Change width of U+E0100..U+E01EF from 1 to 0.
59326
59327 2003-04-25  Jim Meyering  <jim@meyering.net>
59328
59329         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59330         of type size_t, not int.
59331
59332 2003-04-25  Bruno Haible  <bruno@clisp.org>
59333
59334         * lib/copy-file.c: Include <stddef.h>, for size_t.
59335
59336 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59337
59338         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59339         code which expansion is under static control.  Patch imported from
59340         Akim Demaille's patch to Bison; see
59341         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59342
59343 2003-04-14  Bruno Haible  <bruno@clisp.org>
59344
59345         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59346
59347 2003-04-11  Jim Meyering  <jim@meyering.net>
59348
59349         Merge changes from Coreutils.
59350
59351         2003-03-22  Jim Meyering  <jim@meyering.net>
59352
59353         * lib/strftime.c (widen): Cast alloca return value to proper type.
59354
59355         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59356
59357         From GNU libc.
59358         * lib/strftime.c (my_strftime): Handle very large width
59359         specifications for numeric values correctly.  Improve checks for
59360         overflow.
59361
59362         2003-01-19  Jim Meyering  <jim@meyering.net>
59363
59364         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59365         definitions.
59366         (nl_get_alt_digit) [! defined my_strftime]: Define.
59367         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59368         _nl_get_alt_digit and _nl_get_walt_digit.
59369
59370         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59371         libc. These changes have no effect outside of _LIBC.
59372
59373 2003-04-10  Bruno Haible  <bruno@clisp.org>
59374
59375         * modules/findprog: New file.
59376         * MODULES.html.sh (func_all_modules): Add it.
59377
59378 2003-04-10  Bruno Haible  <bruno@clisp.org>
59379
59380         * m4/findprog.m4: New file.
59381         * m4/eaccess.m4: New file.
59382
59383 2003-04-10  Bruno Haible  <bruno@clisp.org>
59384
59385         * lib/findprog.h: New file, from GNU gettext.
59386         * lib/findprog.c: New file, from GNU gettext.
59387
59388 2003-04-05  Jim Meyering  <jim@meyering.net>
59389
59390         Merge changes from Coreutils.
59391
59392         * lib/exclude.h (PARAMS): Remove definition and uses.
59393         * lib/exclude.c: Remove uses of `PARAMS'.
59394
59395         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59396         Add test-cases for DOS filenames. Declare program_name.
59397         (main): Set up program_name.  Patch by Rich Dawe.
59398
59399         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59400         error from mntctl.
59401         Use mntctl's return value to drive the entry-processing loop, since
59402         we can't rely on the value of the vmt_length member in the last
59403         entry.  On some systems doing so could result in exhausting
59404         virtual memory.  Based in part on a patch from Mike Jetzer.
59405
59406 2003-04-04  Bruno Haible  <bruno@clisp.org>
59407
59408         * modules/linebreak: New file.
59409         * MODULES.html.sh (func_all_modules): Add it.
59410
59411 2003-04-04  Bruno Haible  <bruno@clisp.org>
59412
59413         * m4/linebreak.m4: New file.
59414
59415 2003-04-04  Bruno Haible  <bruno@clisp.org>
59416
59417         * lib/linebreak.h: New file, from GNU gettext.
59418         * lib/linebreak.c: New file, from GNU gettext with slight
59419         modifications.
59420         * lib/lbrkprop.h: New file, from GNU gettext.
59421
59422 2003-04-03  Bruno Haible  <bruno@clisp.org>
59423
59424         * modules/utf8-ucs4: New file.
59425         * modules/utf16-ucs4: New file.
59426         * modules/ucs4-utf8: New file.
59427         * modules/ucs4-utf16: New file.
59428         * MODULES.html.sh (func_all_modules): Add them.
59429
59430 2003-04-03  Bruno Haible  <bruno@clisp.org>
59431
59432         * m4/utf-ucs4.m4: New file.
59433         * m4/ucs4-utf.m4: New file.
59434
59435 2003-04-03  Bruno Haible  <bruno@clisp.org>
59436
59437         * lib/utf8-ucs4.h: New file, from GNU gettext.
59438         * lib/utf16-ucs4.h: New file, from GNU gettext.
59439         * lib/ucs4-utf8.h: New file, from GNU gettext.
59440         * lib/ucs4-utf16.h: New file, from GNU gettext.
59441
59442 2003-04-02  Bruno Haible  <bruno@clisp.org>
59443
59444         * modules/binary-io: New file.
59445         * MODULES.html.sh (func_all_modules): Add it.
59446
59447 2003-04-02  Bruno Haible  <bruno@clisp.org>
59448
59449         * lib/binary-io.h: New file, from GNU gettext.
59450
59451 2003-04-01  Bruno Haible  <bruno@clisp.org>
59452
59453         * modules/pathname: New file.
59454         * MODULES.html.sh (func_all_modules): Add it.
59455
59456 2003-04-01  Bruno Haible  <bruno@clisp.org>
59457
59458         * lib/pathname.h: New file, from GNU gettext.
59459         * lib/concatpath.c: New file, from GNU gettext.
59460
59461 2003-03-30  Bruno Haible  <bruno@clisp.org>
59462
59463         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59464
59465 2003-03-30  Bruno Haible  <bruno@clisp.org>
59466
59467         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59468         function chown() doesn't exist.
59469
59470 2003-03-28  Bruno Haible  <bruno@clisp.org>
59471
59472         * modules/copy-file: New file.
59473         * MODULES.html.sh (func_all_modules): Add it.
59474
59475 2003-03-28  Bruno Haible  <bruno@clisp.org>
59476
59477         * m4/copy-file.m4: New file.
59478
59479 2003-03-28  Bruno Haible  <bruno@clisp.org>
59480
59481         * lib/copy-file.h: New file, from GNU gettext.
59482         * lib/copy-file.c: New file, from GNU gettext.
59483
59484 2003-03-18  Jim Meyering  <jim@meyering.net>
59485
59486         * lib/quote.c (quote_n): Fix typo in comment.
59487
59488 2003-03-18  Bruno Haible  <bruno@clisp.org>
59489
59490         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59491         checking.
59492         * m4/onceonly_2_57.m4: Likewise.
59493
59494 2003-03-17  Bruno Haible  <bruno@clisp.org>
59495
59496         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59497         (m4_quote): Remove macro.
59498         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59499
59500 2003-03-14  Jim Meyering  <jim@meyering.net>
59501
59502         Merge changes from Coreutils.
59503         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59504         to be const, in order to avoid warnings.
59505         (obstack_room): Likewise.
59506         (obstack_empty_p): Likewise.
59507
59508 2003-03-14  Bruno Haible  <bruno@clisp.org>
59509
59510         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59511         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59512
59513 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59514
59515         Merge changes from Bison.
59516         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59517         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59518         when compiling Bison 1.875's `bitset bset = obstack_alloc
59519         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59520         * lib/hash.c: Include <stdbool.h> unconditionally.
59521
59522 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59523
59524         * m4/onceonly.m4 (m4_quote): New macro.
59525         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59526         Quote AC_FOREACH variable-expansions properly.
59527
59528 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59529
59530         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59531
59532 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59533
59534         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59535         Reported by Bruce Becker; see:
59536         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59537
59538 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59539             Bruno Haible  <bruno@clisp.org>
59540
59541         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59542         Reported by John Hughes, see
59543         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59544
59545 2003-02-20  Bruno Haible  <bruno@clisp.org>
59546
59547         * MODULES.html.sh (func_all_modules): Add poll.
59548
59549 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59550
59551         * modules/poll: New file.
59552
59553 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59554
59555         * lib/poll_.h: New file.
59556         * lib/poll.c: New file.
59557
59558 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59559
59560         * m4/poll.m4: New file.
59561
59562 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59563
59564         * modules/mathl: New file.
59565
59566 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59567
59568         * lib/mathl.h: New file.
59569         * lib/acosl.c: New file.
59570         * lib/asinl.c: New file.
59571         * lib/atanl.c: New file.
59572         * lib/ceill.c: New file.
59573         * lib/cosl.c: New file.
59574         * lib/expl.c: New file.
59575         * lib/floorl.c: New file.
59576         * lib/frexpl.c: New file.
59577         * lib/ldexpl.c: New file.
59578         * lib/logl.c: New file.
59579         * lib/sincosl.c: New file.
59580         * lib/sinl.c: New file.
59581         * lib/sqrtl.c: New file.
59582         * lib/tanl.c: New file.
59583         * lib/trigl.c: New file.
59584         * lib/trigl.h: New file.
59585
59586 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59587
59588         * m4/mathl.m4: New file.
59589
59590 2003-02-18  Bruno Haible  <bruno@clisp.org>
59591
59592         * MODULES.html.sh (func_all_modules): Add mathl.
59593
59594 2003-02-17  Bruno Haible  <bruno@clisp.org>
59595
59596         * modules/mkdtemp: New module.
59597         * MODULES.html.sh (func_all_modules): Add it.
59598
59599 2003-02-17  Bruno Haible  <bruno@clisp.org>
59600
59601         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59602
59603 2003-02-17  Bruno Haible  <bruno@clisp.org>
59604
59605         * lib/mkdtemp.h: New file, from GNU gettext.
59606         * lib/mkdtemp.c: New file, from GNU gettext.
59607
59608 2003-02-02  Jim Meyering  <jim@meyering.net>
59609
59610         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59611         e.g. glibc-2.2.93.
59612
59613 2003-01-31  Bruno Haible  <bruno@clisp.org>
59614
59615         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59616         'rpl_rename'.
59617         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59618         'rpl_strnlen'.
59619         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59620         'rpl_strtod'.
59621         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59622         'rpl_utime'.
59623
59624 2003-01-31  Bruno Haible  <bruno@clisp.org>
59625
59626         * lib/rename.c: #undef rename before defining rpl_rename.
59627         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59628
59629 2003-01-30  Bruno Haible  <bruno@clisp.org>
59630
59631         * modules/vasnprintf, modules/vasprintf: New modules.
59632         * MODULES.html.sh (func_all_modules): Add them.
59633
59634 2003-01-30  Bruno Haible  <bruno@clisp.org>
59635
59636         * m4/signed.m4: New file, from GNU gettext.
59637         * m4/longdouble.m4: New file, from GNU gettext.
59638         * m4/wchar_t.m4: New file, from GNU gettext.
59639         * m4/wint_t.m4: New file, from GNU gettext.
59640         * m4/vasnprintf.m4: New file.
59641         * m4/vasprintf.m4: New file.
59642
59643 2003-01-30  Bruno Haible  <bruno@clisp.org>
59644
59645         * lib/printf-args.h: New file, from GNU gettext.
59646         * lib/printf-args.c: New file, from GNU gettext.
59647         * lib/printf-parse.h: New file, from GNU gettext.
59648         * lib/printf-parse.c: New file, from GNU gettext.
59649         * lib/vasnprintf.h: New file, from GNU gettext.
59650         * lib/vasnprintf.c: New file, from GNU gettext.
59651         * lib/asnprintf.c: New file, from GNU gettext.
59652         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59653         * lib/vasprintf.c: New file, from GNU gettext.
59654         * lib/asprintf.c: New file, from GNU gettext.
59655
59656 2003-01-29  Bruno Haible  <bruno@clisp.org>
59657
59658         * modules/stpncpy: New module.
59659         * MODULES.html.sh (func_all_modules): Add it.
59660
59661 2003-01-29  Bruno Haible  <bruno@clisp.org>
59662
59663         * m4/stpncpy.m4: New file.
59664
59665 2003-01-29  Bruno Haible  <bruno@clisp.org>
59666
59667         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59668         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59669
59670 2003-01-28  Bruno Haible  <bruno@clisp.org>
59671
59672         * modules/c-ctype: New module.
59673         * MODULES.html.sh (func_all_modules): Add it.
59674
59675 2003-01-28  Bruno Haible  <bruno@clisp.org>
59676
59677         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59678         Paul Eggert.
59679         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59680         Paul Eggert.
59681
59682 2003-01-27  Bruno Haible  <bruno@clisp.org>
59683
59684         * modules/xsetenv: New module.
59685         * MODULES.html.sh (func_all_modules): Add it.
59686
59687 2003-01-27  Bruno Haible  <bruno@clisp.org>
59688
59689         * lib/xsetenv.h: New file, from GNU gettext.
59690         * lib/xsetenv.c: New file, from GNU gettext.
59691
59692 2003-01-23  Jim Meyering  <jim@meyering.net>
59693
59694         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59695         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59696
59697 2003-01-23  Bruno Haible  <bruno@clisp.org>
59698
59699         * modules/minmax: New module.
59700         * MODULES.html.sh (func_all_modules): Add it.
59701
59702 2003-01-23  Bruno Haible  <bruno@clisp.org>
59703
59704         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59705         Eggert.
59706
59707 2003-01-22  Bruno Haible  <bruno@clisp.org>
59708
59709         * modules/exit: New module.
59710         * MODULES.html.sh (func_all_modules): Add it.
59711
59712 2003-01-22  Bruno Haible  <bruno@clisp.org>
59713
59714         * lib/exit.h: New file, from GNU gettext.
59715
59716 2003-01-19  Bruno Haible  <bruno@clisp.org>
59717
59718         * gnulib-tool: Recognize option --extract-maintainer.
59719         (func_get_maintainer): New function.
59720         * modules/*: Add Maintainer entry.
59721
59722 2003-01-16  Jim Meyering  <jim@meyering.net>
59723
59724         * m4/regex.m4: The `regex' struct is both input and output.
59725         Initialize it before each use.  Patch by Tim Waugh.
59726
59727 2003-01-16  Bruno Haible  <bruno@clisp.org>
59728
59729         * MODULES.html.sh: Add a table of contents. Add the module name as
59730         leftmost column. Add hyperlinks.
59731
59732 2003-01-15  Bruno Haible  <bruno@clisp.org>
59733
59734         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59735
59736 2003-01-15  Bruno Haible  <bruno@clisp.org>
59737
59738         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59739         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59740         suffix.
59741
59742 2003-01-15  Bruno Haible  <bruno@clisp.org>
59743
59744         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59745
59746 2003-01-15  Bruno Haible  <bruno@clisp.org>
59747
59748         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59749         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59750
59751 2003-01-14  Jim Meyering  <jim@meyering.net>
59752
59753         * lib/same.c (same_name): Tweak a comment.
59754
59755 2003-01-14  Bruno Haible  <bruno@clisp.org>
59756
59757         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59758         when a string comparison is sufficient.
59759
59760 2003-01-14  Bruno Haible  <bruno@clisp.org>
59761
59762         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59763         'unsigned int'.
59764
59765 2003-01-14  Bruno Haible  <bruno@clisp.org>
59766
59767         * lib/hash-pjw.c: Add comment about low quality of this function.
59768
59769 2003-01-13  Bruno Haible  <bruno@clisp.org>
59770
59771         * modules/stpcpy: Distribute lib/stpcpy.h.
59772         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59773
59774 2003-01-13  Bruno Haible  <bruno@clisp.org>
59775
59776         * modules/*: Add a description.
59777         * modules/strpbrk: Fix Makefile.am snippet.
59778         * modules/strtoimax: Fix dependencies.
59779         * modules/strtoumax: Likewise.
59780
59781 2003-01-13  Bruno Haible  <bruno@clisp.org>
59782
59783         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59784         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59785         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59786
59787 2003-01-13  Bruno Haible  <bruno@clisp.org>
59788
59789         * gnulib-tool (func_create_testdir): Store config/* files in the main
59790         directory.
59791         * config.rpath: Move to ...
59792         * config/config.rpath: ... here.
59793         * modules/gettext: Contains config/config.rpath, not config.rpath.
59794         * modules/iconv: Likewise.
59795
59796 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59797
59798         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59799         to avoid collisions with libcurses and libreadline.
59800
59801         * m4/getstr.m4: Remove.
59802         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59803
59804 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59805
59806         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59807         to avoid collisions with libcurses and libreadline.
59808
59809         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59810         * lib/getstr.h, getstr.c: Remove.
59811         * lib/getline.c: Include "getline.h", to check interface.
59812         Move body of old getstr.c here: this defines MIN_CHUNK and
59813         declares getdelim2, which is renamed from getstr.
59814         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59815
59816         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59817         All uses changed.
59818         * lib/linebuffer.h: Likewise.
59819         (readline): Remove backward-compatibility macro.
59820
59821 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59822
59823         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59824         to avoid collisions with libcurses and libreadline.
59825         * getstr: Remove.
59826         * MODULES.html.sh: Remove getstr.
59827         * modules/getline: Depend on unlocked-io, not getstr.
59828
59829 2003-01-12  Jim Meyering  <jim@meyering.net>
59830
59831         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59832
59833 2003-01-10  Bruno Haible  <bruno@clisp.org>
59834
59835         * modules/alloca: Change Makefile.am requirements. Simplify Include
59836         requirements. Add lib/alloca_.h to file list.
59837
59838 2003-01-10  Bruno Haible  <bruno@clisp.org>
59839
59840         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59841
59842 2003-01-10  Bruno Haible  <bruno@clisp.org>
59843
59844         * lib/alloca_.h: New file.
59845         * lib/getdate.y: Unconditionally include alloca.h.
59846         * lib/makepath.c: Likewise.
59847         * lib/setenv.c: Likewise.
59848         * lib/userspec.c: Likewise.
59849
59850 2003-01-09  Karl Berry  <karl@gnu.org>
59851
59852         * MODULES.html.sh: include `dirname $0` in PATH, to find
59853         gnulib-tool.
59854
59855 2003-01-09  Bruno Haible  <bruno@clisp.org>
59856
59857         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59858         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59859
59860 2003-01-09  Bruno Haible  <bruno@clisp.org>
59861
59862         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59863
59864 2003-01-09  Bruno Haible  <bruno@clisp.org>
59865
59866         * lib/stdbool.h.in: New file.
59867
59868 2003-01-09  Bruno Haible  <bruno@clisp.org>
59869
59870         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59871         * MODULES.html.sh: Likewise.
59872
59873 2003-01-08  Jim Meyering  <jim@meyering.net>
59874
59875         * lib/full-write.c: Undefine and define-away `const' after inclusion
59876         of errno.h, not before.  Suggestion from Bruno Haible.
59877
59878 2003-01-08  Bruno Haible  <bruno@clisp.org>
59879
59880         * modules/full-read: Depend on full-write.
59881
59882 2003-01-08  Bruno Haible  <bruno@clisp.org>
59883
59884         * lib/safe-read.c: Include specification header first, to ensure its
59885         selfcontainedness.
59886         * lib/full-write.c: Likewise.
59887
59888 2003-01-07  Jim Meyering  <jim@meyering.net>
59889
59890         * lib/full-write.c: Rework so that it may serve to define full_read,
59891         too.
59892         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59893
59894 2003-01-07  Bruno Haible  <bruno@clisp.org>
59895
59896         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59897         <inttypes.h>.
59898         * lib/xstrtol.h: Likewise.
59899         * lib/xstrtoimax.c: Likewise.
59900         * lib/xstrtoumax.c: Likewise.
59901         * lib/human.h: Likewise.
59902
59903         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59904         on systems that have <inttypes.h> but not <stdint.h>.
59905
59906 2003-01-07  Bruno Haible  <bruno@clisp.org>
59907
59908         * MODULES.html.sh: Add copyright notice.
59909         (missed_files): Omit CVS directory entries.
59910         (func_module): Make it work with sed-3.02.
59911         * MODULES.txt: Remove file.
59912
59913 2003-01-06  Jim Meyering  <jim@meyering.net>
59914
59915         * lib/version-etc.c: Update year in translatable copyright string.
59916
59917 2003-01-03  Karl Berry  <karl@gnu.org>
59918
59919         * config/config.{guess,sub}: update from prep.
59920
59921 2003-01-02  Karl Berry  <karl@gnu.org>
59922
59923         * doc/COPYING.DOC: belatedly updated to 1.2.
59924
59925 2003-01-01  Karl Berry  <karl@gnu.org>
59926
59927         * gnulib-tool (func_verify_module): report module name $module in
59928         error message, not $1.
59929         * gnulib-tool (create-testdir): don't complain if destdir couldn't
59930         be created, only if it doesn't exist.
59931         * gnulib-tool (last_checkin_date): don't expand the $Date here.
59932
59933 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59934
59935         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59936
59937 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59938
59939         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59940         memcmp if strcoll doesn't work.
59941
59942 2002-12-31  Bruno Haible  <bruno@clisp.org>
59943
59944         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59945         nonempty.
59946
59947 2002-12-31  Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/memcoll.c (STRCOLL): New macro.
59950         (memcoll): Use it.
59951
59952 2002-12-31  Bruno Haible  <bruno@clisp.org>
59953
59954         * lib/localcharset.h: New file.
59955         * lib/localcharset.c: Include it.
59956         * lib/unicodeio.c: Likewise.
59957
59958 2002-12-31  Bruno Haible  <bruno@clisp.org>
59959
59960         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59961         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59962
59963 2002-12-31  Bruno Haible  <bruno@clisp.org>
59964
59965         * lib/getline.h: Include <stddef.h>, for size_t.
59966
59967         * lib/unicodeio.h: Include <stddef.h>, for size_t.
59968         * lib/unicodeio.c: Don't include <stddef.h>.
59969
59970 2002-12-31  Bruno Haible  <bruno@clisp.org>
59971
59972         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59973         HAVE_TM_ZONE.
59974
59975 2002-12-24  Karl Berry  <karl@gnu.org>
59976
59977         * config/config.guess: update from prep.
59978
59979 2002-12-24  Bruno Haible  <bruno@clisp.org>
59980
59981         General infrasructure.
59982         * m4/README: Rewritten.
59983         * m4/onceonly.m4: New file.
59984         * m4/onceonly_2_57.m4: New file.
59985
59986         Module atexit.
59987         * m4/atexit.m4: New file.
59988
59989         Module strtod.
59990         * m4/strtod.m4: New file.
59991
59992         Module strtol.
59993         * m4/strtol.m4: New file.
59994
59995         Module strtoul.
59996         * m4/strtoul.m4: New file.
59997
59998         Module memchr.
59999         * m4/memchr.m4: New file.
60000
60001         Module memcmp.
60002         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
60003         (jm_FUNC_MEMCMP): Invoke it.
60004
60005         Module memcpy.
60006         * m4/memcpy.m4: New file.
60007
60008         Module memmove.
60009         * m4/memmove.m4: New file.
60010
60011         Module memset.
60012         * m4/memset.m4: New file.
60013
60014         Module strcspn.
60015         * m4/strcspn.m4: New file.
60016
60017         Module strpbrk.
60018         * m4/strpbrk.m4: New file.
60019
60020         Module strstr.
60021         * m4/strstr.m4: New file.
60022
60023         Module strerror.
60024         * m4/strerror.m4: New file.
60025
60026         Module mktime.
60027         * m4/mktime.m4: Renamed from jm-mktime.m4.
60028         (gl_PREREQ_MKTIME): New macro.
60029         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60030
60031         Module malloc.
60032         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60033         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60034         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60035
60036         Module realloc.
60037         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60038         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60039         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60040
60041         Module strftime.
60042         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60043         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60044         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60045         gl_TM_GMTOFF.
60046         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60047
60048         Module xalloc.
60049         * m4/xalloc.m4: New file.
60050
60051         Module alloca.
60052         * m4/alloca.m4: New file.
60053
60054         Module putenv.
60055         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60056         (jm_FUNC_PUTENV): Invoke it.
60057
60058         Module setenv.
60059         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60060         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60061         when invoked twice.
60062         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60063         gt_FUNC_SETENV.
60064
60065         Module memrchr.
60066         * m4/memrchr.m4: New file.
60067
60068         Module stpcpy.
60069         * m4/stpcpy.m4: New file.
60070
60071         Module strcase.
60072         * m4/strcase.m4: New file.
60073
60074         Module strdup.
60075         * m4/strdup.m4: New file.
60076
60077         Module strnlen.
60078         * m4/strnlen.m4: New file.
60079
60080         Module strndup.
60081         * m4/strndup.m4: New file.
60082
60083         Module xstrtod.
60084         * m4/xstrtod.m4: New file.
60085
60086         Module xstrtol.
60087         * m4/xstrtol.m4: New file.
60088
60089         Module getdate.
60090         * m4/getdate.m4: New file.
60091
60092         Module unlocked-io.
60093         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60094         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60095         * m4/jm-glibc-io.m4n: Remove file.
60096
60097         Module long-options.
60098         * m4/long-options.m4: New file.
60099
60100         Module md5.
60101         * m4/md5.m4: New file.
60102
60103         Module sha.
60104         * m4/sha.m4: New file.
60105
60106         Module getstr.
60107         * m4/getstr.m4: New file.
60108
60109         Module getline.
60110         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60111         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60112         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60113         simply getline. Infoke gl_PREREQ_GETLINE.
60114
60115         Module obstack.
60116         * m4/obstack.m4: New file.
60117
60118         Module hash.
60119         * m4/hash.m4: New file.
60120
60121         Module readtokens.
60122         * m4/readtokens.m4: New file.
60123
60124         Module strverscmp.
60125         * m4/strverscmp.m4: New file.
60126
60127         Module stdbool.
60128         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60129         OSF/1.
60130
60131         Module strtoll.
60132         * m4/strtoll.m4: New file.
60133
60134         Module strtoull.
60135         * m4/strtoull.m4: New file.
60136
60137         Module strtoimax.
60138         * m4/strtoimax.m4: New file.
60139
60140         Module strtoumax.
60141         * m4/strtoumax.m4: New file.
60142
60143         Module xstrtoimax.
60144         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60145         jm_AC_PREREQ_XSTRTOIMAX.
60146         Moved the strtol prerequisites to strtol.m4.
60147         Moved the strtoll prerequisites to strtoll.m4.
60148         Moved the strtoimax prerequisites to strtoimax.m4.
60149
60150         Module xstrtoumax.
60151         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60152         jm_AC_PREREQ_XSTRTOUMAX.
60153         Moved the strtoul prerequisites to strtoul.m4.
60154         Moved the strtoull prerequisites to strtoull.m4.
60155         Moved the strtoumax prerequisites to strtoumax.m4.
60156
60157         Module chown.
60158         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60159         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60160
60161         Module dup2.
60162         * m4/dup2.m4: New file.
60163
60164         Module ftruncate.
60165         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60166         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60167
60168         Module getgroups.
60169         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60170         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60171
60172         Module gettimeofday.
60173         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60174         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60175         gl_PREREQ_GETTIMEOFDAY.
60176
60177         Module mkdir.
60178         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60179         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60180
60181         Module mkstemp.
60182         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60183         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60184         jm_AC_TYPE_UINTMAX_T.
60185         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60186
60187         Module stat.
60188         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60189         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60190
60191         Module lstat.
60192         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60193         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60194
60195         Module timespec.
60196         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60197         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60198         * m4/st_mtim.m4: Indentation.
60199
60200         Module nanosleep.
60201         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60202         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60203         gl_PREREQ_NANOSLEEP.
60204
60205         Module regex.
60206         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60207         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60208         (gl_REGEX): New macro.
60209
60210         Module rename.
60211         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60212         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60213
60214         Module rmdir.
60215         * m4/rmdir.m4: New file.
60216
60217         Module utime.
60218         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60219         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60220         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60221
60222         Module dirname.
60223         * m4/dirname.m4: New file.
60224
60225         Module getopt.
60226         * m4/getopt.m4: New file.
60227
60228         Module unistd-safer.
60229         * m4/unistd-safer.m4: New file.
60230
60231         Module fnmatch.
60232         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60233         declaration.
60234         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60235         (gl_FUNC_FNMATCH_POSIX): New macro.
60236         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60237         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60238         simply fnmatch.
60239
60240         Module exclude.
60241         * m4/exclude.m4: New file.
60242
60243         Module human.
60244         * m4/human.m4: New file.
60245
60246         Module acl.
60247         * m4/acl.m4: Nop.
60248
60249         Module backupfile.
60250         * m4/backupfile.m4: New file.
60251         * m4/d-ino.m4: Indentation.
60252
60253         Module fsusage.
60254         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60255         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60256         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60257
60258         Module dirfd.
60259         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60260         requirements.
60261
60262         Module euidaccess.
60263         * m4/euidaccess.m4: New file.
60264
60265         Module file-type.
60266         * m4/file-type.m4: New file.
60267
60268         Module fileblocks.
60269         * m4/fileblocks.m4: New file.
60270
60271         Module filemode.
60272         * m4/filemode.m4: New file.
60273
60274         Module isdir.
60275         * m4/isdir.m4: New file.
60276
60277         Module lchown.
60278         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60279         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60280
60281         Module makepath.
60282         * m4/makepath.m4: New file.
60283
60284         Module modechange.
60285         * m4/modechange.m4: New file.
60286
60287         Module mountlist.
60288         * m4/mountlist.m4: New file.
60289         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60290         Indentation.
60291
60292         Module path-concat.
60293         * m4/path-concat.m4: New file.
60294
60295         Module pathmax.
60296         * m4/pathmax.m4: New file.
60297
60298         Module same.
60299         * m4/same.m4: New file.
60300
60301         Module save-cwd.
60302         * m4/save-cwd.m4: New file.
60303
60304         Module savedir.
60305         * m4/savedir.m4: New file.
60306
60307         Module xgetcwd.
60308         * m4/xgetcwd.m4: New file.
60309         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60310
60311         Module xreadlink.
60312         * m4/xreadlink.m4: New file.
60313
60314         Module safe-read.
60315         * m4/safe-read.m4: New file.
60316
60317         Module safe-write.
60318         * m4/safe-write.m4: New file.
60319
60320         Module closeout.
60321         * m4/closeout.m4: New file.
60322
60323         Module stdio-safer.
60324         * m4/stdio-safer.m4: New file.
60325
60326         Module getpass.
60327         * m4/getpass.m4: New file.
60328
60329         Module getugroups.
60330         * m4/getugroups.m4: New file.
60331
60332         Module group-member.
60333         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60334         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60335
60336         Module idcache.
60337         * m4/idcache.m4: New file.
60338
60339         Module userspec.
60340         * m4/userspec.m4: New file.
60341
60342         Module gettime.
60343         * m4/clock_time.m4: New file.
60344         * m4/gettime.m4: New file.
60345
60346         Module settime.
60347         * m4/settime.m4: New file.
60348
60349         Module posixtm.
60350         * m4/posixtm.m4: New file.
60351
60352         Module gethostname.
60353         * m4/gethostname.m4: New file.
60354
60355         Module canon-host.
60356         * m4/canon-host.m4: New file.
60357
60358         Module gettext.
60359         * m4/codeset.m4: New file, from gettext-0.11.5.
60360         * m4/gettext.m4: New file, from gettext-0.11.5.
60361         * m4/glibc21.m4: New file, from gettext-0.11.5.
60362         * m4/iconv.m4: New file, from gettext-0.11.5.
60363         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60364         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60365         * m4/inttypes.m4: New file, from gettext-0.11.5.
60366         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60367         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60368         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60369         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60370         * m4/lib-link.m4: New file, from gettext-0.11.5.
60371         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60372         * m4/progtest.m4: New file, from gettext-0.11.5.
60373         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60374         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60375         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60376
60377         Module localcharset.
60378         * m4/localcharset.m4: New file.
60379
60380         Module hard-locale.
60381         * m4/hard-locale.m4: New file.
60382
60383         Module mbswidth.
60384         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60385         onceonly macros.
60386         * m4/mbrtowc.m4: Add comment.
60387
60388         Module memcasecmp.
60389         * m4/memcasecmp.m4: New file.
60390
60391         Module memcoll.
60392         * m4/memcoll.m4: New file.
60393
60394         Module unicodeio.
60395         * m4/unicodeio.m4: New file.
60396
60397         Module rpmatch.
60398         * m4/rpmatch.m4: New file.
60399
60400         Module yesno.
60401         * m4/yesno.m4: New file.
60402
60403         Module exitfail.
60404         * m4/exitfail.m4: New file.
60405
60406         Module c-stack.
60407         * m4/c-stack.m4 (gl_C_STACK): New macro.
60408         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60409
60410         Module error.
60411         * m4/error.m4 (gl_ERROR): New macro.
60412         (jm_PREREQ_ERROR): Use onceonly macros.
60413
60414         Module fatal.
60415         * m4/fatal.m4: New file.
60416
60417         Module getloadavg.
60418         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60419         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60420
60421         Module getpagesize.
60422         * m4/getpagesize.m4: New file.
60423
60424         Module getusershell.
60425         * m4/getusershell.m4: New file.
60426
60427         Module physmem.
60428         * m4/physmem.m4: New file.
60429
60430         Module posixver.
60431         * m4/posixver.m4: New file.
60432
60433         Module quotearg.
60434         * m4/quotearg.m4: New file.
60435
60436         Module quote.
60437         * m4/quote.m4: New file.
60438
60439         Module readutmp.
60440         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60441
60442         Module sig2str.
60443         * m4/sig2str.m4: New file.
60444
60445         Other.
60446         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60447         ulonglong.m4.
60448         * m4/intmax_t.m4: New file.
60449         * m4/d-type.m4: Indentation.
60450         * m4/jm-macros.m4: Update.
60451         * m4/prereq.m4 (jm_PREREQ): Update.
60452         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60453         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60454         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60455         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60456         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60457         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60458         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60459         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60460         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60461         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60462         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60463         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60464         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60465         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60466         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60467         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60468         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60469         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60470         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60471
60472 2002-12-24  Bruno Haible  <bruno@clisp.org>
60473
60474         * MODULES.txt: Update according to m4/ changes.
60475
60476         Module gettext.
60477         * config.rpath: New file, from gettext-0.11.5.
60478
60479         * modules/*: New module descriptions.
60480         * gnulib-tool: New file.
60481         * MODULES.html.sh: New file.
60482
60483 2002-12-21  Karl Berry  <karl@gnu.org>
60484
60485         * doc/fdl.texi: update to version 1.2.
60486
60487 2002-12-19  Karl Berry  <karl@gnu.org>
60488
60489         * config/config.guess: update from prep.
60490
60491 2002-12-18  Bruno Haible  <bruno@clisp.org>
60492
60493         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60494         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60495
60496 2002-12-17  Bruno Haible  <bruno@clisp.org>
60497
60498         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60499         stdlib.h, string.h.
60500
60501 2002-12-17  Bruno Haible  <bruno@clisp.org>
60502
60503         * lib/canon-host.c (strdup): Remove unused declaration.
60504
60505         * lib/fsusage.c: Include full_read.h.
60506         (get_fs_usage): Use full_read instead of safe_read.
60507
60508         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60509
60510 2002-12-12  Karl Berry  <karl@gnu.org>
60511
60512         * config/config.guess: update from prep.
60513
60514 2002-12-11  Bruno Haible  <bruno@clisp.org>
60515
60516         * m4/setenv.m4: New file, from gettext-0.11.5.
60517
60518 2002-12-11  Bruno Haible  <bruno@clisp.org>
60519
60520         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60521         not unsetenv().
60522         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60523         modifications:
60524
60525         2002-12-11  Bruno Haible  <bruno@clisp.org>
60526
60527                 * setenv.c (alloca): Fall back to malloc.
60528                 (freea): New macro.
60529                 (setenv): Use freea() to free memory allocated with alloca().
60530
60531         2002-11-13  Bruno Haible  <bruno@clisp.org>
60532
60533                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60534                 function declarations.
60535                 * unsetenv.c (unsetenv): Likewise.
60536
60537         2002-03-04  Bruno Haible  <bruno@clisp.org>
60538
60539                 Portability to AIX 4.3.3.
60540                 * unsetenv.c: New file, extracted from setenv.c.
60541                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60542
60543         2001-12-20  Bruno Haible  <bruno@clisp.org>
60544
60545                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60546                 use malloc instead. For SunOS 4.
60547
60548         2001-12-11  Bruno Haible  <bruno@clisp.org>
60549
60550                 * setenv.c: Declare alloca.
60551                 (compar_fn_t): New typedef.
60552                 (KNOWN_VALUE, STORE_VALUE): Use it.
60553
60554         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60555         setenv.h.
60556
60557 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60558
60559         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60560         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60561         Choose values that are less likely to collide with system fnmatch
60562         options.
60563         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60564         defined (e.g., a pure POSIX system).
60565         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60566         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60567
60568 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60569
60570         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60571         a pain in practice to deal with generated m4 files.  This change
60572         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60573
60574         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60575         and jm-glibc-io.m4, as they are no longer a special case.
60576         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60577         kludge and the auto-generation stuff.  Check only whether the
60578         functions are declared, not whether they exist, since older hosts
60579         that don't declare the functions can't use the optimization anyway.
60580
60581 2002-12-06  Jim Meyering  <jim@meyering.net>
60582
60583         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60584
60585         Merge in changes from libc's misc/error.c, in preparation
60586         for the merge of gnulib's changes back into libc.
60587
60588         * lib/error.c (_): Define only if not already defined.
60589         Move definition to follow all #include directives.
60590         Include unlocked-io.h only if !_LIBC.
60591         [_LIBC]: Include <libio/libioP.h>.
60592         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60593         (fflush): Tweak definition to use INTUSE.
60594         (putc): Define.
60595
60596 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60597
60598         * lib/alloca.c [defined emacs]: Include "lisp.h".
60599         (xalloc_die) [defined emacs]: New macro.
60600         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60601         [! defined emacs]: Include <xalloc.h>.
60602         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60603         (pointer): Typedef to POINTER_TYPE *.
60604         (malloc): Remove decl; we now always use xmalloc.
60605         (alloca): Use old-style definition, since Emacs needs this.
60606         Check for arithmetic overflow when computing combined size.
60607
60608 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60609
60610         Do not generate unlocked-io.h automatically, since it's easier to
60611         maintain it by hand.
60612
60613         * lib/unlocked-io.h: New file, from GNU diffutils,
60614         but with proper copyright notice and attribution.
60615         * lib/gen-uio: Remove.
60616         * lib/Makefile.am: Add copyright notice.
60617         (libfetish_a_SOURCES): Add unlocked-io.h.
60618         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60619         (DISTCLEANFILES, io_functions): Remove macros.
60620         (EXTRA_DIST): Remove gen_uio.
60621         (unlocked-io.h): Remove rule.
60622
60623 2002-12-04  Jim Meyering  <jim@meyering.net>
60624
60625         Reflect the fact that stat.c and lstat.c are no longer generated.
60626         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60627         (DISTCLEANFILES): Likewise.
60628         (EXTRA_DIST): Likewise.
60629         (all_local): Don't depend on stat.c or lstat.c.
60630         (stat.c, lstat.c): Remove rules.
60631         (EXTRA_DIST): Remove xstat.in.
60632
60633         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60634         * lib/stat.c: New file.  Contents mostly from xstat.in.
60635         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60636         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60637
60638         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60639         too.
60640         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60641
60642 2002-12-03  Jim Meyering  <jim@meyering.net>
60643
60644         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60645         but not semantics, to minimize the differences between these two files.
60646         (safe_read): Change comment to mention SAFE_READ_ERROR.
60647
60648         * lib/safe-read.c (IS_EINTR): Define.
60649         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60650
60651 2002-12-02  Jim Meyering  <jim@meyering.net>
60652
60653         * lib/safe-read.c (EINTR): Define.
60654         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60655         (INT_MAX): Provide fallback.
60656         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60657
60658         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60659
60660 2002-12-02  Bruno Haible  <bruno@clisp.org>
60661
60662         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60663         Define, taken from safe-read.c.
60664         (INT_MAX): Provide fallback.
60665         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60666         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60667
60668         * lib/safe-read.c (EINTR): Remove definition.
60669         (safe_read): Don't use EINTR if it is absent.
60670
60671 2002-12-01  Jim Meyering  <jim@meyering.net>
60672
60673         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60674         zero.
60675         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60676
60677 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60678
60679         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60680         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60681         with `if (! (value < limit)) abort ();', for readability.
60682
60683 2002-11-26  Karl Berry  <karl@gnu.org>
60684
60685         * lib/strdup.c: copy from libc again, with jim's ok.
60686         * lib/.cppi-disable: re-add strdup.c
60687
60688 2002-11-25  Karl Berry  <karl@gnu.org>
60689
60690         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60691         instead of "strtol.c".
60692
60693 2002-11-25  Karl Berry  <karl@gnu.org>
60694
60695         * config/install-sh: update from automake for variable quoting, $0 in
60696         error msgs, etc.
60697
60698         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60699         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60700         entry.
60701
60702 2002-11-25  Jim Meyering  <jim@meyering.net>
60703
60704         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60705
60706 2002-11-24  Karl Berry  <karl@gnu.org>
60707
60708         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60709         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60710
60711 2002-11-24  Jim Meyering  <jim@meyering.net>
60712
60713         Update from coreutils:
60714
60715         * lib/mktime.c: Merge in changes from libc.
60716
60717         Avoid a link-time failure on some Linux systems.
60718         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60719         (otherwise).
60720         (__mon_yday): Declare with the STATIC attribute.
60721         (__mktime_internal): Likewise.
60722         Based on a report from Greg Schafer.
60723
60724 2002-11-23  Jim Meyering  <jim@meyering.net>
60725
60726         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60727         Use `unsigned', not `int', as type of index.
60728
60729         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60730
60731         * lib/fsusage.c: Remove unneeded parentheses around operands of
60732         `defined'.
60733
60734 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60735
60736         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60737         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60738         so that we can be included first.
60739         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60740         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60741         No need to include stddef.h or sys/types.h any more.
60742         Surround local include files with "", not "<>".
60743         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60744         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60745         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60746         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60747         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60748         (ISPRINT): Remove; no longer needed now that we assume C89.
60749
60750         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60751         Preserve errno.
60752
60753         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60754         quotearg_char): Use SIZE_MAX rather than
60755         (size_t) -1 when we are talking about "infinity".
60756
60757         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60758
60759 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60760
60761         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60762         hint that one should use `if (! x) abort ();' rather than `assert
60763         (x);', and anyway it's one less thing to worry about configuring.
60764         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60765         hash_rehash, hash_insert): Use abort rather than assert.
60766
60767 2002-11-22  Bruno Haible  <bruno@clisp.org>
60768
60769         * lib/safe-read.h: Assume C89. Add comments.
60770         (safe_read): Change return type to size_t.
60771         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60772         byte counts > SSIZE_MAX correctly.
60773         * lib/safe-write.h: New file.
60774         * lib/safe-write.c: New file.
60775         * lib/full-read.h: New file.
60776         * lib/full-read.c: New file.
60777         * lib/full-write.h: Assume C89. Add comments.
60778         * lib/full-write.c: Include safe-write.h.
60779         (full_write): Rewritten to use safe_write.
60780         Suggested by Jim Meyering and Paul Eggert.
60781
60782 2002-11-21  Jim Meyering  <jim@meyering.net>
60783
60784         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60785
60786         Merge in changes from the coreutils.
60787
60788         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60789         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60790         <stdint.h>.
60791         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60792         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60793         int.  Work more efficiently if X is the same width as uintmax_t.
60794         Do not compare X to -1, to avoid bogus compiler warning.
60795         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60796         Don't assume that f_frsize and f_bsize are the same type.
60797
60798         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60799         warning on FreeBSD.
60800
60801         * lib/makepath.c (make_path): Restore umask *before* creating the final
60802         component.
60803         (make_path): Minor reformatting.
60804
60805         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60806         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60807         HAVE_MALLOC/HAVE_REALLOC.
60808
60809         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60810         dummy ones.  At least on GNU/Linux systems, `auto' means something
60811         else.
60812         From Michael Stone.
60813
60814 2002-11-21  Bruno Haible  <bruno@clisp.org>
60815
60816         Remove case insensitive option matching.
60817         * lib/argmatch.h (argcasematch): Remove declaration.
60818         (ARGCASEMATCH): Remove macro.
60819         (__xargmatch_internal): Remove case_sensitive argument.
60820         (XARGMATCH): Update.
60821         (XARGCASEMATCH): Remove macro.
60822         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60823         case_sensitive argument.
60824         (argcasematch): Remove function.
60825         (__xargmatch_internal): Remove case_sensitive argument.
60826         (main): Use XARGMATCH instead of XARGCASEMATCH.
60827
60828         * lib/xmalloc.c: Change compile-time error message. Add comment about
60829         required autoconf version.
60830
60831 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60832
60833         Merge argmatch cleanups from Bison.  Assume C89.
60834
60835         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60836         Include stdlib.h, for EXIT_FAILURE.
60837         Always include <string.h>, since we assume C89.
60838         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60839         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60840         Include <stddef.h> instead, since it's all we need for size_t.
60841         (PARAMS): Remove.  All uses removed.
60842         (ARRAY_CARDINALITY): Do not bother to #undef.
60843         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60844         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60845         Remove unnecessary parentheses.
60846         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60847         Insert necessary parentheses.
60848         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60849         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60850
60851 2002-11-19  Bruno Haible  <bruno@clisp.org>
60852
60853         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60854         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60855
60856         * lib/mbswidth.h (PARAMS): Remove macro.
60857         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60858         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60859
60860         * lib/gcd.h (PARAMS): Remove macro.
60861         (gcd): Use ANSI C function declarations.
60862         * lib/gcd.c (gcd): Likewise.
60863
60864 2002-11-15  Bruno Haible  <bruno@clisp.org>
60865
60866         * lib/strcspn.c: Include <stddef.h>.
60867         (strcspn): Use ANSI C function declaration. Change return type to
60868         size_t. Use NULL.
60869         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60870         (strpbrk): Use NULL.
60871         * lib/strpbrk.h (PARAMS): Remove macro.
60872         (strpbrk): Use ANSI C function declaration.
60873         * lib/strstr.c: Don't include <sys/types.h>.
60874         * lib/strstr.h (PARAMS): Remove macro.
60875         (strstr): Use ANSI C function declarations.
60876
60877 2002-11-14  Karl Berry  <karl@gnu.org>
60878
60879         * config/mkinstalldirs: `do' on separate line, instead of
60880         `for var; do'.
60881
60882 2002-11-06  Bruno Haible  <bruno@clisp.org>
60883
60884         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60885         * lib/gcd.c (gcd): Likewise.
60886
60887 2002-11-05  Bruno Haible  <bruno@clisp.org>
60888
60889         * lib/gcd.h: New file, from gettext-0.11.5.
60890         * lib/gcd.c: New file, from gettext-0.11.5.
60891
60892 2002-11-05  Bruno Haible  <bruno@clisp.org>
60893
60894         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60895         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60896         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60897         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60898
60899         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60900         <libintl.h>.
60901         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60902         <libintl.h>.
60903
60904         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60905         * lib/human.c: Include gettext.h instead of <libintl.h>.
60906         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60907         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60908         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60909         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60910         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60911         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60912         (textdomain): Remove definition.
60913         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60914
60915         * lib/long-options.c: Remove include of <libintl.h> and definition of
60916         _.
60917         * lib/same.c: Remove include of <libintl.h> and definition of _.
60918
60919 2002-11-04  Owen Taylor  <otaylor@redhat.com>
60920
60921         * lib/config.charset: A few additions for Solaris.
60922
60923 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60924
60925         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60926         * lib/localcharset.c (locale_charset): Declare as extern "C".
60927
60928 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60929
60930         * lib/config.charset: msdos in uk_UA uses CP1125.
60931
60932 2002-11-04  Bruno Haible  <bruno@clisp.org>
60933
60934         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60935         * lib/strcase.h: New file, from GNU gettext-0.11.5.
60936         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60937         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60938         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60939
60940 2002-11-04  Bruno Haible  <bruno@clisp.org>
60941
60942         * lib/localcharset.c (locale_charset): Don't return an empty string.
60943
60944 2002-11-04  Bruno Haible  <bruno@clisp.org>
60945
60946         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60947         aliases.
60948
60949 2002-11-04  Bruno Haible  <bruno@clisp.org>
60950
60951         * lib/config.charset: Update for newest glibc. Add canonical names
60952         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60953
60954 2002-11-04  Bruno Haible  <bruno@clisp.org>
60955
60956         * lib/config.charset: Add support for NetBSD.
60957
60958 2002-11-04  Bruno Haible  <bruno@clisp.org>
60959
60960         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60961
60962 2002-11-01  Bruno Haible  <bruno@clisp.org>
60963
60964         * configure.in: Add AC_CONFIG_AUX_DIR call.
60965         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60966         test/Makefile.
60967         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60968
60969 2002-09-28  Karl Berry  <karl@gnu.org>
60970
60971         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60972         installed automake until the next release, since changes have been
60973         made.
60974
60975 2002-09-25  Karl Berry  <karl@gnu.org>
60976
60977         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60978         * lib/getopt*: copy from libc/posix.
60979         * lib/gettext.h: copy from gettext.
60980         * lib/.cppi-disable: add strdup.c, gettext.h.
60981
60982 2002-09-25  Karl Berry  <karl@gnu.org>
60983
60984         * config/srclist.txt: enable gettext.h check.
60985         * config/config.{guess,sub}: update from prep.
60986         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60987                 from automake 1.6.3.
60988         See srclist*.
60989
60990 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
60991
60992         * regex.c (PATFETCH): Remove the translating fetch.
60993         (PATFETCH_RAW): Rename to PATFETCH.
60994         (set_image_of_range): New fun.
60995         (SET_RANGE_TABLE_WORK_AREA): Use it.
60996         (regex_compile): Don't translate the pattern chars so eagerly.
60997         Only do it when inserting an `exactn' bytecode or when handling
60998         a char-range.
60999         (mutually_exclusive_p): Avoid empty statement.
61000
61001 2002-07-06  Jim Meyering  <meyering@lucent.com>
61002
61003         * m4/README: Don't mention Makefile.am.in.
61004         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
61005
61006 2002-07-01  Jim Meyering  <meyering@lucent.com>
61007
61008         * lib/c-stack.c: Include sys/time.h.
61009         From Volker Borchert.
61010
61011 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61012
61013         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61014
61015 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61016
61017         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61018         New macro.  Use it uniformly instead of
61019         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61020         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61021         reported by Vin Shelton.
61022
61023 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61024
61025         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61026         Do not assume SA_SIGINFO behavior.
61027         Bug reported by Jim Meyering on NetBSD 1.5.2.
61028
61029 2002-06-22  Jim Meyering  <meyering@lucent.com>
61030
61031         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61032         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61033
61034         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61035         now that configure.ac uses AC_GNU_SOURCE.
61036         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61037         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61038
61039         Update to latest tools.  Suggestions from Paul Eggert.
61040         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61041         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61042         * m4/fnmatch.m4: Likewise.
61043         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61044         to AC_HEADER_STDBOOL
61045
61046 2002-06-22  Jim Meyering  <meyering@lucent.com>
61047
61048         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61049         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61050
61051 2002-06-22  Jim Meyering  <meyering@lucent.com>
61052
61053         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61054
61055         * lib/exitfail.c, exitfail.h: Likewise.
61056         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61057
61058         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61059         of fnmatch.h.
61060         (EXTRA_DIST): Add fnmatch_loop.c.
61061         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61062
61063         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61064         * lib/fnmatch.c: Update from diffutils-2.8.2.
61065         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61066         * lib/fnmatch.h: Remove file.
61067
61068 2002-06-21  Jim Meyering  <meyering@lucent.com>
61069
61070         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61071         * m4/mbrtowc.m4: Likewise.
61072
61073         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61074         * m4/mbswidth.m4: Reflect name change:
61075         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61076         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61077
61078         * m4/lib-link.m4: Update from gettext-0.11.2.
61079         * m4/gettext.m4: Likewise.
61080
61081         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61082         From Alfred M. Szmidt.
61083
61084 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61085
61086         * lib/file-type.h: Report an error if neither S_ISREG nor
61087         S_IFREG is defined, instead of using a test specific to glibc
61088         2.2.  This should be safe, since POSIX requires S_ISREG and
61089         Unix Version 7 had S_IFREG.  We don't need to check for
61090         <sys/types.h> since we don't use any symbols that it defines.
61091
61092 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61093
61094         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61095         $@-t, so that each temporary file name is unique and valid in the first
61096         8 characters, for operation under DOS.
61097
61098 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61099
61100         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61101
61102 2002-06-15  Jim Meyering  <meyering@lucent.com>
61103
61104         Work even with DJGPP 2.03, which lacks support for symlinks.
61105         From Richard Dawe.
61106         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61107         is defined.
61108         * lib/lchown.c (S_ISLNK): Likewise.
61109
61110 2002-06-15  Jim Meyering  <meyering@lucent.com>
61111
61112         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61113         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61114         have been included before this file.
61115
61116 2002-06-14  Jim Meyering  <meyering@lucent.com>
61117
61118         * lib/file-type.h: Use the version from diffutils-2.8.2.
61119         * lib/file-type.c: Likewise.
61120
61121 2002-06-07  Jim Meyering  <meyering@lucent.com>
61122
61123         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61124         They're needed at least for NetBSD 1.5.2.
61125         ($statxfs_includes): Include those same headers.
61126         ($statxfs_includes): Include sys/vfs.h if available.
61127         ($statxfs_includes): Likewise for sys/statvfs.h.
61128         Check for the following members in both structs statfs and statvfs:
61129         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61130
61131 2002-06-01  Jim Meyering  <meyering@lucent.com>
61132
61133         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61134         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61135
61136 2002-05-28  Jim Meyering  <meyering@lucent.com>
61137
61138         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61139         Reported by Volker Borchert.
61140
61141 2002-05-27  Jim Meyering  <meyering@lucent.com>
61142
61143         Fix a problem seen only on nonconforming systems whereby ls.c's
61144         use of localtime, and then of gettimeofday would cause trouble:
61145         the localtime call used to initialize rpl_gettimeofday's save
61146         mechanism would clobber ls's current local time information so
61147         that in any long listing the first file would always be listed
61148         with date 1970-01-01.  Analysis by Volker Borchert.
61149
61150         * lib/gettimeofday.c (localtime): Undefine.
61151         (rpl_localtime): New function.
61152
61153 2002-05-27  Jim Meyering  <meyering@lucent.com>
61154
61155         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61156         localtime.
61157
61158         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61159         use the replacement function; it wouldn't resolve at link time.
61160         Reported by Volker Borchert.
61161
61162 2002-05-22  Jim Meyering  <meyering@lucent.com>
61163
61164         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61165         file-type.h.
61166         * lib/file-type.h: New file.
61167         * lib/file-type.c (file_type): New file/function.  Extracted from
61168         diffutils.
61169
61170 2002-04-30  Jim Meyering  <meyering@lucent.com>
61171
61172         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61173
61174 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61175
61176         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61177
61178 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61179
61180         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61181         Do not check for alloca.h (no longer used) or stdbool.h (was never
61182         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61183
61184 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61185
61186         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61187
61188 2002-04-29  Jim Meyering  <meyering@lucent.com>
61189
61190         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61191         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61192         Use AC_FUNC_STRNLEN here instead.
61193
61194         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61195         With autoconf-2.53a, it's part of AC_PROG_CC.
61196
61197 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61198
61199         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61200         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61201
61202 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61203
61204         * lib/sig2str.h, lib/sig2str.c: New files.
61205         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61206
61207 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61208
61209         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61210         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61211         of 127, since 64 is the largest conceivable number for ancient
61212         nonstandard hosts.
61213         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61214
61215 2002-04-28  Jim Meyering  <meyering@lucent.com>
61216
61217         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61218
61219 2002-04-24  Jim Meyering  <meyering@lucent.com>
61220
61221         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61222         (jm_PREREQ): Use it.
61223
61224         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61225         mach/mach.h fcntl.h.
61226         Check for this function: setlocale.
61227
61228 2002-04-24  Jim Meyering  <meyering@lucent.com>
61229
61230         * lib/gettext.h: New file, from Gettext.
61231         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61232         (libfetish_a_SOURCES): Add gettext.h.
61233
61234 2002-04-16  Jim Meyering  <meyering@lucent.com>
61235
61236         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61237         ut_pid, ut_id, ut_exit.
61238
61239 2002-04-16  Jim Meyering  <meyering@lucent.com>
61240
61241         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61242         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61243         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61244
61245 2002-04-12  Jim Meyering  <meyering@lucent.com>
61246
61247         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61248         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61249         existence of the getmntinfo function.  Needed for Darwin 5.3.
61250
61251         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61252         This is necessary at least on Darwin 5.3.
61253
61254         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61255         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61256         strnlen.o in the library, and that makes some versions of ranlib
61257         object.
61258
61259 2002-04-12  Jim Meyering  <meyering@lucent.com>
61260
61261         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61262
61263 2002-04-09  Jim Meyering  <meyering@lucent.com>
61264
61265         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61266         to be more precise.  Rather than saying we're checking whether the
61267         function `works', say what we're testing.
61268         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61269         Reported by Bruno Haible.
61270
61271 2002-03-10  Jim Meyering  <meyering@lucent.com>
61272
61273         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61274         Suggestion from Santiago Vila.
61275
61276 2002-03-08  Jim Meyering  <meyering@lucent.com>
61277
61278         * lib/rename.c: Mention that this wrapper is needed also on
61279         mips-dec-ultrix4.4 systems.
61280
61281 2002-03-02  Jim Meyering  <meyering@lucent.com>
61282
61283         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61284         not HAVE_CLOCK_SETTIME.
61285
61286 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61287
61288         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61289         Check for clock_settime.
61290
61291 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61292
61293         * lib/nanosleep.h: Rename to....
61294         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61295
61296         * lib/gettime.c: New file.
61297         * lib/settime.c: New file.
61298         * lib/stime.c: Remove.
61299
61300         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61301         timespec.h.  Remove nanosleep.h.
61302
61303 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61304
61305         * m4/acl.m4: New file.
61306         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61307         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61308
61309 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61310
61311         * lib/acl.c, lib/acl.h: New files.
61312         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61313
61314 2002-02-24  Jim Meyering  <meyering@lucent.com>
61315
61316         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61317         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61318         cause trouble.  Reported by Nelson Beebe.
61319
61320 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61321
61322         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61323         compilers that don't know that xalloc_die never returns.
61324
61325 2002-02-20  Jim Meyering  <meyering@lucent.com>
61326
61327         * lib/getdate.c: Regenerate using bison-1.33.
61328
61329 2002-02-17  Jim Meyering  <meyering@lucent.com>
61330
61331         * config/config.guess (main): Don't use `head -1'; it's no longer
61332         portable. Use `sed 1q' instead.
61333
61334 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61335
61336         * m4/codeset.m4: Upgrade to gettext-0.11.
61337         * m4/gettext.m4: Upgrade to gettext-0.11.
61338         * m4/glibc21.m4: Upgrade to gettext-0.11.
61339         * m4/iconv.m4: Upgrade to gettext-0.11.
61340         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61341         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61342         * m4/lib-ld.m4: New file, from gettext-0.11.
61343         * m4/lib-link.m4: New file, from gettext-0.11.
61344         * m4/lib-prefix.m4: New file, from gettext-0.11.
61345         * m4/progtest.m4: Upgrade to gettext-0.11.
61346
61347 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61348
61349         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61350         (jm_PREREQ): Use it.
61351
61352 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61353
61354         * lib/posixver.c, lib/posixver.h: New files.
61355         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61356
61357 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61358             Bruno Haible  <bruno@clisp.org>
61359
61360         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61361         (fwrite_success_callback): New declaration.
61362         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61363         print_unicode_char. Call failure callback instead of error.
61364         (fwrite_success_callback): New function.
61365         (exit_failure_callback): New function.
61366         (fallback_failure_callback): New function.
61367         (print_unicode_char): Call unicode_to_mb.
61368
61369 2002-01-26  Jim Meyering  <meyering@lucent.com>
61370
61371         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61372         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61373
61374 2002-01-26  Jim Meyering  <meyering@lucent.com>
61375
61376         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61377
61378 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61379
61380         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61381
61382 2002-01-22  Jim Meyering  <meyering@lucent.com>
61383
61384         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61385         Otherwise, some versions of automake would omit the rule that makes
61386         Makefile from Makefile.in.
61387
61388 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61389
61390         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61391         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61392         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61393         (memcoll): Set errno to zero if there is no error.
61394
61395         * lib/quotearg.c (quotearg_buffer_restyled):
61396         Fix bug with quoting buffers containing NUL when backslashing escapes.
61397         This bug was exposed by the other changes in this patch.
61398         (quotearg_n_options): New arg ARGSIZE.
61399         All callers changed.
61400         (quoting_options_from_style): New function.
61401         (quotearg_n_style): Use it.
61402         (quotearg_n_style_mem): New function.
61403
61404         * lib/quotearg.h (quotearg_n_style_mem): New function.
61405
61406 2002-01-19  Jim Meyering  <meyering@lucent.com>
61407
61408         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61409         Remove useless quotes: DF_PROG="df".
61410         * m4/strnlen.m4: New file.
61411
61412 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61413
61414         * lib/backupfile.c (ISDIGIT): Comment fix.
61415         * lib/getdate.y (ISDIGIT): Likewise.
61416         * lib/posixtm.c (ISDIGIT, year): Likewise.
61417         * lib/strverscmp.c (ISDIGIT): Likewise.
61418         * lib/userspec.c (ISDIGIT): Likewise.
61419
61420 2002-01-16  Jim Meyering  <meyering@lucent.com>
61421
61422         * lib/getdate.y: Add three semicolons, each just before a closing
61423         brace. Bison (as of version 1.31) no longer papers over that mistake.
61424
61425 2002-01-05  Jim Meyering  <meyering@lucent.com>
61426
61427         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61428
61429 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61430
61431         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61432         not silently exit merely because the output buffer happens to
61433         have nothing pending.
61434
61435 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61436
61437         See the big note in ../ChangeLog.
61438         * lib/human.c (suffixes): Prefer K to k for 1024.
61439         (generate_suffix_backwards): New function.
61440         (human_readable_inexact): Use it.
61441         * lib/xstrtol.c (__xstrtol): If there is no number but there
61442         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61443         Accept 'K' as well as 'k'.
61444
61445 2001-12-15  Jim Meyering  <meyering@lucent.com>
61446
61447         * lib/regex.h (__restrict_arr): Update from libc.
61448
61449         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61450         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61451         (STREQ): Define.
61452
61453 2001-12-14  Jim Meyering  <meyering@lucent.com>
61454
61455         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61456         Suggestion from Bruno Haible.
61457
61458 2001-12-10  Jim Meyering  <meyering@lucent.com>
61459
61460         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61461         xrealloc, Instead, include "xalloc.h".
61462         (initbuffer): Don't cast xmalloc return value to char*.
61463         (readline): Reword comment.
61464         Don't cast xrealloc return value to char*
61465         Return NULL, not 0.
61466
61467 2001-12-09  Jim Meyering  <meyering@lucent.com>
61468
61469         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61470         about `signed and unsigned type in conditional expression'.
61471         * lib/posixtm.c (posix_time_parse): Likewise.
61472
61473         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61474
61475         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61476         to avoid a pedantic warning.
61477
61478         * lib/getstr.c: Don't include assert.h.
61479         (getstr): Remove warning-evoking assertions.
61480         Return -1 if offset parameter is out of bounds.
61481         Change the type of a local from int to size_t.
61482
61483         * lib/strftime.c (my_strftime_localtime_r): Include this function
61484         definition in the `#if ! HAVE_TM_GMTOFF' block.
61485
61486         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61487         Include xalloc.h instead.
61488
61489 2001-12-02  Jim Meyering  <meyering@lucent.com>
61490
61491         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61492         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61493         included.
61494
61495         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61496         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61497
61498 2001-11-30  Akim Demaille  <akim@epita.fr>
61499
61500         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61501         before being defined.
61502
61503 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61504
61505         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61506         First arg is int, not unsigned.
61507         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61508         (SIZE_MAX, UINT_MAX): New macros.
61509         (quotearg_n_options): Abort if N is negative.
61510         Avoid overflow check on hosts where size_t is 64 bits and int
61511         is 32 bits, as overflow is impossible there.
61512         Fix off-by-one typo that caused unnecessary reallocation.
61513
61514 2001-11-27  Jim Meyering  <meyering@lucent.com>
61515
61516         * lib/tempname.c: Merge with version from libc.
61517         * lib/regex.c: Likewise.
61518
61519         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61520         systems for which STDC_HEADERS is 0, it was not included, resulting in
61521         a warning about an integer-to-pointer conversion problem with getenv.
61522         Reported by Volker Borchert.
61523
61524 2001-11-26  Jim Meyering  <meyering@lucent.com>
61525
61526         * lib/gtod.h: Remove file.
61527         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61528         * lib/gettimeofday.c: Don't include gtod.h.
61529         (GTOD_init): Remove function.
61530         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61531         Suggestion from Volker Borchert.
61532
61533 2001-11-23  Jim Meyering  <meyering@lucent.com>
61534
61535         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61536         it.
61537         * lib/hash.c (struct hash_table): Define it here instead.
61538
61539 2001-11-22  Jim Meyering  <meyering@lucent.com>
61540
61541         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61542
61543 2001-11-20  Jim Meyering  <meyering@lucent.com>
61544
61545         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61546         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61547
61548 2001-11-19  Jim Meyering  <meyering@lucent.com>
61549
61550         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61551         directory.  Use "conftestXXXXXX" as the template.
61552         Suggestion from Paul Eggert.
61553
61554         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61555         immediately, so the test doesn't mistakenly hit the max-open-files
61556         limit.
61557
61558 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61559
61560         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61561         (TEMPORARIES): New macro.
61562         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61563         removes an artificial limitation (e.g. HP-UX 10.20, where
61564         TMP_MAX is 17576).
61565
61566 2001-11-18  Jim Meyering  <meyering@lucent.com>
61567
61568         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61569
61570 2001-11-18  Jim Meyering  <meyering@lucent.com>
61571
61572         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61573         on SunOS 4.
61574
61575         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61576         files will be created before anything else.
61577
61578 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61579
61580         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61581         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61582
61583 2001-11-17  Jim Meyering  <meyering@lucent.com>
61584
61585         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61586         Prompted by a report from Bob Proulx.
61587
61588         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61589         Instead, require UTILS_FUNC_MKSTEMP.
61590
61591 2001-11-17  Jim Meyering  <meyering@lucent.com>
61592
61593         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61594         Now, that's done as part of AC_FUNC_STRTOD.
61595
61596 2001-11-17  Jim Meyering  <meyering@lucent.com>
61597
61598         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61599         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61600         rather than group writable.  Patch by Juan F. Codagnone.
61601
61602         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61603         xrealloc, Instead, include "xalloc.h".
61604
61605         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61606         Remove explicit declarations of xmalloc, xrealloc,
61607         and xstrdup.  Instead, include "xalloc.h".
61608
61609         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61610         unlocked-io.h.
61611         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61612         Likewise.
61613         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61614
61615         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61616         Reported by Padraig Brady.
61617
61618         * lib/mkstemp.c: #undef mkstemp.
61619         Include config.h.
61620         (rpl_mkstemp): Rename from mkstemp.
61621         Protoize.
61622
61623 2001-11-16  Jim Meyering  <meyering@lucent.com>
61624
61625         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61626         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61627         determine the amount of total physical memory, use pstat_getstatic.
61628         HPUX-11 doesn't define _SC_PHYS_PAGES.
61629         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61630         If sysconf couldn't be used to determine the amount of available
61631         physical memory, use both pstat_getstatic and pstat_getdynamic.
61632         Based on a patch from Bob Proulx.
61633
61634 2001-11-10  Jim Meyering  <meyering@lucent.com>
61635
61636         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61637         (jm_PREREQ): Use it.
61638
61639 2001-11-09  Jim Meyering  <meyering@lucent.com>
61640
61641         * m4/jm-macros.m4: Require autoconf-2.52f.
61642         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61643         Use these AC_-prefixed names, not the AM_-prefixed ones.
61644
61645         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61646
61647 2001-11-05  Jim Meyering  <meyering@lucent.com>
61648
61649         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61650
61651 2001-11-04  Jim Meyering  <meyering@lucent.com>
61652
61653         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61654         $DEFS.
61655
61656 2001-11-03  Jim Meyering  <meyering@lucent.com>
61657
61658         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61659         of AC_DEFUN.
61660
61661         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61662         know the name of the variable in the macro definition.
61663
61664 2001-11-03  Jim Meyering  <meyering@lucent.com>
61665
61666         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61667         in argmatch_to_argument call.
61668
61669         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61670         argument.
61671
61672         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61673         e.g., a fault due to an attempt to free a NULL pointer.
61674
61675 2001-11-01  Jim Meyering  <meyering@lucent.com>
61676
61677         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61678         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61679
61680 2001-11-01  Jim Meyering  <meyering@lucent.com>
61681
61682         * lib/dirfd.c, lib/dirfd.h: New files.
61683         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61684
61685         * lib/hash.c (hash_print) [TESTING]: Clean up.
61686
61687 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61688
61689         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61690         to avoid a warning if -Wall.
61691
61692 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61693
61694         * README: New file
61695         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61696         (per RMS's instructions, this is now the canonical source)
61697         * lgpl/, gpl/: New directories.
61698
61699 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61700
61701         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61702
61703 2001-10-21  Jim Meyering  <meyering@lucent.com>
61704
61705         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61706         this code would end up calling gettext even in packages built
61707         with --disable-nls.
61708         * lib/getopt.c (_): Likewise.
61709         * lib/regex.c (_): Likewise.
61710
61711 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61712
61713         * m4/error.m4 (jm_PREREQ_ERROR):
61714         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61715         AC_FUNC_STRERROR_R does that.
61716         Check for strerror declaration.
61717
61718         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61719         are supposed to have them these days.
61720         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61721         Merge changes from latest Autoconf CVS.
61722         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61723         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61724         POSIX decided to standardize on the int flavor of strerror_r.
61725
61726 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61727
61728         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61729         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61730         Use strerror_r that is only a macro, even if it is not a function.
61731         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61732         (private_strerror): Use prototypes, not old-style function definition.
61733         (print_errno_message): New function.
61734         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61735         char*-flavored one.
61736         (error_tail, error, error_at_line): Use it.
61737
61738 2001-10-11  Jim Meyering  <meyering@lucent.com>
61739
61740         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61741         and quote_n (1, ... to avoid clobbering a buffer.
61742
61743 2001-10-05  Jim Meyering  <meyering@lucent.com>
61744
61745         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61746         hash-pjw.h.
61747         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61748         * lib/hash-pjw.h: New file.
61749
61750 2001-09-30  Jim Meyering  <meyering@lucent.com>
61751
61752         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61753         `struct fsstat' has the `f_fstypename' member.
61754         Use that to define FS_TYPE, which is now used to make
61755         the getfsstat link test tighter.
61756
61757 2001-09-30  Jim Meyering  <meyering@lucent.com>
61758
61759         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61760         Include <sys/ucred.h>, for Apple Darwin.
61761         Include sys/mount.h and sys/fs_types.h only if available.
61762         (FS_TYPE): Define.
61763         (read_filesystem_list): Use FS_TYPE.
61764
61765 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61766
61767         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61768         a boolean context.
61769
61770 2001-09-29  Jim Meyering  <meyering@lucent.com>
61771
61772         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61773         [one-argument getmntent function]): Include stdio.h before mntent.h.
61774         SunOS 4.1.x needs it for the declaration of `FILE'.
61775         Patch by Volker Borchert.
61776
61777         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61778         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61779         sys/fs_types.h, and make the link-test for getfsstat guard #include
61780         directives with appropriate #if HAVE_*_H tests so that we can
61781         detect getfsstat on Apple Darwin1.3.7 systems.
61782         Reported by Nelson Beebe.
61783         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61784
61785 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61786
61787         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61788         #defines strtoimax.  Also treat the other strto* functions
61789         like strtoimax.
61790
61791         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61792         Check for strtoul and strtoumax,
61793         as those declarations are made even in the signed case.
61794         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61795         Likewise, for strtol and strtoimax.
61796
61797 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61798
61799         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61800         #defines strtoimax.  Also treat the other strto* functions
61801         like strtoimax.
61802
61803         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61804         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61805         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61806
61807 2001-09-26  Jim Meyering  <meyering@lucent.com>
61808
61809         Most macros in unlocked-io.h had the wrong number of arguments.
61810         * lib/gen-uio: New script.
61811         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61812         * lib/unlocked-io.hin: Remove file.
61813         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61814         rather than trying to embed it here.
61815         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61816         Reported by Padraig Brady.
61817
61818 2001-09-25  Volker Borchert  <bt@teknon.de>
61819
61820         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61821         `result'.
61822
61823 2001-09-24  Jim Meyering  <meyering@lucent.com>
61824
61825         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61826
61827 2001-09-23  Jim Meyering  <meyering@lucent.com>
61828
61829         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61830         instead of the mere test for existence of mntent.h.  The latter
61831         would get a false-positive on AIX 3.4 systems.
61832         In the outer getmntent if-block, don't die if neither of the getmntent
61833         tests succeeds.  Instead, just fall through and continue with the
61834         remaining tests.
61835
61836 2001-09-23  Jim Meyering  <meyering@lucent.com>
61837
61838         * lib/mountlist.c: Remove useless parentheses in #if directives.
61839         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61840         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61841
61842 2001-09-22  Jim Meyering  <meyering@lucent.com>
61843
61844         * m4/gettext.m4: New file.  From gettext.
61845         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61846         * m4/progtest.m4: Likewise
61847         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61848         * m4/glibc21.m4: Likewise.
61849
61850         * m4/libintl.m4: Remove.  No longer used.
61851
61852 2001-09-22  Jim Meyering  <meyering@lucent.com>
61853
61854         * lib/localcharset.c: Update from latest gettext.
61855         * lib/config.charset: Likewise.
61856
61857 2001-09-20  Jim Meyering  <meyering@lucent.com>
61858
61859         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61860         strtoimax.
61861         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61862         strtoumax.
61863
61864 2001-09-20  Jim Meyering  <meyering@lucent.com>
61865
61866         * lib/xstrtol.c (strtoimax): Guard declaration with
61867         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61868         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61869         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61870         (strtoumax): Likewise, for completeness (it wasn't necessary).
61871
61872 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61873
61874         * lib/strtoimax.c (HAVE_LONG_LONG):
61875         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61876         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61877         to work around bug in IBM C compiler.
61878
61879 2001-09-17  Jim Meyering  <meyering@lucent.com>
61880
61881         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61882         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61883         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61884         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61885         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61886         whenever the right hand side need not be expanded by the shell.
61887
61888 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61889
61890         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61891         library.  It's not correct, as some older glibcs are buggy.
61892         fnmatch wasn't fixed until glibc 2.2.
61893
61894         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61895         special shell magic here.
61896
61897 2001-09-16  Jim Meyering  <meyering@lucent.com>
61898
61899         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61900         * m4/jm-macros.m4: Require it.
61901
61902 2001-09-16  Jim Meyering  <meyering@lucent.com>
61903
61904         * lib/mkdir.c: New file.
61905
61906 2001-09-15  Jim Meyering  <meyering@lucent.com>
61907
61908         * m4/jm-macros.m4: Check for help2man.
61909
61910 2001-09-11  Jim Meyering  <meyering@lucent.com>
61911
61912         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61913         The body, by Paul Eggert, was moved here from configure.in.
61914         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61915
61916 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61917
61918         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61919         (jm_PREREQ): Use it.
61920
61921 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61922
61923         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
61924         Use ssize_t, not int, to store result of readlink.
61925         Check for ssize_t overflow as well as size_t overflow,
61926         as POSIX says the result of readlink is implementation-defined
61927         when ssize_t overflows.
61928         Remove unnecessary cast to char*.
61929         Use free+malloc instead of realloc, as the storage doesn't need
61930         to be preserved and it's clearer and can be more efficient that way.
61931         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61932         * lib/xreadlink.h (xreadlink): Update prototype.
61933
61934 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61935
61936         * lib/xgetcwd.c: Revert some of the previous change; intead,
61937         fix the HAVE_GETCWD_NULL code to behave more like the
61938         !HAVE_GETCWD_NULL code used to.
61939
61940         Include "xalloc.h".
61941         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61942         invoke xalloc_die.
61943
61944 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61945
61946         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61947         sys/param.h, as pathmax.h includes them.
61948
61949 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61950
61951         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61952         (jm_PREREQ_XGETCWD): New macro.
61953
61954         * m4/getcwd.m4: New file.
61955
61956 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61957
61958         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61959         like the HAVE_GETCWD_NULL code.
61960         Include pathmax.h if not HAVE_GETCWD.
61961         Do not include xalloc.h.
61962         (INITIAL_BUFFER_SIZE): New symbol.
61963         Do not use xmalloc / xrealloc, since the caller is responsible for
61964         handling errors.  Preserve errno around `free' during failure.
61965         Do not overrun buffer when using getwd.
61966
61967 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61968
61969         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61970         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61971         getcwd (NULL, 0).
61972
61973 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61974
61975         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61976         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
61977         spotted by Jim Meyering.
61978
61979 2001-09-03  Jim Meyering  <meyering@lucent.com>
61980
61981         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61982         failure.
61983
61984 2001-09-02  Jim Meyering  <meyering@lucent.com>
61985
61986         * lib/error.c: Update from GNU libc.
61987
61988 2001-09-01  Jim Meyering  <meyering@lucent.com>
61989
61990         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61991         Used by df.
61992
61993 2001-09-01  Jim Meyering  <meyering@lucent.com>
61994
61995         * lib/xreadlink.c: New file.
61996         * lib/xreadlink.h: New file.
61997         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61998         xreadlink.h.
61999
62000         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
62001         doesn't conflict with sparc Solaris 7's definition in
62002         /usr/include/sys/int_types.h.
62003
62004         * lib/exclude.c: Use `""', not `<>' to #include non-system header
62005         files.
62006         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
62007         and strncasecmp as r-values.  Unixware didn't have declarations.
62008
62009 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62010
62011         * lib/xstrtol.h: Add copyright notice.
62012         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62013         LONGINT_INVALID_SUFFIX_CHAR.
62014
62015 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62016
62017         * lib/xstrtol.c (strtoimax): New decl.
62018
62019 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62020
62021         * lib/xgetcwd.c: Don't include pathmax.h.
62022         Include stdlib.h and unistd.h if available.
62023         Include xalloc.h.
62024         (xmalloc, xstrdup, free): Remove decls.
62025         (xgetcwd): Don't assume sizes fit in unsigned.
62026         Check for overflow when computing sizes.
62027         Simplify reallocation code.
62028
62029 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62030
62031         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62032         a directory's st_size can have an arbitrary value, so the old
62033         usage could waste an arbitrary amount of memory.  All uses
62034         changed.
62035         * lib/savedir.h: Update prototype.
62036
62037 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62038
62039         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62040
62041         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62042         old strtoimax.c.
62043
62044         Also, make the following further changes to make this file's
62045         configuration more similar to that of strtol.c:
62046         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62047         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62048         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62049         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62050         changed to signed values.
62051
62052         And make the following changes as well:
62053         Fix copyright notice, as 1999 was missing.
62054         (verify): New macro.
62055         (strtoimax): Check sizes at compile-time, not run-time.
62056         Prefer strtol to strtoll if both work.
62057         (main): Remove; it was not that useful and was a pain to maintain.
62058
62059         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62060
62061 2001-08-31  Jim Meyering  <meyering@lucent.com>
62062
62063         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62064         Use an initial, malloc'd, buffer of length 128 rather than
62065         a statically allocated one of length 1024.
62066
62067 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62068
62069         Simplify code, partly by assuming autoconf 2.52 semantics.
62070
62071         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62072
62073         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62074         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62075         All uses removed.
62076         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62077         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62078         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62079         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62080         jm_AC_HEADER_INTTYPES_H.
62081         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62082
62083         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62084
62085         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62086         Quote first arg of AC_DEFUN.
62087         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62088         since they are needed to parse the include file even if we need
62089         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62090         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62091         but with opposite signedness.
62092
62093 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62094
62095         Merge 'exclude' changes from tar 1.13.22.
62096         This fixes one or two unlikely storage allocation overflow bugs,
62097         but doesn't change user-visible behavior otherwise.
62098
62099 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62100
62101         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62102         (jm_PREREQ_EXCLUDE): New macro.
62103
62104 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62105
62106         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62107         tm to be declared.
62108
62109 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62110
62111         * lib/hash.c: Remove '2001' from copyright notice.
62112
62113 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62114
62115         * lib/full-write.h: New file.
62116         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62117         * lib/full-write.c: Correct credits, as cccp.c no longer
62118         exists and anyway it was so heavily changed from the old cccp
62119         code as to be unrecognizable.  Include full-write.h.
62120         (full_write) Return size_t, with short writes meaning failure.
62121         All callers changed.  This fixes a bug with large buffers
62122         on 64-bit hosts.
62123         * lib/utime.c: Include full-write.h.
62124
62125 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62126
62127         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62128         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62129         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62130         Include if available.
62131         (<xalloc.h>): Include
62132         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62133         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62134         collide with FNM macros.
62135         (struct patopts): New struct.
62136         (struct exclude): Use it, as exclude patterns now come with options.
62137         (new_exclude): Support above changes.
62138         (new_exclude, add_exclude_file):
62139         Initial size must now be a power of two to simplify overflow checking.
62140         (free_exclude, fnmatch_no_wildcards): New function.
62141         (excluded_filename): No longer requires options arg, as the options
62142         are determined by add_exclude.  Now returns bool, not int.
62143         (excluded_filename, add_exclude):
62144         Add support for the fancy new exclusion options.
62145         (add_exclude, add_exclude_file): Now takes int options arg.
62146         Check for arithmetic overflow when computing sizes.
62147         (add_exclude_file): xrealloc might modify errno, so don't
62148         realloc until after errno might be used.
62149
62150         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62151         New macros.
62152         (free_exclude): New decl.
62153         (add_exclude, add_exclude_file): Now takes int options arg.
62154         (excluded_filename): No longer requires options arg, as the options
62155         are determined by add_exclude.  Now returns bool, not int.
62156
62157 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62158
62159         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62160
62161 2001-08-27  Jim Meyering  <meyering@lucent.com>
62162
62163         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62164
62165         * lib/version-etc.c (N_): Remove definition.
62166         Revert most of last change.
62167         Instead, simply don't mark the `Copyright...' string for translation.
62168         Based on advice from Paul Eggert.
62169
62170         * lib/strtoxmax.c: Tweak comment.
62171
62172 2001-08-26  Jim Meyering  <meyering@lucent.com>
62173
62174         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62175
62176         * m4/xstrtoimax.m4: New file.
62177         * m4/xstrtoumax.m4: Add comments explaining why we
62178         AC_REPLACE_FUNCS(strtol).
62179
62180 2001-08-26  Jim Meyering  <meyering@lucent.com>
62181
62182         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62183         of copyright with `%s' so translators don't get an untranslated
62184         message in 2002.
62185         (COPYRIGHT_YEAR): Define.
62186         (version_etc): Use fprintf rather than fputs.
62187         Suggestion from Ulrich Drepper.
62188
62189         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62190
62191         * lib/strtoll.c: New file, from GNU libc.
62192         * lib/xstrtoimax.c: New file.
62193
62194         * lib/xstrtol.h: Add xstrtoimax.
62195         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62196         * lib/strtoimax.c: New file.  Likewise, but first define
62197         STRTOUXMAX_SIGNED.
62198
62199         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62200         ...
62201         * lib/strtoxmax.c: ... then renamed to this.
62202
62203 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62204
62205         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62206         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62207         (jm_AC_TYPE_INTMAX_T): New macro.
62208         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62209
62210         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62211
62212         * m4/longlong.m4: Renamed from ulonglong.m4.
62213         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62214         * m4/uintmax_t.m4: Removed.
62215
62216 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62217
62218         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62219         Port to Solaris 8, where 'sed' requires a space after the 'r'
62220         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62221         Redirect output to $tmp just once.
62222
62223 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62224
62225         * lib/addext.c (<errno.h>): Include.
62226         (errno): Declare if not defined.
62227         (addext): Work correctly when pathconf returns -1 and leaves
62228         errno alone because there is no limit.  Also, work even if
62229         pathconf returns a value greater than SIZE_MAX.
62230
62231 2001-08-12  Jim Meyering  <meyering@lucent.com>
62232
62233         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62234         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62235         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62236         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62237         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62238         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62239         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62240         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62241         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62242         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62243         utime.m4, utimes.m4, xstrtoumax.m4:
62244         Quote the first argument in each use of AC_DEFUN.
62245
62246 2001-08-12  Jim Meyering  <meyering@lucent.com>
62247
62248         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62249         Simply `return getcwd (NULL, 0);'.
62250         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62251         Use 1300 as initial value for length, not PATH_MAX.
62252
62253         * lib/pathmax.h: Clean up cpp syntax.
62254
62255 2001-08-12  Jim Meyering  <meyering@lucent.com>
62256
62257         * lib/gettimeofday.c: New file.
62258         * lib/gtod.h: New file.
62259         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62260
62261 2001-08-05  Jim Meyering  <meyering@lucent.com>
62262
62263         * m4/jm-macros.m4: Require autoconf-2.52.
62264
62265 2001-08-04  Jim Meyering  <meyering@lucent.com>
62266
62267         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62268         stmt, to get in sync with glibc.
62269
62270 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62271
62272         The following changes are from gettext 0.10.39 as maintained by
62273         Bruno Haible.
62274
62275         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62276         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62277         with inverted sense.  All uses changed.
62278
62279         * lib/mbswidth.c: Don't include <limits.h>.
62280         Include <stdlib.h> and <string.h> unconditionally.
62281         (iswcntrl, mbsinit, ISCNTRL): New macros.
62282         (mbsnwidth): Use K&R style function declarations.
62283         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62284         can optimize it when MB_CUR_MAX == 1.
62285         The width of control characters is zero, not 1.
62286
62287 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62288
62289         The following changes are from gettext 0.10.39 as maintained by
62290         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62291
62292         * m4/codeset.m4: Upgrade to serial AM1.
62293         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62294         all uses changed.  Quote first arg of AC_DEFUN.
62295         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62296
62297         * m4/iconv.m4: Upgrade to serial AM2.
62298         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62299         Add --with-libconv-prefix.
62300         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62301         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62302         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62303         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62304         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62305
62306         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62307         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62308         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62309         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62310         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62311         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62312         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62313         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62314         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62315
62316         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62317         string.h any more.
62318
62319         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62320         not the default value.
62321
62322         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62323         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62324         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62325         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62326         Also check for iswcntrl, used for wcwidth fallback.
62327         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62328         to Autoconf 2.13.
62329
62330 2001-08-03  Jim Meyering  <meyering@lucent.com>
62331
62332         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62333         as it was in the original.  Reported by Paul Eggert.
62334
62335 2001-07-16  Jim Meyering  <meyering@lucent.com>
62336
62337         * m4/gettimeofday.m4: New file.
62338         Prompted by a report from Bernhard Baehr.
62339
62340 2001-07-15  Jim Meyering  <meyering@lucent.com>
62341
62342         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62343         stuff. Now it's in ../Makefile.cfg.
62344
62345 2001-07-15  Jim Meyering  <meyering@lucent.com>
62346
62347         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62348         (BUILT_SOURCES): Add unlocked-io.h.
62349         (io_functions): Define.
62350         (unlocked-io.h): New rule.
62351         (DISTCLEANFILES): Add unlocked-io.h.
62352         (all-local): Depend on unlocked-io.h, to ensure it is created.
62353
62354         * lib/unlocked-io.hin: New file
62355
62356         * lib/regex.c: Update from glibc.
62357
62358 2001-07-05  Jim Meyering  <meyering@lucent.com>
62359
62360         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62361         recommendation.
62362         (libfetish_a_SOURCES): Put all .h files here instead.
62363         Remove a thus-exposed (better checks in automake) duplicate and
62364         two unnecessary .h files.
62365
62366 2001-07-04  Jim Meyering  <meyering@lucent.com>
62367
62368         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62369         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62370         distcheck failure.
62371
62372 2001-07-02  Jim Meyering  <meyering@lucent.com>
62373
62374         The following changes were prompted by suggestions from Bruno Haible.
62375
62376         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62377         is now generated.
62378         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62379         definition of EXTRA_DIST.
62380         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62381         ensure that the generated file is created/updated whenever the list
62382         of $(unlocked_functions) is changed.
62383         (jm-glibc-io.m4): New rule.
62384         (unlocked-io.h): New rule -- currently unused.
62385
62386 2001-06-24  Jim Meyering  <meyering@lucent.com>
62387
62388         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62389         unmatched right bracket, rather than kludging it with an extra,
62390         falsely-matching quote in a comment.  Patch by Akim Demaille.
62391
62392 2001-06-11  Jim Meyering  <meyering@lucent.com>
62393
62394         * lib/regex.c: Update from GNU libc.
62395
62396 2001-05-27  Jim Meyering  <meyering@lucent.com>
62397
62398         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62399         Check for ut_type in struct utmp.
62400
62401 2001-05-27  Jim Meyering  <meyering@lucent.com>
62402
62403         * lib/readutmp.h (UT_TYPE): Define.
62404
62405 2001-05-24  Jim Meyering  <meyering@lucent.com>
62406
62407         * lib/argmatch.c: Include "quote.h".
62408         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62409         quote function.  Reported by Göran Uddeborg.
62410
62411 2001-05-22  Jim Meyering  <meyering@lucent.com>
62412
62413         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62414         now that we use the package-supplied version unconditionally.
62415         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62416
62417 2001-05-21  Jim Meyering  <meyering@lucent.com>
62418
62419         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62420         shell syntax errors.
62421
62422 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62423
62424         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62425
62426 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62427
62428         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62429         Don't bother to check library strftime, since
62430         we'll be using our own my_strftime function anyway.
62431         Define my_strftime instead of strftime.
62432
62433 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62434
62435         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62436         which is not yet declared.
62437
62438 2001-05-15  Jim Meyering  <meyering@lucent.com>
62439
62440         * m4/regex.m4: Use proper quoting so brackets appear in the test
62441         program.
62442         Reported by, and with help from, Bruno Haible.
62443
62444 2001-05-13  Jim Meyering  <meyering@lucent.com>
62445
62446         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62447         undefined.
62448
62449 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62450
62451         dirname code cleanup.  base_name now behaves more compatibly
62452         with POSIX basename when given file names that have trailing
62453         slashes, and similarly for dir_name.  Add new primitives
62454         base_len and dir_len.  Put the directory-name-related decls
62455         into dirname.h.
62456
62457         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62458         * lib/backupfile.c (base_name): Likewise.
62459         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62460         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62461         * lib/makepath.c (strip_trailing_slashes): Likewise.
62462         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62463         ISSLASH): Likewise.
62464         * lib/rename.c (strip_trailing_slashes): Likewise.
62465         * lib/same.c (base_name): Likewise.
62466         * lib/stripslash.c (ISSLASH): Likewise.
62467
62468         * lib/addext.c: Include <dirname.h> after size_t is defined.
62469         * lib/backupfile.c: Likewise.
62470
62471         * lib/addext.c (addext): Use base_len to trim redundant
62472         trailing slashes instead of doing it ourselves.
62473         But do not trim the last slash if it is not redundant.
62474
62475         * lib/backupfile.c (find_backup_file_name,
62476         max_backup_version): Use base_len instead of rolling it ourselves.
62477         Handle the case of "" and (on DOS) "C:" correctly.
62478
62479         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62480         needed. Include <string.h>, <dirname.h>.
62481         (base_name): Allow file names ending in slashes, other than names
62482         that are all slashes.  In this case, return the basename followed
62483         by the slashes.  This is more general, and can be used in places
62484         where the original base_name purposely had an assertion failure.
62485         (base_len): New function.
62486
62487         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62488         Do not include <assert.h>; no longer needed.
62489         Include xalloc.h.
62490         (memrchr): Remove decl.
62491         (dir_name_r): Remove.
62492         (dir_len): Renamed from dirlen.  All callers changed.
62493         Rewrite in terms of base_name, for simplicity and consistency.
62494         (dir_name): Never return NULL.  All callers changed.
62495         Do not include <stdlib.h> in test program; no longer needed.
62496         return 0; is fine for test program.
62497
62498         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62499         New macros.
62500         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62501
62502         * lib/path-concat.c (path_concat): Use base_len to compute
62503         base length, not strlen; this means we cannot rely on memcpy
62504         to null-terminate.
62505
62506         * lib/same.c (STREQ): Remove.
62507         (same_name): Handle the case where the basename ends in trailing '/'.
62508
62509         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62510         a slash was stripped.  Do not strip the last slash after a
62511         file system prefix.
62512
62513 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62514
62515         * lib/Makefile.am (libfetish_a_SOURCES):
62516         Add strftime.c, since we now compile it on all hosts.
62517
62518         * lib/strftime.c (my_strftime):
62519         Define to nstrftime if emacs, but only if my_strftime is not defined.
62520         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62521         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62522         Add one more extra argument: a nanoseconds value.
62523         All uses changed.
62524         (ns): New macro.
62525         (my_strftime function): Add %N format.
62526         (emacs_strftimeu): Renamed from emacs_strftime,
62527         with extra ut argument.
62528
62529 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62530
62531         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62532
62533 2001-04-21  Jim Meyering  <meyering@lucent.com>
62534
62535         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62536         doesn't interfere.
62537
62538 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62539
62540         * m4/ftruncate.m4: Check for chsize.
62541         Link with ftruncate.o unconditionally if ftruncate is missing.
62542         This was required when cross-compiling to i586-mingw32msvc.
62543
62544 2001-04-08  Jim Meyering  <meyering@lucent.com>
62545
62546         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62547         recomputed; that's necessary when the offset spans a DST transition.
62548         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62549
62550 2001-04-02  Jim Meyering  <meyering@lucent.com>
62551
62552         * lib/regex.h, regex.c: Update from GNU libc.
62553
62554 2001-03-24  Jim Meyering  <meyering@lucent.com>
62555
62556         * m4/jm-macros.m4: Require autoconf-2.49d.
62557
62558 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62559
62560         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62561
62562 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62563
62564         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62565
62566 2001-03-17  Jim Meyering  <meyering@lucent.com>
62567
62568         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62569         now that the version in autoconf is equivalent.
62570         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62571
62572         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62573         Suggestion from Akim Demaille.
62574
62575         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62576         (jm_PREREQ_TEMPNAME): New function.
62577
62578 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62579
62580         * lib/tempname.c (uint64_t): Define to uintmax_t if
62581         not defined, and if UINT64_MAX is not defined.
62582         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62583         Reported by John David Anglin.
62584
62585 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62586
62587         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62588         resolve alias if codeset is empty.
62589         * lib/config.charset (BeOS): Use wildcard syntax.
62590
62591 2001-03-13  Jim Meyering  <meyering@lucent.com>
62592
62593         * lib/path-concat.c (path_concat)
62594         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62595         concatenating e.g., `C:' and `foo'.
62596         From Bruno Haible.
62597
62598 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62599
62600         * lib/localcharset.c (locale_charset): Don't use
62601         setlocale(LC_CTYPE,NULL). Don't return NULL.
62602         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62603
62604 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62605
62606         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62607         support for DOS/DJGPP.
62608
62609 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62610
62611         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62612         lacks mkstemp.  Compile our own tempname.c if we compile our own
62613         mkstemp.c, as mkstemp relies on tempname.
62614
62615 2001-03-01  Jim Meyering  <meyering@lucent.com>
62616
62617         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62618         AH_VERBATIM really does output its argument verbatim.
62619
62620 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62621
62622         * lib/Makefile.am (libfetish_a_SOURCES):
62623         Add dup-safer.c, fopen-safer.c.
62624         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62625
62626         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62627         * lib/unistd-safer.h: New files.
62628
62629 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62630
62631         The mkstemp replacement is taken from glibc 2.2.2, with some
62632         portability fixes for use outside glibc, as follows:
62633
62634         * lib/tempname.c (struct_stat64): New macro.
62635         (direxists, __gen_tempname): Use it.
62636         This avoids a portability problem with Solaris 8.
62637
62638         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62639         (<stddef.h>, <stdint.h>, <string.h>):
62640         Include only if STDC_HEADERS || _LIBC.
62641         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62642         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62643         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62644         (__set_errno): Define this macro if <errno.h> doesn't.
62645         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62646         Define these macros if <stdio.h> doesn't.
62647         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62648         Define these macros if <sys/stat.h>
62649         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62650         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62651         __xstat64): Define if not _LIBC.
62652         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62653         (__gen_tempname): Invoke gettimeofday only if
62654         HAVE_GETTIMEOFDAY || _LIBC;
62655         otherwise, fall back on plain "time".
62656         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62657
62658         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62659
62660         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62661
62662 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62663
62664         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62665
62666 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62667
62668         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62669         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62670         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62671         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62672
62673 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62674
62675         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62676         Remove workaround macros for hosts that have mbrtowc but not
62677         mbstate_t, as we now insist on proper declarations for both
62678         before using mbrtowc.
62679
62680 2001-02-17  Jim Meyering  <meyering@lucent.com>
62681
62682         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62683         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62684         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62685         UnixWare 7.1.1.
62686
62687         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62688         rather than AC_CACHE_VAL.
62689
62690 2001-02-17  Jim Meyering  <meyering@lucent.com>
62691
62692         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62693         around included file name.
62694
62695         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62696
62697         * lib/strftime.c: Update from GNU libc (the only changes were to
62698         comments).
62699
62700 2001-02-17  Jim Meyering  <meyering@lucent.com>
62701
62702         * lib/regex.c: Update from libc.
62703
62704 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62705
62706         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62707         clash.
62708
62709 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62710
62711         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62712         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62713         Reported by Mark Hounschell via Paul Eggert.
62714
62715 2001-02-07  Jim Meyering  <meyering@lucent.com>
62716
62717         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62718
62719 2001-02-05  Jim Meyering  <meyering@lucent.com>
62720
62721         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62722         it includes the patch required for `large file' support with at least
62723         HP-UX's 10.20 /bin/cc.
62724
62725 2001-02-03  Jim Meyering  <meyering@lucent.com>
62726
62727         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62728         AS_IF, now that it works once again (mysteriously).
62729         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62730
62731 2001-01-30  Jim Meyering  <meyering@lucent.com>
62732
62733         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62734         * m4/chown.m4: Rename conftestchown to conftest.chown.
62735         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62736         s/conftestdir2/conftest.d2/.
62737         * m4/utimes.m4: s/conftestdata/conftest.data/
62738         Inspired by Pavel Roskin's change in autoconf.
62739
62740 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62741
62742         * lib/config.charset: Update for FreeBSD 4.2.
62743
62744 2001-01-27  Jim Meyering  <meyering@lucent.com>
62745
62746         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62747         a use of AS_IF.
62748         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62749
62750 2001-01-26  Jim Meyering  <meyering@lucent.com>
62751
62752         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62753         quotearg.c includes it.
62754
62755 2001-01-26  Jim Meyering  <meyering@lucent.com>
62756
62757         * lib/quotearg.c: Include stddef.h.
62758         * lib/quote.c: Include stddef.h.
62759         Reported by Axel Kittenberger.
62760
62761         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62762         line in double quotes so that it evokes a better diagnostic.
62763         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62764         Reported by Axel Kittenberger.
62765
62766 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62767
62768         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62769         as if it was a `charset'.
62770
62771 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62772
62773         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62774         has const.
62775
62776 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62777
62778         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62779         to avoid a warning.  Add back 'const' to inptr.
62780
62781 2001-01-20  Jim Meyering  <meyering@lucent.com>
62782
62783         Be sure that headers are checked before used in code compiled
62784         for the type checks.
62785         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62786         In place of that, invoke jm_CHECK_ALL_TYPES.
62787         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62788         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62789         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62790         The check for ssize_t was mistakenly run before the test for unistd.h.
62791
62792         The configure-time check for stdbool.h was missing.
62793         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62794         (jm_PREREQ_HASH): New function.
62795
62796 2001-01-17  Jim Meyering  <meyering@lucent.com>
62797
62798         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62799         for autoconf-2.49c.
62800         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62801
62802 2001-01-16  Jim Meyering  <meyering@lucent.com>
62803
62804         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62805         From Bruno Haible.
62806
62807 2001-01-14  Jim Meyering  <meyering@lucent.com>
62808
62809         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62810         foo and bar.  Create conftestdir/ in the script, not in the C code.
62811         Remove directories in the script, not in the C code.
62812         Remove conftestdir{,2} before trying to create the directory.
62813         Make the entire configure script fail if the mkdir fails.
62814
62815 2001-01-14  Jim Meyering  <meyering@lucent.com>
62816
62817         * lib/rename.c: New file.  From Volker Borchert.
62818         Include stdlib.h, string.h or strings.h, and xalloc.h.
62819         Use strip_trailing_slashes rather than open-coding it.
62820
62821 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62822
62823         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62824
62825 2001-01-03  Jim Meyering  <meyering@lucent.com>
62826
62827         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62828         of local `inptr' to avoid warning with some system declarations of
62829         iconv.
62830
62831 2001-01-02  Volker Borchert  <bt@teknon.de>
62832
62833         * m4/rename.m4: New file.
62834         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62835
62836 2001-01-01  Jim Meyering  <meyering@lucent.com>
62837
62838         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62839         even on systems with utmpx.h.  It's necessary for the declaration of
62840         utmp's ut_user member.  Reported by Andreas Jaeger.
62841
62842         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62843         available. They are required for the declarations of getgrgid and
62844         getpwuid resp.
62845         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62846         Reported by Andreas Jaeger.
62847
62848 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62849
62850         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62851         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62852         so `make install' also works in VPATH builds.
62853
62854 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62855
62856         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62857         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62858         can be used in subdirectories.
62859
62860 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62861
62862         * lib/modechange.c: Do not assume that mode_t uses the
62863         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62864         the other-execute bit of FOO even if S_IXOTH != 1.
62865
62866         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62867         WOTH, XOTH, ALLM): New macros.
62868         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62869          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62870         Use them.
62871         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62872         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62873         (mode_compile):
62874         No need to use uintmax_t; unsigned long is long enough.
62875         Don't bother to get suffix since we don't use it.
62876
62877 2000-12-26  Jim Meyering  <meyering@lucent.com>
62878
62879         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62880         better with autoheader.
62881
62882 2000-12-24  Jim Meyering  <meyering@lucent.com>
62883
62884         * lib/hash.c (is_prime): Return explicit boolean values.
62885         (hash_get_first): Return NULL to appease Irix5.6's 89.
62886         Reported by Nelson Beebe.
62887
62888 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62889
62890         * lib/localcharset.c (locale_charset): Add support for Win32.
62891
62892 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62893
62894         * lib/physmem.h, lib/physmem.c: New files.
62895
62896         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62897         (noinst_HEADERS): Add physmem.h.
62898
62899         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62900         't' for compatibility with Solaris 8 sort.
62901
62902 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62903
62904         * lib/config.charset: Add support for BeOS.
62905
62906 2000-12-17  Jim Meyering  <meyering@lucent.com>
62907
62908         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62909         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62910
62911 2000-12-16  Jim Meyering  <meyering@lucent.com>
62912
62913         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62914         N and M) would have treated it like `chown N:N FILE'.
62915
62916         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62917
62918 2000-12-16  Jim Meyering  <meyering@lucent.com>
62919
62920         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62921         SHELLS_FILE to a file name that's useful on djgpp systems.
62922         Include stdlib.h.
62923         (ADDITIONAL_DEFAULT_SHELLS): Define.
62924         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62925         Based mostly on a patch from Prashant TR.
62926
62927 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
62928
62929         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62930         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62931         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62932
62933 2000-12-08  Andreas Schwab  <schwab@suse.de>
62934
62935         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62936         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62937
62938 2000-12-07  Jim Meyering  <meyering@lucent.com>
62939
62940         * lib/stripslash.c (ISSLASH): Define.
62941         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62942         `/'.
62943         From Prashant TR.
62944
62945         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62946         (dir_name_r): Declare this function as static.
62947         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62948         manifest itself on a name containing a mix of slashes and
62949         backslashes.
62950         Make this function work with names starting with a DOS-style
62951         drive letter and colon prefix.
62952         (dir_name): Append `.' if necessary.
62953         Based mostly on patches from Prashant TR and Eli Zaretskii.
62954
62955         * lib/dirname.h (dir_name_r): Remove prototype.
62956
62957 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62958
62959         * m4/off_t-format.m4: Remove this file.
62960         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62961
62962 2000-12-06  Jim Meyering  <meyering@lucent.com>
62963
62964         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62965         replacement strtoull, we may well need the replacement strtoul, too.
62966         Check for declarations of strtoul and strtoull.
62967         Check for strtol.  Mainly as a cue to cause automake to include
62968         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62969         Check for limits.h -- strtol.c needs it.
62970
62971 2000-12-05  Jim Meyering  <meyering@lucent.com>
62972
62973         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62974
62975 2000-12-04  Jim Meyering  <meyering@lucent.com>
62976
62977         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62978         Also include memory.h, stdlib.h, unistd.h if appropriate.
62979         Reported by Andreas Jaeger (conflicting declaration of malloc).
62980
62981 2000-12-02  Jim Meyering  <meyering@lucent.com>
62982
62983         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62984         * m4/jm-macros.m4 (jm_MACROS): require it.
62985
62986 2000-12-02  Jim Meyering  <meyering@lucent.com>
62987
62988         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62989
62990 2000-12-01  Paul Eggert  <eggert@twinsun.com>
62991
62992         * lib/memrchr.c: Include <config.h> before any system include file.
62993
62994 2000-11-30  Jim Meyering  <meyering@lucent.com>
62995
62996         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62997
62998 2000-11-30  Jim Meyering  <meyering@lucent.com>
62999
63000         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
63001
63002 2000-11-29  Paul Eggert  <eggert@twinsun.com>
63003
63004         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
63005
63006 2000-11-26  Jim Meyering  <meyering@lucent.com>
63007
63008         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
63009
63010 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63011
63012         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63013         size of (size_t) -1; it's not portable.
63014
63015 2000-11-17  Jim Meyering  <meyering@lucent.com>
63016
63017         * lib/strstr.c: Update from GNU libc.
63018
63019 2000-11-17  Akim Demaille  <akim@epita.fr>
63020
63021         * lib/obstack.h: Formatting changes.
63022         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63023         prevent type checking.
63024         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63025         cast the value to (void *): assigning a `foo *' to a `void *'
63026         variable is valid.
63027         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63028
63029 2000-11-16  Jim Meyering  <meyering@lucent.com>
63030
63031         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63032
63033 2000-11-11  Jim Meyering  <meyering@lucent.com>
63034
63035         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63036
63037 2000-11-10  Jim Meyering  <meyering@lucent.com>
63038
63039         * lib/obstack.h: Update from GNU libc.
63040         * lib/obstack.c: Likewise.
63041
63042 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63043
63044         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63045
63046 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63047
63048         * lib/getusershell.c (setusershell): Use rewind rather than
63049         fseek/fseeko, to avoid configuration hassles with fseeko.
63050         Don't bother opening SHELLS_FILE if shellstream is NULL;
63051         it's not necessary.
63052
63053 2000-11-05  Jim Meyering  <meyering@lucent.com>
63054
63055         * lib/makepath.h (make_dir): Declare.
63056         * lib/makepath.c (make_dir): Remove `static' attribute.
63057         Tweak a comment.
63058
63059 2000-11-04  Jim Meyering  <meyering@lucent.com>
63060
63061         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63062
63063 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63064
63065         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63066         last one in a bucket, advance to the next bucket.
63067
63068 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63069
63070         * lib/fnmatch.c: Do not comment out all the code if we are using
63071         the GNU C library, because in some cases we are replacing buggy
63072         code in the GNU C library itself.
63073
63074 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63075
63076         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63077         (regex_compile): Catch bogus \(\1\).
63078
63079 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63080
63081         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63082         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63083         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63084
63085 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63086
63087         * lib/error.h, getline.h, modechange.h:
63088         Remove "2000" from Copyright line, as the file hasn't been
63089         changed this year other than in the copyright notice.
63090
63091         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63092         was changed this year.
63093
63094 2000-10-29  Jim Meyering  <meyering@lucent.com>
63095
63096         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63097         renaming.
63098         * m4/ls-mntd-fs.m4: Likewise
63099
63100 2000-10-29  Jim Meyering  <meyering@lucent.com>
63101
63102         * lib/xstat.in: Fix grammar in comment.
63103
63104 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63105
63106         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63107         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63108         doesn't define __restrict_arr.
63109
63110 2000-10-28  Jim Meyering  <meyering@lucent.com>
63111
63112         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63113         (jm_PREREQ_MEMCHR): New function.
63114
63115 2000-10-28  Jim Meyering  <meyering@lucent.com>
63116
63117         * lib/memchr.c: Update from libc.
63118         Adjust for portability:
63119         [HAVE_STDLIB_H]: Include stdlib.h.
63120         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63121         Undef __memchr, too.
63122         [!weak_alias]: Define __memchr to memchr.
63123
63124         * lib/regex.c: Update from libc.
63125         * lib/regex.h: Likewise.
63126         * lib/getopt1.c: Likewise.
63127         * lib/memcmp.c: Likewise.
63128
63129         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63130         Avoid using fseek, when possible -- it's broken by design.
63131         Patch by Ulrich Drepper.
63132
63133 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63134
63135         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63136         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63137         Giving in to popular pressure to shut up the compiler with casts.
63138
63139 2000-10-26  Jim Meyering  <meyering@lucent.com>
63140
63141         * lib/strftime.c: Update from libc.
63142
63143 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63144
63145         * regex.c: More `unsigned char' -> `re_char' changes.
63146         Also change several `int' into `re_wchar_t'.
63147         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63148         (PUSH_FAILURE_POINTER): Don't cast any more.
63149         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63150         We want GCC to complain, since this piece of code makes
63151         re_match non-reentrant, which *should* be fixed.
63152         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63153         (EXTEND_BUFFER): Use RETALLOC.
63154         (SET_LIST_BIT): Don't cast.
63155         (re_wchar_t): New type.
63156         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63157         that those two functions will always properly return.
63158         (IMMEDIATE_QUIT_CHECK): Cast to void.
63159         (analyse_first): Use recursion rather than an explicit stack.
63160         (re_compile_fastmap): Can't fail anymore.
63161         (re_search_2): Don't check re_compile_fastmap for failure.
63162         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63163         Now also sets the new value (passed in a new argument).
63164         (re_match_2_internal): Use it.
63165         Also, use a new var `reg' of type size_t when looping through regs
63166         rather than reuse the inappropriate `mcnt'.
63167
63168 2000-10-25  Jim Meyering  <meyering@lucent.com>
63169
63170         * lib/obstack.c: Update from libc.
63171
63172 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63173
63174         * regex.c (regex_compile): Change the way of handling a range from
63175         a char less than 256 to a char not less than 256.
63176
63177 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63178
63179         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63180         NT-Emacs only.
63181         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63182         so that re_search functions only quit when callers expect them to.
63183
63184 2000-10-23  Jim Meyering  <meyering@lucent.com>
63185
63186         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63187         wrong.  That set_locale call must not have any side effects.
63188         From Paul Eggert.
63189
63190 2000-10-22  Jim Meyering  <meyering@lucent.com>
63191
63192         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63193         [CYCLIC]: Remove now-unused definition.
63194
63195         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63196         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63197         Suggestion from Ulrich Drepper.
63198
63199 2000-10-21  Jim Meyering  <meyering@lucent.com>
63200
63201         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63202         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63203         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63204
63205 2000-10-21  Jim Meyering  <meyering@lucent.com>
63206
63207         * lib/dirname.c (memrchr): Declare if necessary.
63208         (dir_name): Remove the restriction that there be no
63209         trailing slashes.  Now, this code skips past them, effectively
63210         ignoring them.
63211         [TEST_DIRNAME] (main): New unit tests.
63212
63213         * lib/memrchr.c: New file from GNU libc.
63214         Undef __memrchr, too.
63215         [!weak_alias]: Define __memrchr to memrchr.
63216         Guard weak_alias use with `#ifdef weak_alias'.
63217
63218 2000-10-21  Jim Meyering  <meyering@lucent.com>
63219
63220         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63221         (dir_name): Use dir_name_r.
63222         * lib/dirname.h (dir_name_r): Declare it.
63223
63224 2000-10-17  Jim Meyering  <meyering@lucent.com>
63225
63226         * lib/quote.h (PARAMS): Define and use.
63227         Reported by Akim Demaille.
63228
63229         * lib/getopt.c: Update from libc.
63230
63231 2000-10-16  Jim Meyering  <meyering@lucent.com>
63232
63233         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63234         setlocale.
63235         From Jan Fedak.
63236
63237 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63238
63239         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63240
63241 2000-09-25  Jim Meyering  <meyering@lucent.com>
63242
63243         * lib/md5.h (rol): Define (from GnuPG).
63244
63245         * lib/sha.c: Give credit (GnuPG) where due.
63246         (M): Use rol rather than open-coding it.
63247         Add a FIXME comment.
63248
63249 2000-09-21  Jim Meyering  <meyering@lucent.com>
63250
63251         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63252         Reported by Michael Stone.
63253
63254 2000-09-20  Jim Meyering  <meyering@lucent.com>
63255
63256         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63257         (noinst_HEADERS): Add sha.h.
63258         Based on code from Scott G. Miller and from GnuPG.
63259
63260 2000-09-18  Jim Meyering  <meyering@lucent.com>
63261
63262         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63263         LIBS. Otherwise, everyone ends up linking with -lelf for some
63264         configurations.
63265         Reported by Mike Stone.
63266
63267 2000-09-15  Jim Meyering  <meyering@lucent.com>
63268
63269         * lib/regex.c: Update from libc.
63270
63271 2000-09-10  Jim Meyering  <meyering@lucent.com>
63272
63273         * lib/getopt.c (_getopt_internal): Update from glibc.
63274
63275 2000-09-09  Jim Meyering  <meyering@lucent.com>
63276
63277         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63278         think it should be used as a general replacement for isascii.
63279         * lib/fnmatch.c: Likewise.
63280         * lib/mbswidth.c: Likewise
63281         * lib/regex.c: Likewise.
63282
63283         Don't use atoi.
63284         * lib/userspec.c: Include sys/param.h and limits.h.
63285         Include xstrtol.h.
63286         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63287         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63288         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63289         UID, GID.  Check range.
63290
63291 2000-09-06  Jim Meyering  <meyering@lucent.com>
63292
63293         * lib/getopt.c (_getopt_internal): Update from glibc.
63294
63295 2000-08-30  Jim Meyering  <meyering@lucent.com>
63296
63297         * lib/strftime.c: Merge in changes from GNU libc.
63298
63299 2000-08-26  Jim Meyering  <meyering@lucent.com>
63300
63301         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63302         * m4/fpending.m4: New file.
63303
63304 2000-08-26  Jim Meyering  <meyering@lucent.com>
63305
63306         * lib/closeout.c: Include "__fpending.h".
63307         (close_stdout_status): Return right away if there's nothing to flush.
63308
63309         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63310         * lib/__fpending.c: New file.
63311         * lib/__fpending.h: New file.
63312
63313 2000-08-20  Jim Meyering  <meyering@lucent.com>
63314
63315         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63316         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63317         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63318
63319 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63320
63321         Improve fileutils installation on systems where running
63322         programs (like install) can't be unlinked.
63323         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63324         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63325
63326 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63327
63328         Standardize on "memory exhausted" instead of "Memory exhausted"
63329         or "virtual memory exhausted".
63330         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63331         "virtual memory exhausted".
63332         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63333         our own message.
63334         * lib/userspec.c (parse_user_spec): Likewise.
63335         * lib/bumpalloc.h: comment fix
63336         * lib/same.c, userspec.c: Include xalloc.h.
63337
63338         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63339         not char *const and pointing to a constant array.
63340         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63341         (xrealloc): Comment fix.
63342
63343         * lib/userspec.c (parse_user_spec):
63344         Don't translate a message until just before returning,
63345         to avoid unnecessary translation.
63346
63347 2000-08-07  Jim Meyering  <meyering@lucent.com>
63348
63349         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63350         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63351         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63352         getgroups.c, gethostname.c, getopt.h, group-member.c,
63353         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63354         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63355         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63356         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63357         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63358         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63359         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63360         yesno.c: Back out Copyright date changes for each file with no change
63361         this year.  This eases coordination with other programs using the same
63362         source code modules.  From Paul Eggert.
63363
63364 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63365
63366         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63367         not char, for compatibility with glibc 2.1.3 strftime.c.
63368
63369 2000-08-03  Greg McGary  <greg@mcgary.org>
63370
63371         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63372         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63373         (EXTEND_BUFFER): Use them.
63374
63375 2000-08-01  Jim Meyering  <meyering@lucent.com>
63376
63377         * lib/dirname.c (ISSLASH): Define.
63378         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63379         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63380         both `\' and `/' may be use as path separators.
63381         Based on a patch from Prashant TR.
63382
63383 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63384
63385         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63386         slot vector a constant, since it might get modified.
63387
63388 2000-07-31  Jim Meyering  <meyering@lucent.com>
63389
63390         * lib/xmalloc.c: Use `virtual memory exhausted', not
63391         `Memory exhausted'.
63392         * lib/obstack.c (print_and_abort): Likewise.
63393
63394 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63395
63396         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63397         buffer, so that the caller can always quote one small
63398         component of a "memory exhausted" message in slot 0.
63399         From a suggestion by Jim Meyering.
63400
63401 2000-07-30  Jim Meyering  <meyering@lucent.com>
63402
63403         * lib/makepath.c (make_path): Quote the other instance, too.
63404
63405         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63406         (STATIC_BUF_SIZE): Define.
63407         (quotearg_n_options): Use only statically allocated storage when
63408         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63409         than STATIC_BUF_SIZE.
63410
63411 2000-07-29  Jim Meyering  <meyering@lucent.com>
63412
63413         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63414         * lib/dirname.c (dir_name): Likewise.
63415
63416         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63417         `/'.
63418
63419         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63420         (dir_name): Assert that there are no trailing slashes.
63421
63422 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63423
63424         * lib/mbswidth.h (mbswidth): Add a flags argument.
63425         (mbswidth): New declaration.
63426         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63427         * lib/mbswidth.c (mbswidth): Add a flags argument.
63428         (mbsnwidth): New function.
63429
63430 2000-07-24  Jim Meyering  <meyering@lucent.com>
63431
63432         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63433
63434 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63435
63436         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63437
63438 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63439
63440         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63441         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63442         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63443         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63444         invoke multibyte primitives.
63445
63446 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63447
63448         * lib/quotearg.c:
63449         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63450         so that mbstate_t is always defined.
63451
63452         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63453         be 1 in at least one GCC installation, and this configuration
63454         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63455         performance on hosts that have mbrtowc but have only unibyte
63456         locales, but I assume these hosts are rare.
63457
63458 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63459
63460         * lib/mbswidth.c (_XOPEN_SOURCE):
63461         Don't define; this causes problems on Solaris 7.
63462         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63463
63464 2000-07-23  Jim Meyering  <meyering@lucent.com>
63465
63466         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63467         too: getgrgid, getpwuid, getuid.
63468
63469 2000-07-23  Jim Meyering  <meyering@lucent.com>
63470
63471         * lib/basename.c (base_name): Add an assertion.
63472
63473 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63474
63475         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63476         shadow its mbsinit function.
63477
63478 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63479
63480         * lib/mbswidth.h: New file.
63481         * lib/mbswidth.c: New file.
63482         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63483         (noinst_HEADERS): Add mbswidth.h.
63484
63485 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63486
63487         * lib/config.charset: Add support for FreeBSD. Improve support for
63488         HP-UX and IRIX 6.
63489
63490 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63491
63492         * m4/mbswidth.m4: New file.
63493         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63494
63495 2000-07-15  Jim Meyering  <meyering@lucent.com>
63496
63497         * lib/makepath.c: Include quote.h.
63498         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63499         corresponding argument in a `quote (...)' call.
63500         Give better diagnostics.
63501
63502         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63503         (noinst_HEADERS): Add quote.h.
63504
63505         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63506         from tar's src/misc.c.
63507         * lib/quote.h: New file.  Prototypes for same.
63508
63509 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63510
63511         From a suggestion by Bruno Haible.
63512         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63513         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63514         to decide whether to define the BeOS workaround macro;
63515         this adjusts to the change to AC_MBSTATE_T.
63516
63517 2000-07-14  Jim Meyering  <meyering@lucent.com>
63518
63519         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63520         jm_AC_TYPE_UINTMAX_T.
63521
63522 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63523
63524         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63525
63526         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63527         quotearg_buffer_restyled): Add support for
63528         clocale_quoting_style.  Undo previous change to
63529         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63530         and "{RIGHT QUOTATION MARK}" msgids.
63531
63532 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63533
63534         From a suggestion by Bruno Haible.
63535         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63536         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63537         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63538         and mbstate_t, to a single-part test that simply defines mbstate_t.
63539         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63540         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63541
63542 2000-07-10  Jim Meyering  <meyering@lucent.com>
63543
63544         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63545
63546         * m4/gnu-source.m4: Output to confdefs.h directly.
63547         Suggestion from Akim Demaille.
63548
63549 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63550
63551         The old behavior of quoting `like this' doesn't look good with
63552         newer, ISO-style fonts.  See:
63553         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63554
63555         Instead, quote "like this" by default.  Let the translator
63556         tailor the locale-specific quoting behavior by providing
63557         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63558
63559         * lib/quotearg.c (N_): New macro.
63560         (gettext_default): New function.
63561         (quotearg_buffer_restyled): Use
63562         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63563         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63564
63565 2000-07-09  Jim Meyering  <meyering@lucent.com>
63566
63567         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63568         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63569
63570         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63571         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63572
63573 2000-07-09  Jim Meyering  <meyering@lucent.com>
63574
63575         * lib/Most files: Update copyright dates to include 2000.
63576
63577 2000-07-08  Jim Meyering  <meyering@lucent.com>
63578
63579         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63580         if not defined.
63581         (xgethostname): Remove now-unnecessary #ifdef.
63582         Move declaration of `err' into loop where it's used.
63583
63584 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63585         and Bruno Haible  <haible@clisp.cons.org>
63586
63587         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63588         only if the test for an object-type mbstate_t fails.  This
63589         prevents us from mistakenly reporting that mbstate_t is a
63590         system object type after we "#define mbstate_t int" to work
63591         around its lack.
63592
63593 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63594         and Bruno Haible  <haible@clisp.cons.org>
63595
63596         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63597
63598 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63599
63600         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63601         to strerror_r.
63602         Include <ctype.h> for use of isalpha.
63603
63604 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63605
63606         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63607         by allocating a larger buffer. Test the gethostname return value for
63608         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63609         returns an error and ENAMETOOLONG isn't defined.
63610
63611 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63612
63613         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63614         dimension.
63615
63616 2000-07-04  Jim Meyering  <meyering@lucent.com>
63617
63618         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63619         of the deprecated AC_CHECKING.
63620
63621 2000-07-04  Jim Meyering  <meyering@lucent.com>
63622
63623         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63624         Reported by Bruno Haible.
63625
63626 2000-07-04  Jim Meyering  <meyering@lucent.com>
63627
63628         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63629         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63630         lacks mbrtowc.
63631
63632 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63633
63634         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63635         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63636
63637 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63638         and Bruno Haible  <haible@clisp.cons.org>
63639
63640         * lib/quotearg.c (mbrtowc):
63641         Assign to *pwc, and return 1 only if result is nonzero.
63642         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63643
63644 2000-07-03  Jim Meyering  <meyering@lucent.com>
63645
63646         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63647
63648 2000-07-03  Jim Meyering  <meyering@lucent.com>
63649
63650         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63651         This is necessary to get a definition of e.g., UTMP_FILE on
63652         HP-UX 10.20.
63653         From Bob Proulx.
63654
63655 2000-07-02  Jim Meyering  <meyering@lucent.com>
63656
63657         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63658
63659         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63660         AC_LIBOBJ(function_name).
63661         * m4/chown.m4: Likewise.
63662         * m4/fnmatch.m4: Likewise.
63663         * m4/ftruncate.m4: Likewise.
63664         * m4/getgroups.m4: Likewise.
63665         * m4/getline.m4: Likewise.
63666         * m4/group-member.m4: Likewise.
63667         * m4/jm-macros.m4: Likewise.
63668         * m4/lstat.m4: Likewise.
63669         * m4/malloc.m4: Likewise.
63670         * m4/memcmp.m4: Likewise.
63671         * m4/nanosleep.m4: Likewise.
63672         * m4/putenv.m4: Likewise.
63673         * m4/realloc.m4: Likewise.
63674         * m4/regex.m4: Likewise.
63675         * m4/stat.m4: Likewise.
63676         * m4/strftime.m4: Likewise.
63677
63678 2000-07-02  Jim Meyering  <meyering@lucent.com>
63679
63680         * lib/quotearg.c (mbstate_t): Don't define here.
63681
63682 2000-07-02  Jim Meyering  <meyering@lucent.com>
63683
63684         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63685
63686 2000-07-01  Jim Meyering  <meyering@lucent.com>
63687
63688         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63689
63690 2000-07-01  Jim Meyering  <meyering@lucent.com>
63691
63692         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63693         problem.
63694
63695 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63696
63697         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63698         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63699
63700 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63701
63702         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63703         per change in ../m4/ls-mntd-fs.m4.
63704         (read_filesystem_list): Ignore symbolic links.
63705
63706 2000-06-29  Jim Meyering  <meyering@lucent.com>
63707
63708         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63709         for declaration of strcmp.
63710
63711         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63712
63713         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63714         Avoid warning by casting result to `char *' to remove `const'.
63715
63716 2000-06-28  Jim Meyering  <meyering@lucent.com>
63717
63718         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63719         included by quotearg.c, for which we perform this test.  From
63720         Bruno Haible.
63721
63722 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63723
63724         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63725         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63726         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63727
63728 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63729
63730         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63731
63732 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63733
63734         savedir now sets errno on failure and invokes xmalloc to get memory.
63735         Fix a couple of other minor bugs while we're at it.
63736
63737         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63738         (NAMLEN): Remove macro.
63739         (malloc, realloc): Remove decls.
63740         (stpcpy): Likewise.
63741         ("xalloc.h"): Include.
63742         (NAME_SIZE_DEFAULT): New macro.
63743         (savedir): Use xmalloc / xrealloc to allocate memory.
63744         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63745         Skip "" directory entries.
63746         Use strlen to calculate directory entry length, since the old method
63747         is rarely used these days and isn't worth supporting.
63748         Don't use a pointer after freeing it.
63749         Check for integer overflow when calculating allocation size.
63750         Use memcpy to copy entries, instead of stpcpy.
63751         Set errno properly when returning NULL.
63752         Check for readdir error.
63753
63754 2000-06-26  Jim Meyering  <meyering@lucent.com>
63755
63756         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63757
63758 2000-06-25  Jim Meyering  <meyering@lucent.com>
63759
63760         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63761         Linux header bug when _XOPEN_SOURCE is defined to 500.
63762
63763 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63764
63765         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63766         deficiency.
63767
63768 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63769
63770         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63771         Include xalloc.h.
63772         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63773
63774 2000-06-24  Jim Meyering  <meyering@lucent.com>
63775
63776         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63777         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63778         for which strerror does return char*, but which lacks a conveniently
63779         accessible declaration of the function.  If the compile-test says
63780         strerror_r doesn't work, then resort to a `run'-test that works on
63781         BeOS and segfaults on DEC Unix.
63782
63783 2000-06-24  Jim Meyering  <meyering@lucent.com>
63784
63785         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63786
63787 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63788
63789         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63790         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63791
63792 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63793
63794         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63795         (mbrtowc, mbstate_t): Define substitutes if
63796         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63797         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63798         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63799
63800 2000-06-23  Jim Meyering  <meyering@lucent.com>
63801
63802         * m4/afs.m4: Add missing AC_MSG_RESULT.
63803         Reported by Bruno Haible.
63804
63805         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63806         Suggestion from Bruno Haible.
63807
63808 2000-06-23  Jim Meyering  <meyering@lucent.com>
63809
63810         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63811
63812 2000-06-21  Jim Meyering  <meyering@lucent.com>
63813
63814         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63815
63816 2000-06-21  Jim Meyering  <meyering@lucent.com>
63817
63818         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63819         (noinst_HEADERS): Add getstr.h.
63820
63821         * lib/getline.c (getstr): Move into a separate file.
63822         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63823         the following changes: new parameter, delim2; both delim[12]
63824         parameters have type `int', not `char'.  The latter would lose
63825         with 8-bit delimiters.
63826         * lib/getstr.h: New file.
63827
63828 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63829
63830         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63831         than 1024, return a memory chunk of least possible size, instead
63832         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63833         Use free/xmalloc instead of xrealloc to avoid copying for very long
63834         paths.
63835
63836 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63837
63838         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63839         the empty string.
63840
63841 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63842
63843         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63844         address, not strdup.  Include <stdlib.h> and don't declare free().
63845
63846 2000-06-19  Jim Meyering  <meyering@lucent.com>
63847
63848         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63849
63850 2000-06-18  Jim Meyering  <meyering@lucent.com>
63851
63852         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63853
63854         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63855         `checking whether...' message to be consistent with that of the
63856         lstat test.
63857
63858 2000-06-18  Jim Meyering  <meyering@lucent.com>
63859
63860         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63861         Besides, these days every porting target provides a mkdir function.
63862
63863         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63864         needed. (this snippet comes from src/system.h).
63865
63866 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63867
63868         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63869
63870 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63871
63872         * lib/human.c (adjust_value): New function.
63873         (human_readable_inexact): Apply rounding style even when
63874         printing approximate values.
63875
63876 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63877
63878         * lib/human.c (human_readable_inexact): Allow an input block
63879         size that is not a multiple of the output block size, and vice versa.
63880         Reported by Piergiorgio Sartor.
63881
63882 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63883
63884         * lib/getdate.y (get_date): Apply relative times after time
63885         zone indicator, not before.  Reported by Todd A. Jacobs.
63886
63887 2000-06-13  Jim Meyering  <meyering@lucent.com>
63888
63889         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63890
63891         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63892
63893 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63894
63895         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63896
63897 2000-06-12  Jim Meyering  <meyering@lucent.com>
63898
63899         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63900         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63901         optional argument.
63902         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63903         the optional argument, `lib'.
63904
63905 2000-06-08  Jim Meyering  <meyering@lucent.com>
63906
63907         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63908
63909 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63910
63911         Rewrite largefile configuration so that we don't need to run
63912         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63913         AC_CANONICAL_HOST in configure.in -- jmm]
63914
63915         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63916         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63917         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63918         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63919         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63920         All uses changed.
63921         Instead of inspecting the output of getconf, try to compile the
63922         test program without and with the macro definition.
63923         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63924         for getconf.  Instead, check for the needed flags by compiling
63925         test programs.
63926
63927 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63928
63929         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63930
63931 2000-06-04  Jim Meyering  <meyering@lucent.com>
63932
63933         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63934         SunOS 4.1.4 for which gid_t is an unsigned type.
63935
63936 2000-06-03  Jim Meyering  <meyering@lucent.com>
63937
63938         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63939         now that autoconf requires that.
63940
63941         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63942         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63943         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63944
63945 2000-06-03  Jim Meyering  <meyering@lucent.com>
63946
63947         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63948
63949 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63950
63951         * m4/glibc21.m4: New file.
63952         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63953
63954 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63955
63956         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63957         newer, don't install charset.alias.
63958         * lib/config.charset: Change the Linux/glibc rules so they become empty
63959         on glibc-2.1 or newer.
63960
63961 2000-06-02  Jim Meyering  <meyering@lucent.com>
63962
63963         * lib/mountlist.c: Back out last change.  Instead, do this...
63964         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63965         me_dummy member using the same `ignore'-testing code.
63966         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63967         fs_type strings.
63968         From Mark D. Roth.
63969
63970 2000-05-29  Jim Meyering  <meyering@lucent.com>
63971
63972         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63973         mounts with the `ignore' attribute.  Based on a patch from
63974         Mark D. Roth.
63975
63976 2000-05-28  Jim Meyering  <meyering@lucent.com>
63977
63978         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63979         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63980         * m4/stat.m4: Likewise.
63981         * m4/lstat.m4: Likewise.
63982         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63983
63984         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63985         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63986
63987 2000-05-26  Jim Meyering  <meyering@lucent.com>
63988
63989         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63990
63991 2000-05-24  Jim Meyering  <meyering@lucent.com>
63992
63993         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63994         autoconf requires that.
63995         * m4/lib-check.m4: Likewise.
63996         * m4/jm-macros.m4: Likewise.
63997         * m4/strftime.m4: Likewise.
63998
63999         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
64000         AC_CHECK_DECLS, now that autoconf requires that.
64001
64002 2000-05-22  Jim Meyering  <meyering@lucent.com>
64003
64004         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64005         * m4/lstat.m4: Likewise.
64006
64007 2000-05-22  Jim Meyering  <meyering@lucent.com>
64008
64009         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
64010
64011 2000-05-20  Jim Meyering  <meyering@lucent.com>
64012
64013         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64014         (jm_PREREQ): Use it.
64015
64016 2000-05-18  Jim Meyering  <meyering@lucent.com>
64017
64018         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64019         back, too, since it may have been modified by allocate_entry.
64020         (hash_delete): Rewrite to use neither the assignment operator
64021         nor the comma operator in an if-expression.
64022
64023 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64024
64025         * lib/closeout.c:
64026         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64027         Remove; no longer needed.
64028         "quotearg.h": Add include.
64029         (file_name): Do not bother to explicitly initialize to NULL; it's less
64030         efficient on some hosts.
64031         (close_stdout_status): Remove test as to whether stdout was already
64032         closed; it breaks for the case "echo x | sort >&-".
64033         Quote file name colons.
64034         Do not assume that _("write error") lacks format strings.
64035
64036 2000-05-15  Jim Meyering  <meyering@lucent.com>
64037
64038         * lib/version-etc.c (version_etc_copyright): Update the copyright
64039         string used in all --version output.
64040
64041 2000-05-14  Jim Meyering  <meyering@lucent.com>
64042
64043         * lib/closeout.c (close_stdout_set_file_name): New function.
64044         (close_stdout_status): Use new file-scoped global.
64045         Return right away if fstat says the stdout file descriptor is invalid.
64046         * lib/closeout.h (close_stdout_set_file_name): Declare.
64047
64048 2000-05-10  Jim Meyering  <meyering@lucent.com>
64049
64050         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64051         (close_stdout_set_status): New function.
64052         * lib/closeout.h (close_stdout_set_status): Declare.
64053
64054 2000-05-09  Jim Meyering  <meyering@lucent.com>
64055
64056         * m4/gettext.m4: Rename this...
64057         * m4/libintl.m4: ...to this.
64058
64059 2000-05-08  Jim Meyering  <meyering@lucent.com>
64060
64061         * lib/long-options.c: Don't include closeout.h.
64062         (parse_long_options): Don't call close_stdout for --version.
64063
64064 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64065
64066         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64067         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64068         2.1.3 bug.  This avoids a clash when files like regex.c define
64069         _GNU_SOURCE.
64070
64071 2000-05-06  Jim Meyering  <meyering@lucent.com>
64072
64073         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64074         (AC_REPLACE_FUNCS): Add strnlen.
64075
64076         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64077         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64078
64079         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64080         AC_SEARCH_LIBS call for nanosleep.
64081         (LIB_NANOSLEEP): Set and AC_SUBST.
64082
64083 2000-05-06  Jim Meyering  <meyering@lucent.com>
64084
64085         * lib/strnlen.c: Undefine __strnlen and strnlen.
64086         [!weak_alias]: Define __strnlen to strnlen.
64087
64088         * lib/atexit.c: New file, from libiberty.
64089
64090 2000-05-06  Jim Meyering  <meyering@lucent.com>
64091
64092         * lib/closeout.c (close_stdout_status): Also check for errors on the
64093         stderr stream.
64094
64095 2000-05-05  Jim Meyering  <meyering@lucent.com>
64096
64097         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64098         AC_SEARCH_LIBS call for clock_gettime.
64099         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64100
64101         * m4/search-libs.m4: Update from autoconf.
64102
64103         su doesn't work on Solaris 2.6.
64104         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64105         <shadow.h>.  Reported by Dragos Harabor.
64106
64107 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64108
64109         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64110         memcpy instead of xmalloc, xrealloc, path_concat.
64111         (locale_charset): Treat empty environment variables as absent.
64112         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64113
64114 2000-05-04  Jim Meyering  <meyering@lucent.com>
64115
64116         * lib/getopt.c: Update from glibc.
64117         * lib/obstack.c: Likewise.
64118         * lib/obstack.h: Likewise.
64119         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64120         file
64121
64122         * lib/regex.h: Likewise.
64123         * lib/strndup.c: Likewise.
64124         * lib/strnlen.c: New file, from glibc.
64125
64126 2000-05-03  Jim Meyering  <meyering@lucent.com>
64127
64128         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64129
64130 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64131
64132         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64133         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64134         compile-time test, rather than inspecting host and OS, to
64135         decide whether to define _LARGEFILE_SOURCE.
64136
64137 2000-05-01  Jim Meyering  <meyering@lucent.com>
64138
64139         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64140
64141         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64142         Based on a patch from Bruno Haible.
64143
64144 2000-05-01  Jim Meyering  <meyering@lucent.com>
64145
64146         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64147
64148 2000-04-29  Jim Meyering  <meyering@lucent.com>
64149
64150         * lib/path-concat.c: Declare strdup only if it's not defined.
64151         * lib/canon-host.c: Likewise.
64152
64153 2000-04-28  Jim Meyering  <meyering@lucent.com>
64154
64155         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64156         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64157         is included first, then limits.h is included by locale.h by libintl.h.
64158         From John David Anglin.
64159
64160 2000-04-25  Jim Meyering  <meyering@lucent.com>
64161
64162         * lib/makepath.c (S_IRWXUGO): Define.
64163         (make_path): Always perform explicit chmod if MODE specifies any
64164         of the `special' permission bits.  Prompted by a bug report against
64165         install from Mate Wierdl and Joost van Baal.
64166
64167 2000-04-18  Jim Meyering  <meyering@lucent.com>
64168
64169         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64170         (jm_PREREQ): Use it.
64171
64172 2000-04-18  Jim Meyering  <meyering@lucent.com>
64173
64174         * lib/README: New file.
64175
64176         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64177         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64178
64179 2000-04-17  Jim Meyering  <meyering@lucent.com>
64180
64181         Get it right :-)
64182         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64183         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64184         Suggestion from Akim Demaille.
64185
64186 2000-04-17  Jim Meyering  <meyering@lucent.com>
64187
64188         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64189         the definition of it to rpl_strftime also defined-away the system's
64190         declaration.
64191
64192 2000-04-15  Jim Meyering  <meyering@lucent.com>
64193
64194         Use `C' to denote so-called `contiguous' files, the same way
64195         that tar does.
64196         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64197         (ftypelet): Use S_ISCTG.
64198         From Michael Deutschmann.
64199
64200 2000-04-14  Jim Meyering  <meyering@lucent.com>
64201
64202         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64203         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64204         clobbered.
64205
64206 2000-04-14  Jim Meyering  <meyering@lucent.com>
64207
64208         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64209
64210 2000-04-13  Jim Meyering  <meyering@lucent.com>
64211
64212         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64213         AH_VERBATIM to insert required #ifndef into config.h.in.
64214         Suggestion from Akim Demaille.
64215
64216 2000-04-12  Jim Meyering  <meyering@lucent.com>
64217
64218         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64219         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64220         Christian Krackowizer.
64221
64222         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64223         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64224         (AC_SYS_LARGEFILE): Require.
64225         (AM_C_PROTOTYPES): Require.
64226
64227 2000-04-08  Jim Meyering  <meyering@lucent.com>
64228
64229         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64230         names don't conflict.  Reported by Eli Zaretskii.
64231
64232 2000-04-07  Jim Meyering  <meyering@lucent.com>
64233
64234         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64235         sys/types.h, to work around system header problems on AIX 3.2.5.
64236         From Bruno Haible.
64237
64238 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64239
64240         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64241         bug.  Deal with the different error behavior of Irix iconv.
64242
64243 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64244
64245         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64246         IRIX if the installer said otherwise.
64247
64248 2000-04-05  Jim Meyering  <meyering@lucent.com>
64249
64250         Portability tweaks required for ultrix4.3.
64251         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64252         (jm_CHECK_DECLS): Add getutent to the list of functions.
64253         (_jm_DECL_HEADERS): Add utmpx.h.
64254         From John David Anglin.
64255
64256         * m4/strftime.m4: Back out the 2000-04-02 change.
64257         Instead of that change, simply undefine putenv in the test program.
64258
64259 2000-04-05  Jim Meyering  <meyering@lucent.com>
64260
64261         Portability tweaks required for ultrix4.3.
64262         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64263         getutent.
64264         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64265         * lib/canon-host.c: Declare strdup.
64266         * lib/path-concat.c: Likewise.
64267         From John David Anglin.
64268
64269 2000-04-04  Jim Meyering  <meyering@lucent.com>
64270
64271         Be more DOS 8.3-friendly.
64272         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64273         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64274         * lib/Makefile.am: Reflect renaming.
64275         Reported by Eli Zaretskii.
64276
64277         Use a temporary file name that won't clash with `charset.alias'
64278         in the DOS 8.3 name space.
64279         * lib/Makefile.am (charset_tmp): Define.
64280         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64281         (uninstall-local): Likewise.
64282         Reported by Eli Zaretskii.
64283
64284 2000-04-03  Jim Meyering  <meyering@lucent.com>
64285
64286         * m4/gettext.m4: Fix typo in comment.
64287
64288         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64289         textutils/configure.in).  Suggestion from Paul Eggert.
64290         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64291
64292 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64293
64294         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64295         variable in the shell rather than using putenv, which isn't
64296         portable.  This avoids the configure-time inter-test dependency
64297         on the potentially-renamed putenv function.
64298
64299 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64300
64301         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64302         before checking struct stat.st_blksize, so that
64303         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64304
64305 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64306
64307         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64308         since strftime.c uses HAVE_STRFTIME to decide whether to use
64309         the underlying strftime.
64310
64311 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64312
64313         * lib/time/strftime.c (my_strftime): Make sure we call the system
64314         strftime, not ourselves, when invoking the underlying strftime.
64315
64316 2000-03-24  Jim Meyering  <meyering@lucent.com>
64317
64318         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64319         (charset_alias): Define.
64320         (install-exec-local): Factor out common code.
64321         (uninstall-local): Split lines longer than 80.
64322         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64323         (SUFFIXES): Define.
64324         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64325         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64326
64327 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64328
64329         * lib/config.charset: Output a line containing "Packages using this
64330         file".
64331         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64332         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64333         ref-del.sed): New rules.
64334
64335 2000-03-17  Jim Meyering  <meyering@lucent.com>
64336
64337         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64338         Otherwise, include <strings.h>
64339
64340 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64341
64342         * lib/unicodeio.c (utf8_wctomb): New function.
64343         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64344         format instead of in UCS-4 with platform dependent endianness.
64345
64346 2000-03-10  Jim Meyering  <meyering@lucent.com>
64347
64348         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64349         From Marco Franzen.
64350
64351 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64352
64353         * lib/savedir.c (savedir): Work even if directory size is
64354         negative; this can happen with some screwy NFS configurations.
64355
64356 2000-03-06  Jim Meyering  <meyering@lucent.com>
64357
64358         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64359         if it's NULL (because we ran out of memory).  From Bruno Haible.
64360
64361 2000-03-05  Jim Meyering  <meyering@lucent.com>
64362
64363         * lib/localcharset.c ("path-concat.h"): Include.
64364         (get_charset_aliases): Use path_concat instead of ANSI string
64365         concatenation.
64366
64367         * lib/unicodeio.h (PARAMS): Define.
64368         Use it to guard prototype.
64369
64370 2000-03-04  Jim Meyering  <meyering@lucent.com>
64371
64372         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64373         for lib/localcharset.c.
64374
64375 2000-03-04  Jim Meyering  <meyering@lucent.com>
64376
64377         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64378         installing into it.
64379         (uninstall-local): Uncomment this rule so `make distcheck' works
64380         once again.
64381
64382         * lib/unicodeio.c (<errno.h>): Include it.
64383         (errno): Declare if not defined.
64384
64385         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64386
64387         * lib/config.charset: New version, incorporating remarks from a linux
64388         i18n mailing list.  From Bruno Haible.
64389
64390 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64391
64392         * m4/codeset.m4: New file.
64393         * m4/iconv.m4: New file.
64394         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64395
64396 2000-03-03  Jim Meyering  <meyering@lucent.com>
64397
64398         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64399
64400 2000-03-02  Jim Meyering  <meyering@lucent.com>
64401
64402         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64403         the messages come out on separate lines.
64404
64405         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64406         rather than jm_CHECK_DECLARATIONS.
64407         * m4/decl.m4: Remove now-unused file.
64408
64409         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64410         geteuid.
64411
64412 2000-03-02  Jim Meyering  <meyering@lucent.com>
64413
64414         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64415
64416 2000-03-01  Jim Meyering  <meyering@lucent.com>
64417
64418         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64419         * lib/unicodeio.c: Likewise.
64420
64421 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64422
64423         * lib/config.charset: New file.
64424         * lib/localcharset.c: New file.
64425         * lib/unicodeio.h, lib/unicodeio.c: New files.
64426         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64427         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64428         (noinst_HEADERS): Add unicodeio.h.
64429         (all-local, install-exec-local, charset.alias): New targets.
64430
64431 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64432
64433         * lib/quotearg.c (ALERT_CHAR): New macro.
64434         (quotearg_buffer_restyled): Use it.
64435
64436 2000-02-27  Jim Meyering  <meyering@lucent.com>
64437
64438         * m4/check-decl.m4: Add getenv to the list.
64439
64440 2000-02-27  Jim Meyering  <meyering@lucent.com>
64441
64442         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64443         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64444
64445         * lib/backupfile.c: Guard inclusion of stdlib.h with
64446         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64447         Declare malloc if needed.
64448
64449         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64450         `#ifndef HAVE_DECL..'
64451         now that autoconf always defines the HAVE_DECL_ symbols.
64452         * lib/human.c: Likewise.
64453         * lib/same.c: Likewise.
64454         * lib/strtoumax.c: Likewise.
64455
64456         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64457         declaration check was not run.
64458         * lib/hash.c: Likewise.
64459         * lib/human.c: Likewise.
64460         * lib/same.c: Likewise.
64461         * lib/strtoumax.c: Likewise.
64462
64463         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64464         `.', then first look up the entire `.'-containing string as a login
64465         name.
64466
64467 2000-02-23  Jim Meyering  <meyering@lucent.com>
64468
64469         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64470         in place of my hack.
64471
64472 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64473
64474         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64475         (textint): New typedef.
64476         (parser_control): Member year changed from int to textint.
64477         All uses changed.
64478         (YYSTYPE): Removed; replaced by %union with int and textint members.
64479         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64480         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64481         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64482         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64483         (date, number, to_year): Use width of number in digits, not its value,
64484         to determine whether it's a 2-digit year, or a 2-digit time.
64485         (yylex): Store number of digits of numeric tokens.
64486         Reported by John Kendall.
64487
64488         (parser_control): Changed from struct parser_control to typedef (for
64489         consistency).  All uses changed.
64490
64491         (tID): Removed; not used.
64492         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64493
64494 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64495
64496         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64497         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64498
64499 2000-02-12  Jim Meyering  <meyering@lucent.com>
64500
64501         * lib/userspec.c (ISDIGIT): Define it.
64502         (isdigit): Remove definition.
64503         (is_number): Use ISDIGIT, not isdigit.
64504         <libintl.h>: Include.
64505         (_ and N_): Define.
64506         (parse_user_spec): Mark translatable strings.
64507
64508 2000-02-10  Jim Meyering  <meyering@lucent.com>
64509
64510         With these changes, nanosleep.[ch] are finally enough like the other
64511         lib/* replacement files to compile on a few more losing systems.
64512
64513         * lib/nanosleep.h: Don't include config.h.
64514         Remove prototype from declaration of nanosleep.
64515         (PARAMS): Remove now-unneeded definition.
64516         * lib/nanosleep.c: #undef nanosleep.
64517         (rpl_nanosleep): Rename from nanosleep.
64518
64519 2000-02-10  Jim Meyering  <meyering@lucent.com>
64520
64521         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64522         gnu_nanosleep to rpl_nanosleep.
64523
64524 2000-02-09  Jim Meyering  <meyering@lucent.com>
64525
64526         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64527         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64528
64529 2000-02-08  Akim Demaille  <akim@epita.fr>
64530
64531         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64532         `[' and `]' and remove uses of `changequote'.
64533         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64534         (AC_SYS_LARGEFILE): Likewise.
64535         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64536         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64537         of changequote.
64538         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64539         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64540         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64541         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64542
64543 2000-02-05  Jim Meyering  <meyering@lucent.com>
64544
64545         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64546         Remove explicit use of AC_HEADER_TIME.  It is required by
64547         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64548         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64549         in autoconf whereby the expansion of the latter ended up preceding
64550         the expansion of its prerequisite, AC_HEADER_TIME.
64551         Reported by Volker Borchert.
64552
64553 2000-02-03  Jim Meyering  <meyering@lucent.com>
64554
64555         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64556
64557 2000-02-03  Jim Meyering  <meyering@lucent.com>
64558
64559         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64560         rather than with `#if HAVE_UTMPNAME'.
64561
64562 2000-02-02  Jim Meyering  <meyering@lucent.com>
64563
64564         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64565         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64566         Reported by Eli Zaretskii.
64567
64568 2000-02-01  Jim Meyering  <meyering@lucent.com>
64569
64570         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64571
64572 2000-01-31  Jim Meyering  <meyering@lucent.com>
64573
64574         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64575         functions.  Add the time.h and sys/time.h headers along with the
64576         AC_REQUIRE'ment of AC_HEADER_TIME.
64577
64578 2000-01-31  Jim Meyering  <meyering@lucent.com>
64579
64580         * lib/nanosleep.h (nanosleep): Guard declaration with
64581         `#if ! HAVE_DECL_NANOSLEEP'.
64582         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64583         the declaration in that vendor's sys/timers.h.
64584         Reported by Christian Krackowizer.
64585
64586         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64587         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64588         (ISPRINT): Likewise.
64589         Reported by Tom Tromey.
64590
64591 2000-01-30  Jim Meyering  <meyering@lucent.com>
64592
64593         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64594
64595         * m4/prereq.m4 (utmp_includes): Define.
64596         Check for ut_user and ut_name members in both struct utmpx
64597         and struct utmp.
64598
64599 2000-01-30  Jim Meyering  <meyering@lucent.com>
64600
64601         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64602         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64603         header files where only utmpx.ut_user is declared.
64604
64605         * lib/readutmp.h (UT_USER): Define.
64606
64607 2000-01-29  Jim Meyering  <meyering@lucent.com>
64608
64609         * m4/lib-check.m4: New file containing library-related checks from
64610         fileutils and sh-utils (textutils had none).
64611
64612 2000-01-28  Jim Meyering  <meyering@lucent.com>
64613
64614         * m4/perl.m4: Change format of warning message to look more like that
64615         from the missing script.  Suggestion from François Pinard.
64616
64617 2000-01-25  Jim Meyering  <meyering@lucent.com>
64618
64619         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64620         well as time.h in the compile check.
64621         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64622         Fix typo in cross-compiling case: s/yes/no/.
64623
64624 2000-01-23  Jim Meyering  <meyering@lucent.com>
64625
64626         * m4/jm-macros.m4: Move df-related tests here from
64627         fileutils/configure.in
64628
64629         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64630         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64631
64632         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64633         s/space/ac_fsusage_space/.
64634         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64635
64636         * m4/ftruncate.m4: New file (derived from part of
64637         fileutils/configure.in).
64638         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64639         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64640
64641         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64642         AC_SUBST these here, rather than just in sh-util/configure.in, so
64643         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64644         all the same.
64645         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64646         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64647         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64648         (AC_SUBST(POW_LIBM)): Likewise.
64649         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64650
64651 2000-01-23  Jim Meyering  <meyering@lucent.com>
64652
64653         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64654         obstack.c.
64655
64656 2000-01-22  Jim Meyering  <meyering@lucent.com>
64657
64658         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64659
64660         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64661
64662         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64663         configure.in
64664         (AC_CHECK_HEADERS): Likewise for sh-utils.
64665         (AC_CHECK_HEADERS): Likewise for textutils.
64666         Merge the three lists of headers.
64667
64668         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64669         from fileutils' configure.in.
64670
64671         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64672         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64673         check-decl.m4.
64674
64675         * m4/check-decl.m4: Use #if rather than #ifdef.
64676         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64677         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64678         (_jm_DECL_HEADERS): Define new function.
64679         (jm_CHECK_DECLARATIONS): Require it.
64680
64681 2000-01-22  Jim Meyering  <meyering@lucent.com>
64682
64683         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64684         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64685         Required for some AIX systems.  Reported by Christian Krackowizer.
64686         [TESTING] (main): New function.
64687
64688         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64689         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64690         letters.
64691
64692         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64693         iswprint.
64694
64695         * lib/strverscmp.c (ISDIGIT): Define.
64696         (strverscmp): Use ISDIGIT, not isdigit.
64697
64698 2000-01-19  Jim Meyering  <meyering@lucent.com>
64699
64700         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64701         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64702         defines `struct timespec' in <sys/time.h>
64703
64704         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64705         Thanks to Akim for explaining.
64706
64707 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64708
64709         * lib/nanosleep.c (nanosleep):
64710         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64711         POSIX.1 doesn't require SA_INTERRUPT and some systems
64712         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64713         it's been part of POSIX.1 since day 1 (in 1988).
64714
64715 2000-01-17  Jim Meyering  <meyering@lucent.com>
64716
64717         * lib/interlock: Remove unused file.  Reported by François Pinard.
64718
64719 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64720
64721         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64722         alert, backslash, formfeed, and vertical tab unnecessarily in
64723         shell quoting style.
64724
64725 2000-01-16  Jim Meyering  <meyering@lucent.com>
64726
64727         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64728         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64729         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64730         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64731
64732 2000-01-16  Jim Meyering  <meyering@lucent.com>
64733
64734         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64735         because the latter didn't work.
64736
64737 2000-01-15  Jim Meyering  <meyering@lucent.com>
64738
64739         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64740         (AC_REPLACE_FUNCS): Add memcpy and memset.
64741         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64742         Add strpbrk.
64743         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64744
64745 2000-01-12  Jim Meyering  <meyering@lucent.com>
64746
64747         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64748         (jm_PREREQ): Use it.
64749         (jm_PREREQ_READUTMP): New macro.
64750         (jm_PREREQ): Use it.
64751
64752 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64753
64754         Quote multibyte characters correctly.
64755         * m4/c-bs-a.m4: New file.
64756         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64757         (jm_PREREQ): Use it.
64758
64759 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64760
64761         * m4/uintmax_t.m4: Port to autoconf 2.13.
64762
64763 2000-01-08  Jim Meyering  <meyering@ascend.com>
64764
64765         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64766         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64767
64768 2000-01-04  Jim Meyering  <meyering@ascend.com>
64769
64770         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64771         jm_STRUCT_DIRENT_D_TYPE.
64772         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64773         jm_STRUCT_DIRENT_D_INO.
64774         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64775         jm_STRUCT_UTIMBUF.
64776         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64777         renamings.
64778         * m4/utime.m4: Likewise.
64779
64780         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64781         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64782
64783 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64784
64785         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64786         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64787
64788 2000-01-02  Jim Meyering  <meyering@ascend.com>
64789
64790         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64791         remember if this is necessary.
64792
64793 1999-12-26  Jim Meyering  <meyering@ascend.com>
64794
64795         * m4/jm-macros.m4: Use it here.
64796         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64797
64798 1999-12-23  Jim Meyering  <meyering@ascend.com>
64799
64800         * m4/jm-macros.m4: Check for clock_gettime (moved from
64801         fileutils/configure.in)
64802         Check for gettimeofday.
64803
64804 1999-12-20  Jim Meyering  <meyering@ascend.com>
64805
64806         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64807         autoconf-2.14a-1999-12-20.
64808
64809 1999-12-19  Jim Meyering  <meyering@ascend.com>
64810
64811         * m4/lstat-slash.m4: New file.
64812         * m4/jm-macros.m4: Use the new macro:
64813         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64814
64815 1999-12-07  Jim Meyering  <meyering@ascend.com>
64816
64817         * m4/perl.m4: Require that File::Compare be available, too.
64818         Too many systems seem to lack it.
64819
64820         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64821         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64822
64823 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64824
64825         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64826         problem with the QNX 4.25 shell, which doesn't propagate exit
64827         status of failed commands inside shell assignments.
64828
64829 1999-11-17  Jim Meyering  <meyering@ascend.com>
64830
64831         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64832
64833 1999-11-07  Jim Meyering  <meyering@ascend.com>
64834
64835         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64836
64837 1999-11-06  Jim Meyering  <meyering@ascend.com>
64838
64839         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64840         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64841
64842 1999-11-05  Jim Meyering  <meyering@ascend.com>
64843
64844         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64845         configure.in of textutils, fileutils, and sh-utils into this one
64846         (shared between those packages) file.
64847         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64848         AC_STRUCT_ST_BLKSIZE.
64849
64850 1999-11-03  Jim Meyering  <meyering@ascend.com>
64851
64852         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64853         of AC_CHECK_TYPE checks includes unistd.h.
64854         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64855         Suggestion from Akim Demaille.
64856
64857 1999-10-30  Jim Meyering  <meyering@ascend.com>
64858
64859         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64860         m4-quoted string.
64861         * m4/ls-mntd-fs.m4: Likewise.
64862         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64863         * m4/jm-winsz1.m4: Likewise.
64864
64865         * m4/const.m4: Remove file, since the fix made it into the experimental
64866         version of autoconf.
64867         * m4/mktime.m4: Likewise.
64868
64869         * m4/check-type.m4: Remove file, now that the latest version of
64870         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64871
64872         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64873         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64874         AC_CHECK_TYPE.
64875
64876 1999-10-04  Jim Meyering  <meyering@ascend.com>
64877
64878         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64879
64880 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64881
64882         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64883         2.95.1 bug with HP-UX 10.20.
64884
64885 1999-09-17  Jim Meyering  <meyering@ascend.com>
64886
64887         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64888         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64889         due to missing strdup (against sh-utils-2.0).
64890
64891 1999-08-29  Jim Meyering  <meyering@ascend.com>
64892
64893         * m4/jm-macros.m4: Require jm_BISON.
64894         * m4/bison.m4: New file.
64895
64896 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64897
64898         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64899         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64900
64901 1999-08-05  Jim Meyering  <meyering@ascend.com>
64902
64903         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64904         to avoid conflicts with `conftest' on 8+3 filesystems.
64905         Suggestion from Eli Zaretskii.
64906
64907 1999-08-04  Jim Meyering  <meyering@ascend.com>
64908
64909         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64910         fileutils and sh-utils (textutils's getline test was inadequate).
64911         (AM_FUNC_GETLINE): Run this test.
64912         (AC_CHECK_FUNCS): Check for getdelim.
64913         Reported by Bob Proulx.
64914
64915 1999-08-02  Jim Meyering  <meyering@ascend.com>
64916
64917         * m4/jm-macros.m4: Add a comment.
64918
64919 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64920
64921         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64922         <inttypes.h> defines strtoumax as a macro (and not as a
64923         function).
64924
64925 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64926
64927         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64928         that we can shift, multiply and divide unsigned long long
64929         values; Ultrix cc can't do it.
64930
64931 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64932
64933         * m4/mktime.m4: New file, which is a preview of what should appear
64934         in the next public autoconf release.
64935
64936 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64937
64938         * m4/lfs.m4: Remove this file.
64939         * m4/largefile.m4: New file.  It contains the old contents of
64940         lfs.m4, except that all names with prefix AC_LFS have been
64941         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64942         compatible with future autoconf versions.  Also, some minor m4
64943         quoting problems have been fixed.
64944
64945 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64946
64947         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64948         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64949         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64950         and simplify the shell code.
64951
64952 1999-08-01  Jim Meyering  <meyering@ascend.com>
64953
64954         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64955         m4.
64956
64957 1999-07-20  Jim Meyering  <meyering@ascend.com>
64958
64959         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64960
64961 1999-07-15  Jim Meyering  <meyering@ascend.com>
64962
64963         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64964
64965 1999-05-22  Jim Meyering  <meyering@ascend.com>
64966
64967         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64968
64969 1999-05-20  Jim Meyering  <meyering@ascend.com>
64970
64971         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64972         Add a colon after each `then' in case $4 is empty.
64973
64974 1999-05-16  Jim Meyering  <meyering@ascend.com>
64975
64976         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64977
64978 1999-05-10  Jim Meyering  <meyering@ascend.com>
64979
64980         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64981
64982         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64983         AC_FUNC_MKTIME.
64984
64985 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
64986
64987         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64988
64989 1999-05-04  Paul Eggert  <eggert@twinsun.com>
64990
64991         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64992         not CPPFLAGS, so that linking works correctly in IRIX.
64993
64994 1999-04-30  Paul Eggert  <eggert@twinsun.com>
64995
64996         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64997
64998 1999-04-20  Paul Eggert  <eggert@twinsun.com>
64999
65000         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
65001         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
65002         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
65003         jm_AC_TYPE_UNSIGNED_LONG_LONG.
65004         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
65005
65006         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
65007
65008 1999-04-20  Jim Meyering  <meyering@ascend.com>
65009
65010         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65011         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65012         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65013
65014 1999-04-18  Jim Meyering  <meyering@ascend.com>
65015
65016         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65017         * m4/jm-macros.m4: Use it.
65018
65019 1999-04-06  Jim Meyering  <meyering@ascend.com>
65020
65021         * m4/strftime.m4: Remove test for %f.
65022
65023 1999-03-29  Jim Meyering  <meyering@ascend.com>
65024
65025         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65026         superset of the AC_TYPE_* checks in the textutils, fileutils,
65027         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65028         AC_TYPE_PID_T.
65029
65030 1999-03-28  Jim Meyering  <meyering@ascend.com>
65031
65032         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65033         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65034         replaced e.g., in the *.sh files of the sh-utils.
65035
65036 1999-03-20  Jim Meyering  <meyering@ascend.com>
65037
65038         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65039         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65040         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65041
65042 1999-03-19  Jim Meyering  <meyering@ascend.com>
65043
65044         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65045
65046 1999-03-12  Jim Meyering  <meyering@ascend.com>
65047
65048         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65049
65050 1999-03-07  Jim Meyering  <meyering@ascend.com>
65051
65052         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65053         declared.
65054
65055 1999-02-17  Jim Meyering  <meyering@ascend.com>
65056
65057         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65058         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65059
65060 1999-02-07  Jim Meyering  <meyering@ascend.com>
65061
65062         * m4/group-member.m4: New file -- extracted from sh-utils'
65063         configure.in.
65064
65065         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65066         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65067
65068 1999-02-06  Jim Meyering  <meyering@ascend.com>
65069
65070         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65071         * m4/fnmatch.m4: Likewise.
65072         * m4/getgroups.m4: Likewise.
65073         * m4/lstat.m4: Likewise.
65074         * m4/malloc.m4: Likewise.
65075         * m4/putenv.m4: Likewise.
65076         * m4/realloc.m4: Likewise.
65077         * m4/regex.m4: Likewise.
65078         * m4/stat.m4: Likewise.
65079         * m4/strftime.m4: Likewise.
65080         Suggestion from Alain Magloire.
65081
65082         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65083         * m4/fnmatch.m4: Likewise.
65084         * m4/getgroups.m4: Likewise.
65085         * m4/getline.m4: Likewise.
65086         * m4/lstat.m4: Likewise.
65087         * m4/malloc.m4: Likewise.
65088         * m4/memcmp.m4: Likewise.
65089         * m4/putenv.m4: Likewise.
65090         * m4/realloc.m4: Likewise.
65091         * m4/regex.m4: Likewise.
65092         * m4/stat.m4: Likewise.
65093         * m4/strftime.m4: Likewise.
65094         Suggestion from Alain Magloire.
65095
65096         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65097         an argument.
65098
65099         * m4/regex.m4: Add a run-time Test for proper operation of
65100         re_compile_pattern.
65101
65102 1999-01-31  Jim Meyering  <meyering@ascend.com>
65103
65104         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65105
65106 1999-01-30  Jim Meyering  <meyering@ascend.com>
65107
65108         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65109
65110         * m4/jm-mktime.m4: Make this a wrapper around the official
65111         AM_FUNC_MKTIME rather than my private copy, now that the official one
65112         is up to date.
65113         * m4/mktime.m4: Remove file.
65114
65115         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65116         * m4/uptime.m4: Likewise.
65117         * m4/uintmax_t.m4: Likewise.
65118
65119 1999-01-28  Jim Meyering  <meyering@ascend.com>
65120
65121         * m4/jm-macros.m4: Use jm_AFS.
65122         * m4/afs.m4: New file (from fileutils' configure.in).
65123
65124         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65125         * m4/chown.m4: Likewise.
65126         * m4/d-ino.m4: Likewise.
65127         * m4/d-type.m4: Likewise.
65128         * m4/fnmatch.m4: Likewise.
65129         * m4/getgroups.m4: Likewise.
65130         * m4/gettext.m4: Likewise.
65131         * m4/jm-mktime.m4: Likewise.
65132         * m4/jm-winsz2.m4: Likewise.
65133         * m4/lcmessage.m4: Likewise.
65134         * m4/ls-mntd-fs.m4: Likewise.
65135         * m4/malloc.m4: Likewise.
65136         * m4/memcmp.m4: Likewise.
65137         * m4/putenv.m4: Likewise.
65138         * m4/realloc.m4: Likewise.
65139         * m4/st_mtim.m4: Likewise.
65140         * m4/strftime.m4: Likewise.
65141
65142 1999-01-16  Jim Meyering  <meyering@ascend.com>
65143
65144         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65145         (ARGMATCH_DIE_DECL): Define.
65146
65147 1999-01-12  Jim Meyering  <meyering@ascend.com>
65148
65149         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65150         Reported by Lars Hecking.
65151
65152 1999-01-10  Jim Meyering  <meyering@ascend.com>
65153
65154         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65155         gross kludge.
65156         * m4/inttypes_h.m4: Likewise.
65157         * m4/lstat.m4: Likewise.
65158         * m4/malloc.m4: Likewise.
65159         * m4/readdir.m4: Likewise.
65160         * m4/realloc.m4: Likewise.
65161         * m4/st_dm_mode.m4: Likewise.
65162         * m4/stat.m4: Likewise.
65163         * m4/utimbuf.m4: Likewise.
65164         * m4/utimes.m4: Likewise.
65165
65166         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65167         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65168         comments in config.h.in are meaningful.
65169
65170         * m4/jm-macros.m4: Require autoconf-2.13 here.
65171
65172         * m4/regex.m4: By default, don't use the included regex.c on systems
65173         with glibc 2.  Suggestion from Uli Drepper.
65174
65175 1999-01-02  Jim Meyering  <meyering@ascend.com>
65176
65177         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65178
65179 1998-12-18  Jim Meyering  <meyering@ascend.com>
65180
65181         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65182         Based on a suggestion from Lars Hecking.
65183
65184 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65185
65186         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65187
65188 1998-11-16  Jim Meyering  <meyering@ascend.com>
65189
65190         * m4/lfs.m4: Double-quote the `uname...` expression.
65191
65192 1998-11-14  Jim Meyering  <meyering@ascend.com>
65193
65194         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65195         * m4/stat.m4: Likewise.
65196
65197 1998-11-03  Jim Meyering  <meyering@ascend.com>
65198
65199         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65200         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65201
65202 1998-10-18  Jim Meyering  <meyering@ascend.com>
65203
65204         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65205
65206 1998-10-17  Jim Meyering  <meyering@ascend.com>
65207
65208         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65209         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65210         calls for those previously hard-coded headers.  Instead, take a new
65211         parameter.
65212         (jm_CHECK_DECLARATIONS): Reflect interface change.
65213         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65214         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65215
65216         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65217
65218 1998-10-14  Jim Meyering  <meyering@ascend.com>
65219
65220         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65221         instead of "TZ=America/Vancouver".  From Paul Eggert.
65222
65223 1998-10-11  Jim Meyering  <meyering@ascend.com>
65224
65225         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65226         This adds a test for a recently added compatibility fix for mktime.c.
65227         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65228
65229 1998-09-27  Jim Meyering  <meyering@ascend.com>
65230
65231         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65232
65233         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65234         ../configure.in, including a change from Gordon Matzigkeit to allow
65235         cross-compiling for the Hurd.
65236
65237         * m4/glibc.m4: New file/macro to test for the GNU C Library
65238         versions 1 and 2.  From Gordon Matzigkeit.
65239         Indent.
65240
65241 1998-09-21  Jim Meyering  <meyering@ascend.com>
65242
65243         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65244
65245 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65246
65247         Port nanosecond-resolution times to UnixWare 2.1.2 and
65248         pedantic Solaris 2.6.
65249
65250         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65251         AC_STRUCT_ST_MTIM.
65252         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65253         Generate name of ns member, instead of just 1 or undef.
65254         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65255
65256 1998-08-15  Jim Meyering  <meyering@ascend.com>
65257
65258         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65259         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65260         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65261         instead of jm_TYPE_SSIZE_T.
65262
65263 1998-08-12  Jim Meyering  <meyering@ascend.com>
65264
65265         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65266
65267 1998-08-02  Jim Meyering  <meyering@ascend.com>
65268
65269         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65270         in acconfig.h manually.
65271
65272 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65273
65274         * m4/st_mtim.m4: New file.
65275
65276 1998-07-28  Jim Meyering  <meyering@ascend.com>
65277
65278         * m4/utimes.m4: Undef stat.
65279
65280 1998-07-25  Jim Meyering  <meyering@ascend.com>
65281
65282         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65283         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65284
65285 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65286
65287         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65288         uid and gid actually remain unchanged.
65289
65290 1998-07-07  Jim Meyering  <meyering@ascend.com>
65291
65292         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65293
65294 1998-07-04  Jim Meyering  <meyering@ascend.com>
65295
65296         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65297         to prove that this macro can be used in packages without regex.c.
65298
65299 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65300
65301         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65302         is to be used.
65303
65304 1998-07-03  Jim Meyering  <meyering@ascend.com>
65305
65306         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65307
65308         * m4/gettext.m4: New file -- from gettext-0.10.35.
65309         * m4/lcmessage.m4: Likewise.
65310         * m4/progtest.m4: Likewise.
65311
65312         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65313         * m4/jm-macros.m4: Require the new macro.
65314
65315 1998-06-29  Jim Meyering  <meyering@ascend.com>
65316
65317         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65318         for the definition of NGROUPS (used in a system header included
65319         by sys/mount.h).
65320
65321 1998-06-28  Jim Meyering  <meyering@ascend.com>
65322
65323         * m4/ls-mntd-fs.m4: New file.
65324         * m4/fstypename.m4: New file.
65325
65326         * m4/jm-macros.m4: Require the new macro.
65327         * m4/jm-glibc-io.m4: New file.
65328
65329 1998-05-19  Jim Meyering  <meyering@ascend.com>
65330
65331         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65332         * m4/lchown.m4: New file.
65333
65334         * m4/Makefile.am.in: New file.
65335         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65336
65337 1998-05-14  Jim Meyering  <meyering@ascend.com>
65338
65339         * m4/Makefile.am (EXTRA_DIST): Add them.
65340         * m4/jm-macros.m4: New file.
65341         * m4/utimbuf.m4: New file.
65342
65343 1998-05-12  Jim Meyering  <meyering@ascend.com>
65344
65345         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65346
65347 1998-05-11  Jim Meyering  <meyering@ascend.com>
65348
65349         * m4/isc-posix.m4: New file.
65350
65351 1998-05-10  Jim Meyering  <meyering@ascend.com>
65352
65353         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65354
65355 1998-05-09  Jim Meyering  <meyering@ascend.com>
65356
65357         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65358         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65359         with automake.
65360
65361         * m4/ssize_t.m4: New file.
65362         * m4/mktime.m4: Remove file -- the new automake has this now.
65363
65364 1998-04-26  Jim Meyering  <meyering@ascend.com>
65365
65366         * m4/assert.m4: New file.
65367         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65368
65369 1998-04-05  Jim Meyering  <meyering@ascend.com>
65370
65371         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65372         (jm_PREREQ): Use it here.
65373
65374 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65375
65376         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65377         in acconfig.h.
65378
65379 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65380
65381         * m4/prereq.m4: New file.
65382         * m4/error.m4: New file.
65383         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65384
65385 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65386
65387         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65388         cache-check for the same variable -- that defeated the purpose of
65389         the test; the test program was never run.  This was a problem only
65390         on systems with losing getline functions -- HP-UX 10.20 is one.
65391         Reported by Bjorn Helgaas.
65392
65393 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65394
65395         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65396
65397 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65398
65399         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65400
65401         * m4/const.m4: New file.  Use an initializer in this declaration
65402         typedef int charset[2]; const charset x;
65403         Reported by Bob Glickstein.
65404
65405 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65406
65407         * m4/chown.m4: Fix reversed types on -1 args to chown.
65408         From Kaveh Ghazi.
65409
65410 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65411
65412         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65413         Add lseek and memchr.
65414
65415         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65416         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65417         have a 20-character limit on names.
65418
65419 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65420
65421         * m4/inttypes_h.m4: New file.
65422         * m4/uintmax_t.m4: New file.
65423         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65424
65425
65426         -----
65427
65428         Local Variables:
65429         coding: utf-8
65430         End:
65431
65432         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65433
65434         Copying and distribution of this file, with or without
65435         modification, are permitted provided the copyright notice
65436         and this notice are preserved.