duplocale: Improve test output.
[pspp] / ChangeLog
1 2010-04-05  Bruno Haible  <bruno@clisp.org>
2
3         duplocale: Improve test output.
4         * tests/test-duplocale.c (main): Print reason for skipped test.
5
6 2010-04-05  Bruno Haible  <bruno@clisp.org>
7
8         Assume rmdir exists.
9         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
10         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
11
12 2010-04-05  Bruno Haible  <bruno@clisp.org>
13
14         Fix link error on Solaris 8 with cc.
15         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
16
17 2010-04-05  Bruno Haible  <bruno@clisp.org>
18
19         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21
22 2010-04-05  Bruno Haible  <bruno@clisp.org>
23
24         vasprintf: Update documentation.
25         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
26
27 2010-04-05  Bruno Haible  <bruno@clisp.org>
28
29         ptsname: Improve test.
30         * tests/test-ptsname.c (main): Also try the various master names of BSD
31         systems.
32
33 2010-04-05  Bruno Haible  <bruno@clisp.org>
34
35         memchr: Avoid a possible C++ test error.
36         * lib/string.in.h (memchr): Provide declaration if function is missing.
37         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
38         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
39         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
40         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
41
42 2010-04-05  Bruno Haible  <bruno@clisp.org>
43
44         strtok_r: Improve idiom.
45         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
46         AC_LIBOBJ is used.
47
48 2010-04-05  Bruno Haible  <bruno@clisp.org>
49
50         strdup: Improve idiom.
51         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
52         AC_LIBOBJ is used.
53         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
54         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
55         when AC_LIBOBJ is used.
56
57 2010-04-05  Bruno Haible  <bruno@clisp.org>
58
59         mbsinit, mbrtowc, wcrtomb: Improve idioms.
60         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
61         don't set REPLACE_MBSINIT to 1.
62         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
63         don't set REPLACE_MBRTOWC to 1.
64         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
65         exist, don't set REPLACE_MBSRTOWCS to 1.
66         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
67         exist, don't set REPLACE_MBSNRTOWCS to 1.
68         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
69         don't set REPLACE_WCRTOMB to 1.
70         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
71         exist, don't set REPLACE_WCSRTOMBS to 1.
72         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
73         exist, don't set REPLACE_WCSNRTOMBS to 1.
74
75 2010-04-05  Bruno Haible  <bruno@clisp.org>
76
77         ldexpl: Improve idiom.
78         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
79         make sure to set HAVE_DECL_LDEXPL to 0.
80
81 2010-04-05  Jim Meyering  <meyering@redhat.com>
82
83         init.sh: fix typo
84         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
85
86         init.sh: make it easier for a test script to write to the tty, ...
87         when using automake's parallel-tests mode.
88         * tests/init.sh (stderr_fileno_): Define overridable variable.
89         (warn_): New function, to use it.
90         (fail_, skip_, framework_failure_): Use warn_.
91
92 2010-04-04  Bruno Haible  <bruno@clisp.org>
93
94         btowc: Avoid warning.
95         * lib/btowc.c: Include <stdlib.h>.
96         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
97
98 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
99             Bruno Haible  <bruno@clisp.org>
100
101         wchar: Port to NetBSD 1.5.
102         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
103         * lib/wctype.in.h (WEOF): Likewise.
104
105 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
106             Bruno Haible  <bruno@clisp.org>
107
108         Port extended stdio to NetBSD 1.5.
109         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
110         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
111         older.
112
113 2010-04-04  Bruno Haible  <bruno@clisp.org>
114
115         string: Remove unused substitution.
116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
117         HAVE_DECL_STRERROR.
118         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
119
120 2010-04-04  Bruno Haible  <bruno@clisp.org>
121
122         strtod: Avoid a possible C++ test error.
123         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
124         set REPLACE_STRTOD.
125
126 2010-04-04  Bruno Haible  <bruno@clisp.org>
127
128         strerror: Update documentation.
129         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
130
131 2010-04-04  Bruno Haible  <bruno@clisp.org>
132
133         stdio: Fix some C++ test errors on Solaris 8 with GCC.
134         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
135         _GL_CXXALIAS_SYS_CAST.
136
137 2010-04-04  Bruno Haible  <bruno@clisp.org>
138
139         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
140         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
141         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
142         REPLACE_FREXPL to 1.
143         * doc/posix-functions/frexpl.texi: Update documentation.
144
145 2010-04-04  Bruno Haible  <bruno@clisp.org>
146
147         math: Fix some C++ test errors on Solaris 8 and Cygwin.
148         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
149
150 2010-04-04  Bruno Haible  <bruno@clisp.org>
151
152         Implement nanosleep for native Windows.
153         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
154
155 2010-04-04  Bruno Haible  <bruno@clisp.org>
156
157         math: Fix some C++ test errors on Solaris 8.
158         * lib/math.in.h (truncf, trunc): Use simpler idiom.
159
160 2010-04-04  Bruno Haible  <bruno@clisp.org>
161
162         math: Fix some C++ test errors on Cygwin.
163         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
164         truncl): Provide declaration if the system does not have it.
165         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
166         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
167         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
168         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
169         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
170         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
171         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
172         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
173         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
174         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
175         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
176         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
177         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
178         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
179         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
180         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
182         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
183         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
184         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
185         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
186         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
187
188 2010-04-04  Bruno Haible  <bruno@clisp.org>
189
190         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
191         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
192         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
193         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
194         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
195         * m4/isinf.m4 (gl_ISINF): Likewise.
196         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
197
198 2010-04-04  Bruno Haible  <bruno@clisp.org>
199
200         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
201         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
202
203 2010-04-04  Bruno Haible  <bruno@clisp.org>
204
205         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
206         * modules/tmpfile (configure.ac): Update.
207
208         tmpfile: Fix C++ test error on mingw.
209         * lib/stdio.in.h (tmpfile): New declaration.
210         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
211         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
212         * modules/tmpfile (Depends-on): Add stdio.
213         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
214         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
215         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
216         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
217         REPLACE_TMPFILE.
218         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
219
220 2010-04-04  Bruno Haible  <bruno@clisp.org>
221
222         ioctl: Fix C++ test error on mingw.
223         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
224         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
225         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
226
227 2010-04-03  Bruno Haible  <bruno@clisp.org>
228
229         wcwidth: Fix C++ test error on mingw.
230         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
231         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
232         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
233
234 2010-04-03  Bruno Haible  <bruno@clisp.org>
235
236         nanosleep: Fix C++ test error on mingw.
237         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
238         * lib/time.in.h (nanosleep): Use modern idiom.
239         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
240         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
241         REPLACE_NANOSLEEP to 1.
242         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
243         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
244
245 2010-04-03  Bruno Haible  <bruno@clisp.org>
246
247         strptime: Fix C++ test error on mingw.
248         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
249         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
250         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
251         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
252         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
253         not REPLACE_STRPTIME.
254         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
255         REPLACE_STRPTIME.
256
257 2010-04-03  Bruno Haible  <bruno@clisp.org>
258
259         timegm: Fix C++ test error on mingw.
260         * lib/time.in.h (timegm): Use modern idiom.
261         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
262         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
263         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
264         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
265
266 2010-04-03  Bruno Haible  <bruno@clisp.org>
267
268         timegm: Assume declaration if function exists.
269         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
270         if it exists. Don't clobber ac_cv_func_timegm.
271
272 2010-04-03  Bruno Haible  <bruno@clisp.org>
273
274         time_r: Fix C++ test error on mingw.
275         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
276         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
277         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
278         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
279         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
280
281 2010-04-03  Bruno Haible  <bruno@clisp.org>
282
283         time_r: Minor updates.
284         * modules/time_r (Description): Mention the provided functions.
285         * lib/time_r.c: Don't include <string.h>.
286         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
287         * doc/posix-functions/localtime_r.texi: Likewise.
288
289 2010-04-03  Bruno Haible  <bruno@clisp.org>
290
291         time: Fix regression introduced on 2010-03-08.
292         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
293         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
294
295 2010-04-03  Jim Meyering  <meyering@redhat.com>
296
297         maint.mk: don't silently disable project-specific syntax-check rules
298         * top/maint.mk (_prohibit_regexp): Define, to help people realize
299         that they need to convert their project-specific syntax-check rules
300         to use the new _sc_search_regexp.
301
302 2010-04-03  Bruno Haible  <bruno@clisp.org>
303
304         fchdir: Fix regression introduced on 2010-03-08.
305         * lib/unistd.in.h (fchdir): Fix declaration.
306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
308         REPLACE_FCHDIR.
309         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
310         REPLACE_FCHDIR.
311
312 2010-04-03  Bruno Haible  <bruno@clisp.org>
313
314         getpagesize: Fix C++ test error on mingw.
315         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
316         system does not declare the function.
317         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
318         declared.
319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
320         HAVE_DECL_GETPAGESIZE.
321         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
322
323 2010-04-03  Bruno Haible  <bruno@clisp.org>
324
325         stdio: Make C++ tests work on mingw.
326         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
327         does not declare the function.
328
329 2010-04-03  Bruno Haible  <bruno@clisp.org>
330
331         ftello: Fix C++ test error on mingw.
332         * lib/stdio.in.h (ftello): Use modern idiom.
333         * lib/ftello.c (ftello): Renamed from rpl_ftello.
334         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
335         is missing and that it needs to be replaced.
336         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
338         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
339
340 2010-04-03  Bruno Haible  <bruno@clisp.org>
341
342         fseeko: Fix C++ test error on mingw.
343         * lib/stdio.in.h (fseeko): Use modern idiom.
344         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
345         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
346         is missing and that it needs to be replaced.
347         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
349         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
350
351 2010-04-03  Bruno Haible  <bruno@clisp.org>
352
353         mkstemp: Fix C++ test error on mingw.
354         * lib/stdlib.in.h (mkstemp): Use modern idiom.
355         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
356         function is missing and that it needs to be replaced.
357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
358         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
359
360 2010-04-03  Bruno Haible  <bruno@clisp.org>
361
362         stpncpy: Fix C++ test error on mingw.
363         * lib/string.in.h (stpncpy): Use modern idiom.
364         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
365         function is missing and that it needs to be replaced.
366         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
367         REPLACE_STPNCPY.
368         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
369
370 2010-04-03  Bruno Haible  <bruno@clisp.org>
371
372         sys_stat: Fix C++ test error on mingw.
373         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
374         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
375
376 2010-04-03  Bruno Haible  <bruno@clisp.org>
377
378         pty: Update doc.
379         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
380
381 2010-04-03  Bruno Haible  <bruno@clisp.org>
382
383         unistd: Fix C++ test error on mingw.
384         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
385
386 2010-04-03  Bruno Haible  <bruno@clisp.org>
387
388         Update doc regarding mingw.
389         * doc/glibc-functions/openpty.texi: Update regarding mingw.
390         * doc/glibc-functions/login_tty.texi: Likewise.
391         * doc/glibc-functions/forkpty.texi: Likewise.
392
393 2010-04-03  Bruno Haible  <bruno@clisp.org>
394
395         stdlib: Avoid compilation failure of c-strtold on mingw.
396         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
397
398 2010-04-03  Bruno Haible  <bruno@clisp.org>
399
400         locale: Make C++ tests work on Cygwin and mingw.
401         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
402         cannot provide the function.
403         Reported by Simon Josefsson.
404
405 2010-04-03  Bruno Haible  <bruno@clisp.org>
406
407         localename: Port to MacOS X 10.6.
408         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
409         memory layout of the locales in MacOS X 10.6 as well.
410         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
411
412 2010-04-02  Bruno Haible  <bruno@clisp.org>
413
414         gnulib-tool: Ensure that long-running tests are executed last.
415         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
416         running tests after the one for the other tests.
417
418 2010-04-02  Bruno Haible  <bruno@clisp.org>
419
420         gnulib-tool: Ensure the tests in the main directory are executed first.
421         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
422         start with the current directory.
423
424 2010-04-02  Bruno Haible  <bruno@clisp.org>
425
426         Tests for module 'havelib', moved here from GNU gettext.
427         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
428         modifications.
429         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
430         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
431         with modifications.
432         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
433         modifications.
434         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
435         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
436         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
437         with modifications.
438         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
439         with modifications.
440         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
441         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
442         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
443         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
444         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
445         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
446         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
447         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
448         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
449         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
450         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
451         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
452         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
453         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
454         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
455         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
456         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
457         with modifications.
458         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
459         with modifications.
460         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
461         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
462         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
463         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
464         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
465         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
466         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
467         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
468         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
469         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
470         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
471         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
472         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
473         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
474         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
475         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
476         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
477         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
478         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
479         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
480         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
481         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
482         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
483         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
484         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
485         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
486         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
487         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
488         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
489         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
490         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
491         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
492         * tests/havelib/rpathx/rpathx.c: New file, from
493         gettext/autoconf-lib-link.
494         * tests/havelib/rpathx/Makefile.am: New file, from
495         gettext/autoconf-lib-link.
496         * tests/havelib/rpathx/configure.ac: New file, from
497         gettext/autoconf-lib-link with modifications.
498         * tests/havelib/rpathy/rpathy.c: New file, from
499         gettext/autoconf-lib-link.
500         * tests/havelib/rpathy/Makefile.am: New file, from
501         gettext/autoconf-lib-link.
502         * tests/havelib/rpathy/configure.ac: New file, from
503         gettext/autoconf-lib-link with modifications.
504         * tests/havelib/rpathz/rpathz.c: New file, from
505         gettext/autoconf-lib-link.
506         * tests/havelib/rpathz/Makefile.am: New file, from
507         gettext/autoconf-lib-link.
508         * tests/havelib/rpathz/configure.ac: New file, from
509         gettext/autoconf-lib-link with modifications.
510         * tests/havelib/rpathlx/usex.c: New file, from
511         gettext/autoconf-lib-link.
512         * tests/havelib/rpathlx/Makefile.am: New file, from
513         gettext/autoconf-lib-link.
514         * tests/havelib/rpathlx/configure.ac: New file, from
515         gettext/autoconf-lib-link with modifications.
516         * tests/havelib/rpathly/usey.c: New file, from
517         gettext/autoconf-lib-link.
518         * tests/havelib/rpathly/Makefile.am: New file, from
519         gettext/autoconf-lib-link.
520         * tests/havelib/rpathly/configure.ac: New file, from
521         gettext/autoconf-lib-link with modifications.
522         * tests/havelib/rpathlz/usez.c: New file, from
523         gettext/autoconf-lib-link.
524         * tests/havelib/rpathlz/Makefile.am: New file, from
525         gettext/autoconf-lib-link.
526         * tests/havelib/rpathlz/configure.ac: New file, from
527         gettext/autoconf-lib-link with modifications.
528         * tests/havelib/rpathlyx/usey.c: New file, from
529         gettext/autoconf-lib-link.
530         * tests/havelib/rpathlyx/Makefile.am: New file, from
531         gettext/autoconf-lib-link.
532         * tests/havelib/rpathlyx/configure.ac: New file, from
533         gettext/autoconf-lib-link with modifications.
534         * tests/havelib/rpathlzyx/usez.c: New file, from
535         gettext/autoconf-lib-link.
536         * tests/havelib/rpathlzyx/Makefile.am: New file, from
537         gettext/autoconf-lib-link.
538         * tests/havelib/rpathlzyx/configure.ac: New file, from
539         gettext/autoconf-lib-link with modifications.
540         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
541         with modifications.
542
543 2010-04-02  Bruno Haible  <bruno@clisp.org>
544
545         gnulib-tool: Create distributed built sources also for the tests.
546         * gnulib-tool (func_create_testdir): Also generate distributed built
547         sources in the tests directory.
548
549 2010-04-02  Bruno Haible  <bruno@clisp.org>
550
551         gnulib-tool: Obey user's environment variables.
552         * gnulib-tool (func_create_testdir): When creating built sources,
553         respect the environment variables for autoconf, automake, etc. given by
554         the user.
555
556 2010-04-02  Bruno Haible  <bruno@clisp.org>
557
558         gnulib-tool: Provide the value of --m4-base to modules.
559         * gnulib-tool (func_import, func_create_testdir): Emit a definition
560         of gl_m4_base.
561
562 2010-04-02  Eric Blake  <eblake@redhat.com>
563
564         maint.mk: fix some fallout
565         * NEWS: Document the incompatible change, and its effect on cfg.mk.
566         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
567
568 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
569
570         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
571         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
572         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
573         (sc_cast_of_x_alloc_return_value): Likewise.
574         (sc_cast_of_alloca_return_value): Likewise.
575         (sc_space_tab): Likewise.
576         (sc_prohibit_atoi_atof): Likewise.
577         (sc_prohibit_magic_number_exit): Likewise.
578         (sc_error_exit_success): Likewise.
579         (sc_file_system): Likewise.
580         (sc_prohibit_have_config_h): Likewise.
581         (sc_require_config_h): Likewise.
582         (sc_prohibit_HAVE_MBRTOWC): Likewise.
583         (sc_obsolete_symbols): Likewise.
584         (sc_changelog): Likewise.
585         (sc_program_name): Likewise.
586         (sc_the_the): Likewise.
587         (sc_trailing_blank): Likewise.
588         (sc_two_space_separator_in_usage): Likewise.
589         (sc_useless_cpp_parens): Likewise.
590         (sc_GPL_version): Likewise.
591         (sc_GFDL_version): Likewise.
592         (sc_texinfo_acronym): Likewise.
593         (sc_prohibit_cvs_keyword): Likewise.
594         (sc_prohibit_stat_st_blocks): Likewise.
595         (sc_prohibit_S_IS_definition): Likewise.
596         (sc_redundant_const): Likewise.
597         (sc_makefile_TAB_only_indentation): Likewise.
598         (sc_m4_quote_check): Likewise.
599         (sc_makefile_path_separator_check): Likewise.
600         (sc_copyright_check): Likewise.
601         (sc_Wundef_boolean): Likewise.
602         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
603
604         maint.mk: match 0 or more whitespace-before-function-call '('
605         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
606         that have zero or two-and-more spaces between the function name
607         and the open parenthesis.
608         (sc_error_message_warn_fatal): Likewise.
609         (sc_error_message_uppercase): Likewise.
610         (sc_error_message_period): Likewise.
611
612 2010-03-31  Eric Blake  <eblake@redhat.com>
613
614         maint.mk: check for [ as well as test
615         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
616         Based on a libvirt report by Matthias Bolte.
617
618         gnumakefile: don't squelch _version output
619         * top/GNUmakefile (_version): Create one-shot dependency rather
620         than using $(shell) when version must be regenerated.
621         (_autoreconf): Run verbosely, by default.
622
623         sys_time: avoid compiler warnings
624         * lib/sys_time.in.h (includes): Ensure gcc pragma is
625         unconditional, fixing regression from 2010-03-29.
626         Reported by Simon Josefsson.
627
628 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
629
630         maint.mk: s/_header_without_use/_sc_header_without_use/
631         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
632         (sc_prohibit_assert_without_use): Use the new name.
633         (sc_prohibit_close_stream_without_use): Likewise.
634         (sc_prohibit_getopt_without_use): Likewise.
635         (sc_prohibit_quotearg_without_use): Likewise.
636         (sc_prohibit_quote_without_use): Likewise.
637         (sc_prohibit_long_options_without_use): Likewise.
638         (sc_prohibit_inttostr_without_use): Likewise.
639         (sc_prohibit_ignore_value_without_use): Likewise.
640         (sc_prohibit_error_without_use): Likewise.
641         (sc_prohibit_xalloc_without_use): Likewise.
642         (sc_prohibit_hash_without_use): Likewise.
643         (sc_prohibit_hash_pjw_without_use): Likewise.
644         (sc_prohibit_safe_read_without_use): Likewise.
645         (sc_prohibit_argmatch_without_use): Likewise.
646         (sc_prohibit_canonicalize_without_use): Likewise.
647         (sc_prohibit_root_dev_ino_without_use): Likewise.
648         (sc_prohibit_openat_without_use): Likewise.
649         (sc_prohibit_c_ctype_without_use): Likewise.
650         (sc_prohibit_signal_without_use): Likewise.
651         (sc_prohibit_intprops_without_use): Likewise.
652
653 2010-03-30  Eric Blake  <eblake@redhat.com>
654
655         maint: improve module indicators
656         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
657         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
658         columns, and avoid extra macro expansion.
659
660         fdopendir: work around FreeBSD bug
661         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
662         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
663         * modules/dirent (Makefile.am): Substitute it.
664         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
665         declaration.
666         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
667         fix.
668         Reported by Christian Weisgerber <naddy@mips.inka.de>.
669
670 2010-03-29  Bruno Haible  <bruno@clisp.org>
671
672         Emit #pragma system_header after the inclusion guard, not before.
673         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
674         guard that spans the entire file, not before. This enables an
675         optimization in GCC's preprocessor.
676         * lib/ctype.in.h: Likewise.
677         * lib/dirent.in.h: Likewise.
678         * lib/errno.in.h: Likewise.
679         * lib/float.in.h: Likewise.
680         * lib/getopt.in.h: Likewise.
681         * lib/iconv.in.h: Likewise.
682         * lib/langinfo.in.h: Likewise.
683         * lib/locale.in.h: Likewise.
684         * lib/math.in.h: Likewise.
685         * lib/netdb.in.h: Likewise.
686         * lib/netinet_in.in.h: Likewise.
687         * lib/pty.in.h: Likewise.
688         * lib/sched.in.h: Likewise.
689         * lib/se-selinux.in.h: Likewise.
690         * lib/search.in.h: Likewise.
691         * lib/spawn.in.h: Likewise.
692         * lib/stdarg.in.h: Likewise.
693         * lib/stdint.in.h: Likewise.
694         * lib/string.in.h: Likewise.
695         * lib/strings.in.h: Likewise.
696         * lib/sys_file.in.h: Likewise.
697         * lib/sys_ioctl.in.h: Likewise.
698         * lib/sys_time.in.h: Likewise.
699         * lib/sys_times.in.h: Likewise.
700         * lib/sys_utsname.in.h: Likewise.
701         * lib/sys_wait.in.h: Likewise.
702         * lib/sysexits.in.h: Likewise.
703         * lib/wctype.in.h: Likewise.
704
705 2010-03-28  James Youngman  <jay@gnu.org>
706
707         save-cwd: don't leak a file descriptor when the caller execs.
708         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
709         saved file descriptor.
710         * modules/save-cwd (Depends-on): Depend on cloexec.
711
712 2010-03-29  Bruno Haible  <bruno@clisp.org>
713
714         Remove vestiges of fts-lgpl module.
715         * lib/fts_.h: Assume GNULIB_FTS is 1.
716         * lib/fts.c: Likewise.
717         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
718
719 2010-03-28  Bruno Haible  <bruno@clisp.org>
720
721         Fix definition of tests witness macro.
722         * gnulib-tool (func_import): Fix definition of witness macro.
723
724 2010-03-28  Bruno Haible  <bruno@clisp.org>
725
726         Fix ioctl's protoype on glibc systems.
727         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
728         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
729         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
730         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
731         signature. If not, arrange to replace the ioctl function.
732         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
733         REPLACE_IOCTL.
734         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
735         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
736         Reported by Ludovic Courtès <ludo@gnu.org>.
737
738 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
739
740         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
741         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
742         made it so grep -r --include=GLOB* ... did not work.
743
744 2010-03-26  Jim Meyering  <meyering@redhat.com>
745             Eric Blake  <eblake@redhat.com>
746
747         maint.mk: prohibit use of test's -o and -a operators
748         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
749
750 2010-03-28  Bruno Haible  <bruno@clisp.org>
751
752         Remove unused GNULIB_XYZ macro definitions.
753         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
754         invocation.
755
756 2010-03-28  Bruno Haible  <bruno@clisp.org>
757
758         Mark privileged tests modules.
759         * modules/idpriv-drop-tests (Status): New section.
760         * modules/idpriv-droptemp-tests (Status): New section.
761
762 2010-03-28  Bruno Haible  <bruno@clisp.org>
763
764         Split C++ tests into separate tests modules.
765         * modules/dirent-c++-tests: New file, extracted from
766         modules/dirent-tests.
767         * modules/dirent-tests: Depend on it.
768         * modules/fcntl-h-c++-tests: New file, extracted from
769         modules/fcntl-h-tests.
770         * modules/fcntl-h-tests: Depend on it.
771         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
772         * modules/glob-tests: Depend on it.
773         * modules/iconv-h-c++-tests: New file, extracted from
774         modules/iconv-h-tests.
775         * modules/iconv-h-tests: Depend on it.
776         * modules/langinfo-c++-tests: New file, extracted from
777         modules/langinfo-tests.
778         * modules/langinfo-tests: Depend on it.
779         * modules/locale-c++-tests: New file, extracted from
780         modules/locale-tests.
781         * modules/locale-tests: Depend on it.
782         * modules/math-c++-tests: New file, extracted from modules/math-tests.
783         * modules/math-tests: Depend on it.
784         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
785         * modules/pty-tests: Depend on it.
786         * modules/search-c++-tests: New file, extracted from
787         modules/search-tests.
788         * modules/search-tests: Depend on it.
789         * modules/signal-c++-tests: New file, extracted from
790         modules/signal-tests.
791         * modules/signal-tests: Depend on it.
792         * modules/spawn-c++-tests: New file, extracted from
793         modules/spawn-tests.
794         * modules/spawn-tests: Depend on it.
795         * modules/stdio-c++-tests: New file, extracted from
796         modules/stdio-tests.
797         * modules/stdio-tests: Depend on it.
798         * modules/stdlib-c++-tests: New file, extracted from
799         modules/stdlib-tests.
800         * modules/stdlib-tests: Depend on it.
801         * modules/string-c++-tests: New file, extracted from
802         modules/string-tests.
803         * modules/string-tests: Depend on it.
804         * modules/sys_ioctl-c++-tests: New file, extracted from
805         modules/sys_ioctl-tests.
806         * modules/sys_ioctl-tests: Depend on it.
807         * modules/sys_select-c++-tests: New file, extracted from
808         modules/sys_select-tests.
809         * modules/sys_select-tests: Depend on it.
810         * modules/sys_socket-c++-tests: New file, extracted from
811         modules/sys_socket-tests.
812         * modules/sys_socket-tests: Depend on it.
813         * modules/sys_stat-c++-tests: New file, extracted from
814         modules/sys_stat-tests.
815         * modules/sys_stat-tests: Depend on it.
816         * modules/sys_time-c++-tests: New file, extracted from
817         modules/sys_time-tests.
818         * modules/sys_time-tests: Depend on it.
819         * modules/time-c++-tests: New file, extracted from modules/time-tests.
820         * modules/time-tests: Depend on it.
821         * modules/unistd-c++-tests: New file, extracted from
822         modules/unistd-tests.
823         * modules/unistd-tests: Depend on it.
824         * modules/wchar-c++-tests: New file, extracted from
825         modules/wchar-tests.
826         * modules/wchar-tests: Depend on it.
827         * modules/wctype-c++-tests: New file, extracted from
828         modules/wctype-tests.
829         * modules/wctype-tests: Depend on it.
830         Reported by Simon Josefsson.
831
832 2010-03-28  Bruno Haible  <bruno@clisp.org>
833
834         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
835         * gnulib-tool (func_exists_module): New function, extracted from
836         func_verify_module.
837         (func_verify_module): Use it.
838         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
839         'foo' only if 'foo' exists.
840         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
841         module.
842
843 2010-03-28  Bruno Haible  <bruno@clisp.org>
844
845         gnulib-tool: Add support for special categories of tests.
846         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
847         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
848         (func_usage): Document them.
849         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
850         inc_unportable_tests, inc_all_tests): New variables.
851         (func_acceptable): Consider these variables.
852         (func_modules_transitive_closure): Make it work when the 'Status' field
853         consists of multiple words.
854         (func_import): Store and restore the values of inc_cxx_tests,
855         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
856         inc_all_tests in gnulib-comp.m4.
857         (func_create_testdir): Set inc_all_tests to true.
858         * doc/gnulib.texi (Extra tests modules): New section.
859         Suggested by Jim Meyering.
860
861 2010-03-28  Bruno Haible  <bruno@clisp.org>
862
863         ansi-c++-opt: Allow turning off the C++ build by default.
864         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
865         gl_CXX_CHOICE_DEFAULT_NO is defined.
866         Requested by Eric Blake.
867
868 2010-03-28  Bruno Haible  <bruno@clisp.org>
869
870         unistd: Avoid #define replacements in C++ mode.
871         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
872         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
873         setsockopt, shutdown, select): In C++, attach a warning to the function
874         if possible, rather than #defining the symbol to a dysfunctional alias.
875         Reported by John W. Eaton <jwe@gnu.org>.
876
877 2010-03-28  Bruno Haible  <bruno@clisp.org>
878
879         Fix link errors on mingw.
880         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
881         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
882         $(LIBSOCKET).
883         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
884         $(LIBSOCKET).
885
886 2010-03-28  Bruno Haible  <bruno@clisp.org>
887             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
888
889         lib-ignore: Determine different options for different compilers.
890         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
891         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
892         Add comments.
893         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
894         * NEWS: Mention the change.
895
896 2010-03-27  Bruno Haible  <bruno@clisp.org>
897
898         Remove unused GNULIB_XYZ macro definitions.
899         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
900         * modules/fseek (configure.ac): Likewise.
901         * modules/ioctl (configure.ac): Likewise.
902         * modules/open (configure.ac): Likewise.
903         * modules/stdlib-safer (configure.ac): Likewise.
904
905 2010-03-27  Bruno Haible  <bruno@clisp.org>
906
907         Add a remark about certain modules.
908         * modules/malloc (Comment): New section.
909         * modules/realloc (Comment): Likewise.
910         * modules/sigpipe (Comment): Likewise.
911
912 2010-03-27  Bruno Haible  <bruno@clisp.org>
913
914         Resolve conflict between the two kinds of module indicators.
915         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
916         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
917         * modules/canonicalize (configure.ac): Invoke
918         gl_MODULE_INDICATOR_FOR_TESTS.
919         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
920         GNULIB_XYZ.
921         * tests/test-dirent-c++.cc: Likewise.
922         * tests/test-dirent-safer.c: Likewise.
923         * tests/test-dup2.c: Likewise.
924         * tests/test-fchdir.c: Likewise.
925         * tests/test-fcntl-h-c++.cc: Likewise.
926         * tests/test-getopt.c: Likewise.
927         * tests/test-getopt.h: Likewise.
928         * tests/test-langinfo-c++.cc: Likewise.
929         * tests/test-locale-c++.cc: Likewise.
930         * tests/test-math-c++.cc: Likewise.
931         * tests/test-pty-c++.cc: Likewise.
932         * tests/test-search-c++.cc: Likewise.
933         * tests/test-signal-c++.cc: Likewise.
934         * tests/test-spawn-c++.cc: Likewise.
935         * tests/test-stdio-c++.cc: Likewise.
936         * tests/test-stdlib-c++.cc: Likewise.
937         * tests/test-string-c++.cc: Likewise.
938         * tests/test-sys_ioctl-c++.cc: Likewise.
939         * tests/test-sys_select-c++.cc: Likewise.
940         * tests/test-sys_socket-c++.cc: Likewise.
941         * tests/test-sys_stat-c++.cc: Likewise.
942         * tests/test-sys_time-c++.cc: Likewise.
943         * tests/test-time-c++.cc: Likewise.
944         * tests/test-unistd-c++.cc: Likewise.
945         * tests/test-wchar-c++.cc: Likewise.
946         * tests/uninorm/test-u8-nfc.c: Likewise.
947         * tests/uninorm/test-u8-nfd.c: Likewise.
948         * tests/uninorm/test-u8-nfkc.c: Likewise.
949         * tests/uninorm/test-u8-nfkd.c: Likewise.
950         * tests/uninorm/test-u16-nfc.c: Likewise.
951         * tests/uninorm/test-u16-nfd.c: Likewise.
952         * tests/uninorm/test-u16-nfkc.c: Likewise.
953         * tests/uninorm/test-u16-nfkd.c: Likewise.
954         * tests/uninorm/test-u32-nfc.c: Likewise.
955         * tests/uninorm/test-u32-nfc-big.c: Likewise.
956         * tests/uninorm/test-u32-nfd.c: Likewise.
957         * tests/uninorm/test-u32-nfd-big.c: Likewise.
958         * tests/uninorm/test-u32-nfkc.c: Likewise.
959         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
960         * tests/uninorm/test-u32-nfkd.c: Likewise.
961         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
962         * tests/uninorm/test-u32-normalize-big.c: Likewise.
963
964 2010-03-27  Bruno Haible  <bruno@clisp.org>
965
966         Distinguish two kinds of module indicators.
967         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
968         gl_MODULE_INDICATOR.
969         (gl_MODULE_INDICATOR): New macro.
970         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
971         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
972         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
973         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
974         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
975         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
976         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
977         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
978         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
979         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
980         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
981         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
982         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
983         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
984         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
985         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
986         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
987         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
988         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
989         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
990         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
991         * modules/cloexec (configure.ac): Likewise.
992         * modules/getopt-gnu (configure.ac): Likewise.
993         * modules/uninorm/u8-normalize (configure.ac): Likewise.
994         * modules/uninorm/u16-normalize (configure.ac): Likewise.
995         * modules/uninorm/u32-normalize (configure.ac): Likewise.
996         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
997
998 2010-03-27  Bruno Haible  <bruno@clisp.org>
999
1000         New module description field 'Comment'.
1001         * gnulib-tool: New option --extract-comment.
1002         (func_usage): Document it.
1003         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
1004         (func_get_comment): New function.
1005         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
1006
1007 2010-03-27  Bruno Haible  <bruno@clisp.org>
1008
1009         Addendum to 2010-02-07 commit.
1010         * gnulib-tool (func_usage): Document --extract-applicability option.
1011
1012 2010-03-27  Bruno Haible  <bruno@clisp.org>
1013
1014         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
1015         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
1016         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
1017         rather than link errors.
1018
1019 2010-03-27  Bruno Haible  <bruno@clisp.org>
1020
1021         Avoid side effects from tests-related modules on the compilation of lib.
1022         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
1023         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
1024         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
1025         parameter. Emit into AM_CPPFLAGS a definition of the designated C
1026         macro.
1027         (func_import): Define a witness macro. Assign it a value that depends
1028         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
1029         tests-related modules.
1030         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
1031         Reported by Jim Meyering.
1032
1033 2010-03-27  Bruno Haible  <bruno@clisp.org>
1034
1035         Factorize common .m4 code.
1036         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
1037         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
1038         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
1039         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
1040         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1041         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
1042         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
1043         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1044         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1045         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1046         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
1047         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1048         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1049         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1050         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1051         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
1052         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1053         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1054         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1055         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
1056         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
1057         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1058         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1059         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1060         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1061         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1062         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
1063         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
1064         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
1065         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1066         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1067         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1068
1069 2010-03-27  Bruno Haible  <bruno@clisp.org>
1070
1071         Fix a compilation error on Cygwin with g++ >= 4.3.
1072         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
1073         if it is undefined or if we alias it to chmod.
1074         (lstat): Don't warn about the use of this function if it is undefined
1075         or if we alias it to stat.
1076         Reported by Simon Josefsson.
1077
1078 2010-03-27  Bruno Haible  <bruno@clisp.org>
1079
1080         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
1081         * modules/getlogin (configure.ac): Update.
1082
1083         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
1084         * modules/getlogin_r (configure.ac): Update.
1085
1086         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
1087         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
1088         * modules/inet_ntop (configure.ac): Update.
1089
1090         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1091         * modules/inet_pton (configure.ac): Update.
1092
1093         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1094         * modules/mbslen (configure.ac): Update.
1095
1096         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1097         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1098         * modules/forkpty (configure.ac): Update.
1099         * modules/openpty (configure.ac): Update.
1100
1101 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1102
1103         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1104         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1105
1106 2010-03-25  Eric Blake  <eblake@redhat.com>
1107
1108         maint: use pragma consistently across replacement headers
1109         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1110         * lib/dirent.in.h (system_header): Likewise.
1111         * lib/errno.in.h (system_header): Likewise.
1112         * lib/float.in.h (system_header): Likewise.
1113         * lib/getopt.in.h (system_header): Likewise.
1114         * lib/iconv.in.h (system_header): Likewise.
1115         * lib/inttypes.in.h (system_header): Likewise.
1116         * lib/langinfo.in.h (system_header): Likewise.
1117         * lib/locale.in.h (system_header): Likewise.
1118         * lib/math.in.h (system_header): Likewise.
1119         * lib/netdb.in.h (system_header): Likewise.
1120         * lib/netinet_in.in.h (system_header): Likewise.
1121         * lib/pty.in.h (system_header): Likewise.
1122         * lib/sched.in.h (system_header): Likewise.
1123         * lib/se-selinux.in.h (system_header): Likewise.
1124         * lib/search.in.h (system_header): Likewise.
1125         * lib/spawn.in.h (system_header): Likewise.
1126         * lib/stdarg.in.h (system_header): Likewise.
1127         * lib/stdint.in.h (system_header): Likewise.
1128         * lib/string.in.h (system_header): Likewise.
1129         * lib/strings.in.h (system_header): Likewise.
1130         * lib/sys_file.in.h (system_header): Likewise.
1131         * lib/sys_ioctl.in.h (system_header): Likewise.
1132         * lib/sys_socket.in.h (system_header): Likewise.
1133         * lib/sys_times.in.h (system_header): Likewise.
1134         * lib/sys_utsname.in.h (system_header): Likewise.
1135         * lib/sys_wait.in.h (system_header): Likewise.
1136         * lib/sysexits.in.h (system_header): Likewise.
1137         * lib/unistd.in.h (system_header): Likewise.
1138         * lib/wctype.in.h (system_header): Likewise.
1139
1140         arpa/inet: fix mingw compilation warning
1141         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1142         Reported by Matthew Bolte.
1143
1144 2010-03-25  Bruno Haible  <bruno@clisp.org>
1145
1146         Avoid collision between gnulib wrapper and libintl wrapper.
1147         * lib/printf.c (printf): Don't define if a printf wrapper is already
1148         defined in intl/printf.c.
1149         Reported by Michel Boaventura <michel@michelboaventura.com>.
1150
1151 2010-03-25  Bruno Haible  <bruno@clisp.org>
1152
1153         Use ANSI C.
1154         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1155
1156 2010-03-25  Bruno Haible  <bruno@clisp.org>
1157
1158         Minor formatting changes.
1159         * lib/acosl.c: Insert space before function argument list.
1160         * lib/argz.c: Likewise.
1161         * lib/asinl.c: Likewise.
1162         * lib/expl.c: Likewise.
1163         * lib/gen-uni-tables.c: Likewise.
1164         * lib/gettext.h: Likewise.
1165         * lib/glthread/lock.h: Likewise.
1166         * lib/tanl.c: Likewise.
1167         * lib/uniname/uniname.c: Likewise.
1168         * tests/test-idpriv-drop.c: Likewise.
1169         * tests/test-idpriv-droptemp.c: Likewise.
1170         * tests/test-lock.c: Likewise.
1171         * tests/test-tls.c: Likewise.
1172         * lib/argp-help.c: Insert space before function-like macro argument
1173         list.
1174         * lib/memcmp.c: Likewise.
1175         * tests/test-base64.c: Likewise.
1176         * lib/localename.c: Insert space before sizeof's argument list.
1177         * lib/safe-alloc.h: Likewise.
1178         * lib/file-set.h: Insert space before macro argument list.
1179         * tests/test-argp.c: Likewise.
1180         * lib/argp-namefrob.h: Insert space before function parameter list.
1181         * lib/getaddrinfo.c: Likewise.
1182         * lib/netdb.in.h: Likewise.
1183         * lib/parse-duration.h: Likewise.
1184         * lib/parse-duration.c: Likewise.
1185         * lib/poll.c: Likewise.
1186         * lib/select.c: Likewise.
1187         * lib/trim.h: Likewise.
1188         * tests/test-usleep.c: Likewise.
1189         * lib/ldexpl.c: Insert space before function parameter list and before
1190         function argument list.
1191         * lib/logl.c: Likewise.
1192         * lib/sqrtl.c: Likewise.
1193         * lib/trim.c: Likewise.
1194         * lib/cosl.c: Use GNU style indentation. Insert space before function
1195         argument list.
1196         * lib/sinl.c: Likewise.
1197         * lib/tsearch.c: Insert space after 'for'.
1198         Reported by Jim Meyering.
1199
1200 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1201
1202         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1203         config header before grepping, as it's not present before
1204         autoreconf/configure are run.  Reported by Simon Josefsson.
1205
1206 2010-03-23  Bruno Haible  <bruno@clisp.org>
1207
1208         pt_chown: Make it work with automake < 1.11.
1209         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1210         Reported by Simon Josefsson.
1211
1212 2010-03-23  Bruno Haible  <bruno@clisp.org>
1213
1214         pt_chown: Don't depend on GPLed modules.
1215         * lib/pt_chown.c: Don't include idpriv.h.
1216         (main): Don't drop privileges.
1217         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1218         Reported by Simon Josefsson.
1219
1220 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1221
1222         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1223         suggestions from karl@freefriends.org (Karl Berry).
1224
1225 2010-03-22  Eric Blake  <eblake@redhat.com>
1226
1227         gethostname: further tweaks
1228         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1229         are overriding gethostname.
1230         Suggested by Bruno Haible.
1231
1232 2010-03-21  Bruno Haible  <bruno@clisp.org>
1233
1234         Fix comments.
1235         * lib/forkpty.c (rpl_forkpty): Fix comment.
1236         * lib/openpty.c (rpl_openpty): Likewise.
1237         Reported by Eric Blake.
1238
1239 2010-03-22  Eric Blake  <eblake@redhat.com>
1240
1241         gethostname: fix build on mingw
1242         * lib/unistd.in.h (includes): Work around fact that mingw
1243         <winsock2.h> re-includes <unistd.h>, by avoiding any
1244         redeclarations if we are being included by <winsock2.h>.
1245         Reported by Matthias Bolte.
1246
1247 2010-03-21  Bruno Haible  <bruno@clisp.org>
1248
1249         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1250         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1251         modifications.
1252         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1253         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1254         provide the replacement.
1255         * modules/forkpty (Depends-on): Add openpty, login_tty.
1256         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1257         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1258         * doc/glibc-functions/forkpty.texi: More supported platforms.
1259         * config/srclist.txt: Add forkpty.c (commented).
1260
1261 2010-03-21  Bruno Haible  <bruno@clisp.org>
1262
1263         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1264         (Makefile.am): Verify that PTY_LIB is defined.
1265
1266         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1267
1268 2010-03-21  Bruno Haible  <bruno@clisp.org>
1269
1270         Tests for module 'login_tty'.
1271         * modules/login_tty-tests: New file.
1272         * tests/test-login_tty.c: New file.
1273
1274         New module 'login_tty'.
1275         * lib/login_tty.c: New file.
1276         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1277         * modules/login_tty: New file.
1278         * doc/glibc-functions/login_tty.texi: Mention the new module.
1279
1280 2010-03-21  Bruno Haible  <bruno@clisp.org>
1281
1282         login_tty: Documentation.
1283         * doc/glibc-functions/login_tty.texi: New file.
1284         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1285
1286 2010-03-21  Bruno Haible  <bruno@clisp.org>
1287
1288         pty: Consistent macro naming.
1289         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1290         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1291         * modules/pty (configure.ac): Update.
1292
1293 2010-03-21  Bruno Haible  <bruno@clisp.org>
1294
1295         Tests for openpty: Make stricter.
1296         * tests/test-openpty.c (main): Add test of canonical processing and
1297         erase.
1298         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1299
1300         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1301         * lib/openpty.c (openpty): New replacement function.
1302         * lib/pty.in.h: Include <termios.h>.
1303         (openpty): Update declaration. Add comments.
1304         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1305         is not declared, arrange to provide the replacement. Check for _getpty
1306         and posix_openpt.
1307         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1308         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1309         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1310         * modules/pty-tests (test_pty_c___LDADD): New variable.
1311         * doc/glibc-functions/openpty.texi: More supported platforms.
1312
1313 2010-03-21  Bruno Haible  <bruno@clisp.org>
1314
1315         setenv: Tweaks.
1316         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1317         the test program.
1318         * doc/posix-functions/setenv.texi: Update platforms list.
1319
1320 2010-03-21  Bruno Haible  <bruno@clisp.org>
1321
1322         New module 'unlockpt'.
1323         * lib/unlockpt.c: New file, from glibc with modifications.
1324         * m4/unlockpt.m4: New file.
1325         * modules/unlockpt: New file.
1326         * lib/stdlib.in.h (unlockpt): New declaration.
1327         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1328         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1329         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1330         HAVE_UNLOCKPT.
1331         * doc/posix-functions/unlockpt.texi: Mention the new module.
1332         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1333         * config/srclist.txt: Add unlockpt.c (commented).
1334
1335 2010-03-21  Jim Meyering  <meyering@redhat.com>
1336
1337         maint.mk: prohibit inclusion of "intprops.h" without use
1338         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1339
1340 2010-03-21  Bruno Haible  <bruno@clisp.org>
1341
1342         New module 'grantpt'.
1343         * lib/grantpt.c: New file, from glibc with modifications.
1344         * m4/grantpt.m4: New file.
1345         * modules/grantpt: New file.
1346         * lib/stdlib.in.h (grantpt): New declaration.
1347         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1348         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1349         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1350         HAVE_GRANTPT.
1351         * doc/posix-functions/grantpt.texi: Mention the new module.
1352         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1353         * config/srclist.txt: Add grantpt.c (commented).
1354
1355 2010-03-21  Bruno Haible  <bruno@clisp.org>
1356
1357         New module 'pt_chown'.
1358         * lib/pt_chown.c: New file, from glibc with modifications.
1359         * lib/pty-private.h: New file, from glibc with modifications.
1360         * modules/pt_chown: New file.
1361         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1362
1363 2010-03-21  Bruno Haible  <bruno@clisp.org>
1364
1365         Tests for module 'ptsname'.
1366         * modules/ptsname-tests: New file.
1367         * tests/test-ptsname.c: New file.
1368
1369         New module 'ptsname'.
1370         * lib/ptsname.c: New file, from glibc with modifications.
1371         * m4/ptsname.m4: New file.
1372         * modules/ptsname: New file.
1373         * lib/stdlib.in.h (ptsname): New declaration.
1374         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1375         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1376         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1377         HAVE_PTSNAME.
1378         * doc/posix-functions/ptsname.texi: Mention the new module.
1379         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1380         * config/srclist.txt: Add ptsname.c (commented).
1381
1382 2010-03-21  Bruno Haible  <bruno@clisp.org>
1383
1384         Tests for module 'ttyname_r'.
1385         * modules/ttyname_r-tests: New file.
1386         * tests/test-ttyname_r.c: New file.
1387
1388         New module 'ttyname_r'.
1389         * lib/ttyname_r.c: New file.
1390         * m4/ttyname_r.m4: New file.
1391         * modules/ttyname_r: New file.
1392         * lib/unistd.in.h (ttyname_r): New declaration.
1393         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1394         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1395         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1396         HAVE_TTYNAME_R.
1397         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1398         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1399
1400 2010-03-20  Bruno Haible  <bruno@clisp.org>
1401
1402         signal: Undefine macro definitions in C++ mode.
1403         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1404         sigfillset): Undefine macro definitions from the system header in C++
1405         mode.
1406         Reported by John W. Eaton <jwe@gnu.org>.
1407
1408 2010-03-20  Bruno Haible  <bruno@clisp.org>
1409
1410         Ensure no #include statements inside extern "C" { ... }.
1411         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1412         contain #include statements.
1413         * lib/time.in.h: Likewise.
1414
1415 2010-03-20  Bruno Haible  <bruno@clisp.org>
1416
1417         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1418         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1419         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1420         Reported by John W. Eaton <jwe@gnu.org>.
1421
1422 2010-03-20  Bruno Haible  <bruno@clisp.org>
1423
1424         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1425         Reported by Jim Meyering.
1426
1427 2010-03-20  Bruno Haible  <bruno@clisp.org>
1428
1429         pipe: Set errno upon failure.
1430         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1431         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1432         errno value in error message.
1433
1434 2010-03-20  Bruno Haible  <bruno@clisp.org>
1435             Jim Meyering  <meyering@redhat.com>
1436
1437         lchown: Avoid "unused variable" warning.
1438         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1439
1440 2010-03-20  Bruno Haible  <bruno@clisp.org>
1441
1442         Work around unlink() bug on MacOS X 10.5.6.
1443         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1444         attempting to unlink a parent directory.
1445         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1446         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1447         activate for the replacement function.
1448         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1449
1450 2010-03-20  Bruno Haible  <bruno@clisp.org>
1451
1452         Fix link errors on Solaris 8.
1453         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1454         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1455
1456 2010-03-19  Jim Meyering  <meyering@redhat.com>
1457
1458         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1459         The _LIBC implementation of build_range_exp correctly honors the
1460         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1461         However, the non-_LIBC implementation would ignore that syntax-bit
1462         flag and return REG_ERANGE unconditionally.
1463         This change makes it honor that flag.
1464         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1465         Make two pointer parameters "const".
1466         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1467         (parse_bracket_exp): Update caller.
1468
1469         regex.m4: correct the reversed range endpoint ([b-a]) test
1470         * m4/regex.m4: When requiring that [b-a] evoke failure,
1471         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1472         test pass once again for x86-based systems.
1473
1474 2010-03-19  Bruno Haible  <bruno@clisp.org>
1475
1476         scandir: Fix link error on Solaris 8.
1477         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1478         macros.
1479
1480 2010-03-19  Bruno Haible  <bruno@clisp.org>
1481
1482         getusershell: Fix documentation.
1483         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1484         module.
1485         * doc/glibc-functions/setusershell.texi: Likewise.
1486
1487         getusershell: Provide declaration, missing on Solaris 9.
1488         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1489         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1490         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1491         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1493         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1494         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1495         HAVE_GETUSERSHELL.
1496         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1497
1498 2010-03-19  Bruno Haible  <bruno@clisp.org>
1499
1500         wctype: Provide iswblank function.
1501         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1502         exists and is fine.
1503         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1504         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1505         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1506         * doc/posix-functions/iswblank.texi: Update.
1507
1508 2010-03-19  Bruno Haible  <bruno@clisp.org>
1509
1510         Tests of module 'pty' in C++ mode.
1511         * modules/pty-tests: New file.
1512         * tests/test-pty-c++.cc: New file.
1513         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1514
1515 2010-03-19  Eric Blake  <eblake@redhat.com>
1516
1517         logb: fix documentation
1518         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1519         1.5 declaration bug.
1520
1521         forkpty, openpty: prefer glibc's const-safe prototype
1522         * lib/forkpty.c (rpl_forkpty): New file.
1523         * lib/openpty.c (rpl_openpty): Likewise.
1524         * modules/forkpty (Files): Distribute it.
1525         * modules/openpty (Files): Likewise.
1526         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1527         check...
1528         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1529         replacement for for non-const BSD signature.
1530         * modules/pty (Makefile.am): Substitute witnesses.
1531         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1532         * tests/test-forkpty.c: Update signature check.
1533         * tests/test-openpty.c: Likewise.
1534         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1535         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1536
1537         forkpty, openpty: split functions into new modules
1538         * modules/pty (Makefile.am): Substitute new witnesses.
1539         (Libraries): Move library detection...
1540         * modules/forkpty: ...into new module.
1541         * modules/openpty: Another new module.
1542         * modules/pty-tests: Rename and split...
1543         * modules/forkpty-tests: ...to this...
1544         * modules/openpty-tests: ...and this.
1545         * tests/test-pty.c: Rename and split...
1546         * tests/test-forkpty.c: ...to this...
1547         * tests/test-openpty.c: ...and this.
1548         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1549         (gl_PTY): Split library searching...
1550         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1551         (gl_FORKPTY, gl_OPENPTY): New macros.
1552         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1553         * NEWS: Mention the split.
1554         * MODULES.html.sh (Misc): Document the modules.
1555         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1556         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1557
1558         pty: improve replacement header
1559         * lib/pty.in.h: New file.
1560         * modules/pty (Files): Ship it.
1561         (Makefile.am): Always build replacement.
1562         * m4/pty.m4: Rename...
1563         * m4/pty_h.m4: ...to this.
1564         (gl_PTY): Modernize setting of witness macros; update check of
1565         forkpty to take proper advantage of cache.
1566         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1567
1568         getopt: avoid compiler warning
1569         * lib/getopt.c (attribute_hidden): Remove unused macro.
1570
1571 2010-03-18  Bruno Haible  <bruno@clisp.org>
1572
1573         Fix link errors on Solaris 8.
1574         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1575         * modules/search-tests (test_search_c___LDADD): Likewise.
1576         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1577         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1578         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1579         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1580         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1581         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1582         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1583
1584 2010-03-18  Bruno Haible  <bruno@clisp.org>
1585
1586         Fix bug introduced on 2010-03-14.
1587         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1588         (gl_SPAWN_H): Require it.
1589         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1590         Reported by Simon Josefsson.
1591
1592 2010-03-18  Bruno Haible  <bruno@clisp.org>
1593
1594         Fix typo introduced on 2009-12-31.
1595         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1596         posix_spawn_file_actions_adddup2.
1597
1598 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1599         and Eric Blake  <eblake@redhat.com>
1600
1601         test-vc-list-files-git: make more robust
1602         * tests/test-vc-list-files-git.sh: Unset problematic environment
1603         variables.  Chain commands together.
1604
1605 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1606
1607         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1608         `AC_CHECK_DECL' invocation.
1609
1610 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1611
1612         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1613         appears before executable statements. Suggested by Petr Sumbera
1614         <Petr.Sumbera@Sun.COM>.
1615
1616 2010-03-14  Bruno Haible  <bruno@clisp.org>
1617
1618         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1619         portability problems. Instead use a simpler test.
1620         (main): Check that invalid arguments are rejected only on Linux.
1621
1622 2010-03-14  Bruno Haible  <bruno@clisp.org>
1623
1624         Fix bug introduced on 2009-12-31.
1625         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1626         gl_PREREQ_SYS_H_WINSOCK2 always.
1627         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1628         SYS_SOCKET_H variable.
1629         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1630         Update comments.
1631         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1632         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1633         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1634         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1635         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1636
1637 2010-03-14  Bruno Haible  <bruno@clisp.org>
1638
1639         Fix values returned by sinl, cosl.
1640         * lib/trigl.h: Add specification comments.
1641         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1642         that combines the values from the precomputed table with the values of
1643         the Chebyshev polynomials.
1644
1645 2010-03-14  Bruno Haible  <bruno@clisp.org>
1646
1647         Fix compilation error when modules 'posix_spawn[p]' are not used.
1648         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1649         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1650
1651 2010-03-14  Bruno Haible  <bruno@clisp.org>
1652
1653         Fix compilation error on mingw when module 'time_r' is not used.
1654         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1655         is 1.
1656         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1657         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1658         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1659         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1660
1661 2010-03-14  Bruno Haible  <bruno@clisp.org>
1662
1663         Fix compilation error with Sun C.
1664         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1665         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1666         instead of GCC specific ULONG_LONG_MAX.
1667         * lib/xstrtoll.c: Likewise.
1668         * lib/xstrtoull.c: Likewise.
1669
1670 2010-03-13  Bruno Haible  <bruno@clisp.org>
1671
1672         Allow the user to disable C++ code and tests.
1673         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1674         (gl_PROG_ANSI_CXX): Require it.
1675
1676 2010-03-13  Bruno Haible  <bruno@clisp.org>
1677
1678         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1679         cases.
1680
1681 2010-03-13  Bruno Haible  <bruno@clisp.org>
1682
1683         Test that gnulib does not break the standard C++ headers.
1684         * tests/test-locale-c++2.cc: New file.
1685         * modules/locale-tests (Files): Add it.
1686         (Makefile.am): Compile it for test-locale-c++.
1687         * tests/test-math-c++2.cc: New file.
1688         * modules/math-tests (Files): Add it.
1689         (Makefile.am): Compile it for test-math-c++.
1690         * tests/test-signal-c++2.cc: New file.
1691         * modules/signal-tests (Files): Add it.
1692         (Makefile.am): Compile it for test-signal-c++.
1693         * tests/test-stdio-c++2.cc: New file.
1694         * modules/stdio-tests (Files): Add it.
1695         (Makefile.am): Compile it for test-stdio-c++.
1696         * tests/test-stdlib-c++2.cc: New file.
1697         * modules/stdlib-tests (Files): Add it.
1698         (Makefile.am): Compile it for test-stdlib-c++.
1699         * tests/test-string-c++2.cc: New file.
1700         * modules/string-tests (Files): Add it.
1701         (Makefile.am): Compile it for test-string-c++.
1702         * tests/test-time-c++2.cc: New file.
1703         * modules/time-tests (Files): Add it.
1704         (Makefile.am): Compile it for test-time-c++.
1705         Reported by John W. Eaton <jwe@gnu.org>.
1706
1707 2010-03-13  Bruno Haible  <bruno@clisp.org>
1708
1709         * gnulib-tool (func_usage): Clarify which options are available for
1710         --create-testdir and --create-megatestdir.
1711
1712 2010-03-13  Bruno Haible  <bruno@clisp.org>
1713
1714         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1715         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1716         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1717         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1718         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1719         when appropriate.
1720         Reported by Jim Meyering.
1721
1722 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1723
1724         * gnulib-tool (func_import): Explain origin of code.
1725
1726 2010-03-12  Bruno Haible  <bruno@clisp.org>
1727
1728         Fix problem with automake's definition of CXXLINK.
1729         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1730         Reported by Simon Josefsson and Ludovic Courtès.
1731
1732 2010-03-12  Bruno Haible  <bruno@clisp.org>
1733
1734         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1735         stable releases.
1736
1737 2010-03-11  Bruno Haible  <bruno@clisp.org>
1738
1739         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1740         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1741         whether the system provides one variant or multiple variants of the
1742         function.
1743         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1744         C++ compilers.
1745         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1746         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1747         Reported by Jim Meyering.
1748
1749 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1750
1751         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1752
1753 2010-03-08  Bruno Haible  <bruno@clisp.org>
1754
1755         gnulib-tool: Add support for --libtool in --create-testdir.
1756         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1757         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1758
1759 2010-03-08  Eric Blake  <eblake@redhat.com>
1760
1761         gnulib-tool.texi: mention possibility of git submodule
1762         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1763         submodules.
1764         * doc/.gitignore: Ignore another generated file.
1765
1766 2010-03-08  Karl Berry  <karl@gnu.org>
1767
1768         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1769         of committing gnulib files while skipping others.
1770
1771 2010-03-07  Bruno Haible  <bruno@clisp.org>
1772
1773         Tests of module 'wctype' in C++ mode.
1774         * tests/test-wctype-c++.cc: New file.
1775         * modules/wctype-tests (Files): Add it and tests/signature.h.
1776         (Depends-on): Add ansi-c++-opt.
1777         (Makefile.am): Arrange to compile and run test-wctype-c++.
1778
1779         Tests of module 'wchar' in C++ mode.
1780         * tests/test-wchar-c++.cc: New file.
1781         * modules/wchar-tests (Files): Add it and tests/signature.h.
1782         (Depends-on): Add ansi-c++-opt.
1783         (Makefile.am): Arrange to compile and run test-wchar-c++.
1784         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1785         gl_MODULE_INDICATOR.
1786
1787         Tests of module 'unistd' in C++ mode.
1788         * tests/test-unistd-c++.cc: New file.
1789         * modules/unistd-tests (Files): Add it and tests/signature.h.
1790         (Depends-on): Add ansi-c++-opt.
1791         (Makefile.am): Arrange to compile and run test-unistd-c++.
1792         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1793         gl_MODULE_INDICATOR.
1794
1795         Tests of module 'time' in C++ mode.
1796         * tests/test-time-c++.cc: New file.
1797         * modules/time-tests (Files): Add it and tests/signature.h.
1798         (Depends-on): Add ansi-c++-opt.
1799         (Makefile.am): Arrange to compile and run test-time-c++.
1800         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1801
1802         Tests of module 'sys_time' in C++ mode.
1803         * tests/test-sys_time-c++.cc: New file.
1804         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1805         (Depends-on): Add ansi-c++-opt.
1806         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1807         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1808         gl_MODULE_INDICATOR.
1809
1810         Tests of module 'sys_stat' in C++ mode.
1811         * tests/test-sys_stat-c++.cc: New file.
1812         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1813         (Depends-on): Add ansi-c++-opt.
1814         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1815         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1816         gl_MODULE_INDICATOR.
1817
1818         Tests of module 'sys_socket' in C++ mode.
1819         * tests/test-sys_socket-c++.cc: New file.
1820         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1821         (Depends-on): Add ansi-c++-opt.
1822         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1823         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1824         gl_MODULE_INDICATOR.
1825
1826         Tests of module 'sys_select' in C++ mode.
1827         * tests/test-sys_select-c++.cc: New file.
1828         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1829         (Depends-on): Add ansi-c++-opt.
1830         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1831         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1832         gl_MODULE_INDICATOR.
1833
1834         Tests of module 'sys_ioctl' in C++ mode.
1835         * tests/test-sys_ioctl-c++.cc: New file.
1836         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1837         (Depends-on): Add ansi-c++-opt.
1838         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1839         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1840         gl_MODULE_INDICATOR.
1841
1842         Tests of module 'string' in C++ mode.
1843         * tests/test-string-c++.cc: New file.
1844         * modules/string-tests (Files): Add it and tests/signature.h.
1845         (Depends-on): Add ansi-c++-opt.
1846         (Makefile.am): Arrange to compile and run test-string-c++.
1847         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1848         gl_MODULE_INDICATOR.
1849
1850         Tests of module 'stdlib' in C++ mode.
1851         * tests/test-stdlib-c++.cc: New file.
1852         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1853         (Depends-on): Add ansi-c++-opt.
1854         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1855         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1856         gl_MODULE_INDICATOR.
1857
1858         Tests of module 'stdio' in C++ mode.
1859         * tests/test-stdio-c++.cc: New file.
1860         * modules/stdio-tests (Files): Add it and tests/signature.h.
1861         (Depends-on): Add ansi-c++-opt.
1862         (Makefile.am): Arrange to compile and run test-stdio-c++.
1863         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1864         gl_MODULE_INDICATOR.
1865
1866         Tests of module 'spawn' in C++ mode.
1867         * tests/test-spawn-c++.cc: New file.
1868         * modules/spawn-tests (Files): Add it and tests/signature.h.
1869         (Depends-on): Add ansi-c++-opt.
1870         (Makefile.am): Arrange to compile and run test-spawn-c++.
1871         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1872         gl_MODULE_INDICATOR.
1873
1874         Tests of module 'signal' in C++ mode.
1875         * tests/test-signal-c++.cc: New file.
1876         * modules/signal-tests (Files): Add it and tests/signature.h.
1877         (Depends-on): Add ansi-c++-opt.
1878         (Makefile.am): Arrange to compile and run test-signal-c++.
1879         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1880         gl_MODULE_INDICATOR.
1881
1882         Tests of module 'search' in C++ mode.
1883         * tests/test-search-c++.cc: New file.
1884         * modules/search-tests (Files): Add it and tests/signature.h.
1885         (Depends-on): Add ansi-c++-opt.
1886         (Makefile.am): Arrange to compile and run test-search-c++.
1887         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1888         gl_MODULE_INDICATOR.
1889
1890         Tests of module 'math' in C++ mode.
1891         * tests/test-math-c++.cc: New file.
1892         * modules/math-tests (Files): Add it and tests/signature.h.
1893         (Depends-on): Add ansi-c++-opt.
1894         (Makefile.am): Arrange to compile and run test-math-c++.
1895         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1896
1897         Tests of module 'locale' in C++ mode.
1898         * tests/test-locale-c++.cc: New file.
1899         * modules/locale-tests (Files): Add it and tests/signature.h.
1900         (Depends-on): Add ansi-c++-opt.
1901         (Makefile.am): Arrange to compile and run test-locale-c++.
1902         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1903         gl_MODULE_INDICATOR.
1904
1905         Tests of module 'langinfo' in C++ mode.
1906         * tests/test-langinfo-c++.cc: New file.
1907         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1908         (Depends-on): Add ansi-c++-opt.
1909         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1910         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1911         gl_MODULE_INDICATOR.
1912
1913         Tests of module 'iconv-h' in C++ mode.
1914         * tests/test-iconv-h-c++.cc: New file.
1915         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1916         (Depends-on): Add ansi-c++-opt.
1917         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1918
1919         Tests of module 'glob' in C++ mode.
1920         * tests/test-glob-c++.cc: New file.
1921         * modules/glob-tests (Files): Add it.
1922         (Depends-on): Add ansi-c++-opt.
1923         (Makefile.am): Arrange to compile and run test-glob-c++.
1924
1925         Tests of module 'fcntl-h' in C++ mode.
1926         * tests/test-fcntl-h-c++.cc: New file.
1927         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1928         (Depends-on): Add ansi-c++-opt.
1929         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1930         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1931         gl_MODULE_INDICATOR.
1932
1933         Tests of module 'dirent' in C++ mode.
1934         * tests/test-dirent-c++.cc: New file.
1935         * modules/dirent-tests (Files): Add it and tests/signature.h.
1936         (Depends-on): Add ansi-c++-opt.
1937         (Makefile.am): Arrange to compile and run test-dirent-c++.
1938         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1939         gl_MODULE_INDICATOR.
1940
1941         New module 'ansi-c++-opt'.
1942         * modules/ansi-c++-opt: New file.
1943         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1944
1945         Document C++ namespace mode.
1946         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1947
1948         wctype: Avoid #define replacements in C++ mode.
1949         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1950         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1951         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1952         In C++, define a namespaced alias symbol.
1953         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1954         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1955         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1956         rule.
1957
1958         wchar: Avoid #define replacements in C++ mode.
1959         * lib/wchar.in.h: Include c++defs.h.
1960         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1961         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1962         symbol.
1963         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1964         * modules/wchar (Depends-on): Add c++defs.
1965         (Makefile.am): Update wchar.h rule.
1966
1967         unistd: Avoid #define replacements in C++ mode.
1968         * lib/unistd.in.h: Include c++defs.h.
1969         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1970         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1971         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1972         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1973         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1974         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1975         symbol.
1976         (environ): Update.
1977         * modules/unistd (Depends-on): Add c++defs.
1978         (Makefile.am): Update unistd.h rule.
1979
1980         time: Avoid #define replacements in C++ mode.
1981         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1982         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1983         define a namespaced alias symbol.
1984         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1985         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1986         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1987         * modules/time (Depends-on): Add c++defs, warn-on-use.
1988         (Makefile.am): Update time.h rule.
1989         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1990         * modules/nanosleep (configure.ac): Likewise.
1991         * modules/strptime (configure.ac): Likewise.
1992         * modules/timegm (configure.ac): Likewise.
1993
1994         sys_time: Avoid #define replacements in C++ mode.
1995         * lib/sys_time.in.h: Include c++defs.h.
1996         (gettimeofday): In C++, define a namespaced alias symbol.
1997         * modules/sys_time (Depends-on): Add c++defs.
1998         (Makefile.am): Update sys/time.h rule.
1999
2000         sys_stat: Avoid #define replacements in C++ mode.
2001         * lib/sys_stat.in.h: Include c++defs.h.
2002         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
2003         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
2004         namespaced alias symbol.
2005         In C++, define a namespaced alias symbol.
2006         * modules/sys_stat (Depends-on): Add c++defs.
2007         (Makefile.am): Update sys/stat.h rule.
2008
2009         sys_socket: Avoid #define replacements in C++ mode.
2010         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
2011         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
2012         definitions also when the system has a <sys/socket.h>.
2013         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2014         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
2015         In C++, define a namespaced alias symbol.
2016         * modules/sys_socket (Depends-on): Add c++defs.
2017         (Makefile.am): Update sys/socket.h rule.
2018
2019         sys_select: Avoid #define replacements in C++ mode.
2020         * lib/sys_select.in.h: Include c++defs.h. Enable the function
2021         definitions also when the system has a <sys/select.h>.
2022         (select): In C++, define a namespaced alias symbol.
2023         * modules/sys_select (Depends-on): Add c++defs.
2024         (Makefile.am): Update sys/select.h rule.
2025
2026         sys_ioctl: Avoid #define replacements in C++ mode.
2027         * lib/sys_ioctl.in.h: Include c++defs.h.
2028         (ioctl): In C++, define a namespaced alias symbol.
2029         * modules/sys_ioctl (Depends-on): Add c++defs.
2030         (Makefile.am): Update sys/ioctl.h rule.
2031
2032         string: Avoid #define replacements in C++ mode.
2033         * lib/string.in.h: Include c++defs.h.
2034         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
2035         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
2036         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
2037         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
2038         strsignal, strverscmp): In C++, define a namespaced alias symbol.
2039         * modules/string (Depends-on): Add c++defs.
2040         (Makefile.am): Update string.h rule.
2041
2042         stdlib: Avoid #define replacements in C++ mode.
2043         * lib/stdlib.in.h: Include c++defs.h.
2044         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
2045         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
2046         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
2047         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
2048         symbol.
2049         * modules/stdlib (Depends-on): Add c++defs.
2050         (Makefile.am): Update stdlib.h rule.
2051
2052         stdio: Avoid #define replacements in C++ mode.
2053         * lib/stdio.in.h: Include c++defs.h.
2054         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
2055         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
2056         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
2057         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
2058         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
2059         namespaced alias symbol.
2060         * modules/stdio (Depends-on): Add c++defs.
2061         (Makefile.am): Update stdio.h rule.
2062
2063         spawn: Avoid #define replacements in C++ mode.
2064         * lib/spawn.in.h: Include c++defs.h.
2065         (posix_spawn, posix_spawnp, posix_spawnattr_init,
2066         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2067         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2068         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2069         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2070         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2071         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2072         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2073         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2074         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2075         In C++, define a namespaced alias symbol.
2076         * modules/spawn (Depends-on): Add c++defs.
2077         (Makefile.am): Update spawn.h rule.
2078
2079         signal: Avoid #define replacements in C++ mode.
2080         * lib/signal.in.h: Include c++defs.h.
2081         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2082         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
2083         namespaced alias symbol.
2084         * modules/signal (Depends-on): Add c++defs.
2085         (Makefile.am): Update signal.h rule.
2086
2087         search: Avoid #define replacements in C++ mode.
2088         * lib/search.in.h: Include c++defs.h.
2089         (_gl_search_compar_fn, _gl_search_action_fn): New types.
2090         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2091         symbol.
2092         * modules/search (Depends-on): Add c++defs.
2093         (Makefile.am): Update search.h rule.
2094
2095         math: Avoid #define replacements in C++ mode.
2096         * lib/math.in.h: Include c++defs.h.
2097         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2098         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2099         trunc, truncl): In C++, define a namespaced alias symbol.
2100         * modules/math (Depends-on): Add c++defs.
2101         (Makefile.am): Update math.h rule.
2102
2103         locale: Avoid #define replacements in C++ mode.
2104         * lib/locale.in.h: Include c++defs.h.
2105         (duplocale): In C++, define a namespaced alias symbol.
2106         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2107         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2108         * modules/locale (Depends-on): Add c++defs.
2109         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2110
2111         langinfo: Avoid #define replacements in C++ mode.
2112         * lib/langinfo.in.h: Include c++defs.h.
2113         (nl_langinfo): In C++, define a namespaced alias symbol.
2114         * modules/langinfo (Depends-on): Add c++defs.
2115         (Makefile.am): Update langinfo.h rule.
2116
2117         iconv-h: Avoid #define replacements in C++ mode.
2118         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2119         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2120         symbol.
2121         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2122         whenever iconv is present.
2123         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2124         (Makefile.am): Update iconv.h rule.
2125
2126         glob: Avoid #define replacements in C++ mode.
2127         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2128         (_gl_glob_errfunc_fn): New type.
2129         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2130         symbol.
2131         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2132         (Makefile.am): Update glob.h rule.
2133
2134         fcntl-h: Avoid #define replacements in C++ mode.
2135         * lib/fcntl.in.h: Include c++defs.h.
2136         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2137         * modules/fcntl-h (Depends-on): Add c++defs.
2138         (Makefile.am): Update fcntl.h rule.
2139
2140         dirent: Avoid #define replacements in C++ mode.
2141         * lib/dirent.in.h: Include c++defs.h.
2142         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2143         namespaced alias symbol.
2144         (dirfd): Update declaration.
2145         * modules/dirent (Depends-on): Add c++defs.
2146         (Makefile.am): Update dirent.h rule.
2147
2148         ctype: Make it usable in C++ code.
2149         * lib/ctype.in.h: Include c++defs.h.
2150         (isblank): Declare as extern "C".
2151         * modules/ctype (Depends-on): Add c++defs.
2152         (Makefile.am): Update ctype.h rule.
2153
2154         New module 'c++defs'.
2155         * modules/c++defs: New file.
2156         * build-aux/c++defs.h: New file.
2157         Reported by John W. Eaton <jwe@gnu.org>.
2158
2159 2010-03-07  Bruno Haible  <bruno@clisp.org>
2160
2161         logb: Provide missing declaration for Cygwin.
2162         * lib/math.in.h (logb): New declaration.
2163         * m4/logb.m4: New file.
2164         * modules/logb (Files): Add m4/logb.m4.
2165         (Depends-on): Add math.
2166         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2167         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2169         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2170         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2171
2172 2010-03-07  Bruno Haible  <bruno@clisp.org>
2173
2174         Fix test-cond link error.
2175         * tests/test-cond.c: Include <stdio.h>.
2176
2177 2010-03-07  Bruno Haible  <bruno@clisp.org>
2178
2179         Fix test-dirent-safer link error.
2180         * modules/dirent-safer-tests (Makefile.am): Define
2181         test_dirent_safer_LDADD.
2182
2183 2010-03-07  Bruno Haible  <bruno@clisp.org>
2184
2185         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2186         among default module list.
2187
2188 2010-03-07  Bruno Haible  <bruno@clisp.org>
2189
2190         Fix link error on platforms with GNU libiconv.
2191         * modules/unistr/u8-strcoll-tests (Makefile): Define
2192         test_u8_strcoll_LDADD.
2193         * modules/unistr/u16-strcoll-tests (Makefile): Define
2194         test_u16_strcoll_LDADD.
2195         * modules/unistr/u32-strcoll-tests (Makefile): Define
2196         test_u32_strcoll_LDADD.
2197
2198 2010-03-07  Bruno Haible  <bruno@clisp.org>
2199
2200         Use POSIX declarations for socket functions.
2201         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2202         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2203         rpl_sendto): Change declaration to match POSIX.
2204         * lib/connect.c (rpl_connect): Likewise.
2205         * lib/accept.c (rpl_accept): Likewise.
2206         * lib/bind.c (rpl_bind): Likewise.
2207         * lib/getpeername.c (rpl_getpeername): Likewise.
2208         * lib/getsockname.c (rpl_getsockname): Likewise.
2209         * lib/recv.c (rpl_recv): Likewise.
2210         * lib/send.c (rpl_send): Likewise.
2211         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2212         * lib/sendto.c (rpl_sendto): Likewise.
2213
2214 2010-03-06  Bruno Haible  <bruno@clisp.org>
2215
2216         Clarify access, euidaccess, faccessat.
2217         * doc/posix-functions/faccessat.texi: Mention security problem under
2218         "Other problems", not "Portability problems".
2219         * doc/posix-functions/access.texi: Likewise. Mention a related security
2220         problem.
2221         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2222         * lib/euidaccess.c: Add comments about platforms.
2223         * lib/unistd.in.h (access, euidaccess): Add warnings.
2224
2225 2010-03-07  Bruno Haible  <bruno@clisp.org>
2226
2227         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2228         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2229         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2230         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2231         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2232         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2233         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2234         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2235         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2236         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2237         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2238         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2239         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2240         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2241         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2242         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2243         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2244         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2245         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2246         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2247         Likewise.
2248         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2249         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2250         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2251         Likewise.
2252         * tests/test-spawn.c (main): Make it work when
2253         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2254
2255 2010-03-07  Bruno Haible  <bruno@clisp.org>
2256
2257         Fix incorrect Makefile.am generation in German locale.
2258         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2259         Execute sed command with character range in C locale.
2260
2261 2010-03-06  Bruno Haible  <bruno@clisp.org>
2262
2263         Tests for module 'iconv-h'.
2264         * modules/iconv-h-tests: New file.
2265         * tests/test-iconv-h.c: New file.
2266
2267         New module 'iconv-h'.
2268         * modules/iconv-h: New file.
2269         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2270         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2271         (configure.ac): Remove gl_ICONV_H.
2272         (Makefile.am): Remove rule for iconv.h.
2273
2274 2010-03-06  Bruno Haible  <bruno@clisp.org>
2275
2276         More consistent naming of *.m4 files.
2277         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2278         * modules/wctype (Files): Update.
2279
2280         More consistent naming of *.m4 files.
2281         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2282         * modules/wchar (Files): Update.
2283
2284 2010-03-06  Jim Meyering  <meyering@redhat.com>
2285
2286         euidaccess: relax license to LGPLv2+
2287         * modules/euidaccess (License): Relax to LGPLv2+.
2288
2289 2010-03-06  Bruno Haible  <bruno@clisp.org>
2290
2291         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2292         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2293         (Makefile.am): Augment lib_SOURCES instead.
2294
2295 2010-03-04  Jim Meyering  <meyering@redhat.com>
2296
2297         utime: remove obsolete module
2298         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2299         unnecessary for years, and has been marked as obsolete for 10 months.
2300         * modules/utime: Remove file.
2301         * lib/utime.c: Remove file.
2302         * m4/utime.m4: Remove file.
2303         * m4/utimes-null.m4: Remove file.
2304         * doc/posix-functions/utime.texi (utime): Remove reference to
2305         the module.  Move the sole "fixed by gnulib" item into the
2306         "problems not fixed by Gnulib" list.
2307         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2308
2309 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2310
2311         * modules/exit (License): Relax license to LGPLv2+.
2312         (Status): Mark as obsolete.
2313         * NEWS: Mention deprecated 'exit' module.
2314         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2315         of now obsolete 'exit'.
2316
2317 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2318
2319         fts-lgpl: remove unused module
2320         * modules/fts-lgpl: Remove.
2321         * MODULES.html.sh (func_all_modules): Adjust.
2322         * check-module (find_included_lib_files): Adjust.
2323         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2324
2325 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2326
2327         copy-acl: enhance Solaris ACL error handling
2328         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2329         * lib/set-mode-acl.c (qset_acl): Likewise.
2330
2331 2010-03-02  Bruno Haible  <bruno@clisp.org>
2332
2333         spawn: Don't override the system defined values on FreeBSD 8.
2334         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2335         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2336         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2337         if HAVE_POSIX_SPAWN is 1.
2338         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2339
2340 2010-03-01  Bruno Haible  <bruno@clisp.org>
2341
2342         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2343         regarding Automake.
2344
2345 2010-02-25  Bruno Haible  <bruno@clisp.org>
2346
2347         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2348         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2349         setting, not afterwards.
2350         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2351
2352 2010-02-24  Eric Blake  <eblake@redhat.com>
2353
2354         bootstrap, git-version-gen: use timestamp
2355         * build-aux/git-version-gen (scriptversion): Force UTC.
2356         * build-aux/bootstrap (scriptversion): New variable.
2357
2358         bootstrap: allow older git
2359         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2360         older than 1.6.4.  Requested by the libvirt project.
2361
2362 2010-02-23  Eric Blake  <eblake@redhat.com>
2363
2364         warn-on-use: work with old autoconf
2365         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2366         AS_VAR semantics of autoconf 2.60.
2367         Reported by Bruno Haible.
2368
2369         bootstrap: improve some comments
2370         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2371         clarification comments.
2372
2373         gettimeofday: provide correct function
2374         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2375         when replacement is declared, otherwise provide gettimeofday.
2376         Reported by Michael Goffioul.
2377
2378 2010-02-23  Jim Meyering  <meyering@redhat.com>
2379
2380         lib-ignore: relax license to "unlimited", not LGPLv2+
2381         * modules/lib-ignore (License): Relax to "unlimited".
2382
2383 2010-02-23  Jim Meyering  <meyering@redhat.com>
2384
2385         lib-ignore: relax license to LGPLv2+
2386         * modules/lib-ignore (License): Relax to LGPLv2+.
2387
2388 2010-02-22  Eric Blake  <eblake@redhat.com>
2389
2390         lseek: avoid bash 3.2 broken pipe bug
2391         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2392         warning from bash 3.2.
2393         Reported by Ben Pfaff, with analysis from Bruno Haible.
2394
2395         bootstrap: support non-FSF copyright holder
2396         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2397         bootstrap.conf override of COPYRIGHT_HOLDER.
2398         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2399
2400         bootstrap: interoperate with gettext 0.14.1
2401         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2402
2403         bootstrap: allow for alternate submodule location
2404         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2405         hardcoding submodule location.
2406         (gnulib_mk): Allow direct use of Makefile.am.
2407
2408         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2409         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2410         rather than reconfiguring where the submodule points.
2411
2412         gettimeofday: restore support for platforms that lack function
2413         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2414         replacement if function is missing.
2415         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2416         * modules/sys_time (Makefile.am): Substitute it.
2417         * lib/sys_time.in.h (gettimeofday): Check it.
2418         Reported by Michael Goffioul.
2419
2420 2010-02-21  Bruno Haible  <bruno@clisp.org>
2421
2422         * lib/stdio.in.h (obstack_printf): Fix typo.
2423
2424 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2425
2426         vc-list-files: use bzr ls's -R option
2427         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2428         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2429
2430 2010-02-21  Jim Meyering  <meyering@redhat.com>
2431
2432         init.sh: fix EXEEXT shims to work also for names like test-prog
2433         * tests/init.sh: Re-exec a better shell, when needed.
2434         If the current shell lacks support for posix $(...), an init.sh-using
2435         test will now try to find a shell that supports that.  If EXEEXT is
2436         nonempty, we also require support for hyphen-in-alias-name and shell
2437         substitutions like ${var#glob}.  Failure to find such a shell results
2438         in a skipped test.
2439
2440 2010-02-21  Bruno Haible  <bruno@clisp.org>
2441
2442         Really work around around "broken pipe" error message from bash 3.2.
2443         * gnulib-tool (func_reset_sigpipe): Remove function.
2444         (echo): In bash 3.2, define to a function that uses printf.
2445         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2446
2447 2010-02-20  Bruno Haible  <bruno@clisp.org>
2448
2449         Restore support for automake 1.9.6 with autoconf 2.61.
2450         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2451         Reported by James Youngman <jay@gnu.org>.
2452
2453 2010-02-20  Bruno Haible  <bruno@clisp.org>
2454
2455         Improve *printf warning condition.
2456         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2457         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2458         and the function is overridden due to SIGPIPE emulation.
2459
2460 2010-02-20  Bruno Haible  <bruno@clisp.org>
2461
2462         * lib/stdio.in.h: Tweak comments.
2463
2464 2010-02-19  Bruno Haible  <bruno@clisp.org>
2465
2466         Make it easier to find modules. New gnulib-tool option '--find'.
2467         * gnulib-tool: New option --find.
2468         (func_usage): Document it.
2469         (func_sanitize_modulelist): New function, extracted from
2470         func_all_modules.
2471         (func_all_modules): Invoke it.
2472         * doc/gnulib-tool.texi (Which modules?): New node.
2473
2474 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2475
2476         * lib/sys_select.in.h: Provide select replacement even if
2477         sys/select.h exists on a system, for Interix.
2478
2479 2010-02-18  Jim Meyering  <meyering@redhat.com>
2480
2481         init.sh: don't use $(...) just yet
2482         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2483         to accommodate e.g., Solaris' /bin/sh.
2484
2485 2010-02-17  Bruno Haible  <bruno@clisp.org>
2486
2487         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2488         Reported by Ludovic Courtès <ludo@gnu.org>.
2489
2490 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2491
2492         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2493         linking with -lintl.
2494
2495 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2496
2497         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2498         if not provided by the system's netdb.h.  Reported by
2499         ludo@gnu.org (Ludovic Courtès).
2500
2501 2010-02-15  Jim Meyering  <meyering@redhat.com>
2502
2503         init.sh: improve portability and efficiency
2504         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2505         "dummy" in a for loop.
2506         Use '!', not '^' to select the complement of a character set used
2507         in a "case" statement.
2508         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2509         Suggestions from Eric Blake.
2510
2511         init.sh: automatically accommodate programs with the .exe suffix
2512         Automatically arrange for an invocation of "prog" to execute the
2513         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2514         may use the simpler "prog", yet still work when built on a system
2515         that requires specifying the added suffix.
2516         Do this by constructing a function named "prog" that invokes
2517         "prog.exe" for each .exe file in selected directories.
2518         * tests/init.sh (find_exe_basenames_): New function.
2519         (create_exe_shim_functions_): New function.
2520         (path_prepend_): Use it.
2521
2522         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2523         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2524         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2525
2526 2010-02-14  Jim Meyering  <meyering@redhat.com>
2527
2528         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2529         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2530         (sc_prohibit_hash_pjw_without_use): New rule.
2531
2532         maint.mk: allow the default upload destination dir to be overridden
2533         * top/maint.mk (upload_dest_dir_): Define with a default that
2534         preserves the status quo.
2535         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2536         Reported by Peter Simons.
2537
2538         maint.mk: prohibit inclusion of "hash.h" without_use
2539         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2540
2541 2010-02-10  Jim Meyering  <meyering@redhat.com>
2542
2543         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2544         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2545
2546 2010-02-09  Eric Blake  <ebb9@byu.net>
2547         and Bruno Haible  <bruno@clisp.org>
2548
2549         obstack-printf-posix: ensure declaration
2550         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2551         extracted from gl_FUNC_OBSTACK_PRINTF.
2552         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2553         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2554         Likewise.
2555         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2556         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2557         0.
2558
2559 2010-02-08  Bruno Haible  <bruno@clisp.org>
2560
2561         gnulib-tool: Fix typo in 2010-02-07 commit.
2562         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2563         Reported by Eric Blake.
2564
2565 2010-02-07  Bruno Haible  <bruno@clisp.org>
2566
2567         gnulib-tool: Fix up caching patches.
2568         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2569         option --no-cache. Use associative arrays when supported by the shell.
2570         (sed_comments): New variable.
2571         (modcache): Renamed from do_cache.
2572         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2573         abbreviate unnecessarily.
2574         (have_associative): New variable.
2575         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2576         way also for ksh and zsh.
2577         (func_init_sed_convert_to_cache_statements): New function, extracted
2578         from func_cache_lookup_module. Add support for associative arrays.
2579         Don't set the c_MODULE_cached variable here. Ignore all lines before
2580         the first field header. Remove only the final newline, not all trailing
2581         newlines. Support empty fields correctly. Limit the use of 'eval' to
2582         assignments.
2583         (func_get_description, func_get_status, func_get_notice,
2584         func_get_applicability, func_get_filelist, func_get_dependencies,
2585         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2586         func_get_automake_snippet, func_get_include_directive,
2587         func_get_link_directive, func_get_license, func_get_maintainer):
2588         Update documentation. List the unoptimized code first. Add support for
2589         associative arrays. Limit the use of 'eval' to assignments.
2590         (func_get_applicability): Undo stylistic pessimisations.
2591         (func_get_automake_snippet, func_get_include_directive): Reduce code
2592         duplication.
2593         (func_modules_transitive_closure, func_modules_add_dummy,
2594         func_modules_notice, func_modules_to_filelist, func_add_file,
2595         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2596         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2597         func_create_testdir, func_create_megatestdir): Update documentation.
2598
2599 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2600
2601         * gnulib-tool (func_cache_lookup_module): Store the module name
2602         belonging to the cache variable; error out if two different
2603         module names map to the same cache variable name.
2604
2605 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2606
2607         gnulib-tool: Make caching optional.
2608         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2609         Update matching short versions of --no-changelog.
2610         (func_usage): Update.
2611         (sed_extract_cache_prog): Renamed from ...
2612         (sed_extract_prog): ... this; revert to old extraction script.
2613         (func_get_description, func_get_status)
2614         (func_get_notice, func_get_applicability, func_get_filelist)
2615         (func_get_dependencies, func_get_autoconf_early_snippet)
2616         (func_get_autoconf_snippet, func_get_automake_snippet)
2617         (func_get_include_directive, func_get_link_directive)
2618         (func_get_license, func_get_maintainer): If $do_cache is false,
2619         use old, non-caching extraction scripts.
2620         Suggestion by Bruno Haible.
2621
2622 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2623
2624         gnulib-tool: cache module metainformation.
2625         * gnulib-tool (sed_extract_prog): Match newline before each
2626         header, and rewrite header to a shell variable suffix.
2627         (func_cache_var, func_cache_lookup_module): New functions,
2628         to turn a module name into a cache variable prefix, and to
2629         look up and cache module metainformation.
2630         (func_get_description, func_get_status)
2631         (func_get_notice, func_get_applicability, func_get_filelist)
2632         (func_get_dependencies, func_get_autoconf_early_snippet)
2633         (func_get_autoconf_snippet, func_get_automake_snippet)
2634         (func_get_include_directive, func_get_link_directive)
2635         (func_get_license, func_get_maintainer): Use
2636         func_cache_lookup_module.
2637
2638 2010-02-07  Bruno Haible  <bruno@clisp.org>
2639
2640         fnctl: Fix missing dependency.
2641         * modules/fcntl (Depends-on): Add getdtablesize.
2642         Reported by John W. Eaton <jwe@gnu.org>.
2643
2644 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2645
2646         Argp: fix recognition of short alias options.
2647
2648         * lib/argp-parse.c (convert_options): Fix improper use of
2649         `|' between character values.
2650         * tests/test-argp.c (group1_option): New alias option
2651         --read (-r).
2652         (group1_parser): Special handling for 'r'.
2653         (test15): New test case.
2654         (test_fun): Add test15.
2655         * tests/test-argp-2.sh: Update expected --help and --usage
2656         outputs.
2657
2658 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2659
2660         * tests/test-argp.c: Fix indentation.
2661
2662 2010-02-04  Eric Blake  <ebb9@byu.net>
2663
2664         gettimeofday: expose type of second argument
2665         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2666         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2667         * tests/test-gettimeofday.c: Use it to silence warning.
2668         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2669         the issue.
2670
2671 2010-02-03  Jim Meyering  <meyering@redhat.com>
2672
2673         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2674         * lib/regcomp.c (TYPE_SIGNED): Define.
2675         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2676
2677         regcomp.c: avoid a new -Wshadow warning
2678         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2679
2680 2010-02-01  Jim Meyering  <meyering@redhat.com>
2681
2682         removing useless parentheses in cpp #define directives
2683         For motivation, see commit c0221df4, "define STREQ(a,b)
2684         consistently, removing useless parentheses"
2685         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2686         * lib/mountlist.c (MNT_IGNORE): Likewise.
2687         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2688
2689 2010-02-01  Eric Blake  <ebb9@byu.net>
2690
2691         sys_time: use link-warning
2692         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2693         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2694         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2695         * modules/sys_time (Depends-on): Add warn-on-use.
2696         (Makefile.am): Always build replacement.
2697         (configure.ac): Update substitutions.
2698         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2699         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2700         bother with SYS_TIME_H.
2701         * modules/gettimeofday (configure.ac): Declare indicator.
2702         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2703         in use.
2704
2705         closein-tests: silence compiler warning
2706         * tests/test-closein.c (main): Ignore fread result.
2707         * modules/closein-tests (Depends-on): Add ignore-value.
2708
2709         tests: silence warning about system return
2710         * tests/test-areadlink-with-size.c (main): Ignore system result.
2711         * tests/test-areadlink.c (main): Likewise.
2712         * tests/test-areadlinkat-with-size.c (main): Likewise.
2713         * tests/test-areadlinkat.c (main): Likewise.
2714         * tests/test-canonicalize-lgpl.c (main): Likewise.
2715         * tests/test-canonicalize.c (main): Likewise.
2716         * tests/test-chown.c (main): Likewise.
2717         * tests/test-fchownat.c (main): Likewise.
2718         * tests/test-fdutimensat.c (main): Likewise.
2719         * tests/test-fstatat.c (main): Likewise.
2720         * tests/test-futimens.c (main): Likewise.
2721         * tests/test-lchown.c (main): Likewise.
2722         * tests/test-link.c (main): Likewise.
2723         * tests/test-linkat.c (main): Likewise.
2724         * tests/test-lstat.c (main): Likewise.
2725         * tests/test-mkdir.c (main): Likewise.
2726         * tests/test-mkdirat.c (main): Likewise.
2727         * tests/test-mkfifo.c (main): Likewise.
2728         * tests/test-mkfifoat.c (main): Likewise.
2729         * tests/test-mknod.c (main): Likewise.
2730         * tests/test-readlink.c (main): Likewise.
2731         * tests/test-remove.c (main): Likewise.
2732         * tests/test-rename.c (main): Likewise.
2733         * tests/test-renameat.c (main): Likewise.
2734         * tests/test-rmdir.c (main): Likewise.
2735         * tests/test-symlink.c (main): Likewise.
2736         * tests/test-symlinkat.c (main): Likewise.
2737         * tests/test-unlink.c (main): Likewise.
2738         * tests/test-unlinkat.c (main): Likewise.
2739         * tests/test-utimens.c (main): Likewise.
2740         * tests/test-utimensat.c (main): Likewise.
2741         * modules/areadlink-tests (Depends-on): Add ignore-value.
2742         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2743         * modules/areadlinkat-tests (Depends-on): Likewise.
2744         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2745         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2746         * modules/canonicalize-tests (Depends-on): Likewise.
2747         * modules/chown-tests (Depends-on): Likewise.
2748         * modules/fdutimensat-tests (Depends-on): Likewise.
2749         * modules/futimens-tests (Depends-on): Likewise.
2750         * modules/lchown-tests (Depends-on): Likewise.
2751         * modules/link-tests (Depends-on): Likewise.
2752         * modules/linkat-tests (Depends-on): Likewise.
2753         * modules/lstat-tests (Depends-on): Likewise.
2754         * modules/mkdir-tests (Depends-on): Likewise.
2755         * modules/mkfifo-tests (Depends-on): Likewise.
2756         * modules/mkfifoat-tests (Depends-on): Likewise.
2757         * modules/mknod-tests (Depends-on): Likewise.
2758         * modules/openat-tests (Depends-on): Likewise.
2759         * modules/readlink-tests (Depends-on): Likewise.
2760         * modules/remove-tests (Depends-on): Likewise.
2761         * modules/rename-tests (Depends-on): Likewise.
2762         * modules/renameat-tests (Depends-on): Likewise.
2763         * modules/rmdir-tests (Depends-on): Likewise.
2764         * modules/symlink-tests (Depends-on): Likewise.
2765         * modules/symlinkat-tests (Depends-on): Likewise.
2766         * modules/unlink-tests (Depends-on): Likewise.
2767         * modules/utimens-tests (Depends-on): Likewise.
2768         * modules/utimensat-tests (Depends-on): Likewise.
2769
2770 2010-01-31  Bruno Haible  <bruno@clisp.org>
2771
2772         Perform the same test for many <math.h> functions.
2773         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2774         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2775         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2776         of gl_MATHFUNC.
2777         * modules/acos (configure.ac): Likewise.
2778         * modules/asin (configure.ac): Likewise.
2779         * modules/atan (configure.ac): Likewise.
2780         * modules/atan2 (configure.ac): Likewise.
2781         * modules/cbrt (configure.ac): Likewise.
2782         * modules/copysign (configure.ac): Likewise.
2783         * modules/cos (configure.ac): Likewise.
2784         * modules/cosh (configure.ac): Likewise.
2785         * modules/erf (configure.ac): Likewise.
2786         * modules/erfc (configure.ac): Likewise.
2787         * modules/exp (configure.ac): Likewise.
2788         * modules/fmod (configure.ac): Likewise.
2789         * modules/hypot (configure.ac): Likewise.
2790         * modules/j0 (configure.ac): Likewise.
2791         * modules/j1 (configure.ac): Likewise.
2792         * modules/jn (configure.ac): Likewise.
2793         * modules/lgamma (configure.ac): Likewise.
2794         * modules/log (configure.ac): Likewise.
2795         * modules/log10 (configure.ac): Likewise.
2796         * modules/log1p (configure.ac): Likewise.
2797         * modules/pow (configure.ac): Likewise.
2798         * modules/remainder (configure.ac): Likewise.
2799         * modules/sin (configure.ac): Likewise.
2800         * modules/sinh (configure.ac): Likewise.
2801         * modules/tan (configure.ac): Likewise.
2802         * modules/tanh (configure.ac): Likewise.
2803         * modules/y0 (configure.ac): Likewise.
2804         * modules/y1 (configure.ac): Likewise.
2805         * modules/yn (configure.ac): Likewise.
2806         Suggested by Paolo Bonzini.
2807
2808 2010-01-31  Bruno Haible  <bruno@clisp.org>
2809
2810         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2811
2812 2010-01-31  Bruno Haible  <bruno@clisp.org>
2813
2814         Work around getdelim() bug on FreeBSD 8.0.
2815         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2816         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2817         not work.
2818         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2819         is 1.
2820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2821         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2822         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2823         a non-zero size.
2824         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2825
2826 2010-01-31  Bruno Haible  <bruno@clisp.org>
2827
2828         Work around getline() bug on FreeBSD 8.0.
2829         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2830         and a non-zero size.
2831         * tests/test-getline.c (main): Likewise.
2832         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2833         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2834
2835 2010-01-28  Eric Blake  <ebb9@byu.net>
2836
2837         regex: fix build failure
2838         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2839         platforms.
2840
2841 2010-01-28  Jim Meyering  <meyering@redhat.com>
2842
2843         regex: do not ignore memory allocation failure
2844         * lib/regex_internal.c (create_cd_newstate): Detect
2845         re_node_set_init_copy failure.   Extracted from glibc commit
2846         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2847
2848         regex: sync more white-space changes from libc
2849         * lib/regex_internal.c: White-space only changes.
2850         * lib/regexec.c: Likewise.
2851
2852         regex: add many uses of __attribute_warn_unused_result__
2853         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2854         * lib/regexec.c: Likewise.
2855         Extracted from a messy glibc commit.
2856
2857         regcomp.c: spelling and merge-artifact from glibc
2858         * lib/regcomp.c: Merge remainder of glibc's
2859         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2860
2861         regcomp.c: sync white-space changes from glibc
2862         * lib/regcomp.c: Merge to accommodate white space
2863         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2864
2865         regcomp.c: do not ignore internal return values
2866         * lib/regcomp.c: Do not ignore internal return values.
2867         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2868         but without its white-space changes and spelling fixes.
2869
2870         regex_internal.h: define __attribute_warn_unused_result__
2871         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2872
2873         maint: add a syntax-check rule to check for vulnerable Makefile.in
2874         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2875
2876 2010-01-27  Jim Meyering  <meyering@redhat.com>
2877
2878         ncftpput-ftp: clean up spaces
2879         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2880         Remove trailing blanks.
2881
2882 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2883
2884         * build-aux/git-version-gen: Fix copyright statement.
2885         * build-aux/gnupload: Likewise.
2886         * tests/test-arcfour.c: Likewise.
2887         * tests/test-arctwo.c: Likewise.
2888         * tests/test-count-one-bits.c: Likewise.
2889         * tests/test-crc.c: Likewise.
2890         * tests/test-des.c: Likewise.
2891         * tests/test-gc-arcfour.c: Likewise.
2892         * tests/test-gc-arctwo.c: Likewise.
2893         * tests/test-gc-des.c: Likewise.
2894         * tests/test-gc-hmac-md5.c: Likewise.
2895         * tests/test-gc-hmac-sha1.c: Likewise.
2896         * tests/test-gc-md2.c: Likewise.
2897         * tests/test-gc-md4.c: Likewise.
2898         * tests/test-gc-md5.c: Likewise.
2899         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2900         * tests/test-gc-rijndael.c: Likewise.
2901         * tests/test-gc-sha1.c: Likewise.
2902         * tests/test-gc.c: Likewise.
2903         * tests/test-gethostname.c: Likewise.
2904         * tests/test-gettimeofday.c: Likewise.
2905         * tests/test-hash.c: Likewise.
2906         * tests/test-hmac-md5.c: Likewise.
2907         * tests/test-hmac-sha1.c: Likewise.
2908         * tests/test-md2.c: Likewise.
2909         * tests/test-md4.c: Likewise.
2910         * tests/test-md5.c: Likewise.
2911         * tests/test-memchr.c: Likewise.
2912         * tests/test-memchr2.c: Likewise.
2913         * tests/test-memcmp.c: Likewise.
2914         * tests/test-memmem.c: Likewise.
2915         * tests/test-memrchr.c: Likewise.
2916         * tests/test-rawmemchr.c: Likewise.
2917         * tests/test-read-file.c: Likewise.
2918         * tests/test-rijndael.c: Likewise.
2919         * tests/test-sockets.c: Likewise.
2920         * tests/test-strchrnul.c: Likewise.
2921         * tests/test-strstr.c: Likewise.
2922         * tests/test-strtod.c: Likewise.
2923         * build-aux/ncftpput-ftp: Likewise.
2924
2925 2010-01-26  Eric Blake  <ebb9@byu.net>
2926
2927         ignore-value: update recommended header name
2928         * modules/ignore-value (Include): Only use <> for headers that
2929         exist in glibc.
2930
2931 2010-01-26  Jim Meyering  <meyering@redhat.com>
2932
2933         test-userspec.c: avoid compiler warnings
2934         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2935         and "initialization discards qualifiers..." warnings.
2936         Put the first "uid" in its own scope, and make char* members "const".
2937
2938 2010-01-25  Bruno Haible  <bruno@clisp.org>
2939
2940         gnulib-tool: Make warning diagnostics consistent.
2941         * gnulib-tool (func_warning): New function.
2942         Use it everywhere where gnulib-tool produces output to stderr and it is
2943         not a fatal error.
2944
2945 2010-01-25  Bruno Haible  <bruno@clisp.org>
2946
2947         Fix test dependencies.
2948         * modules/xstrtol-tests (Depends-on): Add inttypes.
2949         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2950
2951 2010-01-25 Pádraig Brady <P@draigBrady.com>
2952
2953         syntax-check: detect incorrect boolean macro values in config.h
2954         * modules/maintainer-makefile (configure.ac): Parameterize the location
2955         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2956         The logic is from Eric Blake and the location indicated by Jim Meyering.
2957         Note the more natural CONFIG_HEADER name is prohibited by automake
2958         for backwards compatibility reasons.
2959         * top/maint.mk (sc_Wundef_boolean): New rule.
2960
2961 2010-01-25  Jim Meyering  <meyering@redhat.com>
2962
2963         bootstrap: detect MacOS 10.6's shasum, too
2964         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2965         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2966
2967 2010-01-23  Jim Meyering  <meyering@redhat.com>
2968
2969         xstrtoll: new module
2970         * modules/xstrtoll: New file.
2971         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2972         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2973         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2974         ./configure fails if you use this module and lack "long long".
2975         * modules/xstrtoll-tests: New module.
2976         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2977         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2978         new init.sh-based test framework.
2979
2980 2010-01-24  Bruno Haible  <bruno@clisp.org>
2981
2982         Tests for module 'yn'.
2983         * modules/yn-tests: New file.
2984         * tests/test-yn.c: New file.
2985
2986         Tests for module 'y1'.
2987         * modules/y1-tests: New file.
2988         * tests/test-y1.c: New file.
2989
2990         Tests for module 'y0'.
2991         * modules/y0-tests: New file.
2992         * tests/test-y0.c: New file.
2993
2994         Tests for module 'tanh'.
2995         * modules/tanh-tests: New file.
2996         * tests/test-tanh.c: New file.
2997
2998         Tests for module 'tan'.
2999         * modules/tan-tests: New file.
3000         * tests/test-tan.c: New file.
3001
3002         Tests for module 'sqrt'.
3003         * modules/sqrt-tests: New file.
3004         * tests/test-sqrt.c: New file.
3005
3006         Tests for module 'sinh'.
3007         * modules/sinh-tests: New file.
3008         * tests/test-sinh.c: New file.
3009
3010         Tests for module 'sin'.
3011         * modules/sin-tests: New file.
3012         * tests/test-sin.c: New file.
3013
3014         Tests for module 'rint'.
3015         * modules/rint-tests: New file.
3016         * tests/test-rint.c: New file.
3017
3018         Tests for module 'remainder'.
3019         * modules/remainder-tests: New file.
3020         * tests/test-remainder.c: New file.
3021
3022         Tests for module 'pow'.
3023         * modules/pow-tests: New file.
3024         * tests/test-pow.c: New file.
3025
3026         Tests for module 'nextafter'.
3027         * modules/nextafter-tests: New file.
3028         * tests/test-nextafter.c: New file.
3029
3030         Tests for module 'modf'.
3031         * modules/modf-tests: New file.
3032         * tests/test-modf.c: New file.
3033
3034         Tests for module 'logb'.
3035         * modules/logb-tests: New file.
3036         * tests/test-logb.c: New file.
3037
3038         Tests for module 'log1p'.
3039         * modules/log1p-tests: New file.
3040         * tests/test-log1p.c: New file.
3041
3042         Tests for module 'log10'.
3043         * modules/log10-tests: New file.
3044         * tests/test-log10.c: New file.
3045
3046         Tests for module 'log'.
3047         * modules/log-tests: New file.
3048         * tests/test-log.c: New file.
3049
3050         Tests for module 'lgamma'.
3051         * modules/lgamma-tests: New file.
3052         * tests/test-lgamma.c: New file.
3053
3054         Tests for module 'ldexp'.
3055         * modules/ldexp-tests: New file.
3056         * tests/test-ldexp.c: New file.
3057
3058         Tests for module 'jn'.
3059         * modules/jn-tests: New file.
3060         * tests/test-jn.c: New file.
3061
3062         Tests for module 'j1'.
3063         * modules/j1-tests: New file.
3064         * tests/test-j1.c: New file.
3065
3066         Tests for module 'j0'.
3067         * modules/j0-tests: New file.
3068         * tests/test-j0.c: New file.
3069
3070         Tests for module 'hypot'.
3071         * modules/hypot-tests: New file.
3072         * tests/test-hypot.c: New file.
3073
3074         Tests for module 'fmod'.
3075         * modules/fmod-tests: New file.
3076         * tests/test-fmod.c: New file.
3077
3078         Tests for module 'fabs'.
3079         * modules/fabs-tests: New file.
3080         * tests/test-fabs.c: New file.
3081
3082         Tests for module 'exp'.
3083         * modules/exp-tests: New file.
3084         * tests/test-exp.c: New file.
3085
3086         Tests for module 'erfc'.
3087         * modules/erfc-tests: New file.
3088         * tests/test-erfc.c: New file.
3089
3090         Tests for module 'erf'.
3091         * modules/erf-tests: New file.
3092         * tests/test-erf.c: New file.
3093
3094         Tests for module 'cosh'.
3095         * modules/cosh-tests: New file.
3096         * tests/test-cosh.c: New file.
3097
3098         Tests for module 'cos'.
3099         * modules/cos-tests: New file.
3100         * tests/test-cos.c: New file.
3101
3102         Tests for module 'copysign'.
3103         * modules/copysign-tests: New file.
3104         * tests/test-copysign.c: New file.
3105
3106         Tests for module 'cbrt'.
3107         * modules/cbrt-tests: New file.
3108         * tests/test-cbrt.c: New file.
3109
3110         Tests for module 'atan2'.
3111         * modules/atan2-tests: New file.
3112         * tests/test-atan2.c: New file.
3113
3114         Tests for module 'atan'.
3115         * modules/atan-tests: New file.
3116         * tests/test-atan.c: New file.
3117
3118         Tests for module 'asin'.
3119         * modules/asin-tests: New file.
3120         * tests/test-asin.c: New file.
3121
3122         Tests for module 'acos'.
3123         * modules/acos-tests: New file.
3124         * tests/test-acos.c: New file.
3125
3126 2010-01-24  Bruno Haible  <bruno@clisp.org>
3127
3128         Fix tests for common <math.h> functions.
3129         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3130         code snippet that references the function pointer, rather than merely
3131         calling the function. Substitute the FUNC_LIBM variable.
3132         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3133         * modules/acos (configure.ac): Likewise.
3134         * modules/asin (configure.ac): Likewise.
3135         * modules/atan (configure.ac): Likewise.
3136         * modules/atan2 (configure.ac): Likewise.
3137         * modules/cbrt (configure.ac): Likewise.
3138         * modules/copysign (configure.ac): Likewise.
3139         * modules/cos (configure.ac): Likewise.
3140         * modules/cosh (configure.ac): Likewise.
3141         * modules/erf (configure.ac): Likewise.
3142         * modules/erfc (configure.ac): Likewise.
3143         * modules/exp (configure.ac): Likewise.
3144         * modules/fabs (configure.ac): Likewise.
3145         * modules/fmod (configure.ac): Likewise.
3146         * modules/hypot (configure.ac): Likewise.
3147         * modules/j0 (configure.ac): Likewise.
3148         * modules/j1 (configure.ac): Likewise.
3149         * modules/jn (configure.ac): Likewise.
3150         * modules/ldexp (configure.ac): Likewise.
3151         * modules/lgamma (configure.ac): Likewise.
3152         * modules/log (configure.ac): Likewise.
3153         * modules/log10 (configure.ac): Likewise.
3154         * modules/log1p (configure.ac): Likewise.
3155         * modules/logb (configure.ac): Likewise.
3156         * modules/modf (configure.ac): Likewise.
3157         * modules/nextafter (configure.ac): Likewise.
3158         * modules/pow (configure.ac): Likewise.
3159         * modules/remainder (configure.ac): Likewise.
3160         * modules/rint (configure.ac): Likewise.
3161         * modules/sin (configure.ac): Likewise.
3162         * modules/sinh (configure.ac): Likewise.
3163         * modules/tan (configure.ac): Likewise.
3164         * modules/tanh (configure.ac): Likewise.
3165         * modules/y0 (configure.ac): Likewise.
3166         * modules/y1 (configure.ac): Likewise.
3167         * modules/yn (configure.ac): Likewise.
3168
3169 2010-01-24  Bruno Haible  <bruno@clisp.org>
3170
3171         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3172         * tests/test-acosl.c (x): New variable.
3173         (main): Store argument in x and fetch it from x.
3174         * tests/test-asinl.c (x): New variable.
3175         (main): Store argument in x and fetch it from x.
3176         * tests/test-atanl.c (x): New variable.
3177         (main): Store argument in x and fetch it from x.
3178         * tests/test-cosl.c (x): New variable.
3179         (main): Store argument in x and fetch it from x.
3180         * tests/test-expl.c (x): New variable.
3181         (main): Store argument in x and fetch it from x.
3182         * tests/test-logl.c (x): New variable.
3183         (main): Store argument in x and fetch it from x.
3184         * tests/test-sinl.c (x): New variable.
3185         (main): Store argument in x and fetch it from x.
3186         * tests/test-sqrtl.c (x): New variable.
3187         (main): Store argument in x and fetch it from x.
3188         * tests/test-tanl.c (x): New variable.
3189         (main): Store argument in x and fetch it from x.
3190
3191 2010-01-24  Bruno Haible  <bruno@clisp.org>
3192
3193         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3194         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3195         assignments to the initial TESTS_ENVIRONMENT.
3196         * doc/gnulib.texi (Unit test modules): Document it.
3197         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3198         TESTS_ENVIRONMENT.
3199         * modules/btowc-tests (Makefile.am): Likewise.
3200         * modules/c-stack-tests (Makefile.am): Likewise.
3201         * modules/c-strcase-tests (Makefile.am): Likewise.
3202         * modules/copy-file-tests (Makefile.am): Likewise.
3203         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3204         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3205         * modules/mbrtowc-tests (Makefile.am): Likewise.
3206         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3207         * modules/mbscasestr-tests (Makefile.am): Likewise.
3208         * modules/mbschr-tests (Makefile.am): Likewise.
3209         * modules/mbscspn-tests (Makefile.am): Likewise.
3210         * modules/mbsinit-tests (Makefile.am): Likewise.
3211         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3212         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3213         * modules/mbspbrk-tests (Makefile.am): Likewise.
3214         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3215         * modules/mbsrchr-tests (Makefile.am): Likewise.
3216         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3217         * modules/mbsspn-tests (Makefile.am): Likewise.
3218         * modules/mbsstr-tests (Makefile.am): Likewise.
3219         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3220         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3221         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3222         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3223         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3224         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3225         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3226         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3227         * modules/wcrtomb-tests (Makefile.am): Likewise.
3228         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3229         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3230         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3231         assignments from TESTS_ENVIRONMENT.
3232         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3233         augmentation.
3234         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3235         * modules/atexit-tests (Makefile.am): Likewise.
3236         * modules/binary-io-tests (Makefile.am): Likewise.
3237         * modules/closein-tests (Makefile.am): Likewise.
3238         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3239         * modules/exclude-tests (Makefile.am): Likewise.
3240         * modules/fflush-tests (Makefile.am): Likewise.
3241         * modules/fpending-tests (Makefile.am): Likewise.
3242         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3243         * modules/freadahead-tests (Makefile.am): Likewise.
3244         * modules/freadptr-tests (Makefile.am): Likewise.
3245         * modules/freadseek-tests (Makefile.am): Likewise.
3246         * modules/fseek-tests (Makefile.am): Likewise.
3247         * modules/fseeko-tests (Makefile.am): Likewise.
3248         * modules/ftell-tests (Makefile.am): Likewise.
3249         * modules/ftello-tests (Makefile.am): Likewise.
3250         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3251         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3252         * modules/lseek-tests (Makefile.am): Likewise.
3253         * modules/parse-duration-tests (Makefile.am): Likewise.
3254         * modules/perror-tests (Makefile.am): Likewise.
3255         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3256         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3257         * modules/pipe-tests (Makefile.am): Likewise.
3258         * modules/pread-tests (Makefile.am): Likewise.
3259         * modules/printf-posix-tests (Makefile.am): Likewise.
3260         * modules/select-tests (Makefile.am): Likewise.
3261         * modules/sigpipe-tests (Makefile.am): Likewise.
3262         * modules/tsearch-tests (Makefile.am): Likewise.
3263         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3264         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3265         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3266         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3267         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3268         * modules/version-etc-tests (Makefile.am): Likewise.
3269         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3270         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3271         * modules/xalloc-die-tests (Makefile.am): Likewise.
3272         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3273         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3274         * modules/xstrtol-tests (Makefile.am): Likewise.
3275         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3276         * modules/yesno-tests (Makefile.am): Likewise.
3277         Suggested by Jim Meyering.
3278
3279 2010-01-24  Bruno Haible  <bruno@clisp.org>
3280
3281         More documentation.
3282         * doc/gnulib.texi (Writing modules): New chapter.
3283         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3284         the new chapter.
3285
3286 2010-01-24  Jim Meyering  <meyering@redhat.com>
3287
3288         maint.mk: do not prepend "./" after filtering
3289         * top/maint.mk (_prepend_srcdir_prefix): New variable
3290         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3291         "./" when $(srcdir) is ".".
3292
3293         define STREQ(a,b) consistently, removing useless parentheses
3294         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3295         since the only risk is that "a" or "b" contains an unparenthesized
3296         comma, but if either did that, STREQ would have 3 or more arguments.
3297         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3298         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3299         * lib/hash-triple.c (STREQ): Likewise.
3300         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3301         * lib/getugroups.c (STREQ): Likewise.
3302
3303 2010-01-23  Jim Meyering  <meyering@redhat.com>
3304
3305         maint.mk: fix syntax-check in a non-srcdir build directory
3306         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3307         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3308
3309 2010-01-22  Jim Meyering  <meyering@redhat.com>
3310
3311         userspec: add unit tests
3312         * tests/test-userspec.c: New file.
3313         * modules/userspec-tests: Likewise.
3314
3315 2010-01-21  Jim Meyering  <meyering@redhat.com>
3316
3317         maint.mk: handle source file names containing "." robustly
3318         * top/maint.mk (_dot_escaped_srcdir): Define.
3319         (VC_LIST): Use it in LHS of sed substitution.
3320
3321 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3322
3323         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3324         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3325         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3326         from a non-srcdir build.
3327
3328 2010-01-20  Eric Blake  <ebb9@byu.net>
3329
3330         warn-on-use: use instead of link-warning
3331         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3332         * modules/unistd (Depends-on, Makefile.am): Likewise.
3333         * modules/arpa_inet (Depends-on): Replace link-warning with
3334         warn-on-use.
3335         (Makefile.am): Update rules accordingly.
3336         * modules/ctype (Depends-on, Makefile.am): Likewise.
3337         * modules/dirent (Depends-on, Makefile.am): Likewise.
3338         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3339         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3340         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3341         * modules/locale (Depends-on, Makefile.am): Likewise.
3342         * modules/math (Depends-on, Makefile.am): Likewise.
3343         * modules/search (Depends-on, Makefile.am): Likewise.
3344         * modules/signal (Depends-on, Makefile.am): Likewise.
3345         * modules/spawn (Depends-on, Makefile.am): Likewise.
3346         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3347         * modules/string (Depends-on, Makefile.am): Likewise.
3348         * modules/strings (Depends-on, Makefile.am): Likewise.
3349         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3350         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3351         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3352         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3353         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3354         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3355         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3356         * modules/wchar (Depends-on, Makefile.am): Likewise.
3357         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3358         should be poisoned.
3359         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3360         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3361         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3362         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3363         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3364         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3365         * m4/math_h.m4 (gl_MATH_H): Likewise.
3366         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3367         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3368         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3369         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3370         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3371         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3372         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3373         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3374         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3375         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3376         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3377         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3378         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3379         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3380         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3381         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3382         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3383         GL_LINK_WARNING.
3384         * lib/ctype.in.h: Likewise.
3385         * lib/dirent.in.h: Likewise.
3386         * lib/fcntl.in.h: Likewise.
3387         * lib/inttypes.in.h: Likewise.
3388         * lib/langinfo.in.h: Likewise.
3389         * lib/locale.in.h: Likewise.
3390         * lib/math.in.h: Likewise.
3391         * lib/search.in.h: Likewise.
3392         * lib/signal.in.h: Likewise.
3393         * lib/spawn.in.h: Likewise.
3394         * lib/stdio.in.h: Likewise.
3395         * lib/stdlib.in.h: Likewise.
3396         * lib/string.in.h: Likewise.
3397         * lib/strings.in.h: Likewise.
3398         * lib/sys_file.in.h: Likewise.
3399         * lib/sys_ioctl.in.h: Likewise.
3400         * lib/sys_select.in.h: Likewise.
3401         * lib/sys_socket.in.h: Likewise.
3402         * lib/sys_stat.in.h: Likewise.
3403         * lib/sys_times.in.h: Likewise.
3404         * lib/sys_utsname.in.h: Likewise.
3405         * lib/unistd.in.h: Likewise.
3406         * lib/wchar.in.h: Likewise.
3407
3408 2010-01-20  Bruno Haible  <bruno@clisp.org>
3409
3410         Avoid duplicate -lm.
3411         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3412         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3413         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3414         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3415         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3416         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3417         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3418         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3419         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3420         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3421         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3422         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3423         Reported by Paolo Bonzini.
3424
3425 2010-01-19  Bruno Haible  <bruno@clisp.org>
3426
3427         langinfo, nl_langinfo: Relicense under LGPLv2+.
3428         * modules/langinfo (License): Change to LGPLv2+.
3429         * modules/nl_langinfo (License): Likewise.
3430         Patch by David Lutterkort <lutter@redhat.com>.
3431
3432 2010-01-19  Bruno Haible  <bruno@clisp.org>
3433
3434         Avoid compilation error with cc on OSF/1 5.1.
3435         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3436         statement, not before.
3437         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3438
3439 2010-01-18  Bruno Haible  <bruno@clisp.org>
3440
3441         Avoid a link error due to the __printf__ symbol.
3442         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3443         and 2.6.x.
3444         (__format__, __printf__): Remove definitions.
3445         * lib/argp-fmtstream.h: Likewise.
3446         * lib/argp.h: Likewise.
3447         * lib/error.h: Likewise.
3448         * lib/vasnprintf.h: Likewise.
3449         * lib/xprintf.h: Likewise.
3450         * lib/xvasprintf.h: Likewise.
3451         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3452
3453 2010-01-18  Bruno Haible  <bruno@clisp.org>
3454
3455         Tests for module 'tanl'.
3456         * modules/tanl-tests: New file.
3457         * tests/test-tanl.c: New file.
3458
3459         Tests for module 'sqrtl'.
3460         * modules/sqrtl-tests: New file.
3461         * tests/test-sqrtl.c: New file.
3462
3463         Tests for module 'sinl'.
3464         * modules/sinl-tests: New file.
3465         * tests/test-sinl.c: New file.
3466
3467         Tests for module 'logl'.
3468         * modules/logl-tests: New file.
3469         * tests/test-logl.c: New file.
3470
3471         Tests for module 'expl'.
3472         * modules/expl-tests: New file.
3473         * tests/test-expl.c: New file.
3474
3475         Tests for module 'cosl'.
3476         * modules/cosl-tests: New file.
3477         * tests/test-cosl.c: New file.
3478
3479         Tests for module 'atanl'.
3480         * modules/atanl-tests: New file.
3481         * tests/test-atanl.c: New file.
3482
3483         Tests for module 'asinl'.
3484         * modules/asinl-tests: New file.
3485         * tests/test-asinl.c: New file.
3486
3487         Tests for module 'acosl'.
3488         * modules/acosl-tests: New file.
3489         * tests/test-acosl.c: New file.
3490
3491         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3492         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3493         tanl): Use the standard gnulib idiom.
3494         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3495         * lib/sinl.c: Likewise.
3496         * lib/tanl.c: Don't include trigl.c.
3497         (kernel_tanl): Make static.
3498         * lib/sincosl.c: Include trigl.h first.
3499         * lib/trigl.c: Likewise.
3500         * m4/acosl.m4: New file.
3501         * m4/asinl.m4: New file.
3502         * m4/atanl.m4: New file.
3503         * m4/cosl.m4: New file.
3504         * m4/expl.m4: New file.
3505         * m4/logl.m4: New file.
3506         * m4/sinl.m4: New file.
3507         * m4/sqrtl.m4: New file.
3508         * m4/tanl.m4: New file.
3509         * m4/mathl.m4: Remove file.
3510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3511         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3512         Don't initialize GNULIB_MATHL.
3513         * modules/acosl: New file.
3514         * modules/asinl: New file.
3515         * modules/atanl: New file.
3516         * modules/cosl: New file.
3517         * modules/expl: New file.
3518         * modules/logl: New file.
3519         * modules/sinl: New file.
3520         * modules/sqrtl: New file.
3521         * modules/tanl: New file.
3522         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3523         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3524         substitute GNULIB_MATHL.
3525         * modules/mathl: Rewritten.
3526         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3527         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3528         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3529         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3530         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3531         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3532         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3533         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3534         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3535
3536 2010-01-18  Bruno Haible  <bruno@clisp.org>
3537
3538         sqrt: Make gl_FUNC_SQRT requirable.
3539         * m4/sqrt.m4: New file.
3540         * modules/sqrt (Files): Add it.
3541         (configure.ac): Invoke gl_FUNC_SQRT.
3542
3543 2010-01-18  Bruno Haible  <bruno@clisp.org>
3544
3545         New modules for common <math.h> functions.
3546         * m4/mathfunc.m4: New file.
3547         * modules/acos: New file.
3548         * modules/asin: New file.
3549         * modules/atan: New file.
3550         * modules/atan2: New file.
3551         * modules/cbrt: New file.
3552         * modules/copysign: New file.
3553         * modules/cos: New file.
3554         * modules/cosh: New file.
3555         * modules/erf: New file.
3556         * modules/erfc: New file.
3557         * modules/exp: New file.
3558         * modules/fabs: New file.
3559         * modules/fmod: New file.
3560         * modules/hypot: New file.
3561         * modules/j0: New file.
3562         * modules/j1: New file.
3563         * modules/jn: New file.
3564         * modules/ldexp: New file.
3565         * modules/lgamma: New file.
3566         * modules/log: New file.
3567         * modules/log10: New file.
3568         * modules/log1p: New file.
3569         * modules/logb: New file.
3570         * modules/modf: New file.
3571         * modules/nextafter: New file.
3572         * modules/pow: New file.
3573         * modules/remainder: New file.
3574         * modules/rint: New file.
3575         * modules/sin: New file.
3576         * modules/sinh: New file.
3577         * modules/sqrt: New file.
3578         * modules/tan: New file.
3579         * modules/tanh: New file.
3580         * modules/y0: New file.
3581         * modules/y1: New file.
3582         * modules/yn: New file.
3583         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3584         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3585         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3586         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3587         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3588         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3589         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3590         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3591         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3592         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3593         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3594         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3595         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3596         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3597         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3598         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3599         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3600         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3601         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3602         * doc/posix-functions/log.texi: Mention the 'log' module.
3603         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3604         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3605         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3606         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3607         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3608         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3609         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3610         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3611         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3612         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3613         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3614         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3615         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3616         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3617         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3618         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3619
3620 2010-01-18  Jim Meyering  <meyering@redhat.com>
3621
3622         ignore-value: relax license to LGPLv2+
3623         * modules/ignore-value (License): Relax to LGPLv2+.
3624
3625         getdate: don't leak when TZ contains two or more '"'s
3626         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3627         double quote in TZ after the first one.
3628
3629         readtokens: do not leak internal token_lengths buffer
3630         * lib/readtokens.c (readtokens): Free the local, lengths,
3631         when the supplied "token_lengths" parameter is NULL.
3632
3633 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3634
3635         Fix a couple of missing LIBTHREAD link failures on AIX.
3636         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3637         $(LIBTHREAD).
3638         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3639
3640         Link test-poll against INET_PTON_LIB.
3641         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3642         for inet_pton on Solaris 10.
3643
3644 2010-01-17  Bruno Haible  <bruno@clisp.org>
3645
3646         unistdio/*-sprintf: Fix typo in module description.
3647         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3648         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3649         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3650         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3651         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3652         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3653         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3654         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3655
3656 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3657
3658         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3659         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3660         variables in shell case patterns, for AIX and HP-UX ksh.
3661
3662         Split large sed scripts, for HP-UX sed.
3663         * modules/stdio: Split sed scripts around 50 sed commands,
3664         to avoid HP-UX limit of 99 commands, in the near future.
3665         * modules/string: Likewise.
3666         * modules/unistd: Likewise.
3667
3668         gnulib-tool: avoid writing in the current directory.
3669         * gnulib-tool (func_emit_lib_Makefile_am)
3670         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3671         not in the current directory, so concurrent gnulib-tool
3672         instances do not interfere.
3673
3674 2010-01-16  Jim Meyering  <meyering@redhat.com>
3675
3676         doc: update users.txt
3677         * users.txt: Add grep.
3678         (diffutils, gzip): Update URLs.
3679
3680 2010-01-12  Bruno Haible  <bruno@clisp.org>
3681
3682         posix_spawn: Avoid test failure on Cygwin.
3683         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3684         characters.
3685         Reported by Simon Josefsson.
3686
3687 2010-01-12  Bruno Haible  <bruno@clisp.org>
3688
3689         * tests/test-cond.c (main): When skipping the test, show the reason.
3690
3691 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3692
3693         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3694
3695 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3696
3697         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3698         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3699
3700 2010-01-12  Eric Blake  <ebb9@byu.net>
3701
3702         build: guarantee AS_VAR_IF
3703         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3704         (gl_AS_VAR_IF): Move...
3705         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3706         Reported by Simon Josefsson.
3707
3708 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3709
3710         * lib/stdio.in.h: Fix typo.
3711
3712 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3713
3714         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3715         libgpg-error.
3716
3717 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3718
3719         * tests/test-xalloc-die.sh: Use $EXEEXT.
3720
3721 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3722             Bruno Haible  <bruno@clisp.org>
3723
3724         getlogin, getlogin_r: Avoid test failure.
3725         * tests/test-getlogin.c: Include <stdio.h>.
3726         (main): Skip the test when the function fails because stdin is not a
3727         tty.
3728         * tests/test-getlogin_r.c: Include <stdio.h>.
3729         (main): Skip the test when the function fails because stdin is not a
3730         tty.
3731
3732 2010-01-11  Eric Blake  <ebb9@byu.net>
3733
3734         tests: avoid more large file warnings
3735         * tests/test-fflush.c: Avoid warning about ftell use.
3736         * tests/test-fseek.c: Avoid warning about fseek use.
3737
3738 2010-01-10  Bruno Haible  <bruno@clisp.org>
3739
3740         nproc: Work better on Linux when /proc and /sys are not mounted.
3741         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3742         as lower bound when, on glibc/Linux systems,
3743         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3744         Suggested by Pádraig Brady <P@draigbrady.com>.
3745         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3746
3747         nproc: Refactor.
3748         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3749         extracted from num_processors.
3750         (num_processors): Call it.
3751
3752 2010-01-11  Jim Meyering  <meyering@redhat.com>
3753
3754         utimecmp: avoid new warning from upcoming gcc-4.5.0
3755         * lib/utimecmp.c (BILLION): Define using #define rather than an
3756         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3757
3758 2010-01-11  Eric Blake  <ebb9@byu.net>
3759
3760         math: add portability warnings for classification macros
3761         * modules/math (Depends-on): Add warn-on-use.
3762         (Makefile.am): Provide new substitutions.
3763         * m4/math_h.m4 (gl_MATH_H): Require inline.
3764         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3765         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3766         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3767         implement warnings.
3768
3769         unistd: warn on use of environ without module
3770         * modules/unistd (Depends-on): Add warn-on-use.
3771         (Makefile.am): Provide new substitutions.
3772         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3773         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3774
3775         stdio: warn on suspicious uses
3776         * modules/stdio (Depends-on): Add warn-on-use.
3777         (Makefile.am): Provide new substitutions.
3778         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3779         fseeko.
3780         * lib/stdio.in.h (gets): Always warn on use.
3781         (fseek, ftell): Adjust when warnings are issued, and honor
3782         _GL_NO_LARGE_FILES as a way to silence the warning.
3783         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3784         any warning about large file offsets.
3785         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3786         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3787         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3788         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3789         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3790         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3791         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3792         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3793
3794         warn-on-use: new module
3795         * modules/warn-on-use: New file.
3796         * build-aux/warn-on-use.h: Likewise.
3797         * m4/warn-on-use.m4: Likewise.
3798         * MODULES.html.sh (Support for building): Mention it.
3799
3800 2010-01-10  Bruno Haible  <bruno@clisp.org>
3801
3802         Tests for module 'unistr/u32-strdup'.
3803         * modules/unistr/u32-strdup-tests: New file.
3804         * tests/unistr/test-u32-strdup.c: New file.
3805
3806         Tests for module 'unistr/u16-strdup'.
3807         * modules/unistr/u16-strdup-tests: New file.
3808         * tests/unistr/test-u16-strdup.c: New file.
3809
3810         Tests for module 'unistr/u8-strdup'.
3811         * modules/unistr/u8-strdup-tests: New file.
3812         * tests/unistr/test-u8-strdup.c: New file.
3813         * tests/unistr/test-strdup.h: New file.
3814
3815         Tests for module 'unistr/u32-strncmp'.
3816         * modules/unistr/u32-strncmp-tests: New file.
3817         * tests/unistr/test-u32-strncmp.c: New file.
3818
3819         Tests for module 'unistr/u16-strncmp'.
3820         * modules/unistr/u16-strncmp-tests: New file.
3821         * tests/unistr/test-u16-strncmp.c: New file.
3822
3823         Tests for module 'unistr/u8-strncmp'.
3824         * modules/unistr/u8-strncmp-tests: New file.
3825         * tests/unistr/test-u8-strncmp.c: New file.
3826         * tests/unistr/test-strncmp.h: New file.
3827
3828         Tests for module 'unistr/u32-strcoll'.
3829         * modules/unistr/u32-strcoll-tests: New file.
3830         * tests/unistr/test-u32-strcoll.c: New file.
3831
3832         Tests for module 'unistr/u16-strcoll'.
3833         * modules/unistr/u16-strcoll-tests: New file.
3834         * tests/unistr/test-u16-strcoll.c: New file.
3835
3836         Tests for module 'unistr/u8-strcoll'.
3837         * modules/unistr/u8-strcoll-tests: New file.
3838         * tests/unistr/test-u8-strcoll.c: New file.
3839
3840         Tests for module 'unistr/u32-strcmp'.
3841         * modules/unistr/u32-strcmp-tests: New file.
3842         * tests/unistr/test-u32-strcmp.c: New file.
3843         * tests/unistr/test-u32-strcmp.h: New file.
3844
3845         Tests for module 'unistr/u16-strcmp'.
3846         * modules/unistr/u16-strcmp-tests: New file.
3847         * tests/unistr/test-u16-strcmp.c: New file.
3848         * tests/unistr/test-u16-strcmp.h: New file.
3849
3850         Tests for module 'unistr/u8-strcmp'.
3851         * modules/unistr/u8-strcmp-tests: New file.
3852         * tests/unistr/test-u8-strcmp.c: New file.
3853         * tests/unistr/test-u8-strcmp.h: New file.
3854         * tests/unistr/test-strcmp.h: New file.
3855
3856         Tests for module 'unistr/u32-strncat'.
3857         * modules/unistr/u32-strncat-tests: New file.
3858         * tests/unistr/test-u32-strncat.c: New file.
3859
3860         Tests for module 'unistr/u16-strncat'.
3861         * modules/unistr/u16-strncat-tests: New file.
3862         * tests/unistr/test-u16-strncat.c: New file.
3863
3864         Tests for module 'unistr/u8-strncat'.
3865         * modules/unistr/u8-strncat-tests: New file.
3866         * tests/unistr/test-u8-strncat.c: New file.
3867         * tests/unistr/test-strncat.h: New file.
3868
3869         Tests for module 'unistr/u32-strcat'.
3870         * modules/unistr/u32-strcat-tests: New file.
3871         * tests/unistr/test-u32-strcat.c: New file.
3872
3873         Tests for module 'unistr/u16-strcat'.
3874         * modules/unistr/u16-strcat-tests: New file.
3875         * tests/unistr/test-u16-strcat.c: New file.
3876
3877         Tests for module 'unistr/u8-strcat'.
3878         * modules/unistr/u8-strcat-tests: New file.
3879         * tests/unistr/test-u8-strcat.c: New file.
3880         * tests/unistr/test-strcat.h: New file.
3881
3882         Tests for module 'unistr/u32-stpncpy'.
3883         * modules/unistr/u32-stpncpy-tests: New file.
3884         * tests/unistr/test-u32-stpncpy.c: New file.
3885
3886         Tests for module 'unistr/u16-stpncpy'.
3887         * modules/unistr/u16-stpncpy-tests: New file.
3888         * tests/unistr/test-u16-stpncpy.c: New file.
3889
3890         Tests for module 'unistr/u8-stpncpy'.
3891         * modules/unistr/u8-stpncpy-tests: New file.
3892         * tests/unistr/test-u8-stpncpy.c: New file.
3893         * tests/unistr/test-stpncpy.h: New file.
3894
3895         Tests for module 'unistr/u32-strncpy'.
3896         * modules/unistr/u32-strncpy-tests: New file.
3897         * tests/unistr/test-u32-strncpy.c: New file.
3898
3899         Tests for module 'unistr/u16-strncpy'.
3900         * modules/unistr/u16-strncpy-tests: New file.
3901         * tests/unistr/test-u16-strncpy.c: New file.
3902
3903         Tests for module 'unistr/u8-strncpy'.
3904         * modules/unistr/u8-strncpy-tests: New file.
3905         * tests/unistr/test-u8-strncpy.c: New file.
3906         * tests/unistr/test-strncpy.h: New file.
3907
3908         Tests for module 'unistr/u32-stpcpy'.
3909         * modules/unistr/u32-stpcpy-tests: New file.
3910         * tests/unistr/test-u32-stpcpy.c: New file.
3911
3912         Tests for module 'unistr/u16-stpcpy'.
3913         * modules/unistr/u16-stpcpy-tests: New file.
3914         * tests/unistr/test-u16-stpcpy.c: New file.
3915
3916         Tests for module 'unistr/u8-stpcpy'.
3917         * modules/unistr/u8-stpcpy-tests: New file.
3918         * tests/unistr/test-u8-stpcpy.c: New file.
3919         * tests/unistr/test-stpcpy.h: New file.
3920
3921         Tests for module 'unistr/u32-strcpy'.
3922         * modules/unistr/u32-strcpy-tests: New file.
3923         * tests/unistr/test-u32-strcpy.c: New file.
3924
3925         Tests for module 'unistr/u16-strcpy'.
3926         * modules/unistr/u16-strcpy-tests: New file.
3927         * tests/unistr/test-u16-strcpy.c: New file.
3928
3929         Tests for module 'unistr/u8-strcpy'.
3930         * modules/unistr/u8-strcpy-tests: New file.
3931         * tests/unistr/test-u8-strcpy.c: New file.
3932         * tests/unistr/test-strcpy.h: New file.
3933
3934         Tests for module 'unistr/u32-strnlen'.
3935         * modules/unistr/u32-strnlen-tests: New file.
3936         * tests/unistr/test-u32-strnlen.c: New file.
3937
3938         Tests for module 'unistr/u16-strnlen'.
3939         * modules/unistr/u16-strnlen-tests: New file.
3940         * tests/unistr/test-u16-strnlen.c: New file.
3941
3942         Tests for module 'unistr/u8-strnlen'.
3943         * modules/unistr/u8-strnlen-tests: New file.
3944         * tests/unistr/test-u8-strnlen.c: New file.
3945         * tests/unistr/test-strnlen.h: New file.
3946
3947         Tests for module 'unistr/u32-strlen'.
3948         * modules/unistr/u32-strlen-tests: New file.
3949         * tests/unistr/test-u32-strlen.c: New file.
3950
3951         Tests for module 'unistr/u16-strlen'.
3952         * modules/unistr/u16-strlen-tests: New file.
3953         * tests/unistr/test-u16-strlen.c: New file.
3954
3955         Tests for module 'unistr/u8-strlen'.
3956         * modules/unistr/u8-strlen-tests: New file.
3957         * tests/unistr/test-u8-strlen.c: New file.
3958
3959         Tests for module 'unistr/u32-prev'.
3960         * modules/unistr/u32-prev-tests: New file.
3961         * tests/unistr/test-u32-prev.c: New file.
3962
3963         Tests for module 'unistr/u16-prev'.
3964         * modules/unistr/u16-prev-tests: New file.
3965         * tests/unistr/test-u16-prev.c: New file.
3966
3967         Tests for module 'unistr/u8-prev'.
3968         * modules/unistr/u8-prev-tests: New file.
3969         * tests/unistr/test-u8-prev.c: New file.
3970
3971         Tests for module 'unistr/u32-next'.
3972         * modules/unistr/u32-next-tests: New file.
3973         * tests/unistr/test-u32-next.c: New file.
3974
3975         Tests for module 'unistr/u16-next'.
3976         * modules/unistr/u16-next-tests: New file.
3977         * tests/unistr/test-u16-next.c: New file.
3978
3979         Tests for module 'unistr/u8-next'.
3980         * modules/unistr/u8-next-tests: New file.
3981         * tests/unistr/test-u8-next.c: New file.
3982
3983         Tests for module 'unistr/u32-strmbtouc'.
3984         * modules/unistr/u32-strmbtouc-tests: New file.
3985         * tests/unistr/test-u32-strmbtouc.c: New file.
3986
3987         Tests for module 'unistr/u16-strmbtouc'.
3988         * modules/unistr/u16-strmbtouc-tests: New file.
3989         * tests/unistr/test-u16-strmbtouc.c: New file.
3990
3991         Tests for module 'unistr/u8-strmbtouc'.
3992         * modules/unistr/u8-strmbtouc-tests: New file.
3993         * tests/unistr/test-u8-strmbtouc.c: New file.
3994
3995         Tests for module 'unistr/u32-strmblen'.
3996         * modules/unistr/u32-strmblen-tests: New file.
3997         * tests/unistr/test-u32-strmblen.c: New file.
3998
3999         Tests for module 'unistr/u16-strmblen'.
4000         * modules/unistr/u16-strmblen-tests: New file.
4001         * tests/unistr/test-u16-strmblen.c: New file.
4002
4003         Tests for module 'unistr/u8-strmblen'.
4004         * modules/unistr/u8-strmblen-tests: New file.
4005         * tests/unistr/test-u8-strmblen.c: New file.
4006
4007         Tests for module 'unistr/u32-cpy-alloc'.
4008         * modules/unistr/u32-cpy-alloc-tests: New file.
4009         * tests/unistr/test-u32-cpy-alloc.c: New file.
4010
4011         Tests for module 'unistr/u16-cpy-alloc'.
4012         * modules/unistr/u16-cpy-alloc-tests: New file.
4013         * tests/unistr/test-u16-cpy-alloc.c: New file.
4014
4015         Tests for module 'unistr/u8-cpy-alloc'.
4016         * modules/unistr/u8-cpy-alloc-tests: New file.
4017         * tests/unistr/test-u8-cpy-alloc.c: New file.
4018         * tests/unistr/test-cpy-alloc.h: New file.
4019
4020         Tests for module 'unistr/u32-mbsnlen'.
4021         * modules/unistr/u32-mbsnlen-tests: New file.
4022         * tests/unistr/test-u32-mbsnlen.c: New file.
4023
4024         Tests for module 'unistr/u16-mbsnlen'.
4025         * modules/unistr/u16-mbsnlen-tests: New file.
4026         * tests/unistr/test-u16-mbsnlen.c: New file.
4027
4028         Tests for module 'unistr/u8-mbsnlen'.
4029         * modules/unistr/u8-mbsnlen-tests: New file.
4030         * tests/unistr/test-u8-mbsnlen.c: New file.
4031
4032         Tests for module 'unistr/u32-chr'.
4033         * modules/unistr/u32-chr-tests: New file.
4034         * tests/unistr/test-u32-chr.c: New file.
4035
4036         Tests for module 'unistr/u16-chr'.
4037         * modules/unistr/u16-chr-tests: New file.
4038         * tests/unistr/test-u16-chr.c: New file.
4039
4040         Tests for module 'unistr/u8-chr'.
4041         * modules/unistr/u8-chr-tests: New file.
4042         * tests/unistr/test-u8-chr.c: New file.
4043         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
4044
4045         Tests for module 'unistr/u32-cmp2'.
4046         * modules/unistr/u32-cmp2-tests: New file.
4047         * tests/unistr/test-u32-cmp2.c: New file.
4048
4049         Tests for module 'unistr/u16-cmp2'.
4050         * modules/unistr/u16-cmp2-tests: New file.
4051         * tests/unistr/test-u16-cmp2.c: New file.
4052
4053         Tests for module 'unistr/u8-cmp2'.
4054         * modules/unistr/u8-cmp2-tests: New file.
4055         * tests/unistr/test-u8-cmp2.c: New file.
4056         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
4057
4058         Tests for module 'unistr/u32-cmp'.
4059         * modules/unistr/u32-cmp-tests: New file.
4060         * tests/unistr/test-u32-cmp.c: New file.
4061
4062         Tests for module 'unistr/u16-cmp'.
4063         * modules/unistr/u16-cmp-tests: New file.
4064         * tests/unistr/test-u16-cmp.c: New file.
4065
4066         Tests for module 'unistr/u8-cmp'.
4067         * modules/unistr/u8-cmp-tests: New file.
4068         * tests/unistr/test-u8-cmp.c: New file.
4069         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
4070
4071         Tests for module 'unistr/u32-set'.
4072         * modules/unistr/u32-set-tests: New file.
4073         * tests/unistr/test-u32-set.c: New file.
4074
4075         Tests for module 'unistr/u16-set'.
4076         * modules/unistr/u16-set-tests: New file.
4077         * tests/unistr/test-u16-set.c: New file.
4078
4079         Tests for module 'unistr/u8-set'.
4080         * modules/unistr/u8-set-tests: New file.
4081         * tests/unistr/test-u8-set.c: New file.
4082         * tests/unistr/test-set.h: New file.
4083
4084         Tests for module 'unistr/u32-move'.
4085         * modules/unistr/u32-move-tests: New file.
4086         * tests/unistr/test-u32-move.c: New file.
4087
4088         Tests for module 'unistr/u16-move'.
4089         * modules/unistr/u16-move-tests: New file.
4090         * tests/unistr/test-u16-move.c: New file.
4091
4092         Tests for module 'unistr/u8-move'.
4093         * modules/unistr/u8-move-tests: New file.
4094         * tests/unistr/test-u8-move.c: New file.
4095         * tests/unistr/test-move.h: New file.
4096
4097         Tests for module 'unistr/u32-cpy'.
4098         * modules/unistr/u32-cpy-tests: New file.
4099         * tests/unistr/test-u32-cpy.c: New file.
4100
4101         Tests for module 'unistr/u16-cpy'.
4102         * modules/unistr/u16-cpy-tests: New file.
4103         * tests/unistr/test-u16-cpy.c: New file.
4104
4105         Tests for module 'unistr/u8-cpy'.
4106         * modules/unistr/u8-cpy-tests: New file.
4107         * tests/unistr/test-u8-cpy.c: New file.
4108         * tests/unistr/test-cpy.h: New file.
4109
4110 2010-01-09  Bruno Haible  <bruno@clisp.org>
4111
4112         Tests for module 'unistr/u32-uctomb'.
4113         * modules/unistr/u32-uctomb-tests: New file.
4114         * tests/unistr/test-u32-uctomb.c: New file.
4115
4116         Tests for module 'unistr/u16-uctomb'.
4117         * modules/unistr/u16-uctomb-tests: New file.
4118         * tests/unistr/test-u16-uctomb.c: New file.
4119
4120         Tests for module 'unistr/u8-uctomb'.
4121         * modules/unistr/u8-uctomb-tests: New file.
4122         * tests/unistr/test-u8-uctomb.c: New file.
4123
4124         Tests for module 'unistr/u32-mbtoucr'.
4125         * modules/unistr/u32-mbtoucr-tests: New file.
4126         * tests/unistr/test-u32-mbtoucr.c: New file.
4127
4128         Tests for module 'unistr/u16-mbtoucr'.
4129         * modules/unistr/u16-mbtoucr-tests: New file.
4130         * tests/unistr/test-u16-mbtoucr.c: New file.
4131
4132         Tests for module 'unistr/u8-mbtoucr'.
4133         * modules/unistr/u8-mbtoucr-tests: New file.
4134         * tests/unistr/test-u8-mbtoucr.c: New file.
4135
4136         Tests for module 'unistr/u32-mbtouc'.
4137         * modules/unistr/u32-mbtouc-tests: New file.
4138         * tests/unistr/test-u32-mbtouc.c: New file.
4139
4140         Tests for module 'unistr/u16-mbtouc'.
4141         * modules/unistr/u16-mbtouc-tests: New file.
4142         * tests/unistr/test-u16-mbtouc.c: New file.
4143
4144         Tests for module 'unistr/u8-mbtouc'.
4145         * modules/unistr/u8-mbtouc-tests: New file.
4146         * tests/unistr/test-u8-mbtouc.c: New file.
4147
4148         Tests for module 'unistr/u32-mbtouc-unsafe'.
4149         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4150         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4151         * tests/unistr/test-u32-mbtouc.h: New file.
4152
4153         Tests for module 'unistr/u16-mbtouc-unsafe'.
4154         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4155         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4156         * tests/unistr/test-u16-mbtouc.h: New file.
4157
4158         Tests for module 'unistr/u8-mbtouc-unsafe'.
4159         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4160         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4161         * tests/unistr/test-u8-mbtouc.h: New file.
4162
4163         Tests for module 'unistr/u32-mblen'.
4164         * modules/unistr/u32-mblen-tests: New file.
4165         * tests/unistr/test-u32-mblen.c: New file.
4166
4167         Tests for module 'unistr/u16-mblen'.
4168         * modules/unistr/u16-mblen-tests: New file.
4169         * tests/unistr/test-u16-mblen.c: New file.
4170
4171         Tests for module 'unistr/u8-mblen'.
4172         * modules/unistr/u8-mblen-tests: New file.
4173         * tests/unistr/test-u8-mblen.c: New file.
4174
4175         Tests for module 'unistr/u32-to-u16'.
4176         * modules/unistr/u32-to-u16-tests: New file.
4177         * tests/unistr/test-u32-to-u16.c: New file.
4178
4179         Tests for module 'unistr/u32-to-u8'.
4180         * modules/unistr/u32-to-u8-tests: New file.
4181         * tests/unistr/test-u32-to-u8.c: New file.
4182
4183         Tests for module 'unistr/u16-to-u32'.
4184         * modules/unistr/u16-to-u32-tests: New file.
4185         * tests/unistr/test-u16-to-u32.c: New file.
4186
4187         Tests for module 'unistr/u16-to-u8'.
4188         * modules/unistr/u16-to-u8-tests: New file.
4189         * tests/unistr/test-u16-to-u8.c: New file.
4190
4191         Tests for module 'unistr/u8-to-u32'.
4192         * modules/unistr/u8-to-u32-tests: New file.
4193         * tests/unistr/test-u8-to-u32.c: New file.
4194
4195         Tests for module 'unistr/u8-to-u16'.
4196         * modules/unistr/u8-to-u16-tests: New file.
4197         * tests/unistr/test-u8-to-u16.c: New file.
4198
4199         Tests for module 'unistr/u32-check'.
4200         * modules/unistr/u32-check-tests: New file.
4201         * tests/unistr/test-u32-check.c: New file.
4202
4203         Tests for module 'unistr/u16-check'.
4204         * modules/unistr/u16-check-tests: New file.
4205         * tests/unistr/test-u16-check.c: New file.
4206
4207         Tests for module 'unistr/u8-check'.
4208         * modules/unistr/u8-check-tests: New file.
4209         * tests/unistr/test-u8-check.c: New file.
4210
4211         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4212         (category_equals): New function.
4213         (main): Add more tests.
4214         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4215
4216         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4217
4218 2010-01-10  Bruno Haible  <bruno@clisp.org>
4219
4220         unistr/u*-strcoll: Try harder to distinguish different strings.
4221         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4222         compare s1 and s2 to see if they are different.
4223
4224 2010-01-10  Bruno Haible  <bruno@clisp.org>
4225
4226         unistr/u*-stpncpy: Fix the return value.
4227         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4228         description of the return value consistent with stpncpy in glibc.
4229         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4230         written non-NUL unit.
4231
4232 2010-01-10  Bruno Haible  <bruno@clisp.org>
4233
4234         unistr/u*-next: Add missing dependencies.
4235         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4236         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4237         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4238
4239 2010-01-10  Bruno Haible  <bruno@clisp.org>
4240
4241         unistr/u8-mbsnlen: Fix return value for incomplete character.
4242         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4243         u8_mblen.
4244         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4245         Remove unistr/u8-mblen.
4246         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4247         u16_mblen.
4248         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4249         Remove unistr/u16-mblen.
4250
4251 2010-01-10  Bruno Haible  <bruno@clisp.org>
4252
4253         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4254         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4255         Reported by Brian Gough <bjg@gnu.org> and
4256         Chris Clayton <chris2553@googlemail.com> via
4257         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4258
4259 2010-01-09  Bruno Haible  <bruno@clisp.org>
4260
4261         unistr/u16-to-u32: Reject invalid input.
4262         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4263         u16_mbtouc.
4264         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4265         Remove unistr/u16-mbtouc.
4266
4267         unistr/u16-to-u8: Reject invalid input.
4268         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4269         u16_mbtouc.
4270         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4271         Remove unistr/u16-mbtouc.
4272
4273         unistr/u8-to-u32: Reject invalid input.
4274         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4275         u8_mbtouc.
4276         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4277         Remove unistr/u8-mbtouc.
4278
4279         unistr/u8-to-u16: Reject invalid input.
4280         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4281         u8_mbtouc.
4282         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4283         Remove unistr/u8-mbtouc.
4284
4285 2010-01-09  Bruno Haible  <bruno@clisp.org>
4286
4287         Tests for module 'getlogin'.
4288         * modules/getlogin-tests: New file.
4289         * tests/test-getlogin.c: New file.
4290
4291         New module 'getlogin'.
4292         * lib/unistd.in.h (getlogin): New declaration.
4293         * lib/getlogin.c: New file.
4294         * m4/getlogin.m4: New file.
4295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4296         HAVE_GETLOGIN.
4297         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4298         HAVE_GETLOGIN.
4299         * modules/getlogin: New file.
4300         * doc/posix-functions/getlogin.texi: Mention the new module.
4301         Reported by John W. Eaton <jwe@gnu.org>.
4302
4303 2010-01-09  Bruno Haible  <bruno@clisp.org>
4304
4305         getlogin_r: Support for native Windows.
4306         * lib/getlogin_r.c: Include <windows.h>
4307         (getlogin_r): Implement for native Windows.
4308         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4309         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4310         via John W. Eaton <jwe@gnu.org>.
4311
4312 2010-01-09  Bruno Haible  <bruno@clisp.org>
4313
4314         getlogin_r: Small fixes.
4315         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4316         succeeds.
4317         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4318         before testing whether getlogin_r is declared. No need to set
4319         HAVE_DECL_GETLOGIN_R to 1.
4320         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4321
4322 2010-01-09  Bruno Haible  <bruno@clisp.org>
4323
4324         * lib/unistd.in.h (getlogin_r): Add comment.
4325
4326 2010-01-09  Bruno Haible  <bruno@clisp.org>
4327
4328         Tests for module 'getlogin_r'.
4329         * modules/getlogin_r-tests: New file.
4330         * tests/test-getlogin_r.c: New file.
4331
4332 2010-01-09  Jim Meyering  <meyering@redhat.com>
4333
4334         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4335         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4336         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4337
4338 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4339
4340         * lib/dup2.c (rpl_dup2): Improve comment.
4341
4342 2010-01-08  Eric Blake  <ebb9@byu.net>
4343
4344         maint.mk: allow packages to add makefile @@ exceptions
4345         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4346         (sc_makefile_check): Rename...
4347         (sc_makefile_at_at_check): ...to this, and use hook.
4348
4349         dup2: work around mingw bug
4350         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4351         Reported by Simon Josefsson.
4352
4353 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4354
4355         glob: Fix C++ compilation.
4356         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4357         C++.
4358
4359 2010-01-07  Bruno Haible  <bruno@clisp.org>
4360
4361         Fix indentation of wctype.in.h, broken since 2007-01-06.
4362         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4363
4364 2010-01-07  Bruno Haible  <bruno@clisp.org>
4365
4366         mbslen: Avoid collision with system function.
4367         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4368         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4369         * m4/mbslen.m4: New file.
4370         * modules/mbslen (Files): Add it.
4371         (configure.ac): Invoke gl_MBSLEN.
4372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4373         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4374         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4375         via Ian Beckwith <ianb@erislabs.net>.
4376
4377 2010-01-07  Bruno Haible  <bruno@clisp.org>
4378
4379         dirent: Document the last fix.
4380         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4381
4382 2010-01-07  Bruno Haible  <bruno@clisp.org>
4383
4384         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4385         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4386         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4387         va_list are defined.
4388         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4389         Reported by Eric Blake.
4390
4391 2010-01-07  Bruno Haible  <bruno@clisp.org>
4392
4393         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4394         * modules/xlist (Depends-on): Add 'list',
4395         * modules/xoset (Depends-on): Add 'oset'.
4396         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4397
4398 2010-01-07  Bruno Haible  <bruno@clisp.org>
4399
4400         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4401         * doc/posix-functions/strncasecmp.texi: Likewise.
4402
4403 2010-01-07  Bruno Haible  <bruno@clisp.org>
4404
4405         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4406
4407 2010-01-07  John W. Eaton  <jwe@octave.org>
4408
4409         wctype: allow C++ use
4410         * lib/wctype.in.h: Add extern "C" block for C++.
4411
4412 2010-01-06  Eric Blake  <ebb9@byu.net>
4413
4414         maint.mk: detect incorrect GFDL usage
4415         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4416
4417 2010-01-06  Jim Meyering  <meyering@redhat.com>
4418         and Eric Blake  <ebb9@byu.net>
4419
4420         maint.mk: ignore multi-line copyright in NEWS
4421         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4422
4423 2010-01-06  Eric Blake  <ebb9@byu.net>
4424
4425         select: add missing dependency
4426         * modules/select-tests (Depends-on): Move sockets dependency...
4427         * modules/select (Depends-on): ...here.
4428         Reported by Ian Beckwith.
4429
4430         doc: regenerate INSTALL
4431         * doc/INSTALL: Reflect recent autoconf update.
4432         * doc/INSTALL.ISO: Likewise.
4433         * doc/INSTALL.UTF-8: Likewise.
4434
4435         pread: fix compilation on glibc
4436         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4437         Reported by Ralf Wildenhues.
4438
4439         dirent: fix test failure
4440         * lib/dirent.in.h (includes): Guarantee ino_t.
4441         Reported by Ralf Wildenhues.
4442
4443 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4444
4445         linkat, renameat: avoid bad free
4446         * lib/at-func2.c (at_func2): Fix typo.
4447         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4448
4449 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4450
4451         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4452         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4453         to avoid failure of symlink test later.
4454
4455 2010-01-06  Eric Blake  <ebb9@byu.net>
4456
4457         stdio, unistd: guarantee ssize_t
4458         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4459         2008 are exposed when needed.
4460         * lib/stdio.in.h (includes): Likewise.
4461         Reported by Ralf Wildenhues.
4462
4463 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4464
4465         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4466         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4467         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4468
4469 2010-01-06  Jim Meyering  <meyering@redhat.com>
4470
4471         readtokens: this module *does* require xalloc.h
4472         It uses only functions that were omitted by the old syntax-check rule.
4473         * lib/readtokens.c: Include "xalloc.h" once again.
4474         * modules/readtokens (Depends-on): Add xalloc.
4475         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4476
4477 2010-01-05  Eric Blake  <ebb9@byu.net>
4478
4479         maint: support 'make announcement' from a VPATH build
4480         * top/maint.mk (announcement): Look for correct NEWS file.
4481
4482 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4483
4484         utimens (fdutimens): ignore a negative FD, per contract
4485         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4486         when we have a valid file descriptor.  Otherwise, using a brand
4487         new glibc (with just-patched futimens that now fails with EBADF)
4488         would cause this function to fail with ENOSYS.
4489         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4490         See also http://bugzilla.redhat.com/552320.
4491
4492 2010-01-05  Eric Blake  <ebb9@byu.net>
4493
4494         strcase: document what it provides
4495         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4496         gnulib module.
4497         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4498         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4499
4500 2010-01-05  Jim Meyering  <meyering@redhat.com>
4501
4502         maint: remove useless inclusions of "xalloc.h"
4503         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4504         * lib/readtokens.c: Likewise.
4505         * lib/same.c: Likewise.
4506         * modules/getloadavg (Depends-on): Remove xalloc.
4507         * modules/readtokens: Likewise.
4508         * modules/same: Likewise.
4509
4510         maint.mk: include 4 more function names in alloca.h-checking regexp
4511         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4512         regexp.  Before, we would give a false-positive (saying alloca.h
4513         is included unnecessarily) when the only uses involved omitted symbols.
4514
4515         xalloc.h: use consistent formatting
4516         * lib/xalloc.h: Move declarations to start in the first column.
4517
4518 2010-01-05  Eric Blake  <ebb9@byu.net>
4519
4520         mkdir: avoid xalloc
4521         * lib/mkdir.c (includes): Drop unused header.
4522         Reported by John W. Eaton.
4523
4524 2010-01-04  Jim Meyering  <meyering@redhat.com>
4525
4526         nl_langinfo: avoid configure-time syntax error
4527         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4528         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4529         the empty string.  Don't let that provoke a shell syntax error.
4530
4531         regcomp, regexec, fnmatch: avoid array bounds read error
4532         * lib/regcomp.c (build_equiv_class): From glibc:
4533         Use only the low 24 bits of a findidx return value as an index
4534         into the weights array.  Patch by Ulrich Drepper:
4535         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4536         * lib/regexec.c (check_node_accept_bytes): Likewise.
4537         * lib/fnmatch_loop.c (FCT): Likewise.
4538
4539         regcomp: skip collseq lookup when there are no rules
4540         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4541         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4542
4543         regcomp: recognize ill-formed { } expressions
4544         * lib/regcomp.c (parse_dup_op): From glibc:
4545         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4546
4547         regcomp: fix typo in comment
4548         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4549         s/satisfy/satisfies/.
4550
4551         regcomp: sync from glibc: remove dead store
4552         * lib/regcomp.c (duplicate_node_closure): Remove useless
4553         search_duplicated_node call and dead store.
4554
4555         regcomp: sync from glibc; always use nl_langinfo
4556         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4557         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4558         * modules/regex (Depends-on): Add nl_langinfo.
4559
4560 2010-01-04  Eric Blake  <ebb9@byu.net>
4561
4562         fdopendir: fix configure test
4563         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4564
4565 2010-01-01  Bruno Haible  <bruno@clisp.org>
4566
4567         wchar: Remove unused configure check.
4568         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4569
4570 2010-01-01  Eric Blake  <ebb9@byu.net>
4571
4572         headers: make check of system header explicit
4573         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4574         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4575         ourselves.
4576         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4577         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4578         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4579         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4580         internals.
4581         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4582         missing.
4583         Suggested by Bruno Haible.
4584
4585 2010-01-01  Jim Meyering  <meyering@redhat.com>
4586
4587         ChangeLog: tweak to eliminate unnecessary copyright line
4588         * ChangeLog: Remove a copyright line that was mistakenly updated
4589         by today's update-copyright run.  Reported by Eric Blake.
4590
4591         test-update-copyright: don't let envvar setting cause test failure
4592         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4593
4594 2010-01-01  Bruno Haible  <bruno@clisp.org>
4595
4596         localename: Avoid gcc warning.
4597         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4598         function if it is not used.
4599
4600 2010-01-01  Jim Meyering  <meyering@redhat.com>
4601
4602         update nearly all FSF copyright year lists to include 2010
4603         Use the same procedure as for 2009, outlined in
4604         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4605
4606         version-etc: set COPYRIGHT_YEAR to 2010
4607         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4608
4609 2009-12-31  Eric Blake  <ebb9@byu.net>
4610
4611         doc: correct availability of cygwin 1.5.x getopt
4612         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4613         variables.
4614         * doc/posix-functions/opterr.texi (opterr): Likewise.
4615         * doc/posix-functions/optind.texi (optind): Likewise.
4616         * doc/posix-functions/optopt.texi (optopt): Likewise.
4617         * doc/posix-functions/tzname.texi (tzname): Likewise.
4618
4619         openat: update maintainer
4620         * modules/openat (Maintainer): Add myself.
4621
4622         utimens: avoid shadowing warning
4623         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4624         buffers into one, to avoid shadowing, as well as avoiding a
4625         redundant stat.
4626         Reported by Jim Meyering.
4627
4628         test-dup2: avoid compiler warning
4629         * tests/test-dup2.c (is_inheritable): Only define if used.
4630
4631 2010-01-01  Bruno Haible  <bruno@clisp.org>
4632
4633         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4634         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4635         defined, use wctomb instead of wcrtomb.
4636
4637 2010-01-01  Bruno Haible  <bruno@clisp.org>
4638
4639         iconv: Reject native Solaris iconv.
4640         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4641         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4642
4643 2009-12-31  Bruno Haible  <bruno@clisp.org>
4644
4645         * tests/test-signal.c (main): Remove test of 'SIG'.
4646
4647 2009-12-31  Bruno Haible  <bruno@clisp.org>
4648
4649         spawn: Fix incomplete fix.
4650         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4651         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4652         warnings for GNULIB_POSIXCHECK again.
4653         Reported by Eric Blake.
4654
4655 2009-12-31  Bruno Haible  <bruno@clisp.org>
4656
4657         Avoid namespace pollution on glibc systems.
4658         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4659         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4660         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4661         glibc systems.
4662
4663 2009-12-31  Bruno Haible  <bruno@clisp.org>
4664
4665         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4666         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4667         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4668         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4669         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4670         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4671         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4672
4673 2009-12-31  Bruno Haible  <bruno@clisp.org>
4674
4675         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4676         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4677         afterwards.
4678
4679 2009-12-31  Bruno Haible  <bruno@clisp.org>
4680
4681         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4682         SYS_UTSNAME_H.
4683
4684 2009-12-31  Bruno Haible  <bruno@clisp.org>
4685
4686         spawn: Fix misapplied patch.
4687         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4688         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4689         warnings for GNULIB_POSIXCHECK.
4690
4691 2009-12-31  Bruno Haible  <bruno@clisp.org>
4692
4693         times: Update after sys_times changed.
4694         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4695         * modules/times (Files): Add it.
4696         (configure.ac): Invoke gl_FUNC_TIMES.
4697
4698 2009-12-31  Bruno Haible  <bruno@clisp.org>
4699
4700         Use AC_C_INLINE where necessary.
4701         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4702         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4703         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4704         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4705         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4706         * m4/mbiter.m4 (gl_MBITER): Likewise.
4707         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4708         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4709         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4710         * modules/u64 (configure.ac): Likewise.
4711
4712 2009-12-31  Bruno Haible  <bruno@clisp.org>
4713
4714         Use AC_C_INLINE instead of module 'inline' where possible.
4715         * modules/inline (Description): Clarify purpose.
4716         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4717         * modules/count-one-bits (Depends-on): Remove inline.
4718         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4719         * modules/openat (Depends-on): Remove inline.
4720         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4721         instead of depending on module 'inline'.
4722         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4723         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4724         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4725         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4726         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4727         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4728         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4729         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4730         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4731         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4732         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4733         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4734         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4735         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4736         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4737         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4738         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4739         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4740         Likewise.
4741         * modules/unictype/property-ascii-hex-digit (Depends-on,
4742         configure.ac): Likewise.
4743         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4744         configure.ac): Likewise.
4745         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4746         configure.ac): Likewise.
4747         * modules/unictype/property-bidi-block-separator (Depends-on,
4748         configure.ac): Likewise.
4749         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4750         configure.ac): Likewise.
4751         * modules/unictype/property-bidi-common-separator (Depends-on,
4752         configure.ac): Likewise.
4753         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4754         Likewise.
4755         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4756         configure.ac): Likewise.
4757         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4758         configure.ac): Likewise.
4759         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4760         configure.ac): Likewise.
4761         * modules/unictype/property-bidi-european-digit (Depends-on,
4762         configure.ac): Likewise.
4763         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4764         configure.ac): Likewise.
4765         * modules/unictype/property-bidi-left-to-right (Depends-on,
4766         configure.ac): Likewise.
4767         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4768         configure.ac): Likewise.
4769         * modules/unictype/property-bidi-other-neutral (Depends-on,
4770         configure.ac): Likewise.
4771         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4772         Likewise.
4773         * modules/unictype/property-bidi-segment-separator (Depends-on,
4774         configure.ac): Likewise.
4775         * modules/unictype/property-bidi-whitespace (Depends-on,
4776         configure.ac): Likewise.
4777         * modules/unictype/property-combining (Depends-on, configure.ac):
4778         Likewise.
4779         * modules/unictype/property-composite (Depends-on, configure.ac):
4780         Likewise.
4781         * modules/unictype/property-currency-symbol (Depends-on,
4782         configure.ac): Likewise.
4783         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4784         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4785         Likewise.
4786         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4787         configure.ac): Likewise.
4788         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4789         Likewise.
4790         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4791         Likewise.
4792         * modules/unictype/property-extender (Depends-on, configure.ac):
4793         Likewise.
4794         * modules/unictype/property-format-control (Depends-on, configure.ac):
4795         Likewise.
4796         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4797         Likewise.
4798         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4799         Likewise.
4800         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4801         Likewise.
4802         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4803         Likewise.
4804         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4805         Likewise.
4806         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4807         Likewise.
4808         * modules/unictype/property-id-start (Depends-on, configure.ac):
4809         Likewise.
4810         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4811         Likewise.
4812         * modules/unictype/property-ids-binary-operator (Depends-on,
4813         configure.ac): Likewise.
4814         * modules/unictype/property-ids-trinary-operator (Depends-on,
4815         configure.ac): Likewise.
4816         * modules/unictype/property-ignorable-control (Depends-on,
4817         configure.ac): Likewise.
4818         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4819         Likewise.
4820         * modules/unictype/property-join-control (Depends-on, configure.ac):
4821         Likewise.
4822         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4823         Likewise.
4824         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4825         Likewise.
4826         * modules/unictype/property-logical-order-exception (Depends-on,
4827         configure.ac): Likewise.
4828         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4829         Likewise.
4830         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4831         * modules/unictype/property-non-break (Depends-on, configure.ac):
4832         Likewise.
4833         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4834         Likewise.
4835         * modules/unictype/property-numeric (Depends-on, configure.ac):
4836         Likewise.
4837         * modules/unictype/property-other-alphabetic (Depends-on,
4838         configure.ac): Likewise.
4839         * modules/unictype/property-other-default-ignorable-code-point
4840         (Depends-on, configure.ac): Likewise.
4841         * modules/unictype/property-other-grapheme-extend (Depends-on,
4842         configure.ac): Likewise.
4843         * modules/unictype/property-other-id-continue (Depends-on,
4844         configure.ac): Likewise.
4845         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4846         Likewise.
4847         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4848         Likewise.
4849         * modules/unictype/property-other-math (Depends-on, configure.ac):
4850         Likewise.
4851         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4852         Likewise.
4853         * modules/unictype/property-paired-punctuation (Depends-on,
4854         configure.ac): Likewise.
4855         * modules/unictype/property-paragraph-separator (Depends-on,
4856         configure.ac): Likewise.
4857         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4858         Likewise.
4859         * modules/unictype/property-pattern-white-space (Depends-on,
4860         configure.ac): Likewise.
4861         * modules/unictype/property-private-use (Depends-on, configure.ac):
4862         Likewise.
4863         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4864         Likewise.
4865         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4866         Likewise.
4867         * modules/unictype/property-radical (Depends-on, configure.ac):
4868         Likewise.
4869         * modules/unictype/property-sentence-terminal (Depends-on,
4870         configure.ac): Likewise.
4871         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4872         Likewise.
4873         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4874         * modules/unictype/property-terminal-punctuation (Depends-on,
4875         configure.ac): Likewise.
4876         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4877         Likewise.
4878         * modules/unictype/property-unassigned-code-value (Depends-on,
4879         configure.ac): Likewise.
4880         * modules/unictype/property-unified-ideograph (Depends-on,
4881         configure.ac): Likewise.
4882         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4883         Likewise.
4884         * modules/unictype/property-variation-selector (Depends-on,
4885         configure.ac): Likewise.
4886         * modules/unictype/property-white-space (Depends-on, configure.ac):
4887         Likewise.
4888         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4889         Likewise.
4890         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4891         Likewise.
4892         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4893         Likewise.
4894         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4895         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4896         Likewise.
4897
4898 2009-12-31  Bruno Haible  <bruno@clisp.org>
4899
4900         Remove unnecessary AC_C_INLINE invocation.
4901         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4902         since 2009-08-21.
4903
4904 2009-12-31  Jim Meyering  <meyering@redhat.com>
4905
4906         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4907         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4908         With this change, we can all remove the gpg_key_ID = ... definition
4909         from our respective cfg.mk files.
4910
4911         maint.mk: create announcement template in ~/, not in /tmp
4912         * top/maint.mk (emit_upload_commands): Adjust.
4913         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4914         Remove temporary file, .ci-msg.
4915
4916 2009-12-31  Eric Blake  <ebb9@byu.net>
4917
4918         link-warning: always build headers with link warnings
4919         * modules/arpa_inet (Makefile.am): Always build replacement
4920         header.
4921         * modules/ctype (Makefile.am): Likewise.
4922         * modules/dirent (Makefile.am): Likewise.
4923         * modules/inttypes (Makefile.am): Likewise.
4924         * modules/langinfo (Makefile.am): Likewise.
4925         * modules/locale (Makefile.am): Likewise.
4926         * modules/spawn (Makefile.am): Likewise.
4927         * modules/sys_file (Makefile.am): Likewise.
4928         * modules/sys_ioctl (Makefile.am): Likewise.
4929         * modules/sys_select (Makefile.am): Likewise.
4930         * modules/sys_socket (Makefile.am): Likewise.
4931         * modules/sys_times (Makefile.am): Likewise.
4932         * modules/sys_utsname (Makefile.am): Likewise.
4933         * modules/sys_wait (Makefile.am): Likewise.
4934         * modules/wchar (Makefile.am): Likewise.
4935         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4936         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4937         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4938         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4939         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4940         Likewise.
4941         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4942         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4943         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4944         Likewise.
4945         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4946         Likewise.
4947         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4948         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4949         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4950         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4951         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4952         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4953         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4954         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4955         (gl_WCHAR_H_DEFAULTS): Likewise.
4956
4957 2009-12-31  Eric Blake  <ebb9@byu.net>
4958
4959         signal, spawn: use link warnings
4960         * lib/signal.in.h (sigset_t): Make unconditional.
4961         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4962         (sigpending, sigprocmask, sigaction): Add link warnings.
4963         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4964         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4965         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4966         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4967         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4968         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4969         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4970         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4971         (posix_spawn_file_actions_destroy)
4972         (posix_spawn_file_actions_addopen)
4973         (posix_spawn_file_actions_addclose)
4974         (posix_spawn_file_actions_adddup2): Likewise.
4975         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4976         * tests/test-signal.c (main): Enhance test.
4977
4978         spawn: improve wrapper support
4979         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4980         (gl_SPAWN_H_DEFAULTS): New defaults.
4981         * modules/spawn (Makefile.am): Substitute them.
4982         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4983         Only declare if missing or broken.
4984
4985         sys_times, sys_utsname: use include_next
4986         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4987         header.
4988         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4989         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4990         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4991         * modules/sys_times (Depends-on): Add include_next.
4992         (Makefile.am): Substitute additional values.
4993         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4994         * lib/sys_times.in.h (includes): Include native header, if
4995         available.
4996         * lib/sys_utsname.in.h (includes): Likewise.
4997         * tests/test-sys_times.c (main): Enhance test.
4998
4999         fdutimensat: revert prior patch
5000         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
5001         utimens.h.
5002         Reported by Bruno Haible.
5003
5004 2009-12-30  Eric Blake  <ebb9@byu.net>
5005
5006         sys_wait: drop link-warning dependency
5007         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
5008         link-warning efforts.
5009         * lib/sys_wait.in.h: Likewise.
5010
5011         fdutimensat: remove bogus dependency
5012         * modules/fdutimensat (Depends-on): Drop inline.
5013
5014         unistd: fix typo
5015         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
5016
5017 2009-12-30  Bruno Haible  <bruno@clisp.org>
5018
5019         Fix compilation error with Solaris cc.
5020         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
5021         * lib/unicase/u16-is-invariant.c: Likewise.
5022         * lib/unicase/u32-is-invariant.c: Likewise.
5023         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5024
5025 2009-12-30  Bruno Haible  <bruno@clisp.org>
5026
5027         Fix test crash.
5028         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
5029         locales.
5030         Reported by Simon Josefsson <simon@josefsson.org>.
5031
5032 2009-12-30  Bruno Haible  <bruno@clisp.org>
5033
5034         Fix compilation error on most platforms.
5035         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
5036         Reported by Simon Josefsson <simon@josefsson.org>
5037         and Nelson H. F. Beebe <beebe@math.utah.edu>.
5038
5039 2009-12-30  Eric Blake  <ebb9@byu.net>
5040
5041         futimens, utimensat: work around ntfs-3g bug
5042         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
5043         a ctime bug is present, and expand workaround to cover ntfs-3g.
5044         * lib/utimens.c (fdutimens, lutimens): Likewise.
5045         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
5046         (validate_timespec): Adjust return value.
5047         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
5048         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5049         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
5050
5051 2009-12-29  Eric Blake  <ebb9@byu.net>
5052
5053         link-warning: make usage consistent
5054         * modules/ctype (Depends-on): Add link-warning.
5055         (Makefile.am): Update rules accordingly.
5056         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5057         * modules/locale (Depends-on, Makefile.am): Likewise.
5058         * modules/sys_file (Makefile.am): Likewise.
5059         * modules/getopt-posix (Makefile.am): Delete unused link warning
5060         efforts.
5061         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
5062         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
5063         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
5064         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
5065
5066         stdio: remove unused variables
5067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
5068         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5069         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5070
5071         tests: test more substitute headers
5072         * modules/ctype-tests: New file.
5073         * modules/dirent-tests: Likewise.
5074         * modules/spawn-tests: Likewise.
5075         * modules/sys_file-tests: Likewise.
5076         * modules/sys_ioctl-tests: Likewise.
5077         * modules/sys_wait-tests: Likewise.
5078         * tests/test-ctype.c: Likewise.
5079         * tests/test-dirent.c: Likewise.
5080         * tests/test-spawn.c: Likewise.
5081         * tests/test-sys_file.c: Likewise.
5082         * tests/test-sys_ioctl.c: Likewise.
5083         * tests/test-sys_wait.c: Likewise.
5084         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
5085         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
5086         whether or not flock is in use.
5087
5088         tests: remove License section from module
5089         * modules/arpa_inet-tests: Remove unneeded section.
5090         * modules/byteswap-tests: Likewise.
5091         * modules/ceilf-tests: Likewise.
5092         * modules/ceill-tests: Likewise.
5093         * modules/crypto/des-tests: Likewise.
5094         * modules/crypto/gc-arcfour-tests: Likewise.
5095         * modules/crypto/gc-arctwo-tests: Likewise.
5096         * modules/crypto/gc-des-tests: Likewise.
5097         * modules/crypto/gc-hmac-md5-tests: Likewise.
5098         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5099         * modules/crypto/gc-md2-tests: Likewise.
5100         * modules/crypto/gc-md4-tests: Likewise.
5101         * modules/crypto/gc-md5-tests: Likewise.
5102         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5103         * modules/crypto/gc-rijndael-tests: Likewise.
5104         * modules/crypto/gc-sha1-tests: Likewise.
5105         * modules/crypto/gc-tests: Likewise.
5106         * modules/crypto/md2-tests: Likewise.
5107         * modules/crypto/md4-tests: Likewise.
5108         * modules/fcntl-h-tests: Likewise.
5109         * modules/floorf-tests: Likewise.
5110         * modules/floorl-tests: Likewise.
5111         * modules/frexp-nolibm-tests: Likewise.
5112         * modules/frexp-tests: Likewise.
5113         * modules/frexpl-nolibm-tests: Likewise.
5114         * modules/frexpl-tests: Likewise.
5115         * modules/getaddrinfo-tests: Likewise.
5116         * modules/inttypes-tests: Likewise.
5117         * modules/isfinite-tests: Likewise.
5118         * modules/isinf-tests: Likewise.
5119         * modules/ldexpl-tests: Likewise.
5120         * modules/locale-tests: Likewise.
5121         * modules/math-tests: Likewise.
5122         * modules/netdb-tests: Likewise.
5123         * modules/netinet_in-tests: Likewise.
5124         * modules/printf-frexp-tests: Likewise.
5125         * modules/printf-frexpl-tests: Likewise.
5126         * modules/priv-set-tests: Likewise.
5127         * modules/random_r-tests: Likewise.
5128         * modules/round-tests: Likewise.
5129         * modules/roundf-tests: Likewise.
5130         * modules/roundl-tests: Likewise.
5131         * modules/search-tests: Likewise.
5132         * modules/select-tests: Likewise.
5133         * modules/signal-tests: Likewise.
5134         * modules/stdbool-tests: Likewise.
5135         * modules/stddef-tests: Likewise.
5136         * modules/stdint-tests: Likewise.
5137         * modules/stdio-tests: Likewise.
5138         * modules/stdlib-tests: Likewise.
5139         * modules/string-tests: Likewise.
5140         * modules/strings-tests: Likewise.
5141         * modules/sys_select-tests: Likewise.
5142         * modules/sys_socket-tests: Likewise.
5143         * modules/sys_stat-tests: Likewise.
5144         * modules/sys_time-tests: Likewise.
5145         * modules/sys_utsname-tests: Likewise.
5146         * modules/sysexits-tests: Likewise.
5147         * modules/time-tests: Likewise.
5148         * modules/trunc-tests: Likewise.
5149         * modules/truncf-tests: Likewise.
5150         * modules/truncl-tests: Likewise.
5151         * modules/tsearch-tests: Likewise.
5152         * modules/unistd-tests: Likewise.
5153         * modules/wchar-tests: Likewise.
5154         * modules/wctype-tests: Likewise.
5155
5156         tests: fix license on several tests
5157         * tests/test-des.c: Update to GPLv3+.
5158         * tests/test-flock.c: Likewise.
5159         * tests/test-fsync.c: Likewise.
5160         * tests/test-futimens.h: Likewise.
5161         * tests/test-gc-arcfour.c: Likewise.
5162         * tests/test-gc-arctwo.c: Likewise.
5163         * tests/test-gc-des.c: Likewise.
5164         * tests/test-gc-hmac-md5.c: Likewise.
5165         * tests/test-gc-hmac-sha1.c: Likewise.
5166         * tests/test-gc-md2.c: Likewise.
5167         * tests/test-gc-md4.c: Likewise.
5168         * tests/test-gc-md5.c: Likewise.
5169         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5170         * tests/test-gc-rijndael.c: Likewise.
5171         * tests/test-gc-sha1.c: Likewise.
5172         * tests/test-gc.c: Likewise.
5173         * tests/test-getcwd.c: Likewise.
5174         * tests/test-link.c: Likewise.
5175         * tests/test-link.h: Likewise.
5176         * tests/test-lutimens.h: Likewise.
5177         * tests/test-md2.c: Likewise.
5178         * tests/test-md4.c: Likewise.
5179         * tests/test-mkdir.h: Likewise.
5180         * tests/test-rename.c: Likewise.
5181         * tests/test-rename.h: Likewise.
5182         * tests/test-safe-alloc.c: Likewise.
5183         * tests/test-utimens-common.h: Likewise.
5184         * tests/test-utimens.h: Likewise.
5185
5186         maint: sync license texts
5187         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5188         * doc/gpl-3.0.texi: Revert copyright year update.
5189         * doc/lgpl-3.0.texi: Likewise.
5190
5191 2009-12-29  Jim Meyering  <meyering@redhat.com>
5192
5193         update nearly all FSF copyright year lists to include 2009
5194         The files named by the following are exempted:
5195             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5196               test -f "$dst" && { echo "$dst"; continue; }
5197               test -d "$dst" || continue
5198               echo "$dst"/$(basename "$src")
5199             done > exempt
5200             git ls-files tests/unictype >> exempt
5201         In the remaining files, convert to all-interval notation if
5202         - there is already at least one year interval like 2000-2003
5203         - the file is maintained by me
5204         - the file is in lib/uni*/, where that style already prevails
5205         Otherwise, use update-copyright's default.
5206
5207 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5208         and Eric Blake  <ebb9@byu.net>
5209
5210         tests: don't require debug system() to pass
5211         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5212         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5213         * tests/test-unlink.h (test_unlink_func): Likewise.
5214         * tests/test-fstatat.c (main): ...into callers.
5215         * tests/test-lstat.c (main): Likewise.
5216         * tests/test-rmdir.c (main): Likewise.
5217         * tests/test-unlink.c (main): Likewise.
5218         * tests/test-unlinkat.c (main): Likewise.
5219         * tests/test-areadlink-with-size.c (main): Don't require a
5220         debug-only system call to pass, aiding cross-testing to mingw.
5221         * tests/test-areadlink.c (main): Likewise.
5222         * tests/test-areadlinkat-with-size.c (main): Likewise.
5223         * tests/test-areadlinkat.c (main): Likewise.
5224         * tests/test-canonicalize-lgpl.c (main): Likewise.
5225         * tests/test-canonicalize.c (main): Likewise.
5226         * tests/test-chown.c (main): Likewise.
5227         * tests/test-fchownat.c (main): Likewise.
5228         * tests/test-lchown.c (main): Likewise.
5229         * tests/test-fdutimensat.c (main): Likewise.
5230         * tests/test-futimens.c (main): Likewise.
5231         * tests/test-link.c (main): Likewise.
5232         * tests/test-linkat.c (main): Likewise.
5233         * tests/test-mkdir.c (main): Likewise.
5234         * tests/test-mkdirat.c (main): Likewise.
5235         * tests/test-mkfifo.c (main): Likewise.
5236         * tests/test-mkfifoat.c (main): Likewise.
5237         * tests/test-mknod.c (main): Likewise.
5238         * tests/test-readlink.c (main): Likewise.
5239         * tests/test-remove.c (main): Likewise.
5240         * tests/test-rename.c (main): Likewise.
5241         * tests/test-renameat.c (main): Likewise.
5242         * tests/test-symlink.c (main): Likewise.
5243         * tests/test-symlinkat.c (main): Likewise.
5244         * tests/test-utimens.c (main): Likewise.
5245         * tests/test-utimensat.c (main): Likewise.
5246
5247 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5248
5249         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5250         on $(UNUSED_PARAMETER_H) to avoid build failure.
5251
5252 2009-12-28  Jim Meyering  <meyering@redhat.com>
5253
5254         update-copyright: you may specify a max. line length other than 72
5255         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5256
5257         maint: use consistent FSF copyright line syntax
5258         * lib/posixtm.c: Add missing comma in FSF copyright line.
5259         * lib/posixtm.h: Likewise.
5260         * lib/getugroups.c: Add missing ", Inc.".
5261
5262         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5263         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5264         FSF copyright line.  Remove trailing blanks.
5265
5266 2009-12-28  Eric Blake  <ebb9@byu.net>
5267
5268         test-dup2: reduce dependencies
5269         * modules/cloexec (Configure.ac): Set witness.
5270         * modules/dup2-tests (Depends-on): Drop cloexec.
5271         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5272         not present.
5273         Suggested by Bruno Haible.
5274
5275 2009-12-26  Bruno Haible  <bruno@clisp.org>
5276
5277         Remove an unneeded dependency.
5278         * modules/fseterr (Depends-on): Remove dup2.
5279
5280 2009-12-26  Eric Blake  <ebb9@byu.net>
5281
5282         tests: use macros.h in more places
5283         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5284         (ASSERT_STREAM): Provide default of stderr.
5285         * tests/test-dirent-safer.c: Include macros.h, using alternate
5286         stream for assertions.
5287         * tests/test-dup-safer.c: Likewise.
5288         * tests/test-freopen-safer.c: Likewise.
5289         * tests/test-getopt.c: Likewise.
5290         * tests/test-openat-safer.c: Likewise.
5291         * tests/test-pipe.c: Likewise.
5292         * tests/test-popen-safer.c: Likewise.
5293         * modules/dirent-safer-tests (Files): Include macros.h.
5294         * modules/unistd-safer-tests (Files): Likewise.
5295         * modules/freopen-safer-tests (Files): Likewise.
5296         * modules/getopt-posix-tests (Files): Likewise.
5297         * modules/openat-safer-tests (Files): Likewise.
5298         * modules/pipe-tests (Files): Likewise.
5299
5300 2009-12-26  Bruno Haible  <bruno@clisp.org>
5301
5302         javacomp: Portability fix.
5303         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5304         that it also works on Solaris.
5305
5306 2009-12-26  Bruno Haible  <bruno@clisp.org>
5307
5308         localename: Fix storage allocation of gl_locale_name_thread's result.
5309         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5310         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5311         all platforms that have 'uselocale'.
5312         (gl_locale_name_thread_unsafe): New function, extracted from
5313         gl_locale_name_thread.
5314         (gl_locale_name_thread): Call struniq on all platforms that have
5315         'uselocale'.
5316         * tests/test-localename.c (test_locale_name_thread): Check that the
5317         resulting strings are permanently allocated.
5318         * modules/localename-tests (Depends-on): Add strdup.
5319
5320 2009-12-26  Bruno Haible  <bruno@clisp.org>
5321
5322         * tests/test-localename.c (categories): Fill in the strings.
5323
5324 2009-12-26  Jim Meyering  <meyering@redhat.com>
5325
5326         isdir: complete the removal of m4/isdir.m4
5327         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5328
5329         isdir: clean up, since at least grep still uses it
5330         * lib/isdir.c: Include "isdir.h".
5331         (S_ISDIR): Remove now-unneeded definition.
5332         * modules/isdir (Files): Add lib/isdir.h.
5333         * lib/isdir.h: New file, with declaration.
5334         * m4/isdir.m4: Remove file -- unneeded.
5335
5336 2009-12-25  Bruno Haible  <bruno@clisp.org>
5337
5338         selinux-h: Make generated .h files standalone.
5339         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5340         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5341         * lib/se-selinux.in.h: Likewise.
5342         * modules/selinux-h (Depends-on): Add unused-parameter.
5343         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5344         selinux/selinux.h and selinux/context.h.
5345         Suggested by Eric Blake.
5346
5347 2009-12-25  Bruno Haible  <bruno@clisp.org>
5348
5349         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5350         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5351         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5352         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5353         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5354
5355 2009-12-24  Bruno Haible  <bruno@clisp.org>
5356
5357         openat: Fix warning.
5358         * lib/openat-proc.c: Include <unistd.h>.
5359
5360 2009-12-24  Bruno Haible  <bruno@clisp.org>
5361
5362         New module 'unused-parameter'.
5363         * build-aux/unused-parameter.h: New file, extracted from earlier
5364         gnulib-common.m4.
5365         * modules/unused-parameter: New file.
5366         * lib/unistr.h: Include unused-parameter.h.
5367         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5368         _GL_UNUSED.
5369         * modules/unistr/base (Depends-on): Add unused-parameter.
5370
5371 2009-12-24  Bruno Haible  <bruno@clisp.org>
5372
5373         Add missing dependencies to 'extensions' module.
5374         * m4/extensions.m4: Add comment.
5375         * modules/accept4 (Depends-on): Add extensions.
5376         * modules/dup3 (Depends-on): Likewise.
5377         * modules/fcntl (Depends-on): Likewise.
5378         * modules/futimens (Depends-on): Likewise.
5379         * modules/mknod (Depends-on): Likewise.
5380         * modules/pipe2 (Depends-on): Likewise.
5381         * modules/stat-time (Depends-on): Likewise.
5382         * modules/strcasestr-simple (Depends-on): Likewise.
5383         * modules/strsignal (Depends-on): Likewise.
5384         * modules/utimensat (Depends-on): Likewise.
5385         * modules/localcharset (Depends-on): Likewise. Needed because of
5386         gl_FCNTL_O_FLAGS.
5387         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5388         AC_TYPE_MBSTATE_T.
5389         * modules/wcsnrtombs (Depends-on): Likewise.
5390         * modules/wcsrtombs (Depends-on): Likewise.
5391
5392 2009-12-24  Bruno Haible  <bruno@clisp.org>
5393
5394         binary-io: Avoid gcc warning due to SET_BINARY.
5395         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5396         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5397
5398 2009-12-24  Bruno Haible  <bruno@clisp.org>
5399
5400         Avoid future namespace pollution on glibc systems.
5401         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5402         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5403         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5404         glibc systems.
5405
5406 2009-12-24  Bruno Haible  <bruno@clisp.org>
5407
5408         Refactor common macros used in tests.
5409         * tests/macros.h: New file.
5410         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5411         and/or <stdlib.h>, if appropriate.
5412         (ASSERT, SIZEOF): Remove macros.
5413         * tests/test-areadlink-with-size.c: Likewise.
5414         * tests/test-areadlinkat.c: Likewise.
5415         * tests/test-areadlinkat-with-size.c: Likewise.
5416         * tests/test-argmatch.c: Likewise.
5417         * tests/test-argv-iter.c: Likewise.
5418         * tests/test-array-mergesort.c: Likewise.
5419         * tests/test-array_list.c: Likewise.
5420         * tests/test-array_oset.c: Likewise.
5421         * tests/test-avltree_list.c: Likewise.
5422         * tests/test-avltree_oset.c: Likewise.
5423         * tests/test-avltreehash_list.c: Likewise.
5424         * tests/test-base64.c: Likewise.
5425         * tests/test-binary-io.c: Likewise.
5426         * tests/test-bitrotate.c: Likewise.
5427         * tests/test-btowc.c: Likewise.
5428         * tests/test-byteswap.c: Likewise.
5429         * tests/test-c-ctype.c: Likewise.
5430         * tests/test-c-stack.c: Likewise.
5431         * tests/test-c-strcasecmp.c: Likewise.
5432         * tests/test-c-strcasestr.c: Likewise.
5433         * tests/test-c-strncasecmp.c: Likewise.
5434         * tests/test-c-strstr.c: Likewise.
5435         * tests/test-canonicalize-lgpl.c: Likewise.
5436         * tests/test-canonicalize.c: Likewise.
5437         * tests/test-carray_list.c: Likewise.
5438         * tests/test-ceilf1.c: Likewise.
5439         * tests/test-ceilf2.c: Likewise.
5440         * tests/test-ceill.c: Likewise.
5441         * tests/test-chown.c: Likewise.
5442         * tests/test-cloexec.c: Likewise.
5443         * tests/test-copy-acl.c: Likewise.
5444         * tests/test-copy-file.c: Likewise.
5445         * tests/test-count-one-bits.c: Likewise.
5446         * tests/test-dprintf-posix.c: Likewise.
5447         * tests/test-dup2.c: Likewise.
5448         * tests/test-dup3.c: Likewise.
5449         * tests/test-duplocale.c: Likewise.
5450         * tests/test-fbufmode.c: Likewise.
5451         * tests/test-fchdir.c: Likewise.
5452         * tests/test-fchownat.c: Likewise.
5453         * tests/test-fcntl-safer.c: Likewise.
5454         * tests/test-fcntl.c: Likewise.
5455         * tests/test-fdopendir.c: Likewise.
5456         * tests/test-fdutimensat.c: Likewise.
5457         * tests/test-fflush2.c: Likewise.
5458         * tests/test-file-has-acl.c: Likewise.
5459         * tests/test-filevercmp.c: Likewise.
5460         * tests/test-flock.c: Likewise.
5461         * tests/test-floorf1.c: Likewise.
5462         * tests/test-floorf2.c: Likewise.
5463         * tests/test-floorl.c: Likewise.
5464         * tests/test-fnmatch.c: Likewise.
5465         * tests/test-fopen.h: Likewise.
5466         * tests/test-fpending.c: Likewise.
5467         * tests/test-fprintf-posix.c: Likewise.
5468         * tests/test-fpurge.c: Likewise.
5469         * tests/test-freadable.c: Likewise.
5470         * tests/test-freadahead.c: Likewise.
5471         * tests/test-freading.c: Likewise.
5472         * tests/test-freadptr.c: Likewise.
5473         * tests/test-freadptr2.c: Likewise.
5474         * tests/test-freadseek.c: Likewise.
5475         * tests/test-freopen.c: Likewise.
5476         * tests/test-frexp.c: Likewise.
5477         * tests/test-frexpl.c: Likewise.
5478         * tests/test-fseek.c: Likewise.
5479         * tests/test-fseeko.c: Likewise.
5480         * tests/test-fstatat.c: Likewise.
5481         * tests/test-fstrcmp.c: Likewise.
5482         * tests/test-fsync.c: Likewise.
5483         * tests/test-ftell.c: Likewise.
5484         * tests/test-ftello.c: Likewise.
5485         * tests/test-func.c: Likewise.
5486         * tests/test-futimens.c: Likewise.
5487         * tests/test-fwritable.c: Likewise.
5488         * tests/test-fwriting.c: Likewise.
5489         * tests/test-getcwd.c: Likewise.
5490         * tests/test-getdate.c: Likewise.
5491         * tests/test-getdelim.c: Likewise.
5492         * tests/test-getdtablesize.c: Likewise.
5493         * tests/test-getgroups.c: Likewise.
5494         * tests/test-getline.c: Likewise.
5495         * tests/test-getndelim2.c: Likewise.
5496         * tests/test-glob.c: Likewise.
5497         * tests/test-hash.c: Likewise.
5498         * tests/test-i-ring.c: Likewise.
5499         * tests/test-iconv-utf.c: Likewise.
5500         * tests/test-iconv.c: Likewise.
5501         * tests/test-idpriv-drop.c: Likewise.
5502         * tests/test-idpriv-droptemp.c: Likewise.
5503         * tests/test-inet_ntop.c: Likewise.
5504         * tests/test-inet_pton.c: Likewise.
5505         * tests/test-isblank.c: Likewise.
5506         * tests/test-isfinite.c: Likewise.
5507         * tests/test-isinf.c: Likewise.
5508         * tests/test-isnan.c: Likewise.
5509         * tests/test-isnand.h: Likewise.
5510         * tests/test-isnanf.h: Likewise.
5511         * tests/test-isnanl.h: Likewise.
5512         * tests/test-lchown.c: Likewise.
5513         * tests/test-ldexpl.c: Likewise.
5514         * tests/test-link.c: Likewise.
5515         * tests/test-linkat.c: Likewise.
5516         * tests/test-linked_list.c: Likewise.
5517         * tests/test-linkedhash_list.c: Likewise.
5518         * tests/test-localename.c: Likewise.
5519         * tests/test-lseek.c: Likewise.
5520         * tests/test-lstat.c: Likewise.
5521         * tests/test-mbmemcasecmp.c: Likewise.
5522         * tests/test-mbmemcasecoll.c: Likewise.
5523         * tests/test-mbrtowc.c: Likewise.
5524         * tests/test-mbscasecmp.c: Likewise.
5525         * tests/test-mbscasestr1.c: Likewise.
5526         * tests/test-mbscasestr2.c: Likewise.
5527         * tests/test-mbscasestr3.c: Likewise.
5528         * tests/test-mbscasestr4.c: Likewise.
5529         * tests/test-mbschr.c: Likewise.
5530         * tests/test-mbscspn.c: Likewise.
5531         * tests/test-mbsinit.c: Likewise.
5532         * tests/test-mbsncasecmp.c: Likewise.
5533         * tests/test-mbsnrtowcs.c: Likewise.
5534         * tests/test-mbspbrk.c: Likewise.
5535         * tests/test-mbspcasecmp.c: Likewise.
5536         * tests/test-mbsrchr.c: Likewise.
5537         * tests/test-mbsrtowcs.c: Likewise.
5538         * tests/test-mbsspn.c: Likewise.
5539         * tests/test-mbsstr1.c: Likewise.
5540         * tests/test-mbsstr2.c: Likewise.
5541         * tests/test-mbsstr3.c: Likewise.
5542         * tests/test-memchr.c: Likewise.
5543         * tests/test-memchr2.c: Likewise.
5544         * tests/test-memcmp.c: Likewise.
5545         * tests/test-memmem.c: Likewise.
5546         * tests/test-memrchr.c: Likewise.
5547         * tests/test-mkdir.c: Likewise.
5548         * tests/test-mkdirat.c: Likewise.
5549         * tests/test-mkfifo.c: Likewise.
5550         * tests/test-mkfifoat.c: Likewise.
5551         * tests/test-mknod.c: Likewise.
5552         * tests/test-nanosleep.c: Likewise.
5553         * tests/test-nl_langinfo.c: Likewise.
5554         * tests/test-obstack-printf.c: Likewise.
5555         * tests/test-open.c: Likewise.
5556         * tests/test-openat.c: Likewise.
5557         * tests/test-pipe-filter-gi1.c: Likewise.
5558         * tests/test-pipe-filter-gi2-main.c: Likewise.
5559         * tests/test-pipe-filter-ii1.c: Likewise.
5560         * tests/test-pipe-filter-ii2-main.c: Likewise.
5561         * tests/test-pipe2.c: Likewise.
5562         * tests/test-popen.h: Likewise.
5563         * tests/test-posixtm.c: Likewise.
5564         * tests/test-pread.c: Likewise.
5565         * tests/test-printf-frexp.c: Likewise.
5566         * tests/test-printf-frexpl.c: Likewise.
5567         * tests/test-printf-posix.c: Likewise.
5568         * tests/test-priv-set.c: Likewise.
5569         * tests/test-quotearg.c: Likewise.
5570         * tests/test-random_r.c: Likewise.
5571         * tests/test-rawmemchr.c: Likewise.
5572         * tests/test-rbtree_list.c: Likewise.
5573         * tests/test-rbtree_oset.c: Likewise.
5574         * tests/test-rbtreehash_list.c: Likewise.
5575         * tests/test-readlink.c: Likewise.
5576         * tests/test-remove.c: Likewise.
5577         * tests/test-rename.c: Likewise.
5578         * tests/test-renameat.c: Likewise.
5579         * tests/test-rmdir.c: Likewise.
5580         * tests/test-round1.c: Likewise.
5581         * tests/test-roundf1.c: Likewise.
5582         * tests/test-roundl.c: Likewise.
5583         * tests/test-safe-alloc.c: Likewise.
5584         * tests/test-sameacls.c: Likewise.
5585         * tests/test-set-mode-acl.c: Likewise.
5586         * tests/test-setenv.c: Likewise.
5587         * tests/test-sigaction.c: Likewise.
5588         * tests/test-signbit.c: Likewise.
5589         * tests/test-sleep.c: Likewise.
5590         * tests/test-snprintf-posix.c: Likewise.
5591         * tests/test-snprintf.c: Likewise.
5592         * tests/test-sprintf-posix.c: Likewise.
5593         * tests/test-stat-time.c: Likewise.
5594         * tests/test-stat.c: Likewise.
5595         * tests/test-strcasestr.c: Likewise.
5596         * tests/test-strchrnul.c: Likewise.
5597         * tests/test-strerror.c: Likewise.
5598         * tests/test-striconv.c: Likewise.
5599         * tests/test-striconveh.c: Likewise.
5600         * tests/test-striconveha.c: Likewise.
5601         * tests/test-strsignal.c: Likewise.
5602         * tests/test-strstr.c: Likewise.
5603         * tests/test-strtod.c: Likewise.
5604         * tests/test-strverscmp.c: Likewise.
5605         * tests/test-symlink.c: Likewise.
5606         * tests/test-symlinkat.c: Likewise.
5607         * tests/test-trunc1.c: Likewise.
5608         * tests/test-trunc2.c: Likewise.
5609         * tests/test-truncf1.c: Likewise.
5610         * tests/test-truncf2.c: Likewise.
5611         * tests/test-truncl.c: Likewise.
5612         * tests/test-uname.c: Likewise.
5613         * tests/test-unlink.c: Likewise.
5614         * tests/test-unlinkat.c: Likewise.
5615         * tests/test-unsetenv.c: Likewise.
5616         * tests/test-usleep.c: Likewise.
5617         * tests/test-utimens.c: Likewise.
5618         * tests/test-utimensat.c: Likewise.
5619         * tests/test-vasnprintf-posix.c: Likewise.
5620         * tests/test-vasnprintf-posix2.c: Likewise.
5621         * tests/test-vasnprintf.c: Likewise.
5622         * tests/test-vasprintf-posix.c: Likewise.
5623         * tests/test-vasprintf.c: Likewise.
5624         * tests/test-vdprintf-posix.c: Likewise.
5625         * tests/test-vfprintf-posix.c: Likewise.
5626         * tests/test-vprintf-posix.c: Likewise.
5627         * tests/test-vsnprintf-posix.c: Likewise.
5628         * tests/test-vsnprintf.c: Likewise.
5629         * tests/test-vsprintf-posix.c: Likewise.
5630         * tests/test-wcrtomb.c: Likewise.
5631         * tests/test-wcsnrtombs.c: Likewise.
5632         * tests/test-wcsrtombs.c: Likewise.
5633         * tests/test-wctype.c: Likewise.
5634         * tests/test-wcwidth.c: Likewise.
5635         * tests/test-xfprintf-posix.c: Likewise.
5636         * tests/test-xmemdup0.c: Likewise.
5637         * tests/test-xprintf-posix.c: Likewise.
5638         * tests/test-xvasprintf.c: Likewise.
5639         * tests/unicase/test-locale-language.c: Likewise.
5640         * tests/unicase/test-mapping-part1.h: Likewise.
5641         * tests/unicase/test-predicate-part1.h: Likewise.
5642         * tests/unicase/test-u8-casecmp.c: Likewise.
5643         * tests/unicase/test-u8-casecoll.c: Likewise.
5644         * tests/unicase/test-u8-casefold.c: Likewise.
5645         * tests/unicase/test-u8-is-cased.c: Likewise.
5646         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5647         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5648         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5649         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5650         * tests/unicase/test-u8-tolower.c: Likewise.
5651         * tests/unicase/test-u8-totitle.c: Likewise.
5652         * tests/unicase/test-u8-toupper.c: Likewise.
5653         * tests/unicase/test-u16-casecmp.c: Likewise.
5654         * tests/unicase/test-u16-casecoll.c: Likewise.
5655         * tests/unicase/test-u16-casefold.c: Likewise.
5656         * tests/unicase/test-u16-is-cased.c: Likewise.
5657         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5658         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5659         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5660         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5661         * tests/unicase/test-u16-tolower.c: Likewise.
5662         * tests/unicase/test-u16-totitle.c: Likewise.
5663         * tests/unicase/test-u16-toupper.c: Likewise.
5664         * tests/unicase/test-u32-casecmp.c: Likewise.
5665         * tests/unicase/test-u32-casecoll.c: Likewise.
5666         * tests/unicase/test-u32-casefold.c: Likewise.
5667         * tests/unicase/test-u32-is-cased.c: Likewise.
5668         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5669         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5670         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5671         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5672         * tests/unicase/test-u32-tolower.c: Likewise.
5673         * tests/unicase/test-u32-totitle.c: Likewise.
5674         * tests/unicase/test-u32-toupper.c: Likewise.
5675         * tests/unicase/test-ulc-casecmp.c: Likewise.
5676         * tests/unicase/test-ulc-casecoll.c: Likewise.
5677         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5678         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5679         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5680         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5681         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5682         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5683         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5684         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5685         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5686         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5687         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5688         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5689         * tests/unictype/test-bidi_byname.c: Likewise.
5690         * tests/unictype/test-bidi_name.c: Likewise.
5691         * tests/unictype/test-bidi_of.c: Likewise.
5692         * tests/unictype/test-bidi_test.c: Likewise.
5693         * tests/unictype/test-block_list.c: Likewise.
5694         * tests/unictype/test-block_of.c: Likewise.
5695         * tests/unictype/test-block_test.c: Likewise.
5696         * tests/unictype/test-categ_and.c: Likewise.
5697         * tests/unictype/test-categ_and_not.c: Likewise.
5698         * tests/unictype/test-categ_byname.c: Likewise.
5699         * tests/unictype/test-categ_name.c: Likewise.
5700         * tests/unictype/test-categ_none.c: Likewise.
5701         * tests/unictype/test-categ_of.c: Likewise.
5702         * tests/unictype/test-categ_or.c: Likewise.
5703         * tests/unictype/test-categ_test_withtable.c: Likewise.
5704         * tests/unictype/test-combining.c: Likewise.
5705         * tests/unictype/test-decdigit.c: Likewise.
5706         * tests/unictype/test-digit.c: Likewise.
5707         * tests/unictype/test-mirror.c: Likewise.
5708         * tests/unictype/test-numeric.c: Likewise.
5709         * tests/unictype/test-pr_byname.c: Likewise.
5710         * tests/unictype/test-pr_test.c: Likewise.
5711         * tests/unictype/test-predicate-part1.h: Likewise.
5712         * tests/unictype/test-scripts.c: Likewise.
5713         * tests/unictype/test-sy_c_ident.c: Likewise.
5714         * tests/unictype/test-sy_java_ident.c: Likewise.
5715         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5716         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5717         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5718         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5719         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5720         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5721         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5722         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5723         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5724         * tests/uninorm/test-compat-decomposition.c: Likewise.
5725         * tests/uninorm/test-composition.c: Likewise.
5726         * tests/uninorm/test-decomposing-form.c: Likewise.
5727         * tests/uninorm/test-decomposition.c: Likewise.
5728         * tests/uninorm/test-u8-nfc.c: Likewise.
5729         * tests/uninorm/test-u8-nfd.c: Likewise.
5730         * tests/uninorm/test-u8-nfkc.c: Likewise.
5731         * tests/uninorm/test-u8-nfkd.c: Likewise.
5732         * tests/uninorm/test-u8-normcmp.c: Likewise.
5733         * tests/uninorm/test-u8-normcoll.c: Likewise.
5734         * tests/uninorm/test-u16-nfc.c: Likewise.
5735         * tests/uninorm/test-u16-nfd.c: Likewise.
5736         * tests/uninorm/test-u16-nfkc.c: Likewise.
5737         * tests/uninorm/test-u16-nfkd.c: Likewise.
5738         * tests/uninorm/test-u16-normcmp.c: Likewise.
5739         * tests/uninorm/test-u16-normcoll.c: Likewise.
5740         * tests/uninorm/test-u32-nfc.c: Likewise.
5741         * tests/uninorm/test-u32-nfd.c: Likewise.
5742         * tests/uninorm/test-u32-nfkc.c: Likewise.
5743         * tests/uninorm/test-u32-nfkd.c: Likewise.
5744         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5745         * tests/uninorm/test-u32-normcmp.c: Likewise.
5746         * tests/uninorm/test-u32-normcoll.c: Likewise.
5747         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5748         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5749         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5750         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5751         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5752         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5753         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5754         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5755         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5756         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5757         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5758         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5759         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5760         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5761         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5762         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5763         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5764         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5765         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5766         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5767         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5768         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5769         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5770         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5771         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5772         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5773         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5774         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5775         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5776         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5777         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5778         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5779         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5780         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5781         * tests/uniwidth/test-u8-width.c: Likewise.
5782         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5783         * tests/uniwidth/test-u16-width.c: Likewise.
5784         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5785         * tests/uniwidth/test-u32-width.c: Likewise.
5786         * tests/uniwidth/test-uc_width.c: Likewise.
5787         * tests/uniwidth/test-uc_width2.c: Likewise.
5788         * modules/acl-tests (Files): Add tests/macros.h.
5789         * modules/areadlink-tests (Files): Likewise.
5790         * modules/areadlink-with-size-tests (Files): Likewise.
5791         * modules/areadlinkat-tests (Files): Likewise.
5792         * modules/areadlinkat-with-size-tests (Files): Likewise.
5793         * modules/argmatch-tests (Files): Likewise.
5794         * modules/argv-iter-tests (Files): Likewise.
5795         * modules/array-list-tests (Files): Likewise.
5796         * modules/array-mergesort-tests (Files): Likewise.
5797         * modules/array-oset-tests (Files): Likewise.
5798         * modules/avltree-list-tests (Files): Likewise.
5799         * modules/avltree-oset-tests (Files): Likewise.
5800         * modules/avltreehash-list-tests (Files): Likewise.
5801         * modules/base64-tests (Files): Likewise.
5802         * modules/binary-io-tests (Files): Likewise.
5803         * modules/bitrotate-tests (Files): Likewise.
5804         * modules/btowc-tests (Files): Likewise.
5805         * modules/byteswap-tests (Files): Likewise.
5806         * modules/c-ctype-tests (Files): Likewise.
5807         * modules/c-stack-tests (Files): Likewise.
5808         * modules/c-strcase-tests (Files): Likewise.
5809         * modules/c-strcasestr-tests (Files): Likewise.
5810         * modules/c-strstr-tests (Files): Likewise.
5811         * modules/canonicalize-lgpl-tests (Files): Likewise.
5812         * modules/canonicalize-tests (Files): Likewise.
5813         * modules/carray-list-tests (Files): Likewise.
5814         * modules/ceilf-tests (Files): Likewise.
5815         * modules/ceill-tests (Files): Likewise.
5816         * modules/chown-tests (Files): Likewise.
5817         * modules/cloexec-tests (Files): Likewise.
5818         * modules/copy-file-tests (Files): Likewise.
5819         * modules/count-one-bits-tests (Files): Likewise.
5820         * modules/dprintf-posix-tests (Files): Likewise.
5821         * modules/dup2-tests (Files): Likewise.
5822         * modules/dup3-tests (Files): Likewise.
5823         * modules/duplocale-tests (Files): Likewise.
5824         * modules/fbufmode-tests (Files): Likewise.
5825         * modules/fchdir-tests (Files): Likewise.
5826         * modules/fcntl-safer-tests (Files): Likewise.
5827         * modules/fcntl-tests (Files): Likewise.
5828         * modules/fdopendir-tests (Files): Likewise.
5829         * modules/fdutimensat-tests (Files): Likewise.
5830         * modules/fflush-tests (Files): Likewise.
5831         * modules/filevercmp-tests (Files): Likewise.
5832         * modules/flock-tests (Files): Likewise.
5833         * modules/floorf-tests (Files): Likewise.
5834         * modules/floorl-tests (Files): Likewise.
5835         * modules/fnmatch-tests (Files): Likewise.
5836         * modules/fopen-safer-tests (Files): Likewise.
5837         * modules/fopen-tests (Files): Likewise.
5838         * modules/fpending-tests (Files): Likewise.
5839         * modules/fprintf-posix-tests (Files): Likewise.
5840         * modules/fpurge-tests (Files): Likewise.
5841         * modules/freadable-tests (Files): Likewise.
5842         * modules/freadahead-tests (Files): Likewise.
5843         * modules/freading-tests (Files): Likewise.
5844         * modules/freadptr-tests (Files): Likewise.
5845         * modules/freadseek-tests (Files): Likewise.
5846         * modules/freopen-tests (Files): Likewise.
5847         * modules/frexp-nolibm-tests (Files): Likewise.
5848         * modules/frexp-tests (Files): Likewise.
5849         * modules/frexpl-nolibm-tests (Files): Likewise.
5850         * modules/frexpl-tests (Files): Likewise.
5851         * modules/fseek-tests (Files): Likewise.
5852         * modules/fseeko-tests (Files): Likewise.
5853         * modules/fstrcmp-tests (Files): Likewise.
5854         * modules/fsync-tests (Files): Likewise.
5855         * modules/ftell-tests (Files): Likewise.
5856         * modules/ftello-tests (Files): Likewise.
5857         * modules/func-tests (Files): Likewise.
5858         * modules/futimens-tests (Files): Likewise.
5859         * modules/fwritable-tests (Files): Likewise.
5860         * modules/fwriting-tests (Files): Likewise.
5861         * modules/getcwd-tests (Files): Likewise.
5862         * modules/getdate-tests (Files): Likewise.
5863         * modules/getdelim-tests (Files): Likewise.
5864         * modules/getdtablesize-tests (Files): Likewise.
5865         * modules/getgroups-tests (Files): Likewise.
5866         * modules/getline-tests (Files): Likewise.
5867         * modules/getndelim2-tests (Files): Likewise.
5868         * modules/glob-tests (Files): Likewise.
5869         * modules/hash-tests (Files): Likewise.
5870         * modules/i-ring-tests (Files): Likewise.
5871         * modules/iconv-tests (Files): Likewise.
5872         * modules/iconv_open-utf-tests (Files): Likewise.
5873         * modules/idpriv-drop-tests (Files): Likewise.
5874         * modules/idpriv-droptemp-tests (Files): Likewise.
5875         * modules/inet_ntop-tests (Files): Likewise.
5876         * modules/inet_pton-tests (Files): Likewise.
5877         * modules/isblank-tests (Files): Likewise.
5878         * modules/isfinite-tests (Files): Likewise.
5879         * modules/isinf-tests (Files): Likewise.
5880         * modules/isnan-tests (Files): Likewise.
5881         * modules/isnand-nolibm-tests (Files): Likewise.
5882         * modules/isnand-tests (Files): Likewise.
5883         * modules/isnanf-nolibm-tests (Files): Likewise.
5884         * modules/isnanf-tests (Files): Likewise.
5885         * modules/isnanl-nolibm-tests (Files): Likewise.
5886         * modules/isnanl-tests (Files): Likewise.
5887         * modules/lchown-tests (Files): Likewise.
5888         * modules/ldexpl-tests (Files): Likewise.
5889         * modules/link-tests (Files): Likewise.
5890         * modules/linkat-tests (Files): Likewise.
5891         * modules/linked-list-tests (Files): Likewise.
5892         * modules/linkedhash-list-tests (Files): Likewise.
5893         * modules/localename-tests (Files): Likewise.
5894         * modules/lseek-tests (Files): Likewise.
5895         * modules/lstat-tests (Files): Likewise.
5896         * modules/mbmemcasecmp-tests (Files): Likewise.
5897         * modules/mbmemcasecoll-tests (Files): Likewise.
5898         * modules/mbrtowc-tests (Files): Likewise.
5899         * modules/mbscasecmp-tests (Files): Likewise.
5900         * modules/mbscasestr-tests (Files): Likewise.
5901         * modules/mbschr-tests (Files): Likewise.
5902         * modules/mbscspn-tests (Files): Likewise.
5903         * modules/mbsinit-tests (Files): Likewise.
5904         * modules/mbsncasecmp-tests (Files): Likewise.
5905         * modules/mbsnrtowcs-tests (Files): Likewise.
5906         * modules/mbspbrk-tests (Files): Likewise.
5907         * modules/mbspcasecmp-tests (Files): Likewise.
5908         * modules/mbsrchr-tests (Files): Likewise.
5909         * modules/mbsrtowcs-tests (Files): Likewise.
5910         * modules/mbsspn-tests (Files): Likewise.
5911         * modules/mbsstr-tests (Files): Likewise.
5912         * modules/memchr-tests (Files): Likewise.
5913         * modules/memchr2-tests (Files): Likewise.
5914         * modules/memcmp-tests (Files): Likewise.
5915         * modules/memmem-tests (Files): Likewise.
5916         * modules/memrchr-tests (Files): Likewise.
5917         * modules/mkdir-tests (Files): Likewise.
5918         * modules/mkfifo-tests (Files): Likewise.
5919         * modules/mkfifoat-tests (Files): Likewise.
5920         * modules/mknod-tests (Files): Likewise.
5921         * modules/nanosleep-tests (Files): Likewise.
5922         * modules/nl_langinfo-tests (Files): Likewise.
5923         * modules/obstack-printf-tests (Files): Likewise.
5924         * modules/open-tests (Files): Likewise.
5925         * modules/openat-tests (Files): Likewise.
5926         * modules/pipe-filter-gi-tests (Files): Likewise.
5927         * modules/pipe-filter-ii-tests (Files): Likewise.
5928         * modules/pipe2-tests (Files): Likewise.
5929         * modules/popen-safer-tests (Files): Likewise.
5930         * modules/popen-tests (Files): Likewise.
5931         * modules/posixtm-tests (Files): Likewise.
5932         * modules/pread-tests (Files): Likewise.
5933         * modules/printf-frexp-tests (Files): Likewise.
5934         * modules/printf-frexpl-tests (Files): Likewise.
5935         * modules/printf-posix-tests (Files): Likewise.
5936         * modules/priv-set-tests (Files): Likewise.
5937         * modules/quotearg-tests (Files): Likewise.
5938         * modules/random_r-tests (Files): Likewise.
5939         * modules/rawmemchr-tests (Files): Likewise.
5940         * modules/rbtree-list-tests (Files): Likewise.
5941         * modules/rbtree-oset-tests (Files): Likewise.
5942         * modules/rbtreehash-list-tests (Files): Likewise.
5943         * modules/readlink-tests (Files): Likewise.
5944         * modules/remove-tests (Files): Likewise.
5945         * modules/rename-tests (Files): Likewise.
5946         * modules/renameat-tests (Files): Likewise.
5947         * modules/rmdir-tests (Files): Likewise.
5948         * modules/round-tests (Files): Likewise.
5949         * modules/roundf-tests (Files): Likewise.
5950         * modules/roundl-tests (Files): Likewise.
5951         * modules/safe-alloc-tests (Files): Likewise.
5952         * modules/setenv-tests (Files): Likewise.
5953         * modules/sigaction-tests (Files): Likewise.
5954         * modules/signbit-tests (Files): Likewise.
5955         * modules/sleep-tests (Files): Likewise.
5956         * modules/snprintf-posix-tests (Files): Likewise.
5957         * modules/snprintf-tests (Files): Likewise.
5958         * modules/sprintf-posix-tests (Files): Likewise.
5959         * modules/stat-tests (Files): Likewise.
5960         * modules/stat-time-tests (Files): Likewise.
5961         * modules/strcasestr-tests (Files): Likewise.
5962         * modules/strchrnul-tests (Files): Likewise.
5963         * modules/strerror-tests (Files): Likewise.
5964         * modules/striconv-tests (Files): Likewise.
5965         * modules/striconveh-tests (Files): Likewise.
5966         * modules/striconveha-tests (Files): Likewise.
5967         * modules/strsignal-tests (Files): Likewise.
5968         * modules/strstr-tests (Files): Likewise.
5969         * modules/strtod-tests (Files): Likewise.
5970         * modules/strverscmp-tests (Files): Likewise.
5971         * modules/symlink-tests (Files): Likewise.
5972         * modules/symlinkat-tests (Files): Likewise.
5973         * modules/trunc-tests (Files): Likewise.
5974         * modules/truncf-tests (Files): Likewise.
5975         * modules/truncl-tests (Files): Likewise.
5976         * modules/uname-tests (Files): Likewise.
5977         * modules/unicase/cased-tests (Files): Likewise.
5978         * modules/unicase/ignorable-tests (Files): Likewise.
5979         * modules/unicase/locale-language-tests (Files): Likewise.
5980         * modules/unicase/tolower-tests (Files): Likewise.
5981         * modules/unicase/totitle-tests (Files): Likewise.
5982         * modules/unicase/toupper-tests (Files): Likewise.
5983         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5984         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5985         * modules/unicase/u8-casefold-tests (Files): Likewise.
5986         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5987         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5988         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5989         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5990         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5991         * modules/unicase/u8-tolower-tests (Files): Likewise.
5992         * modules/unicase/u8-totitle-tests (Files): Likewise.
5993         * modules/unicase/u8-toupper-tests (Files): Likewise.
5994         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5995         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5996         * modules/unicase/u16-casefold-tests (Files): Likewise.
5997         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5998         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5999         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
6000         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
6001         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
6002         * modules/unicase/u16-tolower-tests (Files): Likewise.
6003         * modules/unicase/u16-totitle-tests (Files): Likewise.
6004         * modules/unicase/u16-toupper-tests (Files): Likewise.
6005         * modules/unicase/u32-casecmp-tests (Files): Likewise.
6006         * modules/unicase/u32-casecoll-tests (Files): Likewise.
6007         * modules/unicase/u32-casefold-tests (Files): Likewise.
6008         * modules/unicase/u32-is-cased-tests (Files): Likewise.
6009         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
6010         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
6011         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
6012         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
6013         * modules/unicase/u32-tolower-tests (Files): Likewise.
6014         * modules/unicase/u32-totitle-tests (Files): Likewise.
6015         * modules/unicase/u32-toupper-tests (Files): Likewise.
6016         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
6017         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
6018         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
6019         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
6020         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
6021         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
6022         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
6023         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
6024         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
6025         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
6026         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
6027         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
6028         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
6029         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
6030         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
6031         * modules/unictype/bidicategory-name-tests (Files): Likewise.
6032         * modules/unictype/bidicategory-of-tests (Files): Likewise.
6033         * modules/unictype/bidicategory-test-tests (Files): Likewise.
6034         * modules/unictype/block-list-tests (Files): Likewise.
6035         * modules/unictype/block-of-tests (Files): Likewise.
6036         * modules/unictype/block-test-tests (Files): Likewise.
6037         * modules/unictype/category-C-tests (Files): Likewise.
6038         * modules/unictype/category-Cc-tests (Files): Likewise.
6039         * modules/unictype/category-Cf-tests (Files): Likewise.
6040         * modules/unictype/category-Cn-tests (Files): Likewise.
6041         * modules/unictype/category-Co-tests (Files): Likewise.
6042         * modules/unictype/category-Cs-tests (Files): Likewise.
6043         * modules/unictype/category-L-tests (Files): Likewise.
6044         * modules/unictype/category-Ll-tests (Files): Likewise.
6045         * modules/unictype/category-Lm-tests (Files): Likewise.
6046         * modules/unictype/category-Lo-tests (Files): Likewise.
6047         * modules/unictype/category-Lt-tests (Files): Likewise.
6048         * modules/unictype/category-Lu-tests (Files): Likewise.
6049         * modules/unictype/category-M-tests (Files): Likewise.
6050         * modules/unictype/category-Mc-tests (Files): Likewise.
6051         * modules/unictype/category-Me-tests (Files): Likewise.
6052         * modules/unictype/category-Mn-tests (Files): Likewise.
6053         * modules/unictype/category-N-tests (Files): Likewise.
6054         * modules/unictype/category-Nd-tests (Files): Likewise.
6055         * modules/unictype/category-Nl-tests (Files): Likewise.
6056         * modules/unictype/category-No-tests (Files): Likewise.
6057         * modules/unictype/category-P-tests (Files): Likewise.
6058         * modules/unictype/category-Pc-tests (Files): Likewise.
6059         * modules/unictype/category-Pd-tests (Files): Likewise.
6060         * modules/unictype/category-Pe-tests (Files): Likewise.
6061         * modules/unictype/category-Pf-tests (Files): Likewise.
6062         * modules/unictype/category-Pi-tests (Files): Likewise.
6063         * modules/unictype/category-Po-tests (Files): Likewise.
6064         * modules/unictype/category-Ps-tests (Files): Likewise.
6065         * modules/unictype/category-S-tests (Files): Likewise.
6066         * modules/unictype/category-Sc-tests (Files): Likewise.
6067         * modules/unictype/category-Sk-tests (Files): Likewise.
6068         * modules/unictype/category-Sm-tests (Files): Likewise.
6069         * modules/unictype/category-So-tests (Files): Likewise.
6070         * modules/unictype/category-Z-tests (Files): Likewise.
6071         * modules/unictype/category-Zl-tests (Files): Likewise.
6072         * modules/unictype/category-Zp-tests (Files): Likewise.
6073         * modules/unictype/category-Zs-tests (Files): Likewise.
6074         * modules/unictype/category-and-not-tests (Files): Likewise.
6075         * modules/unictype/category-and-tests (Files): Likewise.
6076         * modules/unictype/category-byname-tests (Files): Likewise.
6077         * modules/unictype/category-name-tests (Files): Likewise.
6078         * modules/unictype/category-none-tests (Files): Likewise.
6079         * modules/unictype/category-of-tests (Files): Likewise.
6080         * modules/unictype/category-or-tests (Files): Likewise.
6081         * modules/unictype/category-test-withtable-tests (Files): Likewise.
6082         * modules/unictype/combining-class-tests (Files): Likewise.
6083         * modules/unictype/ctype-alnum-tests (Files): Likewise.
6084         * modules/unictype/ctype-alpha-tests (Files): Likewise.
6085         * modules/unictype/ctype-blank-tests (Files): Likewise.
6086         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
6087         * modules/unictype/ctype-digit-tests (Files): Likewise.
6088         * modules/unictype/ctype-graph-tests (Files): Likewise.
6089         * modules/unictype/ctype-lower-tests (Files): Likewise.
6090         * modules/unictype/ctype-print-tests (Files): Likewise.
6091         * modules/unictype/ctype-punct-tests (Files): Likewise.
6092         * modules/unictype/ctype-space-tests (Files): Likewise.
6093         * modules/unictype/ctype-upper-tests (Files): Likewise.
6094         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6095         * modules/unictype/decimal-digit-tests (Files): Likewise.
6096         * modules/unictype/digit-tests (Files): Likewise.
6097         * modules/unictype/mirror-tests (Files): Likewise.
6098         * modules/unictype/numeric-tests (Files): Likewise.
6099         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6100         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6101         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6102         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6103         Likewise.
6104         * modules/unictype/property-bidi-block-separator-tests (Files):
6105         Likewise.
6106         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6107         Likewise.
6108         * modules/unictype/property-bidi-common-separator-tests (Files):
6109         Likewise.
6110         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6111         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6112         Likewise.
6113         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6114         Likewise.
6115         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6116         Likewise.
6117         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6118         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6119         Likewise.
6120         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6121         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6122         Likewise.
6123         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6124         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6125         * modules/unictype/property-bidi-segment-separator-tests (Files):
6126         Likewise.
6127         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6128         * modules/unictype/property-byname-tests (Files): Likewise.
6129         * modules/unictype/property-combining-tests (Files): Likewise.
6130         * modules/unictype/property-composite-tests (Files): Likewise.
6131         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6132         * modules/unictype/property-dash-tests (Files): Likewise.
6133         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6134         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6135         Likewise.
6136         * modules/unictype/property-deprecated-tests (Files): Likewise.
6137         * modules/unictype/property-diacritic-tests (Files): Likewise.
6138         * modules/unictype/property-extender-tests (Files): Likewise.
6139         * modules/unictype/property-format-control-tests (Files): Likewise.
6140         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6141         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6142         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6143         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6144         * modules/unictype/property-hyphen-tests (Files): Likewise.
6145         * modules/unictype/property-id-continue-tests (Files): Likewise.
6146         * modules/unictype/property-id-start-tests (Files): Likewise.
6147         * modules/unictype/property-ideographic-tests (Files): Likewise.
6148         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6149         * modules/unictype/property-ids-trinary-operator-tests (Files):
6150         Likewise.
6151         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6152         * modules/unictype/property-iso-control-tests (Files): Likewise.
6153         * modules/unictype/property-join-control-tests (Files): Likewise.
6154         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6155         * modules/unictype/property-line-separator-tests (Files): Likewise.
6156         * modules/unictype/property-logical-order-exception-tests (Files):
6157         Likewise.
6158         * modules/unictype/property-lowercase-tests (Files): Likewise.
6159         * modules/unictype/property-math-tests (Files): Likewise.
6160         * modules/unictype/property-non-break-tests (Files): Likewise.
6161         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6162         * modules/unictype/property-numeric-tests (Files): Likewise.
6163         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6164         * modules/unictype/property-other-default-ignorable-code-point-tests
6165         (Files): Likewise.
6166         * modules/unictype/property-other-grapheme-extend-tests (Files):
6167         Likewise.
6168         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6169         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6170         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6171         * modules/unictype/property-other-math-tests (Files): Likewise.
6172         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6173         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6174         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6175         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6176         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6177         * modules/unictype/property-private-use-tests (Files): Likewise.
6178         * modules/unictype/property-punctuation-tests (Files): Likewise.
6179         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6180         * modules/unictype/property-radical-tests (Files): Likewise.
6181         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6182         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6183         * modules/unictype/property-space-tests (Files): Likewise.
6184         * modules/unictype/property-terminal-punctuation-tests (Files):
6185         Likewise.
6186         * modules/unictype/property-test-tests (Files): Likewise.
6187         * modules/unictype/property-titlecase-tests (Files): Likewise.
6188         * modules/unictype/property-unassigned-code-value-tests (Files):
6189         Likewise.
6190         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6191         * modules/unictype/property-uppercase-tests (Files): Likewise.
6192         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6193         * modules/unictype/property-white-space-tests (Files): Likewise.
6194         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6195         * modules/unictype/property-xid-start-tests (Files): Likewise.
6196         * modules/unictype/property-zero-width-tests (Files): Likewise.
6197         * modules/unictype/scripts-tests (Files): Likewise.
6198         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6199         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6200         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6201         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6202         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6203         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6204         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6205         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6206         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6207         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6208         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6209         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6210         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6211         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6212         * modules/uninorm/composition-tests (Files): Likewise.
6213         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6214         * modules/uninorm/decomposition-tests (Files): Likewise.
6215         * modules/uninorm/filter-tests (Files): Likewise.
6216         * modules/uninorm/nfc-tests (Files): Likewise.
6217         * modules/uninorm/nfd-tests (Files): Likewise.
6218         * modules/uninorm/nfkc-tests (Files): Likewise.
6219         * modules/uninorm/nfkd-tests (Files): Likewise.
6220         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6221         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6222         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6223         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6224         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6225         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6226         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6227         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6228         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6229         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6230         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6231         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6232         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6233         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6234         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6235         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6236         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6237         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6238         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6239         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6240         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6241         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6242         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6243         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6244         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6245         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6246         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6247         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6248         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6249         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6250         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6251         * modules/uniwidth/u8-width-tests (Files): Likewise.
6252         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6253         * modules/uniwidth/u16-width-tests (Files): Likewise.
6254         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6255         * modules/uniwidth/u32-width-tests (Files): Likewise.
6256         * modules/uniwidth/width-tests (Files): Likewise.
6257         * modules/unlink-tests (Files): Likewise.
6258         * modules/unsetenv-tests (Files): Likewise.
6259         * modules/usleep-tests (Files): Likewise.
6260         * modules/utimens-tests (Files): Likewise.
6261         * modules/utimensat-tests (Files): Likewise.
6262         * modules/vasnprintf-posix-tests (Files): Likewise.
6263         * modules/vasnprintf-tests (Files): Likewise.
6264         * modules/vasprintf-posix-tests (Files): Likewise.
6265         * modules/vasprintf-tests (Files): Likewise.
6266         * modules/vdprintf-posix-tests (Files): Likewise.
6267         * modules/vfprintf-posix-tests (Files): Likewise.
6268         * modules/vprintf-posix-tests (Files): Likewise.
6269         * modules/vsnprintf-posix-tests (Files): Likewise.
6270         * modules/vsnprintf-tests (Files): Likewise.
6271         * modules/vsprintf-posix-tests (Files): Likewise.
6272         * modules/wcrtomb-tests (Files): Likewise.
6273         * modules/wcsnrtombs-tests (Files): Likewise.
6274         * modules/wcsrtombs-tests (Files): Likewise.
6275         * modules/wctype-tests (Files): Likewise.
6276         * modules/wcwidth-tests (Files): Likewise.
6277         * modules/xmemdup0-tests (Files): Likewise.
6278         * modules/xprintf-posix-tests (Files): Likewise.
6279         * modules/xvasprintf-tests (Files): Likewise.
6280
6281 2009-12-24  Eric Blake  <ebb9@byu.net>
6282
6283         test-nanosleep: fix typo
6284         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6285         patch.
6286         Reported by Bruno Haible.
6287
6288 2009-12-24  Bruno Haible  <bruno@clisp.org>
6289
6290         Reduce namespace pollution on glibc systems.
6291         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6292         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6293         systems.
6294         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6295         <getopt.h> on glibc systems.
6296         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6297         systems.
6298         * lib/fcntl.c: Include <unistd.h> here instead.
6299
6300 2009-12-24  Bruno Haible  <bruno@clisp.org>
6301
6302         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6303
6304 2009-12-24  Eric Blake  <ebb9@byu.net>
6305
6306         tests: add signature checks
6307         * tests/signature.h (SIGNATURE_CHECK): New file.
6308         * modules/atexit-tests (Files): Use it.
6309         * modules/btowc-tests (Files): Likewise.
6310         * modules/canonicalize-lgpl-tests (Files): Likewise.
6311         * modules/ceilf-tests (Files): Likewise.
6312         * modules/ceill-tests (Files): Likewise.
6313         * modules/chown-tests (Files): Likewise.
6314         * modules/dprintf-posix-tests (Files): Likewise.
6315         * modules/dup2-tests (Files): Likewise.
6316         * modules/dup3-tests (Files): Likewise.
6317         * modules/duplocale-tests (Files): Likewise.
6318         * modules/fchdir-tests (Files): Likewise.
6319         * modules/fcntl-tests (Files): Likewise.
6320         * modules/fdopendir-tests (Files): Likewise.
6321         * modules/fflush-tests (Files): Likewise.
6322         * modules/flock-tests (Files): Likewise.
6323         * modules/floorf-tests (Files): Likewise.
6324         * modules/floorl-tests (Files): Likewise.
6325         * modules/fnmatch-tests (Files): Likewise.
6326         * modules/fopen-tests (Files): Likewise.
6327         * modules/fprintf-posix-tests (Files): Likewise.
6328         * modules/freopen-tests (Files): Likewise.
6329         * modules/frexp-nolibm-tests (Files): Likewise.
6330         * modules/frexp-tests (Files): Likewise.
6331         * modules/frexpl-nolibm-tests (Files): Likewise.
6332         * modules/frexpl-tests (Files): Likewise.
6333         * modules/fseek-tests (Files): Likewise.
6334         * modules/fseeko-tests (Files): Likewise.
6335         * modules/fsync-tests (Files): Likewise.
6336         * modules/ftell-tests (Files): Likewise.
6337         * modules/ftello-tests (Files): Likewise.
6338         * modules/futimens-tests (Files): Likewise.
6339         * modules/getaddrinfo-tests (Files): Likewise.
6340         * modules/getcwd-tests (Files): Likewise.
6341         * modules/getdelim-tests (Files): Likewise.
6342         * modules/getdtablesize-tests (Files): Likewise.
6343         * modules/getgroups-tests (Files): Likewise.
6344         * modules/gethostname-tests (Files): Likewise.
6345         * modules/getline-tests (Files): Likewise.
6346         * modules/getopt-posix-tests (Files): Likewise.
6347         * modules/gettimeofday-tests (Files): Likewise.
6348         * modules/glob-tests (Files): Likewise.
6349         * modules/iconv-tests (Files): Likewise.
6350         * modules/inet_ntop-tests (Files): Likewise.
6351         * modules/inet_pton-tests (Files): Likewise.
6352         * modules/isblank-tests (Files): Likewise.
6353         * modules/lchown-tests (Files): Likewise.
6354         * modules/ldexpl-tests (Files): Likewise.
6355         * modules/link-tests (Files): Likewise.
6356         * modules/linkat-tests (Files): Likewise.
6357         * modules/lseek-tests (Files): Likewise.
6358         * modules/lstat-tests (Files): Likewise.
6359         * modules/mbrtowc-tests (Files): Likewise.
6360         * modules/mbsinit-tests (Files): Likewise.
6361         * modules/mbsnrtowcs-tests (Files): Likewise.
6362         * modules/mbsrtowcs-tests (Files): Likewise.
6363         * modules/memchr-tests (Files): Likewise.
6364         * modules/memcmp-tests (Files): Likewise.
6365         * modules/memmem-tests (Files): Likewise.
6366         * modules/memrchr-tests (Files): Likewise.
6367         * modules/mkdir-tests (Files): Likewise.
6368         * modules/mkfifo-tests (Files): Likewise.
6369         * modules/mkfifoat-tests (Files): Likewise.
6370         * modules/mknod-tests (Files): Likewise.
6371         * modules/nanosleep-tests (Files): Likewise.
6372         * modules/nl_langinfo-tests (Files): Likewise.
6373         * modules/obstack-printf-tests (Files): Likewise.
6374         * modules/open-tests (Files): Likewise.
6375         * modules/openat-tests (Files): Likewise.
6376         * modules/perror-tests (Files): Likewise.
6377         * modules/pipe2-tests (Files): Likewise.
6378         * modules/poll-tests (Files): Likewise.
6379         * modules/popen-tests (Files): Likewise.
6380         * modules/posix_spawn-tests (Files): Likewise.
6381         * modules/posix_spawnp-tests (Files): Likewise.
6382         * modules/pread-tests (Files): Likewise.
6383         * modules/printf-posix-tests (Files): Likewise.
6384         * modules/pty-tests (Files): Likewise.
6385         * modules/random_r-tests (Files): Likewise.
6386         * modules/rawmemchr-tests (Files): Likewise.
6387         * modules/readlink-tests (Files): Likewise.
6388         * modules/remove-tests (Files): Likewise.
6389         * modules/rename-tests (Files): Likewise.
6390         * modules/renameat-tests (Files): Likewise.
6391         * modules/rmdir-tests (Files): Likewise.
6392         * modules/round-tests (Files): Likewise.
6393         * modules/roundf-tests (Files): Likewise.
6394         * modules/roundl-tests (Files): Likewise.
6395         * modules/select-tests (Files): Likewise.
6396         * modules/setenv-tests (Files): Likewise.
6397         * modules/sigaction-tests (Files): Likewise.
6398         * modules/sleep-tests (Files): Likewise.
6399         * modules/snprintf-posix-tests (Files): Likewise.
6400         * modules/snprintf-tests (Files): Likewise.
6401         * modules/sprintf-posix-tests (Files): Likewise.
6402         * modules/stat-tests (Files): Likewise.
6403         * modules/strcasestr-tests (Files): Likewise.
6404         * modules/strchrnul-tests (Files): Likewise.
6405         * modules/strerror-tests (Files): Likewise.
6406         * modules/strsignal-tests (Files): Likewise.
6407         * modules/strstr-tests (Files): Likewise.
6408         * modules/strtod-tests (Files): Likewise.
6409         * modules/strverscmp-tests (Files): Likewise.
6410         * modules/symlink-tests (Files): Likewise.
6411         * modules/symlinkat-tests (Files): Likewise.
6412         * modules/times-tests (Files): Likewise.
6413         * modules/trunc-tests (Files): Likewise.
6414         * modules/truncf-tests (Files): Likewise.
6415         * modules/truncl-tests (Files): Likewise.
6416         * modules/tsearch-tests (Files): Likewise.
6417         * modules/uname-tests (Files): Likewise.
6418         * modules/unlink-tests (Files): Likewise.
6419         * modules/unsetenv-tests (Files): Likewise.
6420         * modules/usleep-tests (Files): Likewise.
6421         * modules/utimensat-tests (Files): Likewise.
6422         * modules/vasprintf-tests (Files): Likewise.
6423         * modules/vdprintf-posix-tests (Files): Likewise.
6424         * modules/vfprintf-posix-tests (Files): Likewise.
6425         * modules/vprintf-posix-tests (Files): Likewise.
6426         * modules/vsnprintf-posix-tests (Files): Likewise.
6427         * modules/vsnprintf-tests (Files): Likewise.
6428         * modules/vsprintf-posix-tests (Files): Likewise.
6429         * modules/wcrtomb-tests (Files): Likewise.
6430         * modules/wcsnrtombs-tests (Files): Likewise.
6431         * modules/wcsrtombs-tests (Files): Likewise.
6432         * modules/wcwidth-tests (Files): Likewise.
6433         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6434         * tests/test-isinf.c (isinf): Likewise.
6435         * tests/test-isnan.c (isnan): Likewise.
6436         * tests/test-signbit.c (signbit): Likewise.
6437         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6438         declaration, either as macro or with correct signature.
6439         (select): Ensure function under test is declared with correct
6440         signature in correct header.
6441         * tests/test-atexit.c (atexit): Likewise.
6442         * tests/test-btowc.c (btowc): Likewise.
6443         * tests/test-canonicalize-lgpl.c (realpath)
6444         (canonicalize_file_name): Likewise.
6445         * tests/test-ceilf1.c (ceilf): Likewise.
6446         * tests/test-ceill.c (ceill): Likewise.
6447         * tests/test-chown.c (chown): Likewise.
6448         * tests/test-dprintf-posix.c (dprintf): Likewise.
6449         * tests/test-dup2.c (dup2): Likewise.
6450         * tests/test-dup3.c (dup3): Likewise.
6451         * tests/test-duplocale.c (duplocale): Likewise.
6452         * tests/test-fchdir.c (fchdir): Likewise.
6453         * tests/test-fchownat.c (fchownat): Likewise.
6454         * tests/test-fcntl.c (fcntl): Likewise.
6455         * tests/test-fdopendir.c (fdopendir): Likewise.
6456         * tests/test-fflush.c (fflush): Likewise.
6457         * tests/test-flock.c (flock): Likewise.
6458         * tests/test-floorf1.c (floorf): Likewise.
6459         * tests/test-floorl.c (floorl): Likewise.
6460         * tests/test-fnmatch.c (fnmatch): Likewise.
6461         * tests/test-fopen.c (fopen): Likewise.
6462         * tests/test-fprintf-posix.c (fprintf): Likewise.
6463         * tests/test-freopen.c (freopen): Likewise.
6464         * tests/test-frexp.c (frexp): Likewise.
6465         * tests/test-frexpl.c (frexpl): Likewise.
6466         * tests/test-fseek.c (fseek): Likewise.
6467         * tests/test-fseeko.c (fseeko): Likewise.
6468         * tests/test-fstatat.c (fstatat): Likewise.
6469         * tests/test-fsync.c (fsync): Likewise.
6470         * tests/test-ftell.c (ftell): Likewise.
6471         * tests/test-ftello.c (ftello): Likewise.
6472         * tests/test-futimens.c (futimens): Likewise.
6473         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6474         (gai_strerror): Likewise.
6475         * tests/test-getcwd.c (getcwd): Likewise.
6476         * tests/test-getdelim.c (getdelim): Likewise.
6477         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6478         * tests/test-getgroups.c (getgroups): Likewise.
6479         * tests/test-gethostname.c (gethostname): Likewise.
6480         * tests/test-getline.c (getline): Likewise.
6481         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6482         Likewise.
6483         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6484         * tests/test-glob.c (glob, globfree): Likewise.
6485         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6486         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6487         * tests/test-inet_pton.c (inet_pton): Likewise.
6488         * tests/test-isblank.c (isblank): Likewise.
6489         * tests/test-lchown.c (lchown): Likewise.
6490         * tests/test-ldexpl.c (ldexpl): Likewise.
6491         * tests/test-link.c (link): Likewise.
6492         * tests/test-linkat.c (linkat): Likewise.
6493         * tests/test-lseek.c (lseek): Likewise.
6494         * tests/test-lstat.c (lstat): Likewise.
6495         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6496         * tests/test-mbsinit.c (mbsinit): Likewise.
6497         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6498         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6499         * tests/test-memchr.c (memchr): Likewise.
6500         * tests/test-memcmp.c (memcmp): Likewise.
6501         * tests/test-memmem.c (memmem): Likewise.
6502         * tests/test-memrchr.c (memrchr): Likewise.
6503         * tests/test-mkdir.c (mkdir): Likewise.
6504         * tests/test-mkdirat.c (mkdirat): Likewise.
6505         * tests/test-mkfifo.c (mkfifo): Likewise.
6506         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6507         * tests/test-mknod.c (mknod): Likewise.
6508         * tests/test-nanosleep.c (nanosleep): Likewise.
6509         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6510         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6511         Likewise.
6512         * tests/test-open.c (open): Likewise.
6513         * tests/test-openat.c (openat): Likewise.
6514         * tests/test-perror.c (perror): Likewise.
6515         * tests/test-pipe2.c (pipe2): Likewise.
6516         * tests/test-poll.c (poll): Likewise.
6517         * tests/test-popen.c (popen, pclose): Likewise.
6518         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6519         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6520         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6521         (posix_spawn_file_actions_destroy)
6522         (posix_spawn_file_actions_addclose)
6523         (posix_spawn_file_actions_addopen)
6524         (posix_spawn_file_actions_adddup2): Likewise.
6525         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6526         * tests/test-pread.c (pread): Likewise.
6527         * tests/test-printf-posix.c (printf): Likewise.
6528         * tests/test-pty.c (openpty, forkpty): Likewise.
6529         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6530         (random_r): Likewise.
6531         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6532         * tests/test-readlink.c (readlink): Likewise.
6533         * tests/test-remove.c (remove): Likewise.
6534         * tests/test-rename.c (rename): Likewise.
6535         * tests/test-renameat.c (renameat): Likewise.
6536         * tests/test-rmdir.c (rmdir): Likewise.
6537         * tests/test-round1.c (round): Likewise.
6538         * tests/test-roundf1.c (roundf): Likewise.
6539         * tests/test-roundl.c (roundl): Likewise.
6540         * tests/test-setenv.c (setenv): Likewise.
6541         * tests/test-sigaction.c (sigaction): Likewise.
6542         * tests/test-sleep.c (sleep): Likewise.
6543         * tests/test-snprintf.c (snprintf): Likewise.
6544         * tests/test-sprintf-posix.c (sprintf): Likewise.
6545         * tests/test-stat.c (stat): Likewise.
6546         * tests/test-stpncpy.c (stpncpy): Likewise.
6547         * tests/test-strcasestr.c (strcasestr): Likewise.
6548         * tests/test-strchrnul.c (strchrnul): Likewise.
6549         * tests/test-strerror.c (strerror): Likewise.
6550         * tests/test-strsignal.c (strsignal): Likewise.
6551         * tests/test-strstr.c (strstr): Likewise.
6552         * tests/test-strtod.c (strtod): Likewise.
6553         * tests/test-strverscmp.c (strverscmp): Likewise.
6554         * tests/test-symlink.c (symlink): Likewise.
6555         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6556         * tests/test-times.c (times): Likewise.
6557         * tests/test-trunc1.c (trunc): Likewise.
6558         * tests/test-truncf1.c (truncf): Likewise.
6559         * tests/test-truncl.c (truncl): Likewise.
6560         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6561         Likewise.
6562         * tests/test-uname.c (uname): Likewise.
6563         * tests/test-unlink.c (unlink): Likewise.
6564         * tests/test-unlinkat.c (unlinkat): Likewise.
6565         * tests/test-unsetenv.c (unsetenv): Likewise.
6566         * tests/test-usleep.c (usleep): Likewise.
6567         * tests/test-utimensat.c (utimensat): Likewise.
6568         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6569         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6570         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6571         * tests/test-vprintf-posix.c (vprintf): Likewise.
6572         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6573         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6574         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6575         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6576         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6577         * tests/test-wcwidth.c (wcwidth): Likewise.
6578
6579         build: pull in conditional headers during GNULIB_POSIXCHECK
6580         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6581         definitions from any conditionally-included headers.
6582         * lib/stdlib.in.h (includes): Likewise.
6583         * lib/unistd.in.h (includes): Likewise.
6584
6585 2009-12-24  Bruno Haible  <bruno@clisp.org>
6586
6587         * tests/test-argv-iter.c: Include header file being tested immediately
6588         after config.h.
6589         * tests/test-base64.c: Likewise.
6590         * tests/test-flock.c: Likewise.
6591         * tests/test-fsync.c: Likewise.
6592         * tests/test-getdate.c: Likewise.
6593         * tests/test-getndelim2.c: Likewise.
6594         * tests/test-isfinite.c: Likewise.
6595         * tests/test-isinf.c: Likewise.
6596         * tests/test-strerror.c: Likewise.
6597         * tests/test-strsignal.c: Likewise.
6598
6599 2009-12-23  Eric Blake  <ebb9@byu.net>
6600
6601         unistd: work around cygwin bug
6602         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6603         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6604         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6605
6606 2009-12-23  Bruno Haible  <bruno@clisp.org>
6607
6608         localename: More tests.
6609         * tests/test-localename.c (SIZEOF): New macro.
6610         (categories): New variable.
6611         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6612         test_locale_name_default): Add test w.r.t. thread locale.
6613         (test_locale_name_thread): New function.
6614         (main): Invoke it.
6615
6616         localename: Make aware of thread locale.
6617         * lib/localename.h (gl_locale_name_thread): New declaration.
6618         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6619         behaviour with respect to thread locale.
6620         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6621         <langinfo.h>, glthread/lock.h.
6622         (SIZE_BITS): New macro.
6623         (string_hash): New function.
6624         (struct hash_node): New type.
6625         (HASH_TABLE_SIZE): New macro.
6626         (struniq_hash_table, struniq_lock): New variables.
6627         (struniq): New function.
6628         (gl_locale_name_thread): New function.
6629         (gl_locale_name): Invoke it.
6630         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6631         * modules/localename (Depends-on): Add lock.
6632         Reported by Mike Gran <spk121@yahoo.com>.
6633
6634 2009-12-23  Eric Blake  <ebb9@byu.net>
6635
6636         va-args: new module
6637         * modules/va-args: New file.
6638         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6639         * MODULES.html.sh (Core language properties): Mention it.
6640
6641         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6642         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6643         named alias for __attribute__((__unused__)).
6644         * lib/chown.c: Update client.
6645         * lib/fchmodat.c: Likewise.
6646         * lib/fts.c: Likewise.
6647         * lib/getdate.y: Likewise.
6648         * lib/getgroups.c: Likewise.
6649         * lib/getopt.c: Likewise.
6650         * lib/getugroups.c: Likewise.
6651         * lib/mkdir.c: Likewise.
6652         * lib/mkfifo.c: Likewise.
6653         * lib/mkfifoat.c: Likewise.
6654         * lib/mknod.c: Likewise.
6655         * lib/mknodat.c: Likewise.
6656         * lib/readlink.c: Likewise.
6657         * lib/se-context.in.h: Likewise.
6658         * lib/se-selinux.in.h: Likewise.
6659         * lib/sockets.c: Likewise.
6660         * lib/symlink.c: Likewise.
6661         * lib/symlinkat.c: Likewise.
6662         * lib/unicodeio.c: Likewise.
6663         * lib/unistr.h: Likewise.
6664         * tests/test-areadlink.c: Likewise.
6665         * tests/test-areadlinkat.c: Likewise.
6666         * tests/test-filenamecat.c: Likewise.
6667         * tests/test-fseeko.c: Likewise.
6668         * tests/test-ftello.c: Likewise.
6669         * tests/test-getdate.c: Likewise.
6670         * tests/test-getgroups.c: Likewise.
6671         * tests/test-gethostname.c: Likewise.
6672         * tests/test-quotearg.c: Likewise.
6673         * tests/test-version-etc.c: Likewise.
6674         * tests/test-xalloc-die.c: Likewise.
6675         * tests/test-xfprintf-posix.c: Likewise.
6676         * tests/test-xprintf-posix.c: Likewise.
6677         * tests/test-xvasprintf.c: Likewise.
6678
6679         tests: avoid compiler warnings
6680         * tests/test-fcntl.c (main): Delete unused parameters.
6681         * tests/test-freopen-safer.c (main): Likewise.
6682         * tests/test-xalloc-die.c (main): Mark unused parameters.
6683         * tests/test-fseeko.c (main): Likewise.
6684         * tests/test-ftello.c (main): Likewise.
6685         * tests/test-nanosleep.c (main): Avoid declaration warning.
6686         * tests/test-sleep.c (main): Likewise.
6687         * tests/test-unsetenv.c (main): Silence warning about string
6688         literal.
6689         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6690
6691 2009-12-23  Bruno Haible  <bruno@clisp.org>
6692
6693         * tests/test-localename.c (test_locale_name): New function, extracted
6694         from main. Also test mixed situations.
6695         (test_locale_name_posix, test_locale_name_environ,
6696         test_locale_name_default): New functions.
6697         (main): Invoke them all.
6698         * modules/localename-tests (configure.ac): Test for newlocale.
6699
6700 2009-12-23  Bruno Haible  <bruno@clisp.org>
6701
6702         unistd: Ensure getcwd gets declared before being overridden.
6703         * lib/unistd.in.h: Conditionally include <io.h>.
6704
6705 2009-12-22  Bruno Haible  <bruno@clisp.org>
6706
6707         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6708         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6709         (gl_WCHAR_H): Invoke it.
6710         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6711         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6712         Reported by Karl Berry <karl@freefriends.org>.
6713
6714 2009-12-22  Eric Blake  <ebb9@byu.net>
6715
6716         math, unistd: avoid redundant includes
6717         * lib/math.in.h (isnan): No need to re-include <math.h>.
6718         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6719
6720         getsubopt: work around cygwin bug
6721         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6722         avoid conflicting with system getsubopt.
6723         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6724         bug.
6725
6726         getopt: synchronize from glibc
6727         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6728         parameter order.  Adjust all callers.
6729         (_getopt_internal_r, main): Adjust quoting in error messages.
6730         Drop considerations for outdated POSIX 1003.2 error message.
6731         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6732         callers.
6733         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6734
6735         test-getopt: test stderr behavior
6736         * modules/getopt-posix-tests (Depends-on): Add dup2.
6737         * tests/test-getopt.c (ASSERT): Avoid stderr.
6738         (main): Move stderr to a temporary file.
6739         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6740         Instead, add parameter to inform caller if output occurred.
6741         (test_getopt): Adjust all existing tests to expect silence, and
6742         add new tests of leading ":".
6743         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6744         glibc shortcomings with leading "-:" or "+:" in optstring.
6745         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6746         Likewise.
6747         * doc/posix-functions/getopt.texi (getopt): Likewise.
6748
6749         test-getopt: enhance test
6750         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6751         supports optind=0.
6752         * tests/test-getopt.c (OPTIND_MIN): Move...
6753         * tests/test-getopt.h (OPTIND_MIN): ...here.
6754         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6755         Require that optind=0 works, since modern BSD supports it in
6756         addition to optreset, and since coreutils expects it.
6757         (test_getopt_long_only): New test.
6758         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6759         glibc shortcomings with 'W;', and enforcement of optind=0.
6760         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6761         Likewise.
6762
6763 2009-12-21  Bruno Haible  <bruno@clisp.org>
6764
6765         localename: Improvements for MacOS X and Cygwin.
6766         * lib/localename.h (gl_locale_name_environ): New declaration.
6767         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6768         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6769         (gl_locale_name_posix): Invoke it.
6770         (gl_locale_name_default): Add comments. Use Windows native API also on
6771         Cygwin.
6772
6773 2009-12-21  Bruno Haible  <bruno@clisp.org>
6774
6775         Update list of Win32 locale ids.
6776         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6777         (LANG_SAMI): Renamed from LANG_SAAMI.
6778         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6779         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6780         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6781         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6782         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6783         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6784         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6785         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6786         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6787         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6788         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6789         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6790         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6791         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6792         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6793         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6794         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6795         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6796         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6797         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6798         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6799         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6800         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6801         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6802         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6803         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6804         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6805         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6806         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6807         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6808         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6809         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6810         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6811         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6812         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6813         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6814         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6815         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6816         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6817         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6818         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6819         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6820         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6821         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6822         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6823         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6824         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6825         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6826         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6827         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6828         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6829         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6830         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6831         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6832         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6833         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6834         Add more languages and countries for Sami, Sorbian. Add more countries
6835         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6836         for Pashto. Change country for Syriac, Tswana.
6837
6838 2009-12-21  Eric Blake  <ebb9@byu.net>
6839
6840         test-utimens: avoid spurious failure
6841         * tests/test-chown.h (nap): Factor...
6842         * tests/nap.h: ...into new file.
6843         * tests/test-lchown.h (nap): Avoid duplication.
6844         * tests/test-utimens-common.h (nap): Use shared implementation,
6845         necessary on file systems with 1-second resolution.
6846         * modules/chown-tests (Files): Include new file.
6847         * modules/fdutimensat-tests (Files): Likewise.
6848         * modules/futimens-tests (Files): Likewise.
6849         * modules/lchown-tests (Files): Likewise.
6850         * modules/openat-tests (Files): Likewise.
6851         * modules/utimens-tests (Files): Likewise.
6852         * modules/utimensat-tests (Files): Likewise.
6853
6854 2009-12-19  Eric Blake  <ebb9@byu.net>
6855
6856         futimens, utimensat: work around Linux bug
6857         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6858         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6859         * lib/utimensat.c (rpl_utimensat): Work around it.
6860         * lib/futimens.c (rpl_futimens): Adjust comment.
6861
6862         utimens: work around Linux ctime bug
6863         * lib/utimens.c (detect_ctime_bug): New helper function.
6864         (update_timespec): Differentiate between workaround needed for
6865         this bug vs. what is needed for systems that lack utimensat.
6866         (fdutimens, lutimens): Work around bug.
6867
6868         utimens: check for ctime update
6869         * tests/test-utimens-common.h (check_ctime): Define.
6870         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6871         * tests/test-futimens.h (test_futimens): Likewise.
6872         * tests/test-lutimens.h (test_lutimens): Likewise.
6873         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6874         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6875
6876 2009-12-19  Bruno Haible  <bruno@clisp.org>
6877
6878         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6879         * tests/test-dprintf-posix2.sh: New file.
6880         * tests/test-dprintf-posix2.c: New file.
6881         * modules/dprintf-posix-tests (Files): Add them.
6882         (configure.ac): Check for getrlimit and setrlimit.
6883         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6884
6885 2009-12-19  Bruno Haible  <bruno@clisp.org>
6886
6887         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6888         * tests/test-fprintf-posix3.sh: New file.
6889         * tests/test-fprintf-posix3.c: New file.
6890         * modules/fprintf-posix-tests (Files): Add them.
6891         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6892
6893 2009-12-19  Eric Blake  <ebb9@byu.net>
6894
6895         dirfd: fix prototype
6896         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6897         * lib/dirfd.c (dirfd): Likewise.
6898
6899         canonicalize: reduce memory usage
6900         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6901         allocation to size.
6902         Reported by Solar Designer <solar@openwall.com>.
6903
6904 2009-12-19  Bruno Haible  <bruno@clisp.org>
6905
6906         New module attribute 'Applicability'.
6907         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6908         * gnulib-tool: New option --extract-applicability.
6909         (func_usage): Document it.
6910         (sed_extract_prog): Recognize it.
6911         (func_get_applicability): New function.
6912         (func_import): Generalize handling of 'link-warning' module.
6913         * modules/link-warning (Applicability): New section.
6914         * modules/arg-nonnull (Applicability): New section.
6915         Repoted by Simon Josefsson <simon@josefsson.org>.
6916
6917 2009-12-19  Bruno Haible  <bruno@clisp.org>
6918
6919         fflush: tweak
6920         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6921         * lib/fseeko.c (rpl_fseeko): Likewise.
6922
6923 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6924
6925         * lib/gl_list.h: Fix typo in comment.
6926
6927 2009-12-16  Eric Blake  <ebb9@byu.net>
6928
6929         fcntl: use to simplify other modules
6930         * modules/cloexec (Depends-on): Add fcntl.
6931         * modules/fchdir (Depends-on): Likewise.
6932         * modules/fd-safer-flag (Depends-on): Likewise.
6933         * modules/unistd-safer (Depends-on): Likewise.
6934         * modules/dup3 (configure.ac): Set module indicator.
6935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6936         missing.
6937         * lib/fchdir.c (_gl_register_dup): Fix comment.
6938         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6939         * lib/dup-safer.c (dup_safer): Likewise.
6940         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6941         * lib/dup3.c (dup3): Likewise.
6942         * tests/test-fchdir.c (main): Enhance test.
6943         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
6944
6945         fcntl: port portions of fcntl to mingw
6946         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6947         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6948         replacement for mingw.
6949         * modules/fcntl (Description): Update.
6950         (Depends-on): Add dup2.
6951         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6952         * modules/fcntl-h (Makefile.am): Substitute it.
6953         * lib/fcntl.in.h (fcntl): Update declaration.
6954         (F_DUPFD, F_GETFD): New macros, when needed.
6955         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6956         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6957         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6958         we now guarantee.
6959
6960         fcntl: work around cygwin bug in F_DUPFD
6961         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6962         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6963         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6964         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6965         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6966
6967         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6968         * modules/fcntl (Files): List new files.
6969         (configure.ac): Run a test.
6970         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6971         * lib/fcntl.c (rpl_fcntl): Likewise.
6972         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6973         (gl_FCNTL_H): Always replace fcntl.h.
6974         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6975         * lib/fcntl.in.h (fcntl): Declare replacement.
6976         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6977         needed, plus a witness.
6978         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6979         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6980         * tests/test-fcntl.c: New file.
6981         * modules/fcntl-tests: Likewise.
6982
6983         binary-io: avoid potential compilation warning
6984         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6985         directives.
6986
6987         fflush: avoid compilation error on NetBSD
6988         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6989         between off_t and fpos_t, since the latter is sometimes a struct.
6990         * lib/fseeko.c (rpl_fseeko): Likewise.
6991         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6992
6993 2009-12-15  Eric Blake  <ebb9@byu.net>
6994
6995         fcntl-h, stdio, sys_ioctl: fix declarations
6996         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6997         function must not take arguments.
6998         * lib/sys_ioctl.in.h (ioctl): Likewise.
6999         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
7000         (open): Add a link warning.
7001
7002 2009-12-15  Jim Meyering  <meyering@redhat.com>
7003
7004         areadlink, areadlink-with-size: relax license to LGPLv2+
7005         * modules/areadlink (License): Relax to LGPLv2+.
7006         * modules/areadlink-with-size (License): Likewise.
7007
7008 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
7009             Bruno Haible  <bruno@clisp.org>
7010
7011         *printf: Fix memory leak.
7012         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
7013         * lib/vfprintf.c (vfprintf): Likewise.
7014         * lib/dprintf.c (dprintf): Likewise.
7015         * lib/vdprintf.c (vdprintf): Likewise.
7016
7017 2009-12-14  Eric Blake  <ebb9@byu.net>
7018
7019         accept4: adjust module dependencies
7020         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
7021
7022         utimens: one more try at avoiding compiler warning
7023         * lib/utimens.c (lutimens): Lower scope of result.
7024
7025 2009-12-13  Bruno Haible  <bruno@clisp.org>
7026
7027         Move the malloc checking from module 'list' to new module 'xlist'.
7028         * modules/xlist: New file.
7029         * lib/gl_xlist.h: New file.
7030         * lib/gl_xlist.c: New file.
7031         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
7032         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
7033         gl_list_add_last, gl_list_add_before, gl_list_add_after,
7034         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
7035         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
7036         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
7037         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
7038         gl_sortedlist_nx_add): New declarations.
7039         (struct gl_list_implementation): Rename and change methods accordingly.
7040         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
7041         (gl_list_nx_create): Renamed from gl_list_create.
7042         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7043         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7044         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7045         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7046         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7047         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7048         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7049         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7050         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
7051         gl_list_create_empty.
7052         (gl_list_nx_create): Renamed from gl_list_create.
7053         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7054         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7055         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7056         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7057         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7058         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7059         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7060         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7061         * lib/gl_array_list.c: Don't include xalloc.h.
7062         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
7063         NULL upon out-of-memory.
7064         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
7065         out-of-memory.
7066         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
7067         Change return type to 'int'.
7068         (gl_array_nx_set_at): Renamed from gl_array_set_at.
7069         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7070         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
7071         upon out-of-memory.
7072         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
7073         upon out-of-memory.
7074         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
7075         upon out-of-memory.
7076         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
7077         upon out-of-memory.
7078         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
7079         out-of-memory.
7080         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
7081         Update.
7082         (gl_array_list_implementation): Update.
7083         * lib/gl_carray_list.c: Don't include xalloc.h.
7084         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
7085         Return NULL upon out-of-memory.
7086         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
7087         out-of-memory.
7088         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
7089         Change return type to 'int'.
7090         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7091         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7092         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7093         upon out-of-memory.
7094         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7095         upon out-of-memory.
7096         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7097         out-of-memory.
7098         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7099         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7100         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7101         Update.
7102         (gl_carray_list_implementation): Update.
7103         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7104         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7105         gl_linked_create_empty. Return NULL upon out-of-memory.
7106         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7107         out-of-memory.
7108         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7109         Change return type to 'int'. Return -1 upon out-of-memory.
7110         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7111         out-of-memory.
7112         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7113         upon out-of-memory.
7114         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7115         upon out-of-memory.
7116         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7117         NULL upon out-of-memory.
7118         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7119         upon out-of-memory.
7120         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7121         out-of-memory.
7122         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7123         Update.
7124         * lib/gl_linked_list.c: Don't include xalloc.h.
7125         (gl_linked_list_implementation): Update.
7126         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7127         (add_to_bucket): Change return type to 'int'.
7128         (gl_linkedhash_list_implementation): Update.
7129         * lib/gl_anytree_list1.h (free_subtree): New function.
7130         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7131         gl_tree_create_empty. Return NULL upon out-of-memory.
7132         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7133         Change return type to 'int'. Return -1 upon out-of-memory.
7134         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7135         out-of-memory.
7136         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7137         (gl_tree_remove_node): New function, moved here from
7138         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7139         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7140         Update.
7141         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7142         malloc, not xmalloc. Return NULL upon out-of-memory.
7143         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7144         out-of-memory.
7145         (gl_tree_remove_node_from_tree): New function, extracted from
7146         gl_tree_remove_node.
7147         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7148         upon out-of-memory.
7149         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7150         out-of-memory.
7151         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7152         upon out-of-memory.
7153         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7154         upon out-of-memory.
7155         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7156         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7157         not xmalloc. Return NULL upon out-of-memory.
7158         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7159         out-of-memory.
7160         (gl_tree_remove_node_from_tree): New function, extracted from
7161         gl_tree_remove_node.
7162         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7163         upon out-of-memory.
7164         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7165         out-of-memory.
7166         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7167         upon out-of-memory.
7168         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7169         upon out-of-memory.
7170         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7171         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7172         gl_anytree_list1.h before gl_anyavltree_list2.h.
7173         (gl_avltree_list_implementation): Update.
7174         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7175         gl_anytree_list1.h before gl_anyavltree_list2.h.
7176         (gl_rbtree_list_implementation): Update.
7177         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7178         Change return type to 'int'. Return -1 upon out-of-memory. Use
7179         __builtin_expect.
7180         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7181         (gl_avltreehash_list_implementation): Update.
7182         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7183         (gl_rbtreehash_list_implementation): Update.
7184         * modules/array-list (Depends-on): Remove xalloc.
7185         * modules/carray-list (Depends-on): Likewise.
7186         * modules/linked-list (Depends-on): Likewise.
7187         * modules/linkedhash-list (Depends-on): Likewise.
7188         * modules/avltree-list (Depends-on): Likewise.
7189         * modules/rbtree-list (Depends-on): Likewise.
7190         * modules/avltreehash-list (Depends-on): Likewise.
7191         * modules/rbtreehash-list (Depends-on): Likewise.
7192
7193         * modules/xsublist: New file.
7194         * lib/gl_xsublist.h: New file.
7195         * lib/gl_xsublist.c: New file.
7196         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7197         (gl_sublist_nx_create): New declaration.
7198         * lib/gl_sublist.c: Don't include xalloc.h.
7199         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7200         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7201         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7202         Change return type to 'int'. Return -1 upon out-of-memory.
7203         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7204         upon out-of-memory.
7205         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7206         NULL upon out-of-memory.
7207         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7208         upon out-of-memory.
7209         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7210         NULL upon out-of-memory.
7211         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7212         NULL upon out-of-memory.
7213         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7214         upon out-of-memory.
7215         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7216         (gl_sublist_list_implementation): Update.
7217         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7218         upon out-of-memory.
7219         * modules/sublist (Depends-on): Remove xalloc.
7220
7221         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7222         * tests/test-carray_list.c: Likewise.
7223         * tests/test-linked_list.c: Likewise.
7224         * tests/test-linkedhash_list.c: Likewise.
7225         * tests/test-avltree_list.c: Likewise.
7226         * tests/test-rbtree_list.c: Likewise.
7227         * tests/test-avltreehash_list.c: Likewise.
7228         * tests/test-rbtreehash_list.c: Likewise.
7229         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7230         * modules/carray-list-tests (Makefile.am): Likewise.
7231         * modules/linked-list-tests (Makefile.am): Likewise.
7232         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7233         * modules/avltree-list-tests (Makefile.am): Likewise.
7234         * modules/rbtree-list-tests (Makefile.am): Likewise.
7235         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7236         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7237
7238         * NEWS: Mention the changes.
7239
7240         * lib/clean-temp.c: Include gl_xlist.h.
7241         * modules/clean-temp (Depends-on): Add xlist.
7242
7243         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7244         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7245
7246         * tests/test-array_oset.c: Include gl_xlist.h.
7247         * modules/array-oset-tests (Depends-on): Add xlist.
7248
7249         Reported by José E. Marchesi <jemarch@gnu.org>.
7250
7251 2009-12-13  Bruno Haible  <bruno@clisp.org>
7252
7253         Move the malloc checking from module 'oset' to new module 'xoset'.
7254         * modules/xoset: New file.
7255         * lib/gl_xoset.h: New file.
7256         * lib/gl_xoset.c: New file.
7257         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7258         declarations.
7259         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7260         (struct gl_oset_implementation): Rename and change methods accordingly.
7261         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7262         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7263         'int'. Mark as __warn_unused_result__.
7264         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7265         gl_oset_create_empty.
7266         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7267         'int'.
7268         * lib/gl_array_oset.c: Don't include xalloc.h.
7269         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7270         malloc, not xmalloc.
7271         (grow): Change return type to 'int'. Don't call xalloc_die.
7272         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7273         to 'int'.
7274         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7275         'int'.
7276         (gl_array_oset_implementation): Update.
7277         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7278         gl_tree_create_empty.
7279         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7280         'int'.
7281         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7282         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7283         xmalloc.
7284         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7285         not xmalloc.
7286         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7287         xmalloc.
7288         (gl_avltree_oset_implementation): Update.
7289         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7290         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7291         xmalloc.
7292         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7293         not xmalloc.
7294         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7295         xmalloc.
7296         (gl_rbtree_oset_implementation): Update.
7297         * modules/array-oset (Depends-on): Remove xalloc.
7298         * modules/avltree-oset (Depends-on): Likewise.
7299         * modules/rbtree-oset (Depends-on): Likewise.
7300         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7301         * tests/test-avltree_oset.c: Likewise.
7302         * tests/test-rbtree_oset.c: Likewise.
7303         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7304         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7305         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7306         * NEWS: Mention the change.
7307
7308 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7309
7310         maint.mk: allow a project to override release-prep commands
7311         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7312         commands into a new rule.
7313         (release-prep): New rule.
7314         (release-prep-hook): New overridable variable.
7315
7316 2009-12-13  Bruno Haible  <bruno@clisp.org>
7317
7318         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7319
7320 2009-12-13  Jim Meyering  <meyering@redhat.com>
7321
7322         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7323         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7324
7325 2009-12-12  Bruno Haible  <bruno@clisp.org>
7326
7327         duplocale: Tweak.
7328         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7329
7330 2009-12-12  Karl Berry  <karl@gnu.org>
7331
7332         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7333
7334 2009-12-12  Bruno Haible  <bruno@clisp.org>
7335
7336         * m4/po.m4: Undo incorrect untabification.
7337
7338 2009-12-12  Bruno Haible  <bruno@clisp.org>
7339
7340         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7341         * modules/c-strtod (Depends-on): Add locale.
7342         * modules/c-strtold (Depends-on): Likewise.
7343
7344 2009-12-12  Bruno Haible  <bruno@clisp.org>
7345
7346         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7347
7348 2009-12-11  Eric Blake  <ebb9@byu.net>
7349
7350         setenv: relax requirement in light of POSIX ruling
7351         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7352         not NULL.
7353         * tests/test-setenv.c (main): Relax test.
7354         * tests/test-unsetenv.c (main): Likewise.
7355         * doc/posix-functions/setenv.texi (setenv): Document this.
7356         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7357
7358 2009-12-11  Bruno Haible  <bruno@clisp.org>
7359
7360         New module 'fd-safer-flag'.
7361         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7362         * lib/dup-safer.c (dup_safer_flag): Remove function.
7363         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7364         * lib/fd-safer.c (fd_safer_flag): Remove function.
7365         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7366         * modules/cloexec (configure.ac): Drop indicator macro.
7367         * modules/fd-safer-flag: New file.
7368         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7369         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7370         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7371
7372 2009-12-11  Bruno Haible  <bruno@clisp.org>
7373
7374         Tests for module 'nl_langinfo'.
7375         * modules/nl_langinfo-tests: New file.
7376         * tests/test-nl_langinfo.sh: New file.
7377         * tests/test-nl_langinfo.c: New file.
7378
7379         New module 'nl_langinfo'.
7380         * lib/nl_langinfo.c: New file.
7381         * m4/nl_langinfo.m4: New file.
7382         * modules/nl_langinfo: New file.
7383         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7384
7385 2009-12-11  Bruno Haible  <bruno@clisp.org>
7386
7387         Tests for module 'langinfo'.
7388         * modules/langinfo-tests: New file.
7389         * tests/test-langinfo.c: New file.
7390
7391         New module 'langinfo'.
7392         * lib/langinfo.in.h: New file.
7393         * m4/langinfo_h.m4: New file.
7394         * modules/langinfo: New file.
7395         * doc/posix-headers/langinfo.texi: Mention the new module.
7396
7397 2009-12-11  Bruno Haible  <bruno@clisp.org>
7398
7399         * lib/config.charset: Untabify.
7400
7401 2009-12-11  Bruno Haible  <bruno@clisp.org>
7402
7403         * modules/unistd-safer (configure.ac): Drop indicator macro.
7404
7405 2009-12-11  Bruno Haible  <bruno@clisp.org>
7406
7407         Move pipe2-safer code to its own file.
7408         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7409         * lib/pipe-safer.c (pipe2_safer): Remove function.
7410         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7411         (Makefile.am): Add it to lib_SOURCES.
7412
7413 2009-12-10  Bruno Haible  <bruno@clisp.org>
7414
7415         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7416
7417 2009-12-10  Bruno Haible  <bruno@clisp.org>
7418
7419         Declare which arguments expect non-NULL values, for GCC and clang.
7420         * build-aux/arg-nonnull.h: New file.
7421         * modules/arg-nonnull: New file.
7422         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7423         (inet_ntop, inet_pton): Use it.
7424         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7425         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7426         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7427         (open, openat): Use it.
7428         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7429         (fnmatch): Use it.
7430         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7431         (getopt, getopt_long, getopt_long_only): Use it.
7432         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7433         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7434         Use it.
7435         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7436         (iconv_open): Use it.
7437         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7438         (strtoimax, strtoumax): Use it.
7439         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7440         (duplocale): Use it.
7441         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7442         (frexp, frexpl): Use it.
7443         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7444         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7445         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7446         (tsearch, tfind, tdelete, twalk): Use it.
7447         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7448         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7449         sigpending): Use it.
7450         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7451         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7452         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7453         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7454         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7455         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7456         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7457         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7458         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7459         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7460         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7461         Use it.
7462         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7463         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7464         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7465         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7466         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7467         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7468         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7469         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7470         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7471         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7472         strtoull, unsetenv): Use it.
7473         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7474         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7475         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7476         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7477         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7478         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7479         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7480         (strcasecmp, strncasecmp): Use it.
7481         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7482         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7483         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7484         rpl_setsockopt): Use it.
7485         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7486         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7487         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7488         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7489         (gettimeofday): Use it.
7490         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7491         (times): Use it.
7492         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7493         (uname): Use it.
7494         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7495         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7496         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7497         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7498         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7499         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7500         unlinkat, write): Use it.
7501         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7502         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7503         * lib/argv-iter.h: Include arg-nonnull.h.
7504         (_ATTRIBUTE_NONNULL_): Remove macro.
7505         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7506         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7507         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7508         optimization.
7509         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7510         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7511         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7512         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7513         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7514         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7515         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7516         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7517         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7518         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7519         * modules/dirent (Depends-on): Add arg-nonnull.
7520         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7521         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7522         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7523         * modules/fnmatch (Depends-on): Add arg-nonnull.
7524         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7525         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7526         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7527         * modules/glob (Depends-on): Add arg-nonnull.
7528         (Makefile.am): Insert arg-nonnull.h into glob.h.
7529         * modules/iconv_open (Depends-on): Add arg-nonnull.
7530         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7531         * modules/inttypes (Depends-on): Add arg-nonnull.
7532         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7533         * modules/locale (Depends-on): Add arg-nonnull.
7534         (Makefile.am): Insert arg-nonnull.h into locale.h.
7535         * modules/math (Depends-on): Add arg-nonnull.
7536         (Makefile.am): Insert arg-nonnull.h into math.h.
7537         * modules/netdb (Depends-on): Add arg-nonnull.
7538         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7539         * modules/search (Depends-on): Add arg-nonnull.
7540         (Makefile.am): Insert arg-nonnull.h into search.h.
7541         * modules/signal (Depends-on): Add arg-nonnull.
7542         (Makefile.am): Insert arg-nonnull.h into signal.h.
7543         * modules/spawn (Depends-on): Add arg-nonnull.
7544         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7545         * modules/stdio (Depends-on): Add arg-nonnull.
7546         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7547         * modules/stdlib (Depends-on): Add arg-nonnull.
7548         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7549         * modules/string (Depends-on): Add arg-nonnull.
7550         (Makefile.am): Insert arg-nonnull.h into string.h.
7551         * modules/strings (Depends-on): Add arg-nonnull.
7552         (Makefile.am): Insert arg-nonnull.h into strings.h.
7553         * modules/sys_socket (Depends-on): Add arg-nonnull.
7554         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7555         * modules/sys_stat (Depends-on): Add arg-nonnull.
7556         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7557         * modules/sys_time (Depends-on): Add arg-nonnull.
7558         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7559         * modules/sys_times (Depends-on): Add arg-nonnull.
7560         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7561         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7562         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7563         * modules/time (Depends-on): Add arg-nonnull.
7564         (Makefile.am): Insert arg-nonnull.h into time.h.
7565         * modules/unistd (Depends-on): Add arg-nonnull.
7566         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7567         * modules/wchar (Depends-on): Add arg-nonnull.
7568         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7569         * modules/argv-iter (Depends-on): Add arg-nonnull.
7570         * tests/test-canonicalize.c (null_ptr): New function.
7571         (main): Use it.
7572         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7573         (main): Use it.
7574         * tests/test-memmem.c (null_ptr): New function.
7575         (main): Use it.
7576         Reported by Jim Meyering.
7577
7578 2009-12-10  Bruno Haible  <bruno@clisp.org>
7579
7580         Use spaces for indentation, not tabs.
7581         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7582         * m4/*.m4: Untabify.
7583         * build-aux/*.h: Untabify.
7584         * tests/**/*.[hc]: Untabify.
7585         * README: New section "Indent with spaces, not TABs", based on
7586         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7587         * NEWS: Mention the change.
7588
7589 2009-12-10  Bruno Haible  <bruno@clisp.org>
7590
7591         pty test: Fix link error.
7592         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7593         test_pty_LDADD.
7594
7595 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7596
7597         * modules/pty: New file.
7598         * modules/pty-tests: New file.
7599         * m4/pty.m4: New file.
7600         * tests/test-pty.c: New file.
7601         * doc/glibc-headers/pty.texi: Modified.
7602         * doc/glibc-functions/forkpty.texi: Modified.
7603         * doc/glibc-functions/openpty.texi: Modified.
7604
7605 2009-12-10  Bruno Haible  <bruno@clisp.org>
7606
7607         Avoid syntax error in C++ mode.
7608         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7609
7610 2009-12-10  Bruno Haible  <bruno@clisp.org>
7611
7612         Use sed with option -e.
7613         * gnulib-tool (func_version, func_emit_copyright_notice,
7614         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7615         option -e to sed.
7616         * modules/link-warning (Makefile.am): Likewise.
7617
7618 2009-12-10  Jim Meyering  <meyering@redhat.com>
7619
7620         mgetgroups: do not write bytes beyond end of malloc'd buffer
7621         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7622         username, we call getgroups with a one-element-shorter buffer,
7623         but still told it the length was original, max_n_groups.
7624
7625 2009-12-09  Eric Blake  <ebb9@byu.net>
7626
7627         cloexec: relax license
7628         * modules/cloexec (Maintainer): Add myself.
7629         (License): Use LGPL, not GPL.
7630
7631         link-warning: optimize generation
7632         * modules/link-warning (Makefile.am): Reduce process usage.
7633
7634 2009-12-09  Bruno Haible  <bruno@clisp.org>
7635
7636         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7637         workaround was added on 2009-11-17.
7638
7639 2009-12-09  Jim Meyering  <meyering@redhat.com>
7640             Bruno Haible  <bruno@clisp.org>
7641
7642         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7643         * modules/link-warning (Makefile.am): Make the comment-removing sed
7644         command more robust in the face of bootstrap-prepended comment lines.
7645
7646 2009-12-09  Bruno Haible  <bruno@clisp.org>
7647
7648         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7649         most one group.
7650
7651 2009-12-09  Simon Josefsson <simon@josefsson.org>
7652             Bruno Haible  <bruno@clisp.org>
7653
7654         * build-aux/link-warning.h: Add copyright notice.
7655         * modules/link-warning (Makefile.am): Generate link-warning.h from
7656         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7657         * NEWS: Mention change in link-warning module.
7658         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7659         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7660         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7661         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7662         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7663         * modules/math (Makefile.am): Add dependency to math.h.
7664         * modules/search (Makefile.am): Add dependency to search.h.
7665         * modules/signal (Makefile.am): Add dependency to signal.h.
7666         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7667         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7668         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7669         * modules/string (Makefile.am): Add dependency to string.h.
7670         * modules/strings (Makefile.am): Add dependency to strings.h.
7671         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7672         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7673         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7674         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7675         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7676         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7677         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7678         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7679         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7680
7681 2009-12-09  Bruno Haible  <bruno@clisp.org>
7682
7683         fchdir: Optimize away rpl_fstat when possible.
7684         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7685         REPLACE_OPEN_DIRECTORY.
7686         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7687
7688 2009-12-09  Bruno Haible  <bruno@clisp.org>
7689
7690         * lib/fchdir.c: Update comment.
7691
7692 2009-12-09  Bruno Haible  <bruno@clisp.org>
7693
7694         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7695
7696 2009-12-08  Eric Blake  <ebb9@byu.net>
7697
7698         fchdir: avoid memory leak on re-registration.
7699         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7700
7701 2009-12-08  Jim Meyering  <meyering@redhat.com>
7702
7703         init.sh: avoid Solaris 10 /bin/sh portability problem
7704         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7705         sourced script:
7706           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7707           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7708           bar
7709         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7710         and two tests used that idiom.
7711         * tests/init.sh: Update suggested usage comments.
7712         (path_prepend_): New function, to be used in place
7713         of the --src-path=DIR option.
7714         (setup_): Move PATH-prepending code into path_prepend_.
7715         * tests/test-pread.sh: Adapt to new usage.
7716         * tests/test-xalloc-die.sh: Likewise.
7717
7718 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7719
7720         * doc/gnulib.texi (Glibc pty.h): Add.
7721         * doc/glibc-functions/forkpty.texi: Add.
7722         * doc/glibc-functions/openpty.texi: Add.
7723         Suggested by Bruno Haible.
7724
7725 2009-12-08  Eric Blake  <ebb9@byu.net>
7726
7727         fchdir: fix logic bugs
7728         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7729         * tests/test-fchdir.c (main): Enhance test.
7730         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7731         is in use.
7732
7733         dup2: fix logic bugs
7734         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7735         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7736         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7737         exists.
7738         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7739
7740 2009-12-07  Eric Blake  <ebb9@byu.net>
7741
7742         unlink: fix m4 detection
7743         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7744
7745         unistd-safer: add unit test
7746         * modules/unistd-safer-tests: New file.
7747         * tests/test-dup-safer.c: Likewise.
7748         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7749         * tests/test-dup2.c (setmode): Likewise.
7750         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7751
7752         cloexec: preserve text vs. binary across dup_cloexec
7753         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7754         mode.
7755         * modules/dup2-tests (Depends-on): Add binary-io.
7756         * modules/cloexec-tests (Depends-on): Likewise.
7757         * tests/test-dup2.c (setmode, is_mode): New helpers.
7758         (main): Add tests that translation mode is preserved.
7759         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7760         Reported by Bruno Haible.
7761
7762         mgetgroups: reduce duplicate listings
7763         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7764         resulting array.
7765         * tests/test-chown.h (test_chown): Simplify client.
7766         * tests/test-lchown.h (test_lchown): Likewise.
7767
7768 2009-12-06  Bruno Haible  <bruno@clisp.org>
7769
7770         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7771         value.
7772
7773 2009-12-06  Bruno Haible  <bruno@clisp.org>
7774
7775         * lib/progname.c: Include stdio.h, stdlib.h.
7776         (set_program_name): Reject a NULL argument.
7777
7778 2009-12-05  Eric Blake  <ebb9@byu.net>
7779
7780         pipe2-safer: new module
7781         * modules/pipe2-safer: New file.
7782         * lib/unistd-safer.h (pipe2_safer): New prototype.
7783         * lib/unistd--.h (pipe2): New wrapper.
7784         * lib/pipe-safer.c (pipe2_safer): New function.
7785         * modules/pipe (Depends-on): Add pipe2-safer.
7786         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7787
7788         stdlib-safer: preserve cloexec flag for mkostemp[s]
7789         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7790         fd_safer_flag.
7791
7792         unistd-safer: allow preservation of cloexec status via flag
7793         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7794         prototypes.
7795         * lib/dup-safer.c (dup_safer_flag): New function.
7796         * lib/fd-safer.c (fd_safer_flag): Likewise.
7797         * modules/cloexec (configure.ac): Set witness.
7798
7799         test-dup2: enhance test
7800         * modules/dup2-tests (Depends-on): Add cloexec.
7801         * tests/test-dup2.c (main): Enhance test.
7802
7803         cloexec: add dup_cloexec
7804         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7805         header and comments.
7806         * lib/cloexec.c (set_cloexec_flag): Add comments.
7807         (dup_cloexec): New function, with mingw implementation borrowed
7808         from...
7809         * lib/w32spawn.h (dup_noinherit): ...here.
7810         * modules/execute (Depends-on): Add cloexec.
7811         * modules/pipe (Depends-on): Likewise.
7812         * modules/cloexec (Depends-on): Add dup2.
7813         * modules/cloexec-tests (Files): New file.
7814         * tests/test-cloexec.c: Likewise.
7815
7816         test-xalloc-die: fix test for mingw
7817         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7818         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7819         directory and .exe suffix off argv[0] output.
7820
7821         test-fseeko: fix test for mingw
7822         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7823         than undefining fseek, so test will pass on mingw.
7824
7825 2009-12-05  Bruno Haible  <bruno@clisp.org>
7826
7827         * lib/progname.h (set_program_name): Clarify specification.
7828         * lib/progname.c (set_program_name): Likewise.
7829         Reported by Jim Meyering.
7830
7831 2009-12-05  Jim Meyering  <meyering@redhat.com>
7832
7833         maint.mk: backslash-escape parens in default regexp
7834         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7835         backslash-escape the literal parentheses.
7836
7837         maint.mk: news-date-check: use grep -E
7838         * top/maint.mk (today): Define a Make variable, not a...
7839         (news-date-check): ...shell variable.
7840         (news-date-regexp): Use the Make variable.
7841         Use grep's -E option.  Change the failing diagnostic to mention
7842         the variable, $(news-date-regexp).
7843
7844 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7845
7846         maintainer-makefile: allow customization of NEWS entry format
7847         * top/maint.mk (news-date-regexp): New overridable variable.
7848         (news-date-check): Use it.
7849
7850 2009-12-04  Eric Blake  <ebb9@byu.net>
7851
7852         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7853         * lib/mgetgroups.h (xgetgroups): New prototype.
7854         * lib/mgetgroups.c (xgetgroups): New wrapper.
7855         (mgetgroups): Handle ENOSYS.
7856         * modules/mgetgroups (Depends-on): Add realloc.
7857         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7858
7859         mgetgroups: avoid argument promotion issues with -1
7860         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7861         for invalid gid_t.
7862         * tests/test-chown.h (getegid, test_chown): Likewise.
7863         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7864
7865 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7866
7867         exclude: Fix header file problems.
7868         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7869
7870 2009-12-01  Jim Meyering  <meyering@redhat.com>
7871
7872         fts: fts_open: do not let an empty string cause immediate failure
7873         This is required in support of GNU rm, for which the command
7874         "rm A '' B" must process and remove both A and B, in spite of
7875         the empty string argument.
7876         * lib/fts.c (fts_open): Do not let the presence of an empty string
7877         cause fts_open to fail immediately.  Most fts-using tools must be
7878         able to process all arguments, in order, and can be expected to
7879         diagnose such arguments themselves.
7880
7881 2009-11-30  Eric Blake  <ebb9@byu.net>
7882
7883         utimens: fix compilation error
7884         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7885         Declare variable at right scope.
7886
7887 2009-11-29  Jim Meyering  <meyering@redhat.com>
7888
7889         bootstrap: handle perl-5.11's changed --version output
7890         * build-aux/bootstrap (get_version): Handle perl separately,
7891         since perl-5.11's --version output is different.
7892
7893 2009-11-28  Jim Meyering  <meyering@redhat.com>
7894
7895         userspec: depend on the inttostr module, too
7896         * modules/userspec (Depends-on): Add inttostr.
7897
7898         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7899         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7900         number of MAXUID when it evaluates to (uid_t) -1.
7901         Likewise for group ID.  Reported by Matt McCutchen in
7902         <http://savannah.gnu.org/bugs/?28113>
7903
7904         userspec: reformat to use spaces, not TABs
7905         * lib/userspec.c: Expand TABs to spaces.
7906         Add Emacs' "indent-tabs-mode: nil" hint.
7907
7908 2009-11-27  Eric Blake  <ebb9@byu.net>
7909
7910         getopt-gnu: flush out another BSD bug
7911         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7912         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7913         flush out BSD bug.
7914         * tests/test-getopt.h (test_getopt): End lists with NULL.
7915         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7916         (test_getopt_long_posix): Enhance test.
7917         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7918         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7919         getopt-gnu.
7920         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7921         Likewise.
7922
7923 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7924
7925         * modules/idpriv-droptemp-tests (Notice): Fix text.
7926
7927 2009-11-27  Jim Meyering  <meyering@redhat.com>
7928
7929         test-xalloc-die: avoid spurious failure due to libtool argv difference
7930         In a libtool-enabled project, this test would fail due to a difference
7931         in the emitted program name, e.g.,
7932         -test-xalloc-die: memory exhausted
7933         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7934         Use program to avoid that.
7935         * modules/xalloc-die-tests (Depends-on): Add progname.
7936         * tests/test-xalloc-die.c: Include progname.h".
7937         (program_name): Remove decl.
7938         (main): Call set_program_name.
7939         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7940
7941 2009-11-26  Richard Jones  <rjones@redhat.com>
7942
7943         w32sock: leave win32 error in place.
7944         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7945
7946 2009-11-26  Eric Blake  <ebb9@byu.net>
7947
7948         init.sh: suggest to use skip_ and fail_ functions in comments
7949         * tests/init.sh: Add a sentence.
7950
7951 2009-11-25  Bruno Haible  <bruno@clisp.org>
7952
7953         init.sh: add documentation in comments
7954         * tests/init.sh: Add some developer and user documentation.
7955
7956 2009-11-26  Jim Meyering  <meyering@redhat.com>
7957
7958         init.sh: accommodate even those who specify bogus srcdir manually
7959         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7960         configure-time tests to be sanitized, so that there is no need to
7961         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7962         (with no double quotes) suffices.  However, since tests may be
7963         invoked manually, and since you may explicitly set srcdir to the
7964         name of a directory containing spaces, do quote its uses here.
7965         * tests/test-pread.sh: Likewise.
7966         Suggested by Bruno Haible.
7967
7968         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7969         * tests/test-pread.sh: Write no data into the pipe, because
7970         test-pread actually reads none.  This avoids a diagnostic,
7971         "bash: echo: write error: Broken pipe", that arises in the unusual
7972         event something is ignoring SIGPIPE, and might be interpreted
7973         as some sort of failure.  Reported by Bruno Haible.
7974
7975 2009-11-25  Jim Meyering  <meyering@redhat.com>
7976
7977         test-pread: cover failure with ESPIPE and EINVAL
7978         * tests/test-pread.c (main): Test for failure, too.
7979         * tests/test-pread.sh: Invoke with stdin on a pipe.
7980         Suggested by Eric Blake.
7981
7982         pread: improvement and fix
7983         * modules/pread (Depends-on): Depend on lseek, for portability to
7984         e.g., mingw.  Suggested by Eric Blake.
7985         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7986
7987         unistd.in.h: correct declaration of pread
7988         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7989         Reported by Richard W.M. Jones.
7990
7991         test-pread.sh: distribute the test script
7992         * modules/pread-tests (Files): Include test-pread.sh.
7993
7994         test-pread.sh: clean up
7995         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7996         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7997         That is unnecessary, since it's always ".".
7998         Suggestion from Eric Blake.
7999
8000         test-pread.sh: make executable
8001         * tests/test-pread.sh: Set executable bit.
8002         Reported by Eric Blake.
8003
8004         correct typo in test-pread.sh
8005         * tests/test-pread.sh: Add #! line.
8006
8007         test pread
8008         * tests/test-pread.c: New file.
8009         * tests/test-pread.sh: Likewise.
8010         * modules/pread-tests: Likewise.
8011
8012         pread: new module
8013         * modules/pread: New file.
8014         * lib/unistd.in.h (pread): Define/declare.
8015         * lib/pread.c (pread): New file.
8016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
8017         * modules/unistd (Makefile.am): Substitute witnesses.
8018         * doc/posix-functions/pread.texi (pread): Update.
8019         * MODULES.html.sh: Add pread.
8020
8021 2009-11-25  Jim Meyering  <meyering@redhat.com>
8022
8023         tests/init.sh: new file to be used via most *.sh tests
8024         * tests/init.sh: New file.
8025
8026 2009-11-25  Eric Blake  <ebb9@byu.net>
8027
8028         utimens: work around older Linux failure with symlinks
8029         * lib/utimens.c (lutimensat_works_really): New variable.
8030         (fdutimens, lutimens): Use it to manage kernels that support
8031         nanosecond times on files, but not on symlinks.
8032         Reported by OndÅ™ej Vašík.
8033
8034         utimes: fix configure grammar
8035         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
8036
8037 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
8038
8039         regex: Fix fastmap for multibyte character ranges.
8040         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
8041         characters when a multibyte character range is included.
8042
8043 2009-11-22  Andy Wingo  <wingo@pobox.com>
8044
8045         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
8046         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
8047
8048 2009-11-24  Bruno Haible  <bruno@clisp.org>
8049
8050         doc: Most *_l functions exist in MacOS X 10.5.
8051         * doc/posix-functions/duplocale.texi: Update platforms list.
8052         * doc/posix-functions/freelocale.texi: Likewise.
8053         * doc/posix-functions/newlocale.texi: Likewise.
8054         * doc/posix-functions/uselocale.texi: Likewise.
8055         * doc/posix-functions/isalnum_l.texi: Likewise.
8056         * doc/posix-functions/isalpha_l.texi: Likewise.
8057         * doc/posix-functions/isblank_l.texi: Likewise.
8058         * doc/posix-functions/iscntrl_l.texi: Likewise.
8059         * doc/posix-functions/isdigit_l.texi: Likewise.
8060         * doc/posix-functions/isgraph_l.texi: Likewise.
8061         * doc/posix-functions/islower_l.texi: Likewise.
8062         * doc/posix-functions/isprint_l.texi: Likewise.
8063         * doc/posix-functions/ispunct_l.texi: Likewise.
8064         * doc/posix-functions/isspace_l.texi: Likewise.
8065         * doc/posix-functions/isupper_l.texi: Likewise.
8066         * doc/posix-functions/iswalnum_l.texi: Likewise.
8067         * doc/posix-functions/iswalpha_l.texi: Likewise.
8068         * doc/posix-functions/iswblank_l.texi: Likewise.
8069         * doc/posix-functions/iswcntrl_l.texi: Likewise.
8070         * doc/posix-functions/iswctype_l.texi: Likewise.
8071         * doc/posix-functions/iswdigit_l.texi: Likewise.
8072         * doc/posix-functions/iswgraph_l.texi: Likewise.
8073         * doc/posix-functions/iswlower_l.texi: Likewise.
8074         * doc/posix-functions/iswprint_l.texi: Likewise.
8075         * doc/posix-functions/iswpunct_l.texi: Likewise.
8076         * doc/posix-functions/iswspace_l.texi: Likewise.
8077         * doc/posix-functions/iswupper_l.texi: Likewise.
8078         * doc/posix-functions/iswxdigit_l.texi: Likewise.
8079         * doc/posix-functions/isxdigit_l.texi: Likewise.
8080         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
8081         * doc/posix-functions/strcasecmp_l.texi: Likewise.
8082         * doc/posix-functions/strcoll_l.texi: Likewise.
8083         * doc/posix-functions/strfmon_l.texi: Likewise.
8084         * doc/posix-functions/strftime_l.texi: Likewise.
8085         * doc/posix-functions/strncasecmp_l.texi: Likewise.
8086         * doc/posix-functions/strxfrm_l.texi: Likewise.
8087         * doc/posix-functions/tolower_l.texi: Likewise.
8088         * doc/posix-functions/toupper_l.texi: Likewise.
8089         * doc/posix-functions/towctrans_l.texi: Likewise.
8090         * doc/posix-functions/towlower_l.texi: Likewise.
8091         * doc/posix-functions/towupper_l.texi: Likewise.
8092         * doc/posix-functions/wcscoll_l.texi: Likewise.
8093         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8094         * doc/posix-functions/wctrans_l.texi: Likewise.
8095         * doc/posix-functions/wctype_l.texi: Likewise.
8096         * doc/glibc-functions/strptime_l.texi: Likewise.
8097         * doc/glibc-functions/strtod_l.texi: Likewise.
8098         * doc/glibc-functions/strtof_l.texi: Likewise.
8099         * doc/glibc-functions/strtol_l.texi: Likewise.
8100         * doc/glibc-functions/strtold_l.texi: Likewise.
8101         * doc/glibc-functions/strtoll_l.texi: Likewise.
8102         * doc/glibc-functions/strtoul_l.texi: Likewise.
8103         * doc/glibc-functions/strtoull_l.texi: Likewise.
8104         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8105         * doc/glibc-functions/wcstod_l.texi: Likewise.
8106         * doc/glibc-functions/wcstof_l.texi: Likewise.
8107         * doc/glibc-functions/wcstol_l.texi: Likewise.
8108         * doc/glibc-functions/wcstold_l.texi: Likewise.
8109         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8110         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8111         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8112
8113 2009-11-24  Bruno Haible  <bruno@clisp.org>
8114
8115         duplocale: Fix logic bug.
8116         * lib/duplocale.c: Don't include <langinfo.h>.
8117         (_NL_LOCALE_NAME): Remove macro.
8118         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8119         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8120
8121 2009-11-23  Jim Meyering  <meyering@redhat.com>
8122
8123         test-update-copyright: don't hard-code /usr/bin/perl
8124         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8125         perl to print the current year.  Gilles Espinasse reported that
8126         the replaced use of perl was hard-coded as /usr/bin/perl.
8127
8128 2009-11-23  Bruno Haible  <bruno@clisp.org>
8129
8130         duplocale: Add support for glibc 2.3.x.
8131         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8132
8133 2009-11-22  Bruno Haible  <bruno@clisp.org>
8134
8135         vasnprintf: Tiny optimization.
8136         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8137         MacOS X.
8138
8139 2009-11-22  Bruno Haible  <bruno@clisp.org>
8140
8141         Tests for module 'duplocale'.
8142         * modules/duplocale-tests: New file.
8143         * tests/test-duplocale.c: New file.
8144
8145         New module 'duplocale'.
8146         * m4/duplocale.m4: New file.
8147         * lib/locale.in.h (duplocale): New declaration.
8148         * lib/duplocale.c: New file.
8149         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8150         gl_LOCALE_H_DEFAULTS): New macros.
8151         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8152         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8153         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8154         REPLACE_DUPLOCALE.
8155         * modules/duplocale: New file.
8156         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8157
8158 2009-11-22  Bruno Haible  <bruno@clisp.org>
8159
8160         * modules/locale-tests (configure.ac): Test for newlocale function.
8161         * tests/test-locale.c: When the system has extended locale functions,
8162         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8163
8164         locale: Make locale_t available when possible.
8165         * lib/locale.in.h: Include <xlocale.h> when it exists.
8166         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8167         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8168         * modules/locale (Depends-on): Add extensions.
8169         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8170         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8171
8172 2009-11-22  Bruno Haible  <bruno@clisp.org>
8173
8174         Add comments.
8175         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8176         invocation.
8177         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8178         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8179         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8180
8181 2009-11-22  Bruno Haible  <bruno@clisp.org>
8182
8183         error: account for the possibility of freopen (stdout).
8184         * lib/error.c: Include <unistd.h>.
8185         (flush_stdout): New function, extracted from error and error_at_line.
8186         Determine stdout's fd dynamically.
8187         (error, error_at_line): Invoke flush_stdout.
8188         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8189         * modules/error (Depends-on): Add unistd.
8190
8191 2009-11-22  Bruno Haible  <bruno@clisp.org>
8192
8193         diffseq: Add comment.
8194         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8195
8196 2009-11-22  Jim Meyering  <meyering@redhat.com>
8197
8198         c-stack: avoid defining an unused static function
8199         * lib/c-stack.c (find_stack_direction): Do not define this function
8200         when it will not be used.
8201
8202         diffseq: avoid spurious gcc warnings
8203         * lib/diffseq.h (IF_LINT2): Define.
8204         (compareseq): Use it to initialize two members of "part".
8205         This avoids two used-uninitialized warnings.
8206
8207 2009-11-21  Jim Meyering  <meyering@redhat.com>
8208
8209         c-stack: avoid "ignoring return value of `write'" warning
8210         * lib/c-stack.c: Include "ignore-value.h".
8211         (die): Explicitly ignore each write return value.
8212         * modules/c-stack (Depends-on): Add ignore-value.
8213
8214 2009-11-21  Bruno Haible  <bruno@clisp.org>
8215
8216         diffseq: reduce scope of variable 'best'.
8217         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8218         variable, earlier used for two different purposes.
8219
8220 2009-11-21  Jim Meyering  <meyering@redhat.com>
8221
8222         diffseq: remove useless assignment to "best"
8223         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8224         assignment.  At that point "best" is already guaranteed to be zero.
8225
8226 2009-11-20  Eric Blake  <ebb9@byu.net>
8227
8228         build: mention ftp redirector in release announcements
8229         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8230         values that used to come from cfg.mk; mention FTP redirect URL.
8231         * build-aux/announce-gen: Mention the mirror list.
8232         Suggested by Karl Berry.
8233
8234         nanosleep: improve port to mingw
8235         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8237         LIB_NANOSLEEP, but only when needed.
8238         * modules/select (Link): Document LIBSOCKET.
8239         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8240         enough.
8241
8242         nanosleep: work around cygwin bug
8243         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8244         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8245         bug.
8246         (getnow): Delete, not needed.
8247         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8248         LIB_CLOCK_GETTIME.
8249         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8250         clock-time, gettime.
8251         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8252         bug.
8253         * modules/nanosleep-tests: New test.
8254         * tests/test-nanosleep.c: New file.
8255
8256         sleep: work around cygwin bug
8257         * lib/sleep.c (rpl_sleep): Work around the bug.
8258         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8259         (gl_PREREQ_SLEEP): Delete unused macro.
8260         * modules/sleep (Depends-on): Add verify.
8261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8262         * modules/unistd (Makefile.am): Substitute witness.
8263         * lib/unistd.in.h (sleep): Update prototype.
8264         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8265         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8266         * modules/sleep-tests (Depends-on): Check for alarm.
8267
8268 2009-11-20  Jim Meyering  <meyering@redhat.com>
8269
8270         maint.mk: improve sc_prohibit_magic_number_exit
8271         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8272         so it does not match uses like System.exit(1).
8273         Add comments showing how to correct all offenders.
8274
8275 2009-11-19  Eric Blake  <ebb9@byu.net>
8276
8277         xalloc-die-tests: add missing library
8278         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8279
8280         test-xvasprintf: silence compiler warnings
8281         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8282         empty string from gcc.
8283
8284 2009-11-19  Jim Meyering  <meyering@redhat.com>
8285
8286         xfreopen: new module, from coreutils
8287         * modules/xfreopen: New module.
8288         * lib/xfreopen.c: New file.
8289         * lib/xfreopen.h: New file.
8290         * MODULES.html.sh (File stream based Input/Output"): Add it.
8291
8292 2009-11-19  Eric Blake  <ebb9@byu.net>
8293
8294         manywarnings: depend on warnings
8295         * modules/manywarnings (Depends-on): Add warnings.
8296
8297         build: avoid compiler warnings
8298         * lib/select.c (rpl_select): Delete unused variable.
8299         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8300
8301 2009-11-18  Eric Blake  <ebb9@byu.net>
8302
8303         tests: avoid false negative with --with-packager
8304         * tests/test-version-etc.sh: Discard packager information.
8305         * tests/test-argp-version-etc-1.sh: Likewise.
8306         Reported by Mike Frysinger.
8307
8308         utimens: fix regression on Solaris
8309         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8310         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8311         can only change fd timestamps via futimesat.  Instead, use an
8312         additional witness macro to avoid BSD bug.
8313         Reported by Jim Meyering.
8314
8315 2009-11-17  Eric Blake  <ebb9@byu.net>
8316
8317         usleep: use it to simplify tests
8318         * modules/stat-time-tests (Depends-on): Add usleep.
8319         (configure.ac): Drop usleep check.
8320         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8321         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8322         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8323         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8324         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8325         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8326         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8327         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8328         Likewise.
8329         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8330         * tests/test-lchown.h (nap): Likewise.
8331         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8332         * tests/test-stat-time.c (nap): Likewise.
8333         * tests/test-utimens-common.h (nap): Update comments.
8334
8335         usleep: new module
8336         * modules/usleep: New file.
8337         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8338         * lib/usleep.c (usleep): Likewise.
8339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8340         * modules/unistd (Makefile.am): Substitute witnesses.
8341         * lib/unistd.in.h (usleep): Add declaration.
8342         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8343         * MODULES.html.sh (Date and time): Likewise.
8344         * modules/usleep-tests (Depends-on): New test.
8345         * tests/test-usleep.c: New file.
8346
8347         chown: work around OpenBSD bug
8348         * lib/chown.c (rpl_chown): Work around the bug.
8349         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8350         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8351         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8352         * modules/chown (Depends-on): Add stdbool.
8353         * modules/lchown (Depends-on): Likewise.
8354         * doc/posix-functions/chown.texi (chown): Document the bug.
8355         * doc/posix-functions/lchown.texi (lchown): Likewise.
8356         * tests/test-lchown.h (test_chown): Relax test.
8357
8358         mkstemp: avoid conflict with C++ keyword template
8359         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8360         * lib/mkostemp.c (mkostemp): Likewise.
8361         * lib/mkostemps.c (mkostemps): Likewise.
8362         * lib/mkstemp.c (mkstemp): Likewise.
8363         * lib/mkstemps.c (mkstemps): Likewise.
8364
8365         xalloc-die-tests: optimize
8366         * tests/test-xalloc-die.sh: Reduce number of processes.
8367
8368 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8369
8370         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8371         patch from ludo@gnu.org (Ludovic Courtès).
8372
8373 2009-11-17  Jim Meyering  <meyering@redhat.com>
8374
8375         version-etc: use proper license string
8376         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8377         * modules/version-etc-fsf: Likewise.
8378
8379 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8380
8381         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8382         printed to stdout.  Deal with EOL differences.
8383
8384 2009-11-17  Eric Blake  <ebb9@byu.net>
8385
8386         unsetenv: work around Solaris bug
8387         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8388         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8389         Reported by Jim Meyering.
8390
8391         vasnprintf: avoid compiler warnings
8392         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8393         variables.
8394         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8395
8396 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8397
8398         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8399         settings since xalloc-die is no longer the self test,
8400         xalloc-die.sh is.
8401
8402 2009-11-17  Jim Meyering  <meyering@redhat.com>
8403
8404         test-xalloc-die.sh: make the code agree with the commit log
8405         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8406         at the end, just in case you happen to have a test-xalloc-die
8407         program in some other PATH directory.
8408
8409         test-xalloc-die.sh: fix a portability bug
8410         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8411         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8412         Otherwise, argv[0] (as often seen in diagnostics) would be too
8413         system-dependent, sometimes with, and sometimes without the leading "./".
8414
8415         version-etc-fsf: relax license to LGPLv3+
8416         * modules/version-etc-fsf (License): Relax license.
8417
8418 2009-11-16  Eric Blake  <ebb9@byu.net>
8419
8420         xalloc-die-tests: avoid printing null pointer
8421         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8422         shell script.
8423         * tests/test-xalloc-die.c (program_name): Declare.
8424         * tests/test-xalloc-die.sh (tmpfiles): New file.
8425
8426         setenv, unsetenv: work around various bugs
8427         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8428         (setenv) [HAVE_SETENV]: Work around bugs.
8429         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8430         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8431         for bugs.
8432         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8433         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8435         * modules/stdlib (Makefile.am): Update substitutions.
8436         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8437         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8438         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8439         * modules/setenv-tests: New test.
8440         * modules/unsetenv-tests: Likewise.
8441         * tests/test-setenv.c: New file.
8442         * tests/test-unsetenv.c: Likewise.
8443
8444 2009-11-16  Jim Meyering  <meyering@redhat.com>
8445
8446         version-etc: relax license to LGPLv3+
8447         * modules/version-etc (License): Relax license.
8448
8449         better AC_REQUIRE expanded-before-required-warning avoidance
8450         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8451         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8452         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8453         which is no longer needed.
8454
8455 2009-11-16  Eric Blake  <ebb9@byu.net>
8456
8457         test-freading: clean up temporary file
8458         * tests/test-freading.c (main): Remove file on success, and use
8459         ASSERT more liberally.
8460         Reported by Jim Meyering.
8461
8462 2009-11-16  Jim Meyering  <meyering@redhat.com>
8463
8464         avoid new AC_REQUIRE expanded-before-required warnings
8465         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8466         merely using it.
8467         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8468         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8469
8470 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8471
8472         * tests/test-xalloc-die.c: New file.
8473         * modules/xalloc-die-tests: New file.
8474         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8475         XFAIL_TESTS so it can be appended by modules.
8476
8477 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8478
8479         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8480         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8481
8482 2009-11-14  Eric Blake  <ebb9@byu.net>
8483
8484         fnmatch: avoid compiler warning
8485         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8486         to silence compiler warning about mismatch signedness in ?:.
8487         Reported by Robert Millan.
8488
8489         intprops: add double-inclusion guard
8490         * lib/intprops.h: Allow idempotent includes.
8491         Suggested by Bruce Korb.
8492
8493         openat: detect Solaris fchownat bug
8494         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8495         penalizing glibc chownat when only lchownat is broken.
8496         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8497         trailing slash bugs.
8498         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8499         * modules/openat-tests (Files): Include more files.
8500         (Depends-on): Add mgetgroups, sleep, stat-time.
8501         (configure.ac): Add additional checks.
8502         (Makefile.am): Build new test.
8503         * tests/test-fchownat.c: New file.
8504
8505         lchown: detect Solaris and FreeBSD bug
8506         * lib/lchown.c (rpl_lchown): Work around bug.
8507         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8509         * modules/unistd (Makefile.am): Populate it.
8510         * lib/unistd.in.h (lchown): Update declaration.
8511         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8512         * modules/lchown-tests: New file.
8513         * tests/test-lchown.h (test_lchown): Likewise.
8514         * tests/test-lchown.c (main): Likewise.
8515
8516         chown: detect Solaris and FreeBSD bug
8517         * lib/chown.c (rpl_chown): Work around bug.
8518         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8519         (gl_PREREQ_CHOWN): Delete.
8520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8521         * modules/unistd (Makefile.am): Populate it.
8522         * lib/unistd.in.h (chown): Update declaration.
8523         * lib/lchown.c (chown): Update client.
8524         * modules/lchown (Depends-on): Add lstat.
8525         * doc/posix-functions/chown.texi (chown): Document the bug.
8526         * doc/posix-functions/getgroups.texi (getgroups): Document
8527         getgroups pitfall.
8528         * modules/chown-tests: New file.
8529         * tests/test-chown.h (test_chown): Likewise.
8530         * tests/test-chown.c (main): Likewise.
8531
8532 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8533
8534         gnulib-tool: correctly detect absence of m4 directories
8535         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8536
8537 2009-11-14  Jim Meyering  <meyering@redhat.com>
8538
8539         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8540         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8541
8542 2009-11-14  John W. Eaton  <jwe@gnu.org>
8543
8544         strftime.h: wrap funtion declaration in extern "C" block
8545         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8546
8547 2009-11-13  Eric Blake  <ebb9@byu.net>
8548
8549         getgroups: avoid compiler warning
8550         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8551
8552         getgroups: work around FreeBSD bug
8553         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8554         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8555         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8556         * tests/test-getgroups.c (main): Fix buffer overrun.
8557
8558         getgroups: avoid compilation failure
8559         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8560         * modules/getgroups (Depends-on): Add stdint.
8561
8562 2009-11-13  Jim Meyering  <meyering@redhat.com>
8563
8564         test-getgroups: avoid compilation failure
8565         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8566
8567 2009-11-13  Eric Blake  <ebb9@byu.net>
8568
8569         mgetgroups: new module, taken from coreutils
8570         * modules/mgetgroups: New file.
8571         * lib/mgetgroups.h: Likewise.
8572         * lib/mgetgroups.c (mgetgroups): Likewise.
8573         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8574         * MODULES.html.sh (Users and groups): Mention it.
8575
8576         getgroups: don't expose GETGROUPS_T to user
8577         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8578         an element at a time if GETGROUPS_T is wrong size.
8579         * lib/getugroups.h (getugroups): Change signature.
8580         * lib/unistd.in.h (getgroups): Likewise.
8581         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8582         signature needs fixing.
8583         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8584         AC_TYPE_GETGROUPS.
8585         * modules/group-member (Depends-on): Add getgroups.
8586         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8587         (group_member): Rely on getgroups replacement.
8588         * lib/getugroups.c (getugroups): Use gid_t.
8589         * tests/test-getgroups.c (main): Likewise.
8590         * NEWS: Mention the signature change.
8591         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8592         problem with signature.
8593         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8594         GETGROUPS_T is still useful for setgroups.
8595
8596         getgroups, getugroups: provide stubs for mingw
8597         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8598         * lib/getugroups.c (getugroups): Likewise.
8599         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8600         function.  Modernize replacement scheme.
8601         (gl_PREREQ_GETGROUPS): Delete.
8602         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8603         * modules/getgroups (configure.ac): Declare witness.
8604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8605         * modules/unistd (Depends-on): Substitute witness.
8606         * lib/unistd.in.h (getgroups): Declare replacement.
8607
8608         getgroups: avoid calling exit
8609         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8610         drop xalloc.
8611         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8612         dependencies.
8613         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8614         exiting, in the rare case of malloc failure.
8615
8616         getgroups: fix logic error
8617         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8618         has more than 20 groups.
8619         * modules/getgroups-tests: New test.
8620         * tests/test-getgroups.c: New file.
8621
8622 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8623
8624         * tests/test-base64.c: Improve.
8625
8626 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8627
8628         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8629         Blake <ebb9@byu.net>.
8630
8631 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8632
8633         * tests/test-xvasprintf.c: Add %s%s related checks.
8634
8635 2009-11-12  Eric Blake  <ebb9@byu.net>
8636
8637         version-etc: match standards.texi style
8638         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8639         and use <> only for URLs.
8640
8641 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8642
8643         fts: do not fail on a submount during traversal
8644         * lib/fts.c (fts_build): Read the stat info again after opening
8645         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8646         Original report at http://bugzilla.redhat.com/501848.
8647
8648 2009-11-12  Jim Meyering  <meyering@redhat.com>
8649
8650         bootstrap: sync from coreutils
8651         * build-aux/bootstrap (bootstrap_epilogue): New function.
8652         Use git_modules_config in one more place.  This make bootstrap's
8653         --gnulib-srcdir option more useful for testing.
8654
8655         bootstrap: generalize autoheader check
8656         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8657         AC_CONFIG_HEADERS.
8658
8659 2009-11-11  Eric Blake  <ebb9@byu.net>
8660
8661         mkfifoat: use new modules for Solaris and BSD bugs
8662         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8663         * lib/mkfifoat.c (mknodat): Split...
8664         * lib/mknodat.c (mknodat): ...into new file.
8665         * modules/mkfifoat (Files): Ship new file.
8666         (Depends-on): Add mkfifo, mknod.
8667         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8668         (Depends-on): Add symlink.
8669         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8670         redundant with test_mkfifo.h.
8671         (do_mkfifoat, do_mknodat): New helpers.
8672
8673         mknod: new module
8674         * modules/mknod: New file.
8675         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8676         * lib/mknod.c (mknod): Likewise.
8677         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8678         defaults.
8679         * modules/sys_stat (Makefile.am): Substitute them.
8680         * lib/sys_stat.in.h (mknod): Declare replacement.
8681         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8682         Document it.
8683         * doc/posix-functions/mknod.texi (mknod): Likewise.
8684         * modules/mknod-tests: New test.
8685         * tests/test-mknod.c: Likewise.
8686
8687         mkfifo: new module
8688         * modules/mkfifo: New file.
8689         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8690         * lib/mkfifo.c (mkfifo): Likewise.
8691         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8692         defaults.
8693         * modules/sys_stat (Makefile.am): Substitute them.
8694         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8695         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8696         Document it.
8697         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8698         * modules/mkfifo-tests: New test.
8699         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8700         from test-mkfifoat.c.
8701         * tests/test-mkfifo.c: New file.
8702
8703         readlink: detect FreeBSD bug
8704         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8705         slash on symlink.
8706         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8707         * tests/test-readlink.h (test_readlink): Enhance test.
8708
8709         symlink: detect FreeBSD bug
8710         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8711         slash on symlink.
8712         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8713         * tests/test-symlink.h (test_symlink): Enhance test.
8714
8715 2009-11-10  Eric Blake  <ebb9@byu.net>
8716
8717         link: detect FreeBSD bug
8718         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8719         symlink.
8720         * doc/posix-functions/link.texi (link): Document the bug.
8721         * tests/test-link.h (test_link): Enhance test.
8722         * tests/test-linkat.c (main): Update caller.
8723
8724         unlink, remove: detect FreeBSD bug
8725         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8726         slash on symlink.
8727         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8728         * doc/posix-functions/remove.texi (remove): Likewise.
8729         * tests/test-unlink.h (test_unlink): Enhance test.
8730         * tests/test-remove.c (main): Likewise.
8731
8732 2009-11-09  Eric Blake  <ebb9@byu.net>
8733
8734         rename: detect FreeBSD bug
8735         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8736         slash on symlink.
8737         * modules/renameat-tests (Depends-on): Add filenamecat.
8738         * tests/test-rename.h (test_rename): Allow one more errno.
8739         * tests/test-renameat.c (main): Likewise.
8740         * doc/posix-functions/rename.texi (rename): Document the bug.
8741
8742         open: detect FreeBSD bug
8743         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8744         symlink.
8745         * doc/posix-functions/open.texi (open): Document the bug.
8746         * doc/posix-functions/utimes.texi (utimes): Likewise.
8747         * tests/test-open.h (test_open): Add parameters, and test symlink
8748         handling.
8749         * tests/test-open.c (main): Adjust caller.
8750         * tests/test-fcntl-safer.c (main): Likewise.
8751         * modules/open-tests (Depends-on): Add stdbool, symlink.
8752         * modules/fcntl-safer-tests (Depends-on): Likewise.
8753         * tests/test-openat.c (main): Add test-open tests.
8754
8755         stat: detect FreeBSD bug
8756         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8757         symlink.
8758         * doc/posix-functions/stat.texi (stat): Document the bug.
8759         * tests/test-stat.h (test_stat_func): Add argument.
8760         * tests/test-stat.c (main): Adjust caller.
8761         * tests/test-fstatat.c (main): Likewise.
8762         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8763         Reported by Jim Meyering.
8764
8765 2009-11-09  James Youngman  <jay@gnu.org>
8766
8767         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8768         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8769
8770 2009-11-08  Jim Meyering  <meyering@redhat.com>
8771
8772         utimens: remove invalid futimesat call
8773         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8774         It used the file descriptor of the target file as the DIR_FD
8775         parameter and NULL as the file name.  That caused failure with
8776         errno == EFAULT on FreeBSD-8.0-rc2
8777
8778 2009-11-07  Eric Blake  <ebb9@byu.net>
8779
8780         fflush, freadseek: use fseeko, not fseek
8781         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8782         (clear_ungetc_buffer): Avoid potential problems on large files.
8783         * lib/freadseek.c (freadseek): Likewise.
8784         * modules/freadseek (Depends-on): Add fseeko.
8785         * modules/fseek (configure.ac): Set a witness.
8786         * tests/test-fflush.c (main): Use fseeko.
8787         * tests/test-fpurge.c (fseek): Disable link warning.
8788         * tests/test-freadable.c (fseek): Likewise.
8789         * tests/test-freading.c (fseek): Likewise.
8790         * tests/test-fseeko.c (fseek): Likewise.
8791         * tests/test-ftell.c (fseek): Likewise.
8792         * tests/test-ftello.c (fseek): Likewise.
8793         * tests/test-fwritable.c (fseek): Likewise.
8794         * tests/test-fwriting.c (fseek): Likewise.
8795
8796 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8797
8798         * modules/memchr (Depends-on): Drop getpagesize dependency.
8799
8800 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8801
8802         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8803         Reported by Ludovic Courtès.
8804         * build-aux/pmccabe2html: Improve example usage.
8805         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8806
8807 2009-11-06  Jim Meyering  <meyering@redhat.com>
8808
8809         do-release-commit-and-tag: New module.
8810         Automate the release-commit and tag process.
8811         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8812         * modules/do-release-commit-and-tag: New file.
8813         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8814
8815 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8816
8817         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8818         because test-select.c uses inet_pton.
8819
8820 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8821
8822         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8823         GETADDRINFO_LIB.  Bump serial number.
8824         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8825         Suggested by Eric Blake <ebb9@byu.net>.
8826
8827 2009-11-05  Eric Blake  <ebb9@byu.net>
8828
8829         strtod: detect darwin bug
8830         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8831         Reported by Leo Davis.
8832
8833         freopen-safer: new module
8834         * modules/freopen-safer: New module.
8835         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8836         * lib/freopen-safer.c (freopen_safer): New file.
8837         * lib/stdio-safer.h (freopen_safer): New declaration.
8838         * lib/stdio--.h (freopen): New override.
8839         * MODULES.html.sh (File stream based Input/Output): Mention it.
8840         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8841         freopen-safer module.
8842         * doc/posix-functions/stderr.texi (stderr): Likewise.
8843         * doc/posix-functions/stdin.texi (stdin): Likewise.
8844         * doc/posix-functions/stdout.texi (stdout): Likewise.
8845         * modules/freopen-safer-tests: New test.
8846         * tests/test-reopen-safer.c: New file.
8847
8848 2009-11-05  Jim Meyering  <meyering@redhat.com>
8849
8850         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8851         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8852
8853 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8854
8855         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8856
8857 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8858
8859         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8860
8861 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8862
8863         Fix link error.
8864         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8865         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8866
8867 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8868
8869         * tests/test-func.c: Also test value of __func__.
8870
8871 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8872
8873         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8874         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8875
8876 2009-11-05  Bruno Haible  <bruno@clisp.org>
8877
8878         Fix link error.
8879         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8880         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8881         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8882
8883 2009-11-05  Bruno Haible  <bruno@clisp.org>
8884
8885         Tests for module 'inet_pton'.
8886         * modules/inet_pton-tests: New file.
8887         * tests/test-inet_pton.c: New file.
8888
8889 2009-11-05  Bruno Haible  <bruno@clisp.org>
8890
8891         Tests for module 'inet_ntop'.
8892         * modules/inet_ntop-tests: New file.
8893         * tests/test-inet_ntop.c: New file.
8894
8895 2009-11-04  Eric Blake  <ebb9@byu.net>
8896
8897         stdlib-safer: wrap all mkstemp variants
8898         * modules/mkostemp (configure.ac): Set witness.
8899         * modules/mkostemps (configure.ac): Likewise.
8900         * modules/mkstemps (configure.ac): Likewise.
8901         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8902         (mkstemps_safer): Wrap more functions.
8903         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8904         wrapping.
8905         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8906         (mkstemps_safer): Implement the wrappers.
8907
8908         mkstemps, mkostemps: new modules
8909         * modules/mkostemps: New module.
8910         * modules/mkstemps: Likewise.
8911         * lib/mkostemps.c (mkostemps): New file.
8912         * lib/mkstemps.c (mkstemps): Likewise.
8913         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8914         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8915         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8916         * modules/stdlib (Makefile.am): Substitute them.
8917         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8918         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8919         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8920         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8921         * MODULES.html.sh (File system functions): Mention them.
8922
8923         tempname: resync from glibc
8924         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8925         same values for __GT_FILE as glibc.  Abort even when assertions
8926         are disabled.
8927         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8928         match its value otherwise.  Allow idempotent inclusion.
8929         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8930         * lib/mkostemp.c (mkostemp): Likewise.
8931         * lib/mkstemp.c (mkstemp): Likewise.
8932         * lib/tmpfile.c (tmpfile): Likewise.
8933         * NEWS: Document this.
8934
8935         utimens: fix use of futimens on older Linux
8936         * lib/utimens.c (fdutimens): Use updated, rather than original,
8937         timespec to avoid bug in older Linux kernel.
8938         Reported by Simon Josefsson.
8939
8940 2009-11-04  Bruno Haible  <bruno@clisp.org>
8941
8942         Make num_processors more flexible and consistent.
8943         * lib/nproc.h (enum nproc_query): New type.
8944         (num_processors): Add a 'query' argument.
8945         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8946         (num_processors): Add a 'query' argument. Test the value of the
8947         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8948         mingw, count the number of CPUs available for the current process.
8949         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8950         Check for sched_getaffinity and sched_getaffinity_np.
8951         * modules/nproc (Depends-on): Add c-ctype, extensions.
8952         * NEWS: Mention the change.
8953
8954 2009-11-03  Bruno Haible  <bruno@clisp.org>
8955
8956         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8957
8958 2009-11-03  Jim Meyering  <meyering@redhat.com>
8959
8960         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8961         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8962         if it is defined.
8963
8964 2009-11-02  Eric Blake  <ebb9@byu.net>
8965
8966         mktime, timegm: share common declaration
8967         * lib/mktime-internal.h: New file.
8968         * lib/mktime.c: Use it rather than open-coding a declaration.
8969         * lib/timegm.c: Likewise.
8970         * modules/mktime (Files): Ship it.
8971         * modules/timegm (Files): Likewise.
8972         Suggested by Bruno Haible.
8973
8974         test-update-copyright: update test to match script changes
8975         * tests/test-update-copyright.sh: Avoid hard-coding perl
8976         location.  Don't update *.bak created by earlier runs.
8977
8978 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8979             Simon Josefsson  <simon@josefsson.org>
8980             Bruno Haible  <bruno@clisp.org>
8981
8982         Fix link error on Solaris 8.
8983         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8984         also in libnsl. Define also INET_PTON_LIB.
8985         * modules/inet_pton (Link): New section.
8986
8987 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8988             Bruno Haible  <bruno@clisp.org>
8989
8990         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8991         * modules/inet_ntop (Link): New section.
8992         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8993
8994 2009-11-02  Eric Blake  <ebb9@byu.net>
8995
8996         maint: avoid compiler warnings in m4 macros
8997         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8998         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8999
9000 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9001
9002         * m4/pmccabe2html.m4: Remove file.
9003         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
9004         function.  Change maintainer.
9005         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
9006         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
9007         Courtès).
9008
9009 2009-10-31  Eric Blake  <ebb9@byu.net>
9010
9011         fseeko: fix m4 regression
9012         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
9013         regression from 2009-10-27.
9014         Reported by Ralf Wildenhues.
9015
9016 2009-10-31  Jim Meyering  <meyering@redhat.com>
9017
9018         inttostr: aesthetics and improved (compile-time) safety
9019         Define inttype_is_signed rather than inttype_is_unsigned,
9020         since the sole use is via "#if inttype_is_signed".
9021         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
9022         inttype_is_unsigned.
9023         * lib/offtostr.c (inttype_is_signed): Likewise.
9024         * lib/uinttostr.c (inttype_is_signed): Likewise.
9025         * lib/umaxtostr.c (inttype_is_signed): Likewise.
9026         * lib/inttostr.c (inttostr): Use verify to cross-check the
9027         inttype_is_signed value and the signedness of the actual type.
9028         * modules/inttostr (Depends-on): Add verify.
9029
9030 2009-10-30  Eric Blake  <ebb9@byu.net>
9031
9032         build: avoid compiler warnings
9033         * lib/fchmodat.c (lchmod): Mark unused variables.
9034         * lib/getopt.c (_getopt_initialize): Likewise.
9035         * lib/mktime.c (__mktime_internal): Provide prototype.
9036         * lib/inttostr.c (inttostr): Avoid compiler warning even with
9037         older gcc that do not understand #pragma GCC diagnostic.
9038         * lib/uinttostr.c (inttype_is_unsigned): Define.
9039         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
9040
9041 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9042
9043         stat: fix compilation on AIX
9044         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
9045         only see struct stat64.
9046
9047 2009-10-30  Eric Blake  <ebb9@byu.net>
9048
9049         exclude: make more robust
9050         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
9051         rather than masking a coding bug.
9052         Suggested by Bruno Haible.
9053
9054 2009-10-30  Jim Meyering  <meyering@redhat.com>
9055
9056         perl scripts: remove #!/usr/bin/perl in favor of more portable...
9057         Rather than putting #!/usr/bin/perl on the first line,
9058         start with a variant of what's recommended by "man perlrun" that
9059         invokes the first "perl" program from your shell's search path.
9060         * build-aux/gitlog-to-changelog: Replace #!... as above.
9061         Add a "Local Variables" perl mode setting.
9062         Prompted by a patch from Ludovic Courtès.
9063         Improved by Eric Blake.
9064         * build-aux/useless-if-before-free: Likewise.
9065         * build-aux/announce-gen: Likewise.
9066         * build-aux/update-copyright: Likewise.
9067
9068 2009-10-29  Eric Blake  <ebb9@byu.net>
9069
9070         filenamecat-lgpl: adjust clients
9071         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
9072         filenamecat.
9073         * modules/renameat (Depends-on): Likewise.
9074
9075         filenamecat: split into filenamecat-lgpl
9076         * modules/filenamecat-lgpl: New module.
9077         * modules/filenamecat (Files): Move library-safe files into
9078         filenamecat-lgpl.
9079         (Depends-on): Add filenamecat-lgpl.
9080         (configure.ac): Declare witness.
9081         * lib/filenamecat.h (file_name_concat): Only declare when using
9082         GPL module.
9083         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
9084         Move...
9085         * lib/filenamecat-lgpl.c: ...into new file.
9086         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
9087         (gl_FILE_NAME_CONCAT): Use it.
9088         * MODULES.html.sh (File system functions): Mention new module.
9089
9090         argp: avoid memory leak
9091         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9092         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9093         base_name, since the latter malloc()s and can call exit().
9094         Leak introduced 2006-07-03.
9095
9096         dirname-lgpl: adjust clients that don't need full dirname
9097         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9098         * modules/filenamecat (Depends-on): Likewise.
9099         * modules/linkat (Depends-on): Likewise.
9100         * modules/mkancesdirs (Depends-on): Likewise.
9101         * modules/mkdir (Depends-on): Likewise.
9102         * modules/openat (Depends-on): Likewise.
9103         * modules/savewd (Depends-on): Likewise.
9104         * modules/rename (Depends-on): Likewise.
9105         (License): Relax license.
9106         * modules/mkdir-tests (Depends-on): Drop progname.
9107         (Makefile.am): Delete unneeded LDADD.
9108         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9109
9110         dirname: split into dirname-lgpl
9111         * modules/dirname-lgpl: New module.
9112         * modules/dirname (Files): Move library-safe files into
9113         dirname-lgpl.
9114         (Depends-on): Add dirname-lgpl.
9115         (configure.ac): Declare witness.
9116         * modules/double-slash-root (License): Relax license.
9117         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9118         module.
9119         * lib/dirname.c (dir_len, mdir_name): Move...
9120         * lib/dirname-lgpl.c: ...into new file.
9121         * lib/basename.c (last_component, base_len): Move...
9122         * lib/basename-lgpl.c: ...into new file.
9123         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9124         (gl_DIRNAME): Use it.
9125         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9126         Mention new module.
9127         * modules/dirname-tests (Depends-on): Add progname.
9128         * tests/test-dirname.c (program_name): Delete.
9129
9130         mkdir: make safe for libraries
9131         * modules/mkdir (Depends-on): Drop xalloc.
9132         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9133         exit.
9134
9135         tests: avoid some compiler warnings
9136         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9137         literals.
9138         * tests/test-memchr.c (main): Avoid type mismatch.
9139         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9140         * tests/test-base64.c (main): Likewise.
9141         * tests/test-getdelim.c (main): Likewise.
9142         * tests/test-gethostname.c (main): Likewise.
9143         * tests/test-getline.c (main): Likewise.
9144         * tests/test-netinet_in.c (main): Likewise.
9145         * tests/test-select.c (open_server_socket, main): Likewise.
9146         * tests/test-select-stdin.c (main): Likewise.
9147         * tests/test-sockets.c (main): Likewise.
9148         * tests/test-strsignal.c (main): Likewise.
9149         * tests/test-sys_select.c (main): Likewise.
9150         * tests/test-sys_socket.c (main): Likewise.
9151         * tests/test-u64.c (main): Likewise.
9152         * tests/test-xfprintf-posix.c (main): Likewise.
9153         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9154
9155         sockets: avoid compiler warning
9156         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9157
9158         maint: detect usage(1) and other suspicious exits
9159         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9160
9161 2009-10-29  Jim Meyering  <meyering@redhat.com>
9162
9163         timespec: long-to-int truncation could make timespec_cmp malfunction
9164         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9165         a multiple of 2^32 nanoseconds as no difference.
9166
9167 2009-10-28  Jim Meyering  <meyering@redhat.com>
9168
9169         fprintftime: wrap macro code argument in "do {...} while(0)"
9170         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9171         cpy macro must be a statement that can be followed by a semicolon.
9172         Now that the else clause contains a comment and is hence longer
9173         than one line, I require curly braces.  That in turn requires
9174         that we wrap this code block in the standard do...while(0).
9175
9176         fprintftime: remove stray semicolon from previous change
9177         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9178
9179         fprintftime: avoid a warning about ignored fwrite return value
9180         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9181         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9182         that is unsafe.
9183         * modules/fprintftime (Depends-on): Add ignore-value.
9184
9185         exclude: avoid an unwarranted warning
9186         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9187
9188 2009-10-27  Eric Blake  <ebb9@byu.net>
9189
9190         fseek: avoid compilation failure when fflush is replaced
9191         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9192         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9193         module is in use.
9194         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9195         module is not in use; since REPLACE_FSEEK worked otherwise.
9196         (GNULIB_FTELLO): Likewise for ftell.
9197         Reported by Ian Beckwith and others.
9198
9199 2009-10-27  Bruno Haible  <bruno@clisp.org>
9200
9201         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9202         Reported by Jim Meyering.
9203
9204 2009-10-27  Jim Meyering  <jim@meyering.net>
9205             Bruno Haible  <bruno@clisp.org>
9206
9207         Avoid warning despite dropping the return value of fwrite.
9208         * lib/unicodeio.c: Include ignore-value.h.
9209         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9210         * modules/unicodeio (Depends-on): Add ignore-value.
9211
9212 2009-10-26  Eric Blake  <ebb9@byu.net>
9213
9214         areadlinkat: fix fallback path
9215         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9216         pointer and zero.
9217
9218 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9219
9220         Use a better IO block size for modern systems
9221         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9222         * lib/md2.c: Likewise.
9223         * lib/md4.c: Likewise.
9224         * lib/md5.c: Likewise.
9225         * lib/sha1.c: Likewise.
9226         * lib/sha256.c: Likewise.
9227         * lib/sha512.c: Likewise.
9228
9229 2009-10-22  Eric Blake  <ebb9@byu.net>
9230
9231         tests: avoid several compiler warnings
9232         * tests/test-getcwd.c (main): Avoid buffer underflow.
9233         * tests/test-getdate.c (main): String literals are not safe with
9234         putenv, so use setenv.  Declare unused argument.
9235         * modules/getdate-tests (Depends-on): Add setenv.
9236         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9237         problems with string literals in char *.
9238         * tests/test-hash.c (main): Avoid shadowing declaration.
9239         (insert_new): Treat string literals as char const *.
9240         * tests/test-getopt.h (test_getopt): Likewise.
9241         (getopt_loop): Alter types to minimize casting elsewhere.
9242         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9243         (test_getopt_long_posix): Likewise.
9244         (do_getopt_long): Add wrapper to minimize casting.
9245         * tests/test-atexit.c (clear_temp_file): Use void.
9246         * tests/test-areadlink-with-size.c (main): Declare unused
9247         arguments.
9248         * tests/test-areadlink.c (main): Likewise.
9249         * tests/test-areadlinkat-with-size.c (main): Likewise.
9250         * tests/test-areadlinkat.c (main): Likewise.
9251         * tests/test-canonicalize-lgpl.c (main): Likewise.
9252         * tests/test-canonicalize.c (main): Likewise.
9253         * tests/test-dirent-safer.c (main): Likewise.
9254         * tests/test-dirname.c (main): Likewise.
9255         * tests/test-dup2.c (main): Likewise.
9256         * tests/test-fchdir.c (main): Likewise.
9257         * tests/test-fcntl-h.c (main): Likewise.
9258         * tests/test-fcntl-safer.c (main): Likewise.
9259         * tests/test-fdopendir.c (main): Likewise.
9260         * tests/test-fdutimensat.c (main): Likewise.
9261         * tests/test-fflush.c (main): Likewise.
9262         * tests/test-filenamecat.c (main): Likewise.
9263         * tests/test-filevercmp.c (main): Likewise.
9264         * tests/test-fopen-safer.c (main): Likewise.
9265         * tests/test-fopen.c (main): Likewise.
9266         * tests/test-fpending.c (main): Likewise.
9267         * tests/test-fpurge.c (main): Likewise.
9268         * tests/test-freading.c (main): Likewise.
9269         * tests/test-fstatat.c (main): Likewise.
9270         * tests/test-fsync.c (main): Likewise.
9271         * tests/test-futimens.c (main): Likewise.
9272         * tests/test-getndelim2.c (main): Likewise.
9273         * tests/test-gettimeofday.c (main): Likewise.
9274         * tests/test-getopt.c (main): Likewise.
9275         * tests/test-i-ring.c (main): Likewise.
9276         * tests/test-inttypes.c (main): Likewise.
9277         * tests/test-link.c (main): Likewise.
9278         * tests/test-lstat.c (main): Likewise.
9279         * tests/test-math.c (main): Likewise.
9280         * tests/test-md5.c (main): Likewise.
9281         * tests/test-memchr2.c (main): Likewise.
9282         * tests/test-memrchr.c (main): Likewise.
9283         * tests/test-mkdir.c (main): Likewise.
9284         * tests/test-mkdirat.c (main): Likewise.
9285         * tests/test-mkfifoat.c (main): Likewise.
9286         * tests/test-open.c (main): Likewise.
9287         * tests/test-openat-safer.c (main): Likewise.
9288         * tests/test-openat.c (main): Likewise.
9289         * tests/test-quotearg.c (main): Likewise.
9290         * tests/test-rawmemchr.c (main): Likewise.
9291         * tests/test-readlink.c (main): Likewise.
9292         * tests/test-remove.c (main): Likewise.
9293         * tests/test-rename.c (main): Likewise.
9294         * tests/test-renameat.c (main): Likewise.
9295         * tests/test-rmdir.c (main): Likewise.
9296         * tests/test-sha1.c (main): Likewise.
9297         * tests/test-signal.c (main): Likewise.
9298         * tests/test-sigaction.c (main): Likewise.
9299         * tests/test-stat.c (main): Likewise.
9300         * tests/test-stat-time.c (main): Likewise.
9301         * tests/test-stddef.c (main): Likewise.
9302         * tests/test-stdint.c (main): Likewise.
9303         * tests/test-stdio.c (main): Likewise.
9304         * tests/test-stdlib.c (main): Likewise.
9305         * tests/test-strchrnul.c (main): Likewise.
9306         * tests/test-strerror.c (main): Likewise.
9307         * tests/test-string.c (main): Likewise.
9308         * tests/test-strtod.c (main): Likewise.
9309         * tests/test-strverscmp.c (main): Likewise.
9310         * tests/test-symlink.c (main): Likewise.
9311         * tests/test-symlinkat.c (main): Likewise.
9312         * tests/test-sys_stat.c (main): Likewise.
9313         * tests/test-sys_time.c (main): Likewise.
9314         * tests/test-time.c (main): Likewise.
9315         * tests/test-unistd.c (main): Likewise.
9316         * tests/test-unlink.c (main): Likewise.
9317         * tests/test-unlinkat.c (main): Likewise.
9318         * tests/test-utimens.c (main): Likewise.
9319         * tests/test-utimensat.c (main): Likewise.
9320         * tests/test-version-etc.c (main): Likewise.
9321         * tests/test-wchar.c (main): Likewise.
9322         * tests/test-wctype.c (main): Likewise.
9323         * tests/test-xprintf-posix.c (main): Likewise.
9324         * tests/test-posixtm.c (main): Likewise.
9325         (STREQ): Delete unused macro.
9326         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9327         shadowed variables.
9328         * tests/test-memchr.c (main): Likewise.
9329
9330 2009-10-21  Eric Blake  <ebb9@byu.net>
9331
9332         areadlinkat: avoid failure on older glibc
9333         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9334         rather than mis-comparing 0 against FUNC_RESULT of char*.
9335
9336 2009-10-21  Bruno Haible  <bruno@clisp.org>
9337
9338         * modules/stpncpy (License): Relicense under LGPLv2+.
9339         Reported by David Lutterkort <lutter@redhat.com>.
9340
9341 2009-10-20  Eric Blake  <ebb9@byu.net>
9342
9343         utimensat: work around Solaris 9 bug
9344         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9345         has trailing slash bugs.
9346         * tests/test-lutimens.h (test_lutimens): Enhance test.
9347         * tests/test-utimens.h (test_utimens): Likewise.
9348         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9349         * doc/posix-functions/utimes.texi (utimes): Likewise.
9350         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9351         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9352         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9353         * doc/posix-functions/futimens.texi (futimens): Likewise.
9354
9355         fdutimensat: new module
9356         * modules/fdutimensat: New file.
9357         * lib/fdutimensat.c (fdutimensat): Likewise.
9358         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9359         * MODULES.html.sh (File system functions): Mention module.
9360         * modules/fdutimensat-tests: New test.
9361         * tests/test-fdutimensat.c: Likewise.
9362
9363         doc: regenerate INSTALL
9364         * doc/INSTALL: Reflect recent autoconf update.
9365         * doc/INSTALL.ISO: Likewise.
9366         * doc/INSTALL.UTF-8: Likewise.
9367
9368 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9369
9370         acl: warn if ACL support is not detected
9371         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9372
9373 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9374
9375         * lib/nproc.h: Add extern "C" block for C++.
9376
9377 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9378             Bruno Haible  <bruno@clisp.org>
9379
9380         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9381         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9382         * doc/posix-functions/isalpha.texi: Likewise.
9383         * doc/posix-functions/isblank.texi: Likewise.
9384         * doc/posix-functions/iscntrl.texi: Likewise.
9385         * doc/posix-functions/isdigit.texi: Likewise.
9386         * doc/posix-functions/isgraph.texi: Likewise.
9387         * doc/posix-functions/islower.texi: Likewise.
9388         * doc/posix-functions/isprint.texi: Likewise.
9389         * doc/posix-functions/ispunct.texi: Likewise.
9390         * doc/posix-functions/isspace.texi: Likewise.
9391         * doc/posix-functions/isupper.texi: Likewise.
9392         * doc/posix-functions/isxdigit.texi: Likewise.
9393
9394 2009-10-18  Bruno Haible  <bruno@clisp.org>
9395
9396         Tests for module 'isblank'.
9397         * modules/isblank-tests: New file.
9398         * tests/test-isblank.c: New file.
9399
9400         New module 'isblank'.
9401         * lib/isblank.c: New file.
9402         * m4/isblank.m4: New file.
9403         * modules/isblank: New file.
9404         * doc/posix-functions/isblank.texi: Mention the new module.
9405
9406 2009-10-18  Bruno Haible  <bruno@clisp.org>
9407
9408         New module 'ctype'.
9409         * lib/ctype.in.h: New file.
9410         * m4/ctype.m4: New file.
9411         * modules/ctype: New file.
9412         * doc/posix-headers/ctype.texi: Mention the new module.
9413
9414 2009-10-18  Jim Meyering  <meyering@redhat.com>
9415
9416         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9417         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9418         right after its initialization, rather than farther down.
9419         Keeping these in close proximity makes it easier to ensure
9420         that each such variable is initialized.  E.g.,
9421
9422             LIB_CLOCK_GETTIME=
9423             AC_SUBST([LIB_CLOCK_GETTIME])
9424
9425         This change also increments these serial numbers.
9426         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9427         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9428         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9429
9430 2009-10-18  Bruno Haible  <bruno@clisp.org>
9431
9432         Don't let environment variables perturb build.
9433         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9434         (gl_PREREQ_GETHRXTIME): ... not here.
9435
9436 2009-10-18  Bruno Haible  <bruno@clisp.org>
9437
9438         Avoid symlink attack in localcharset module.
9439         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9440         (O_NOFOLLOW): Define fallback.
9441         (get_charset_aliases): Don't open the file if it is a symbolic link.
9442         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9443         gl_FCNTL_H.
9444         (gl_FCNTL_H): Require it.
9445         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9446         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9447         Reported by Fergal Glynn <fglynn@veracode.com>.
9448
9449 2009-10-18  Bruno Haible  <bruno@clisp.org>
9450
9451         Implement nproc for mingw.
9452         * lib/nproc.c: Include <windows.h>
9453         (num_processors): On native Windows platforms, try GetSystemInfo.
9454
9455 2009-10-18  Bruno Haible  <bruno@clisp.org>
9456
9457         Implement nproc for IRIX.
9458         * lib/nproc.c: Include <sys/sysmp.h>.
9459         (num_processors): On IRIX systems, try sysmp.
9460         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9461
9462 2009-10-18  Bruno Haible  <bruno@clisp.org>
9463
9464         Implement nproc for HP-UX.
9465         * lib/nproc.c: Include <sys/pstat.h>
9466         (num_processors): On HP-UX systems, try pstat_getdynamic.
9467         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9468         pstat_getdynamic.
9469
9470 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9471             Bruno Haible  <bruno@clisp.org>
9472
9473         Implement nproc for NetBSD, OpenBSD.
9474         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9475         (ARRAY_SIZE): New macro.
9476         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9477         * m4/nproc.m4: New file.
9478         * modules/nproc (Files): Add m4/nproc.m4.
9479         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9480         (Makefile.am): Instead, augment lib_SOURCES.
9481
9482 2009-10-18  Bruno Haible  <bruno@clisp.org>
9483
9484         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9485         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9486         sys/param.h.
9487
9488 2009-10-16  Eric Blake  <ebb9@byu.net>
9489
9490         utimensat: new module
9491         * modules/utimensat: New file.
9492         * lib/utimensat.c (utimensat): Likewise.
9493         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9494         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9495         so we can work around Linux bugs.
9496         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9497         * modules/sys_stat (Makefile.am): Substitute them.
9498         * lib/sys_stat.in.h (utimensat): Declare it.
9499         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9500         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9501         * modules/utimensat-tests: New test.
9502         * tests/test-utimensat.c: Likewise.
9503
9504         utimens: let lutimens work on non-symlinks
9505         * lib/utimens.c (lutimens): Fall back to utimens rather than
9506         failing with ENOSYS, when file is not a symlink.
9507         (utimens): Reduce redirection.
9508         * tests/test-lutimens.h (test_lutimens): Update test to cover
9509         non-symlinks.
9510         * tests/test-utimens.h (test_utimens): Update test to cover
9511         symlinks.
9512         * tests/test-utimens.c (main): Update caller.
9513
9514         utimens: cache whether utimensat syscall works
9515         * lib/utimens.c (utimensat_works_really): New cache variable.
9516         (fdutimens, lutimens): Use it to avoid failing syscall.
9517
9518         test-stat-time, test-utimens: improve portability
9519         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9520         ext4 on alpha, and for cygwin.
9521         * tests/test-utimens-common.h: New file.
9522         (nap): Factor delays into single function.
9523         * tests/test-lutimens.h (test_lutimens): Use new header.
9524         * tests/test-futimens.h (test_futimens): Likewise.
9525         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9526         timestamps to occur from same machine, as was done previously for
9527         test_utimens.
9528         * modules/utimens-tests (Files): Ship new file.
9529         * modules/futimens-tests (Files): Likewise.
9530         Reported in part by Jim Meyering.
9531
9532         sys_stat: sort replacement declarations
9533         * lib/sys_stat.in.h: Sort declarations.
9534         * lib/futimens.c (futimens): Fix typo.
9535
9536 2009-10-15  Jim Meyering  <meyering@redhat.com>
9537
9538         don't let environment settings perturb build
9539         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9540         could cause a configure-time and/or build-time malfunction.
9541         Typically, a configure-time function-in-library test is performed
9542         via code like this:
9543
9544           LIB_VAR=
9545           AC_SUBST([LIB_VAR])
9546           prefix_saved_LIBS=$LIBS
9547             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9548                        [test "$ac_cv_search_FUNC" = "none required" ||
9549                         LIB_VAR=$ac_cv_search_FUNC])
9550           LIBS=$prefix_saved_LIBS
9551
9552         However, in each of the files affected by this change, the LIB_VAR=
9553         initialization was omitted.  Thus, when set in the environment, its
9554         value would propagate into generated Makefiles when FUNC is not found
9555         in LIB_NAME.
9556         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9557         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9558         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9559
9560 2009-10-14  Eric Blake  <ebb9@byu.net>
9561
9562         fchdir: avoid infinite recursion in mingw
9563         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9564         recursing.
9565
9566         test-stat-time: port to mingw
9567         * tests/test-stat-time.c (force_unlink): Return a value.
9568         (test_ctime) [W32]: Fix compilation error.
9569         (nap): Don't call usleep with too large an argument.  Use
9570         force_unlink.
9571         * doc/pastposix-functions/usleep.texi (usleep): Document the
9572         portability issue.
9573
9574 2009-10-13  Jim Meyering  <meyering@redhat.com>
9575
9576         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9577         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9578         * modules/pipe-filter-ii: Likewise.
9579         * modules/sys_socket-tests: Likewise.
9580         * modules/tsearch-tests: Likewise.
9581         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9582         (check): Depend on it.
9583
9584 2009-10-12  Eric Blake  <ebb9@byu.net>
9585
9586         utimens-tests: port to NFS file systems
9587         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9588         comparisons to avoid spurious failures from timestamp drift
9589         between NFS machines.
9590
9591 2009-10-12  Eric Blake  <ebb9@byu.net>
9592
9593         stat-time-tests: minor cleanups
9594         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9595         * tests/test-stat-time.c (nap): Separate assignment from call.
9596         Suggested by Paolo Bonzini and Bruno Haible.
9597
9598         sys_stat: guarantee struct timespec
9599         * lib/sys_stat.in.h (includes): Always include <time.h>
9600         * modules/sys_stat (Depends-on): Add time.
9601         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9602         mode_t permission values.
9603         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9604         get at subsecond timestamps.
9605
9606 2009-10-10  Eric Blake  <ebb9@byu.net>
9607
9608         futimens: new module
9609         * modules/futimens: New file.
9610         * lib/futimens.c (futimens): Likewise.
9611         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9612         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9613         we can work around Linux bugs.
9614         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9615         * modules/sys_stat (Makefile.am): Substitute them.
9616         * lib/sys_stat.in.h (futimens): Declare it.
9617         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9618         * doc/posix-functions/futimens.texi (futimens): Likewise.
9619         * modules/futimens-tests: New test.
9620         * tests/test-futimens.c: Likewise.
9621
9622         utimens: introduce fdutimens
9623         * lib/utimens.h (fdutimens): New prototype.
9624         * lib/utimens.c (gl_futimens): Move guts...
9625         (fdutimens): ...to new interface.
9626         * tests/test-utimens.c (do_fdutimens): Use it.
9627
9628         utimens: add UTIME_NOW and UTIME_OMIT support
9629         * lib/utimens.c (validate_timespec, update_timespec): New helper
9630         functions.
9631         (gl_futimens, lutimens): Use them.
9632         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9633         stdbool, sys_stat.
9634         (Link): Mention resulting library dependency.
9635         * modules/utimecmp (Link): Likewise.
9636         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9637         (Makefile.am): Pick up library dependency.
9638         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9639         definition.
9640         * tests/test-sys_stat.c: Test the definitions.
9641         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9642         * NEWS: Document library dependency.
9643
9644         utimecmp: support symlink timestamps
9645         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9646         hashing when possible.  Use pathconf when available.
9647         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9648         * modules/utimecmp (Depends-on): Add lstat.
9649
9650         utimens: add lutimens interface
9651         * lib/utimens.c (lutimens): New function.
9652         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9653         * lib/utimens.h (lutimens): Declare new interface.
9654         * tests/test-utimens.c (main): Enhance test.
9655         * tests/test-lutimens.h (test_lutimens): New file.
9656         * modules/utimens-tests (Files): Distribute it.
9657         (Depends-on): Add symlink.
9658         (configure.ac): Check for usleep.
9659
9660         utimens: validate futimens usage
9661         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9662         fewer syscalls on failure later on.  Avoid compiler warning on
9663         mingw.
9664         * modules/utimens (Depends-on): Add dup2.
9665
9666         utimens: add test
9667         * modules/utimens-tests: New test.
9668         * tests/test-utimens.h: New file.
9669         * tests/test-futimens.h: Likewise.
9670         * tests/test-utimens.c: Likewise.
9671
9672         doc: mention timestamp portability issues
9673         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9674         instead.
9675         * doc/posix-functions/utime.texi (utime): Likewise.
9676         * doc/posix-functions/utimes.texi (utimes): Likewise.
9677         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9678         instead.
9679         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9680         module.
9681         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9682         Mention weakness with symlink timestamps.
9683         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9684         to utimensat/futimens instead.
9685         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9686
9687         test-dup2: enhance test
9688         * tests/test-dup2.c (main): Also check AT_FDCWD.
9689
9690         test-stat-time: avoid more spurious failures
9691         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9692         xfs; and avoid race if the two timestamps cross quantization edge.
9693
9694         relocatable: prefer 'file system' over 'filesystem'
9695         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9696         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9697         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9698         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9699         * lib/relocatable.c (compute_curr_prefix): Likewise.
9700
9701 2009-10-10  Jim Meyering  <meyering@redhat.com>
9702
9703         stat-time-tests: check for the usleep function
9704         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9705
9706 2009-10-10  Bruno Haible  <bruno@clisp.org>
9707
9708         * modules/xnanosleep: Put the Link section after the Include section.
9709
9710 2009-10-09  Eric Blake  <ebb9@byu.net>
9711
9712         dup2: work around FreeBSD 6.1 bug
9713         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9714         * doc/posix-functions/dup2.texi (dup2): Document it.
9715         Reported by Nelson H. F. Beebe and Jim Meyering.
9716
9717         test-stat-time: port to buggy NFS clients
9718         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9719         (test_ctime): Also skip test if mtime and ctime are skewed.
9720
9721         maint: prefer 'file system' over 'filesystem'
9722         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9723         * doc/posix-functions/lstat.texi (lstat): Likewise.
9724         * lib/file-has-acl.c (file_has_acl): Likewise.
9725         * lib/fwriteerror.c [TEST]: Likewise.
9726         * tests/test-areadlink.h (test_areadlink): Likewise.
9727         * tests/test-areadlinkat-with-size.c (main): Likewise.
9728         * tests/test-areadlinkat.c (main): Likewise.
9729         * tests/test-canonicalize-lgpl.c (main): Likewise.
9730         * tests/test-canonicalize.c (main): Likewise.
9731         * tests/test-fstatat.c (main): Likewise.
9732         * tests/test-linkat.c (main): Likewise.
9733         * tests/test-lstat.h (test_lstat_func): Likewise.
9734         * tests/test-mkdir.h (test_mkdir): Likewise.
9735         * tests/test-readlink.h (test_readlink): Likewise.
9736         * tests/test-remove.c (main): Likewise.
9737         * tests/test-rename.h (test_rename): Likewise.
9738         * tests/test-renameat.c (main): Likewise.
9739         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9740         * tests/test-symlink.h (test_symlink): Likewise.
9741         * tests/test-symlinkat.c (main): Likewise.
9742         * tests/test-unlink.h (test_unlink_func): Likewise.
9743         * tests/test-unlinkat.c (main): Likewise.
9744
9745         maint: make realtime library usage explicit
9746         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9747         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9748         * modules/settime (Link): Likewise.
9749         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9750
9751         test-stat-time: speed up execution
9752         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9753         warning on mingw.
9754         (nap): New helper function.
9755         (prepare_test): Use it to reduce sleep time.
9756         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9757         execution.
9758         * modules/stat-time-tests (configure.ac): Check for usleep.
9759
9760 2009-10-09  Jim Meyering  <meyering@redhat.com>
9761
9762         selinux-h: always use getfilecon wrappers
9763         * lib/getfilecon.c: New file.
9764         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9765         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9766         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9767         (fgetfilecon): Provide a stub.
9768         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9769         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9770         file unconditionally.
9771         When <selinux/selinux.h> is found, arrange to use wrappers.
9772         * modules/selinux-h (Files): Add getfilecon.c.
9773         (Makefile.am): Substitute include-next-related bits
9774         into the now-always-generated selinux/selinux.h file.
9775         * doc/glibc-functions/lgetfilecon.texi: New file.
9776         * doc/glibc-functions/fgetfilecon.texi: New file.
9777         * doc/glibc-functions/getfilecon.texi: New file.
9778         * doc/glibc-functions/getfilecon-desc.texi: New file.
9779         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9780         which to pull in the new files.
9781         * MODULES.html.sh (Misc): Add selinux-h.
9782
9783 2009-10-08  Jim Meyering  <meyering@redhat.com>
9784
9785         unistd: fix comment typo
9786         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9787
9788 2009-10-08  Eric Blake  <ebb9@byu.net>
9789
9790         areadlink: use SIZE_MAX consistently
9791         * modules/areadlink (Depends-on): Add stdint.
9792         * modules/areadlink-with-size (Depends-on): Likewise.
9793         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9794         gives NULL; drop sys/types, since unistd gives size_t; and add
9795         stdint for SIZE_MAX.
9796         (SIZE_MAX): Rely on headers.
9797         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9798         and add stdint.
9799         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9800         (SIZE_MAX): Likewise.
9801         (INITIAL_BUF_SIZE): Turn into enum.
9802         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9803
9804 2009-10-08  Jim Meyering  <meyering@redhat.com>
9805
9806         areadlinkat: avoid compilation failure
9807         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9808         Fix typo in comment.
9809
9810 2009-10-07  Eric Blake  <ebb9@byu.net>
9811
9812         areadlinkat-with-size: new module
9813         * modules/areadlinkat-with-size: New module.
9814         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9815         * lib/areadlink.h (areadlinkat): Declare it.
9816         * MODULES.html.sh (File system functions): Mention it.
9817         * modules/areadlinkat-with-size-tests: New test.
9818         * tests/test-areadlinkat-with-size.c: New file.
9819
9820         xreadlinkat: new module
9821         * modules/xreadlinkat: New module.
9822         * lib/xreadlinkat.c (xreadlinkat): New file.
9823         * lib/xreadlink.h (xreadlinkat): Declare it.
9824         * MODULES.html.sh (File system functions): Mention it.
9825
9826         areadlinkat: new module
9827         * lib/at-func.c (FUNC_FAIL): New define.
9828         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9829         * modules/areadlinkat: New module.
9830         * lib/linkat.c (areadlinkat): Move...
9831         * lib/areadlinkat.c (areadlinkat): ...to new file.
9832         * lib/areadlink.h (areadlinkat): Declare it.
9833         * modules/linkat (Depends-on): Add areadlinkat.
9834         * MODULES.html.sh (File system functions): Mention it.
9835         * modules/areadlinkat-tests: New test.
9836         * tests/test-areadlinkat.c: New file.
9837
9838         areadlink, areadlink-with-size: add tests
9839         * modules/areadlink-tests: New test.
9840         * modules/areadlink-with-size-tests: Likewise.
9841         * tests/test-areadlink.h: New file.
9842         * tests/test-areadlink.c: Likewise.
9843         * tests/test-areadlink-with-size.c: Likewise.
9844
9845         maint: minor cleanups
9846         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9847         _UNUSED_PARAMETER_ instead.
9848         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9849         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9850         * modules/linkat-tests (Files): Distribute test-link.h.
9851
9852         openat, utimens: whitespace cleanup
9853         * lib/openat.c: Prefer space throughout, rather than mix of 8
9854         spaces vs. tabs.
9855         * lib/at-func.c: Likewise.
9856         * lib/utimens.c: Likewise.
9857
9858         openat: avoid using wrong fd
9859         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9860         working directory chooses same fd.
9861         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9862
9863         mkdir, mkdirat: fix cygwin 1.5.x bug
9864         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9865         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9866         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9867         bug.
9868         (gl_PREREQ_MKDIR): Delete unused macro.
9869         * modules/mkdir (Files): Track file rename.
9870         (configure.ac): Update macro name.
9871         * modules/openat (Depends-on): Add mkdir.
9872         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9873
9874         mkdir, mkdirat: add tests
9875         * modules/mkdir-tests: New test.
9876         * tests/test-mkdir.h: New file.
9877         * tests/test-mkdir.c: Likewise.
9878         * tests/test-mkdirat.c: Likewise.
9879         * modules/openat-tests (Files): Add new files.
9880         (Makefile.am): Run new test.
9881
9882 2009-10-06  Eric Blake  <ebb9@byu.net>
9883
9884         doc: tweak *at function documentation
9885         * doc/posix-functions/faccessat.texi (faccessat): Mention
9886         known issue with replacement.
9887         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9888         * doc/posix-functions/linkat.texi (linkat): Likewise.
9889         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9890         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9891         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9892         * doc/posix-functions/renameat.texi (renameat): Likewise.
9893         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9894
9895         openat: fix GNU/Hurd bug in unlinkat
9896         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9897         broken.
9898         * doc/posix-functions/unlink.texi (unlink): Document this.
9899         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9900
9901         fdopendir: fix GNU/Hurd bug
9902         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9903         allowing non-directory fds.
9904         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9905         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9906         * modules/dirent (Makefile.am): Substitute it.
9907         * lib/dirent.in.h (fdopendir): Declare replacement.
9908         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9909         * tests/test-fdopendir.c (main): Test something other than
9910         /dev/null, since on Hurd that behaves like a directory.
9911
9912         test-symlink: port to GNU/Hurd
9913         * tests/test-symlink.h (test_symlink): Relax expected errno.
9914
9915         doc: tweak more cygwin information
9916         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9917         now compatible with glibc.
9918         * doc/posix-functions/getopt.texi (getopt): Likewise.
9919
9920         getopt-gnu: add another test
9921         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9922         guarantee behavior relied on by m4.
9923         * tests/test-getopt.c (main): Use it.
9924         * modules/getopt-posix-tests (Depends-on): Add setenv.
9925         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9926
9927         getopt: fix compilation on darwin
9928         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9929         include.
9930         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9931         Reported by Ludovic Courtès.
9932
9933 2009-10-06  Bruno Haible  <bruno@clisp.org>
9934
9935         * modules/size_max (Description): Discourage its use.
9936         Reported by Simon Josefsson.
9937
9938 2009-10-06  Jim Meyering  <meyering@redhat.com>
9939
9940         linkat: avoid compilation failure
9941         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9942
9943 2009-10-05  Eric Blake  <ebb9@byu.net>
9944
9945         linkat: support Linux 2.6.17
9946         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9947         linkat on Linux, but allow cache variable override.
9948         * lib/linkat.c (rpl_linkat): Define override.
9949         * modules/linkat (Depends-on): Add symlinkat.
9950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9951         * modules/unistd (Makefile.am): Substitute it.
9952         * lib/unistd.in.h (linkat): Declare replacement.
9953         Reported by Pádraig Brady.
9954
9955         quotearg: port test to systems with C.UTF-8 locale
9956         * tests/test-quotearg.c (struct result_strings): Add another
9957         member, differentiating between C.ASCII and C.UTF-8 handling.
9958         (compare_strings): Add parameter.
9959         (main): Adjust all callers.
9960
9961         getopt: avoid clash with FreeBSD _getopt_internal
9962         * lib/getopt.in.h (_getopt_internal): Override the name.
9963         * lib/getopt_int.h (includes): Pick up any overrides.
9964         Reported by Reuben Thomas.
9965
9966         hash: allow C89 compilation
9967         * lib/hash.c (check_tuning): Move declaration before statement.
9968         Reported by Reuben Thomas.
9969
9970 2009-10-05  Karl Berry  <karl@gnu.org>
9971
9972         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9973
9974 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9975             Bruno Haible  <bruno@clisp.org>
9976
9977         * lib/uname.c (uname): Use a table-driven algorithm to compute
9978         Windows NT versions.
9979
9980 2009-10-04  Bruno Haible  <bruno@clisp.org>
9981
9982         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9983         program_invocation_short_name.
9984         * modules/progname (configure.ac): Test for presence of
9985         program_invocation_short_name.
9986         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9987
9988 2009-10-04  Bruno Haible  <bruno@clisp.org>
9989
9990         * lib/progname.c (set_program_name): Fix comment.
9991         Reported by Jim Meyering.
9992
9993 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9994             Bruno Haible  <bruno@clisp.org>
9995
9996         * lib/uname.c: Include <string.h>.
9997         (uname): Do only one call to GetVersionEx in the common case.
9998
9999 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10000             Bruno Haible  <bruno@clisp.org>
10001
10002         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
10003         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
10004         (uname): Add support for Windows CE and various non-x86 CPU types.
10005
10006 2009-10-03  Bruno Haible  <bruno@clisp.org>
10007
10008         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
10009         invocation to tests/configure.ac.
10010         Reported by Ian Beckwith <ianb@erislabs.net>.
10011
10012 2009-10-02  Eric Blake  <ebb9@byu.net>
10013
10014         fchdir: avoid compiler warning
10015         * lib/fchdir.c (canonicalize_file_name)
10016         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
10017
10018         test-open: support mingw errno values
10019         * tests/test-open.h (test_open): Relax test.
10020         * tests/test-fopen.h (test_fopen): Likewise.
10021         * tests/test-openat-safer.c (main): Likewise.
10022
10023         open: fix opening directory on mingw
10024         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
10025
10026         test-open: on GNU/Hurd, /dev/null is a directory
10027         * tests/test-fopen.h (main): Rename...
10028         (test_fopen): ...to this.  Use a guaranteed non-directory when
10029         confirming open behavior on trailing slash.
10030         * tests/test-openat-safer.c (main): Likewise.
10031         * tests/test-open.h (main): Likewise....
10032         (test_open): ...to this.
10033         * tests/test-fopen.c (main): Adjust caller.
10034         * tests/test-fopen-safer.c (main): Likewise.
10035         * tests/test-open.c (main): Likewise.
10036         * tests/test-fcntl-safer.c (main): Likewise.
10037         Reported by Samuel Thibault.
10038
10039         rename, fchdir: don't ignore chdir failure
10040         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
10041         * lib/rename.c (rpl_rename) [W32]: Likewise.
10042         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
10043         an empty destination directory if source cannot be renamed,
10044         although there is still possibility for failure.
10045         * doc/posix-functions/rename.texi (rename): Document the race.
10046         Reported by Jim Meyering.
10047
10048         maint: cleanup whitespace in recent commits
10049         * lib/rename.c (rpl_rename): Remove tabs.
10050         * tests/test-link.h (test_link): Likewise.
10051         * lib/fchdir.c (get_name): Likewise.
10052         Reported by Jim Meyering.
10053
10054 2009-10-02  Ben Pfaff  <blp@gnu.org>
10055
10056         relocatable-prog-wrapper: Add missing dependency on
10057         double-slash-root.
10058         * modules/relocatable-prog-wrapper: Add dependency.
10059         Reported by Ian Beckwith <ianb@erislabs.net>.
10060
10061 2009-10-02  Eric Blake  <ebb9@byu.net>
10062
10063         renameat: fix Solaris bugs
10064         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
10065         needed fixing.
10066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
10067         * modules/stdio (Makefile.am): Substitute it.
10068         * lib/stdio.in.h (renameat): Declare replacement.
10069         * lib/renameat.c (rpl_renameat): Implement fix.
10070
10071         renameat: new module
10072         * modules/renameat: New file.
10073         * lib/renameat.c (renameat): Likewise.
10074         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
10075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10076         * modules/stdio (Makefile.am): Substitute them.
10077         * lib/stdio.in.h (renameat): Declare it.
10078         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10079         * doc/posix-functions/renameat.texi (renameat): Likewise.
10080         * modules/renameat-tests: New test.
10081         * tests/test-renameat.c: Likewise.
10082
10083         rename: fix mingw bugs
10084         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
10085         directory overwrite bugs.
10086
10087         rename: fix another cygwin 1.5 bug
10088         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
10089         checks.
10090         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10091         unnecessary cygwin workarounds.  Also work around bug with moving
10092         full directory onto an empty one.
10093         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10094
10095         rename-dest-slash: merge into rename module
10096         * modules/rename-dest-slash (Status): Mark obsolete.
10097         (Depends-on): Add rename.
10098         (Files): Let rename do it all.
10099         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10100         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10101         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10102         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10103         * lib/rename.c (rpl_rename): Update comments.
10104
10105         rename: fix cygwin 1.5.x bugs
10106         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10107         * lib/rename.c (rpl_rename): Work around them.
10108         * modules/rename (Depends-on): Add same-inode.
10109
10110         rename: fix Solaris 10 bug
10111         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10112         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10113         was the only bug.
10114
10115         rename: fix Solaris 9 bug
10116         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10117         on non-directory.  Avoid calling exit.
10118         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10119         strdup.
10120         * modules/rename-tests (Depends-on): Drop lstat.
10121         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10122         (gl_PREREQ_RENAME): Delete unused macro.
10123
10124         rename-dest-slash: fix NetBSD bug
10125         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10126         links.
10127         * modules/rename-dest-slash (Depends-on): Add same-inode.
10128
10129         rename-tests: new test, exposes several platform bugs
10130         * modules/rename-tests: New file.
10131         * tests/test-rename.h: Likewise.
10132         * tests/test-rename.c: Likewise.
10133         * doc/posix-functions/rename.texi (rename): Improve documentation,
10134         including bugs that will eventually be fixed in gnulib.
10135
10136 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10137
10138         * lib/uname.c: Include <stdlib.h>
10139         (uname): Assume version info is available.
10140
10141 2009-10-02  Jim Meyering  <meyering@redhat.com>
10142
10143         gnu-web-doc-update: correct --help output
10144         * build-aux/gnu-web-doc-update: Make --help output relevant.
10145
10146         gnu-web-doc-update: add standard options
10147         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10148
10149         gnu-web-doc-update: New module.
10150         Use this script to automatically update the on-line web documentation
10151         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10152         * modules/gnu-web-doc-update: New file, from coreutils.
10153         * build-aux/gnu-web-doc-update: New script.
10154
10155 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10156
10157         link: LoadLibrary is not needed.
10158         * lib/link.c: Use GetModuleHandle.
10159
10160 2009-10-01  Eric Blake  <ebb9@byu.net>
10161
10162         getopt: bump serial number
10163         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10164         change.
10165
10166         tests: tighten link, rmdir, and remove tests
10167         * tests/test-link.h (includes): No need to use <config.h> here.
10168         Clean up if directory hard link was created, otherwise test for
10169         trailing '.'.
10170         * tests/test-linkat.c (main): Simplify.
10171         * tests/test-remove.c (main): Enhance test for trailing '.'.
10172         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10173
10174 2009-10-01  Jim Meyering  <meyering@redhat.com>
10175
10176         maint.mk: requiring "make major" was annoying, for a "minor" release.
10177         What is intended is "stable", to contrast with alpha and beta,
10178         so require "make stable", not "make major".
10179         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10180         (get_tool_versions): Likewise.
10181         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10182
10183 2009-09-30  Ben Pfaff  <blp@gnu.org>
10184
10185         Fix broken build of replacement for Windows tmpfile().
10186         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10187         flags argument added along with the 'mkostemp' module.
10188
10189 2009-09-28  Bruno Haible  <bruno@clisp.org>
10190
10191         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10192         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10193         to 'remove_elt'.
10194         (gl_list_remove): Update.
10195         * lib/gl_list.c (gl_list_remove): Update.
10196         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10197         to 'remove_elt'.
10198         (gl_oset_remove): Update.
10199         * lib/gl_list.c (gl_oset_remove): Update.
10200         Reported by Eric Blake.
10201
10202 2009-09-28  Eric Blake  <ebb9@byu.net>
10203
10204         doc: mention yet more cygwin 1.7 status
10205         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10206         cygwin.
10207         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10208         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10209
10210         argp: fix test failure
10211         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10212         that are not upper-case.  Pass correct range to tolower.
10213
10214 2009-09-27  Jim Meyering  <meyering@redhat.com>
10215
10216         test-yesno: work around sparc-dash here-document infelicity
10217         Without this change, the literal \177 byte in a here document
10218         would make dash 0.5.5.1-3 access uninitialized memory.
10219         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10220         Instead, use a marker, "@", and filter through tr to create the desired
10221         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10222
10223 2009-09-27  Bruno Haible  <bruno@clisp.org>
10224
10225         Disable untested support for new flavours of ACLs on AIX.
10226         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10227         progress.
10228         * lib/set-mode-acl.c (qset_acl): Likewise.
10229
10230 2008-12-07  Bruno Haible  <bruno@clisp.org>
10231
10232         Add support for new flavours of ACLs on AIX. (Untested.)
10233         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10234         (file_has_acl): Add support for newer AIX.
10235         * lib/set-mode-acl.c (qset_acl): Likewise.
10236         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10237         Rainer Tammer <tammer@tammer.net>.
10238
10239 2009-09-26  Eric Blake  <ebb9@byu.net>
10240
10241         argp: fix compilation of getopt
10242         * lib/getopt.in.h (includes): Use different guard than glibc.
10243         Reported by Sergey Poznyakoff.
10244
10245         doc: mention more cygwin 1.7 status
10246         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10247         bug.
10248         * doc/posix-functions/execl.texi (execl): Likewise.
10249         * doc/posix-functions/execle.texi (execle): Likewise.
10250         * doc/posix-functions/execlp.texi (execlp): Likewise.
10251         * doc/posix-functions/execv.texi (execv): Likewise.
10252         * doc/posix-functions/execve.texi (execve): Likewise.
10253         * doc/posix-functions/execvp.texi (execvp): Likewise.
10254         * doc/glibc-functions/canonicalize_file_name.texi
10255         (canonicalize_file_name): Cygwin 1.7 now provides this.
10256         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10257         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10258         on AT_SYMLINK_NOFOLLOW.
10259
10260 2009-09-24  Eric Blake  <ebb9@byu.net>
10261
10262         test-linkat: make test more robust
10263         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10264
10265         getopt: fix inclusion guards for cygwin
10266         * modules/getopt-posix (Depends-on): Add include-next.
10267         (Makefile.am): Substitute more items in replacement header.
10268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10269         <getopt.h>.
10270         * lib/getopt.in.h (includes): Use split inclusion guard, and
10271         prefer <getopt.h> over include <unistd.h> when one is present.
10272         (option): Also override name of 'struct option'.
10273
10274         same-inode: revert prior change; it is not yet ready
10275         * NEWS: Undo mention of this change.
10276         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10277         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10278         * lib/cycle-check.c (cycle_check): Likewise.
10279         * lib/same.c (same_name): Likewise.
10280         * lib/at-func2.c (at_func2): Likewise.
10281
10282 2009-09-23  Eric Blake  <ebb9@byu.net>
10283
10284         linkat: new module
10285         * modules/linkat: New file.
10286         * lib/at-func2.c (at_func2): Likewise.
10287         * lib/linkat.c (linkat): Likewise.
10288         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10289         * lib/openat-priv.h (at_func2): Add declaration.
10290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10291         * modules/unistd (Makefile.am): Substitute them.
10292         * lib/unistd.in.h (linkat): Declare it.
10293         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10294         * doc/posix-functions/linkat.texi (linkat): Likewise.
10295         * doc/posix-functions/link.texi (link): Tweak wording.
10296         * tests/test-link.c (main): Move guts...
10297         * tests/test-link.h (test_link): ...into new file.
10298         * modules/linkat-tests: New test.
10299         * tests/test-linkat.c: Likewise.
10300         * modules/link-tests (Files): Ship new file.
10301         (Depends-on): Add stdbool.
10302
10303         dirname: add library-safe mdir_name
10304         * lib/dirname.h (mdir_name): New prototype.
10305         * lib/dirname.c (dir_name): Move guts...
10306         (mdir_name): ...to new function that avoids xalloc_die.
10307
10308         fchdir: another mingw fix
10309         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10310         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10311         on mingw (where it has not yet been ported), and make it optional
10312         elsewhere.
10313         (_gl_register_fd): Use it.
10314
10315         same-inode: make SAME_INODE tri-state, to port to mingw
10316         * NEWS: Mention this change.
10317         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10318         st_ino always being 0.
10319         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10320         * lib/cycle-check.c (cycle_check): Likewise.
10321         * lib/same.c (same_name): Likewise.
10322
10323         lstat: avoid mingw compilation error
10324         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10325         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10326         lstat ourselves.
10327         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10328         was adequate.
10329         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10330         the checks for lstat.
10331         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10332
10333         link: fix test failure on Solaris 9
10334         * lib/link.c (rpl_link): Don't assume link will catch bogus
10335         trailing slash on source.
10336
10337         test-symlinkat: enhance test
10338         * tests/test-readlink.c (main): Move guts...
10339         * tests/test-readlink.h (test_readlink): ...into new file.
10340         * tests/test-symlink.c (main): Move guts...
10341         * tests/test-symlink.h (test_symlink): ...into new file.
10342         * tests/test-symlinkat.c (main): Use new files for further
10343         coverage.
10344         (do_symlink, do_readlink): New helper functions.
10345         * modules/symlink-tests (Files): Ship new file.
10346         (Depends-on): Add stdbool.
10347         * modules/readlink-tests (Files): Ship new file.
10348         (Depends-on): Add stdbool.
10349         * modules/symlinkat-tests (Files): Use new files.
10350
10351 2009-09-23  Eric Blake  <ebb9@byu.net>
10352
10353         readlink: document portability issue with symlink length
10354         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10355         systems have bogus st_size on symlinks, and mention the
10356         areadlink-with-size module.
10357         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10358         * doc/posix-functions/readlink.texi (readlink): Mention the
10359         areadlink module, and ERANGE failure.
10360         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10361         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10362
10363         readlink: fix Solaris 9 bug with trailing slash
10364         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10365         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10366         * doc/posix-functions/readlink.texi (readlink): Document this.
10367         * modules/readlink-tests: New test.
10368         * tests/test-readlink.c: Likewise.
10369
10370         readlink: fix cygwin 1.5.x bug with return type
10371         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10372         * lib/unistd.in.h (readlink): Use ssize_t.
10373         * lib/readlink.c (readlink): Likewise.
10374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10375         * modules/unistd (Makefile.am): Substitute it.
10376         * lib/unistd.in.h (readlink): Declare replacement.
10377         * doc/posix-functions/readlink.texi (readlink): Document this.
10378
10379         symlink: use throughout gnulib
10380         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10381         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10382         symlink is not used.
10383         * modules/symlinkat (Depends-on): Add symlink.
10384         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10385         * modules/canonicalize-tests (Depends-on): Likewise.
10386         * modules/lstat-tests (Depends-on): Likewise.
10387         * modules/openat-tests (Depends-on): Likewise.
10388         * modules/remove-tests (Depends-on): Likewise.
10389         * modules/rmdir-tests (Depends-on): Likewise.
10390         * modules/unlink-tests (Depends-on): Likewise.
10391         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10392         * tests/test-canonicalize.c (symlink): Likewise.
10393         * tests/test-fstatat.c (symlink): Likewise.
10394         * tests/test-lstat.c (symlink): Likewise.
10395         * tests/test-remove.c (symlink): Likewise.
10396         * tests/test-rmdir.c (symlink): Likewise.
10397         * tests/test-unlink.c (symlink): Likewise.
10398         * tests/test-unlinkat.c (symlink): Likewise.
10399
10400         symlink: new module, for Solaris 9 bug
10401         * modules/symlink: New file.
10402         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10403         * lib/symlink.c: Likewise.
10404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10405         * modules/unistd (Makefile.am): Substitute them.
10406         * lib/unistd.in.h (symlink): Declare replacement.
10407         * MODULES.html.sh (File system functions): Mention it.
10408         * doc/posix-functions/symlink.texi (symlink): Likewise.
10409         * modules/symlink-tests: New test.
10410         * tests/test-symlink.c: Likewise.
10411
10412 2009-09-23  Bruno Haible  <bruno@clisp.org>
10413
10414         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10415         when needed.
10416         Test case: gnulib-tool --import --with-tests atexit inttypes.
10417         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10418
10419 2009-09-23  Bruno Haible  <bruno@clisp.org>
10420
10421         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10422         subcommand, not in a subshell.
10423
10424 2009-09-22  Eric Blake  <ebb9@byu.net>
10425
10426         unistd: sort replacement declarations
10427         * lib/unistd.in.h: Sort declarations.
10428
10429         open, openat: minor optimization
10430         * lib/open.c (open): If open succeeded, len is non-zero.
10431         * lib/openat.c (rpl_openat): Likewise.
10432
10433         link-follow: ensure correct result
10434         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10435         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10436         distinguish between possible failures.
10437
10438 2009-09-21  Eric Blake  <ebb9@byu.net>
10439
10440         fts: avoid compiler warning
10441         * lib/fts.c (dirent_inode_sort_may_be_useful)
10442         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10443
10444 2009-09-19  Bruno Haible  <bruno@clisp.org>
10445
10446         * lib/progreloc.c (canonicalize_file_name): New declaration.
10447
10448 2009-09-19  Eric Blake  <ebb9@byu.net>
10449
10450         link: fix quoting
10451         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10452
10453         openat: fix openat bugs on Solaris 9
10454         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10455         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10456         * modules/openat (Depends-on): Add open.
10457         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10458         * modules/fcntl-h (Makefile.am): Substitute it.
10459         * lib/fcntl.in.h (openat): Declare replacement.
10460         * doc/posix-functions/openat.texi (openat): Document this.
10461
10462         openat: move fstatat and unlinkat into correct files
10463         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10464         compiled.
10465         * lib/openat.c (fstatat, unlinkat): Move...
10466         * lib/fstatat.c (fstatat): ...into correct files.
10467         * lib/unlinkat.c (unlinkat): Likewise.
10468
10469         openat: fix unlinkat bugs on Solaris 9
10470         * lib/unlinkat.c (unlinkat): New file.
10471         * modules/openat (Depends-on): Add unlink.
10472         (Files): Distribute it.
10473         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10474         trailing slash behavior is broken.
10475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10476         * modules/unistd (Makefile.am): Substitute it.
10477         * lib/unistd.in.h (unlinkat): Declare replacement.
10478         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10479
10480         openat: fix fstatat bugs on Solaris 9
10481         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10482         stat.
10483         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10484
10485         test-unlinkat: enhance test, to expose Solaris 9 bug
10486         * tests/test-unlink.c (main): Factor guts...
10487         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10488         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10489         * tests/test-rmdir.c (main): Adjust caller.
10490         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10491         (unlinker): New helper function.
10492         (rmdirat): Enhance check.
10493         * modules/rmdir-tests (Depends-on): Add stdbool.
10494         * modules/unlink-tests (Depends-on): Likewise.
10495         (Files): Add test-unlink.h.
10496         * modules/openat-tests (Files): Likewise.
10497         (Depends-on): Add unlinkdir.
10498
10499         test-fstatat: new test, to expose Solaris 9 bugs
10500         * tests/test-stat.c (main): Factor guts...
10501         * tests/test-stat.h (test_stat_func): ...into new file.
10502         * tests/test-lstat.c (main): Factor guts...
10503         * tests/test-lstat.h (test_lstat_func): ...into new file.
10504         * tests/test-fstatat.c: New file.
10505         * modules/stat-tests (Files): Add test-stat.h.
10506         * modules/lstat-tests (Files): Add test-lstat.h.
10507         (Depends-on): Add stdbool.
10508         * modules/openat-tests (Depends-on): Add pathmax.
10509         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10510         (Makefile.am): Run new test.
10511
10512         remove: new module, for mingw and Solaris 9 bugs
10513         * modules/remove: New file.
10514         * lib/remove.c: Likewise.
10515         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10517         * modules/stdio (Makefile.am): Use them.
10518         * lib/stdio.in.h (remove): Declare replacement.
10519         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10520         * doc/posix-functions/remove.texi (remove): Likewise.
10521         * modules/remove-tests: New test.
10522         * tests/test-remove.c: Likewise.
10523
10524         unlink: new module, for Solaris 9 bug
10525         * modules/unlink: New file.
10526         * lib/unlink.c: Likewise.
10527         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10529         * modules/unistd (Makefile.am): Use them.
10530         * lib/unistd.in.h (stat): Declare replacement.
10531         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10532         * doc/posix-functions/unlink.texi (unlink): Likewise.
10533         * modules/unlink-tests: New test.
10534         * tests/test-unlink.c: Likewise.
10535
10536         lstat: fix Solaris 9 bug
10537         * lib/lstat.c (lstat): Also check for trailing slash on
10538         non-symlink, non-directories.  Use stat module to simplify logic.
10539         * doc/posix-functions/lstat.texi (lstat): Document it.
10540         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10541         (configure.ac): Check for symlink.
10542         * tests/test-lstat.c (main): Add more tests.
10543
10544         stat: add as dependency to other modules
10545         * modules/chown (Depends-on): Add stat.
10546         * modules/euidaccess (Depends-on): Likewise.
10547         * modules/fchdir (Depends-on): Likewise.
10548         * modules/isdir (Depends-on): Likewise.
10549         * modules/link (Depends-on): Likewise.
10550         * modules/lstat (Depends-on): Likewise.
10551         * modules/mkdir-p (Depends-on): Likewise.
10552         * modules/modechange (Depends-on): Likewise.
10553         * modules/open (Depends-on): Likewise.
10554         * modules/readlink (Depends-on): Likewise.
10555         * modules/same (Depends-on): Likewise.
10556
10557         stat: fix Solaris 9 bug
10558         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10559         slash.
10560         * lib/stat.c (rpl_stat): Work around it.
10561         * doc/posix-functions/stat.texi (stat): Update documentation.
10562
10563         stat: new module, for mingw bug
10564         * modules/stat: New file.
10565         * lib/stat.c: Likewise.
10566         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10567         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10568         * modules/sys_stat (Makefile.am): Use them.
10569         * lib/sys_stat.in.h (stat): Declare replacement.
10570         * lib/openat.c (fstatat): Deal with lstat and stat being function
10571         macros.
10572         * modules/openat (Depends-on): Add inline.
10573         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10574         * doc/posix-functions/stat.texi (stat): Likewise.
10575         * modules/stat-tests: New test.
10576         * tests/test-stat.c: Likewise.
10577
10578 2009-09-19  Jim Meyering  <meyering@redhat.com>
10579
10580         syntax-check: detect unnecessary inclusion of canonicalize.h
10581         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10582
10583 2009-09-19  Eric Blake  <ebb9@byu.net>
10584
10585         canonicalize-lgpl: adjust clients to use correct header
10586         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10587         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10588         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10589         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10590         * lib/progreloc.c (includes): Likewise.
10591
10592 2009-09-19  Jim Meyering  <meyering@redhat.com>
10593
10594         test-posixtm.c: correct a comment
10595         * tests/test-posixtm.c: Correct first-line comment.
10596         Spotted by Eric Blake.
10597
10598 2009-09-16  Jim Meyering  <meyering@redhat.com>
10599
10600         posixtm-tests: make T const-correct; add a test case
10601         * tests/test-posixtm.c (T): Declare const.
10602         Add a test for -(2^31+1).
10603         Remove useless can-succeed-only-in-2002 test.
10604
10605         posixtm-tests: adjust the sole failing test
10606         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10607         expected output matches what mktime now produces.  Cross-checked via
10608         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10609
10610         posixtm: move #ifdef'd tests into a new module
10611         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10612         * tests/test-posixtm.c: ... this new file.
10613         * modules/posixtm-tests: New module.
10614
10615 2009-09-19  Eric Blake  <ebb9@byu.net>
10616
10617         openat: simplify use of at-func.c
10618         * lib/at-func.c (includes): Include prerequisites here, to
10619         simplify requirements on client files.
10620         * lib/openat-priv.h: Add double-inclusion guard.
10621         * lib/faccessat.c (includes): Simplify.
10622         * lib/fchmodat.c (includes): Likewise.
10623         * lib/fchownat.c (includes): Likewise.
10624         * lib/mkdirat.c (includes): Likewise.
10625         * lib/mkfifoat.c (includes): Likewise.
10626         * lib/symlinkat.c (includes): Likewise.
10627
10628         openat: allow return of fd 0
10629         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10630         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10631         unistd-safer.
10632         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10633         <fcntl.h>; this module does not leak fds.
10634         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10635         must be allowed to return 0, leaving openat_safer to add the
10636         safety.
10637         (openat_permissive): Avoid writing to just-opened fd 2 if
10638         restoring the current directory fails.
10639         * lib/openat-die.c (openat_restore_fail): Add comment.
10640         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10641         (save_cwd): Guarantee safe fd, but without use of open_safer.
10642         * tests/test-openat.c: New test.
10643         * modules/openat-tests (Files, Makefile.am): Distribute and build
10644         new file.
10645
10646         relocatable-prog-wrapper: fix build
10647         * modules/relocatable-prog-wrapper (Files): Update name of
10648         canonicalize m4 file, broken on 2009-09-17.
10649         Reported by emad hajjar <aleppos@hotmail.com>.
10650
10651 2009-09-19  Bruno Haible  <bruno@clisp.org>
10652
10653         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10654         * lib/safe-alloc.c: Likewise.
10655         Reported by Ian Beckwith <ianb@erislabs.net>.
10656
10657 2009-09-18  Bruno Haible  <bruno@clisp.org>
10658
10659         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10660         Reported by <erobles@sensacd.com.mx>.
10661
10662 2009-09-17  Eric Blake  <ebb9@byu.net>
10663
10664         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10665         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10666         slashes when checking if last component is missing.
10667         * tests/test-canonicalize.c (main): Test this.
10668
10669         canonicalize, canonicalize-lgpl: honor // if distinct from /
10670         * modules/canonicalize (Files): Add double-slash-root.m4.
10671         * modules/canonicalize-lgpl (Files): Likewise.
10672         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10673         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10674         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10675         fallback definition.
10676         (canonicalize_filename_mode): Use it to protect //.
10677         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10678         (__realpath): Likewise.
10679         * tests/test-canonicalize.c (main): Test this.
10680         * tests/test-canonicalize-lgpl.c (main): Likewise.
10681         * modules/canonicalize-tests (Depends-on): Add same-inode.
10682         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10683
10684         canonicalize-lgpl: fix glibc bug with trailing slash
10685         * m4/canonicalize-lgpl.m4: Move contents...
10686         * m4/canonicalize.m4: ...here.
10687         (gl_CANONICALIZE_LGPL): Factor realpath check...
10688         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10689         glibc 2.3.5 bug, fixed 2005-04-27.
10690         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10691         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10692         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10693         * modules/canonicalize-lgpl (Files): Manage file rename.
10694         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10695         * modules/stdlib (Makefile.am): Substitute witness.
10696         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10697         is needed.
10698         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10699         replacement is required.
10700         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10701         * doc/glibc-functions/canonicalize_file_name.texi
10702         (canonicalize_file_name): Document this.
10703         * doc/posix-functions/realpath.texi (realpath): Likewise.
10704
10705         canonicalize-lgpl: reject non-directory with trailing slash
10706         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10707         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10708         catches failures in glibc 2.3.5.
10709         * tests/test-canonicalize.c (main): Likewise.
10710
10711         canonicalize-lgpl: use native realpath if it works
10712         * lib/canonicalize-lgpl.c (realpath): Guard with
10713         FUNC_REALPATH_WORKS.
10714         * lib/stdlib.in.h (realpath): Make declaration optional based on
10715         HAVE_REALPATH.
10716         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10717         native realpath works.
10718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10719         * modules/stdlib (Makefile.am): Substitute witness.
10720
10721         canonicalize, canonicalize-lgpl: use <stdlib.h>
10722         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10723         (Include): Mention <stdlib.h>.
10724         (configure.ac): Mention functions we provide.
10725         * modules/canonicalize (configure.ac): Likewise.
10726         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10727         realpath if canonicalize_file_name is missing.
10728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10729         * modules/stdlib (Makefile.am): Substitute witnesses.
10730         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10731         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10732         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10733         * NEWS: Document this.
10734         * doc/glibc-functions/canonicalize_file_name.texi
10735         (canonicalize_file_name): Likewise.
10736         * doc/posix-functions/realpath.texi (realpath): Likewise.
10737         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10738
10739         test-canonicalize: consolidate into single C program
10740         * tests/test-canonicalize.sh: Delete; move setup into...
10741         * tests/test-canonicalize.c (main): ...the program, making it
10742         easier to run in debugger.  Add some tests.
10743         * modules/canonicalize-tests (Files): Remove unused file.
10744         (Depends-on): Add progname.
10745         (configure.ac, Makefile.am): Simplify.
10746
10747         test-canonicalize-lgpl: consolidate into single C program
10748         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10749         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10750         easier to run in debugger.  Add some tests.
10751         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10752         (configure.ac, Makefile.am): Simplify.
10753
10754         canonicalize: avoid resolvepath
10755         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10756         unnecessary checks.
10757         * lib/canonicalize.c (includes): Simplify.
10758         (canonicalize_file_name): Drop resolvepath implementation.
10759         * modules/canonicalize (Depends-on): Drop filenamecat.
10760
10761         canonicalize: don't lose errno
10762         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10763         over calls to free.
10764
10765         canonicalize: simplify errno handling
10766         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10767         assignment.
10768
10769         canonicalize, canonicalize-lgpl: update module dependencies
10770         * modules/canonicalize (Depends-on): Add extensions, lstat,
10771         pathmax, stdlib.
10772         (Files): Drop pathmax.h.
10773         (configure.ac): Adjust macro name.
10774         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10775         lstat, stdlib, sys_stat.
10776         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10777         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10778         extensions.
10779         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10780         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10781         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10782         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10783         declaration, if available.
10784         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10785         we can rely on the readlink module.
10786         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10787         (includes): Use <unistd.h> unconditionally.
10788
10789 2009-09-17  Eric Blake  <ebb9@byu.net>
10790
10791         maint: make Include sections of modules consistent
10792         * modules/alloca: Use only header name; no need to list #include.
10793         * modules/alloca-opt: Likewise.
10794         * modules/arpa_inet: Likewise.
10795         * modules/canon-host: Likewise.
10796         * modules/configmake: Likewise.
10797         * modules/dirent: Likewise.
10798         * modules/eealloc: Likewise.
10799         * modules/environ: Likewise.
10800         * modules/fchdir: Likewise.
10801         * modules/fcntl: Likewise.
10802         * modules/fcntl-h: Likewise.
10803         * modules/gethrxtime: Likewise.
10804         * modules/gettime: Likewise.
10805         * modules/ignore-value: Likewise.
10806         * modules/inet_ntop: Likewise.
10807         * modules/inet_pton: Likewise.
10808         * modules/inttypes: Likewise.
10809         * modules/isnand-nolibm: Likewise.
10810         * modules/isnanf-nolibm: Likewise.
10811         * modules/mbchar: Likewise.
10812         * modules/mbfile: Likewise.
10813         * modules/mbiter: Likewise.
10814         * modules/mbuiter: Likewise.
10815         * modules/netdb: Likewise.
10816         * modules/netinet_in: Likewise.
10817         * modules/nproc: Likewise.
10818         * modules/pagealign_alloc: Likewise.
10819         * modules/poll: Likewise.
10820         * modules/printf-frexp: Likewise.
10821         * modules/pthread: Likewise.
10822         * modules/putenv: Likewise.
10823         * modules/random_r: Likewise.
10824         * modules/relocatable-prog: Likewise.
10825         * modules/search: Likewise.
10826         * modules/select: Likewise.
10827         * modules/selinux-h: Likewise.
10828         * modules/settime: Likewise.
10829         * modules/signal: Likewise.
10830         * modules/size_max: Likewise.
10831         * modules/socklen: Likewise.
10832         * modules/ssize_t: Likewise.
10833         * modules/stdarg: Likewise.
10834         * modules/stdbool: Likewise.
10835         * modules/stddef: Likewise.
10836         * modules/stdint: Likewise.
10837         * modules/stdio: Likewise.
10838         * modules/stdlib: Likewise.
10839         * modules/string: Likewise.
10840         * modules/strings: Likewise.
10841         * modules/sys_file: Likewise.
10842         * modules/sys_ioctl: Likewise.
10843         * modules/sys_select: Likewise.
10844         * modules/sys_socket: Likewise.
10845         * modules/sys_stat: Likewise.
10846         * modules/sys_time: Likewise.
10847         * modules/sys_times: Likewise.
10848         * modules/sys_utsname: Likewise.
10849         * modules/sys_wait: Likewise.
10850         * modules/sysexits: Likewise.
10851         * modules/time: Likewise.
10852         * modules/times: Likewise.
10853         * modules/tmpfile: Likewise.
10854         * modules/trim: Likewise.
10855         * modules/unistd: Likewise.
10856         * modules/wchar: Likewise.
10857         * modules/wctype: Likewise.
10858
10859 2009-09-17  Bruno Haible  <bruno@clisp.org>
10860
10861         Make getdate.y compile on QNX and NetBSD 5 / i386.
10862         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10863         TIME_T_FITS_IN_LONG_INT.
10864         * lib/getdate.y (long_time_t): New type.
10865         (relative_time): Change type of 'seconds' field to long_time_t.
10866         (get_date): Update types of local variables. Check against overflow
10867         during conversion from long_time_t to time_t.
10868         Reported by Matt Kraai <kraai@ftbfs.org>
10869         and Hasso Tepper <hasso@netbsd.org>.
10870
10871 2009-09-17  Bruno Haible  <bruno@clisp.org>
10872
10873         * modules/COPYING: Update copyright years.
10874         * modules/README: Likeiwse.
10875         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10876         Reported by Ian Beckwith <ianb@erislabs.net>.
10877
10878 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10879
10880         * users.txt: Update references for gnuit package.
10881
10882 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10883
10884         * m4/getdelim.m4: Fix typo in copyright line.
10885
10886 2009-09-17  Bruno Haible  <bruno@clisp.org>
10887
10888         * lib/atoll.c: Use the standard header with GPL copyright.
10889         * lib/argz.in.h: Likewise.
10890         * lib/glob.c: Likewise.
10891         * lib/glob-libc.h: Likewise.
10892         * lib/random_r.c: Likewise.
10893         * lib/siglist.h: Likewise.
10894         * lib/strsignal.c: Likewise.
10895         Reported by Ian Beckwith <ianb@erislabs.net>.
10896
10897 2009-09-17  Eric Blake  <ebb9@byu.net>
10898
10899         rmdir: ensure correct dependency order
10900         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10901
10902 2009-09-17  Bruno Haible  <bruno@clisp.org>
10903
10904         Disable assertion that fails on NetBSD 5 / i386.
10905         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10906         Reported by Sam Steingold <sds@gnu.org>
10907         and Hasso Tepper <hasso@netbsd.org>.
10908
10909 2009-09-16  Eric Blake  <ebb9@byu.net>
10910
10911         unlinkdir: port to mingw
10912         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10913         on which no one can unlink a directory.
10914
10915         stdlib: sort witness names
10916         * modules/stdlib (Makefile.am): Sort replacements.
10917         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10918         * lib/stdlib.in.h: Likewise.
10919
10920         parse-duration-tests: avoid link failure
10921         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10922         LIBINTL.
10923         Reported by Tom G. Christensen.
10924
10925         openat-tests: ensure unlinkat behaves like rmdir
10926         * tests/test-rmdir.c (main): Factor guts...
10927         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10928         * modules/rmdir-tests (Files): Ship new file.
10929         * modules/openat-tests: New test.
10930         * tests/test-unlinkat.c: Likewise.
10931
10932         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10933         * modules/rmdir-errno (Status, Notice): Now obsolete.
10934
10935         rmdir: work around cygwin 1.5.x and mingw bugs
10936         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10937         * lib/rmdir.c (rmdir): Work around it.
10938         * modules/rmdir (Status, Notice): No longer obsolete.
10939         (Files): Add dos.m4.
10940         (Depends-on): Add unistd.
10941         (configure.ac): Set witnesses.
10942         (License): Relax to LGPLv2+.
10943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10944         * modules/unistd (Makefile.am): Substitute witnesses.
10945         * lib/unistd.in.h (rmdir): Declare replacement.
10946         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10947         * modules/rmdir-tests: New tests.
10948         * tests/test-rmdir.c: Likewise.
10949
10950 2009-09-15  Eric Blake  <ebb9@byu.net>
10951
10952         fchdir: improve use of replacement functions
10953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10954         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10955         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10956         REPLACE_CLOSEDIR.
10957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10958         * modules/sys_stat (Makefile.am): Substitute correct witness.
10959         * modules/dirent (Makefile.am): Likewise.
10960         * modules/unistd (Makefile.am): Likewise.
10961         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10962         * lib/unistd.in.h (dup): Likewise.
10963         * lib/sys_stat.in.h (fstat): Likewise.
10964
10965         maint: ignore gnulib-tool temp files
10966         * .gitignore: Ignore files created during gnulib-tool --test.
10967
10968 2009-09-13  Jim Meyering  <meyering@redhat.com>
10969
10970         posixtm: don't reject a time that specify "60" as the number of seconds
10971         * lib/posixtm.c (posixtime): The code to reject invalid dates
10972         would also reject a time specified with the .60 suffix.
10973         But POSIX allows that, in order to accommodate leap seconds.
10974         So don't reject it.
10975         (main): Adjust tests accordingly.
10976         * modules/posixtm (Depends-on): Add stpcpy.
10977
10978 2009-09-11  Jim Meyering  <meyering@redhat.com>
10979
10980         announce-gen: include [$release_type] in emitted Subject:
10981         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10982         e.g., [stable] in the emitted Subject: line.
10983
10984 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10985
10986         Remove obsolete macros from several modules.
10987         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10988         obsolete Autoconf macros with their modern counterparts.
10989         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10990         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10991         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10992         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10993         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10994         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10995         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10996         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10997         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10998         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10999         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11000         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11001         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11002         * m4/sockets.m4 (gl_SOCKETS): Likewise.
11003         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
11004         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
11005         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11006         * m4/time_r.m4 (gl_TIME_R): Likewise.
11007         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11008         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
11009         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11010
11011         Fix copyright header in build-aux scripts.
11012         * build-aux/git-version-gen: Fix copyright header to match GPLv3
11013         recommendation.
11014         * build-aux/ncftpput-ftp: Likewise.
11015         * build-aux/update-copyright: Likewise.
11016
11017 2009-09-09  Eric Blake  <ebb9@byu.net>
11018
11019         test-link: allow Linux choice of errno
11020         * tests/test-link.c (main): Relax test for alternate error.
11021
11022         strndup: fix improper m4 caching
11023         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
11024         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
11025         (gl_PREREQ_STRNDUP): Delete.
11026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
11027         * modules/string (Makefile.am): Substitute it.
11028         * lib/string.in.h (strndup): Modernize prototype.
11029
11030         getcwd: port to mingw
11031         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
11032         different from the POSIX assumptions made throughout the getcwd
11033         module; fortunately, the mingw getcwd does not need replacement.
11034         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
11035         * modules/getcwd-tests: New test.
11036         * tests/test-getcwd.c: Likewise.
11037
11038         link: fix platform bugs
11039         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
11040         * lib/link.c (link): Work around them.  Fix related mingw bug.
11041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
11042         * modules/unistd (Makefile.am): Substitute it.
11043         * lib/unistd.in.h (link): Declare replacement.
11044         * doc/posix-functions/link.texi (link): Document this.
11045         * modules/link (Depends-on): Add strdup-posix, sys_stat.
11046
11047         test-link: consolidate into single C program, test more cases
11048         * tests/test-link.sh: Delete.
11049         * tests/test-link.c: Test more error conditions.  Exposes bugs on
11050         at least Cygwin and Solaris.
11051         * modules/link-tests (Files): Remove unused file.
11052         (Depends-on): Add errno, sys_stat.
11053         (Makefile.am): Simplify.
11054
11055 2009-09-08  Bruno Haible  <bruno@clisp.org>
11056
11057         Work around towlower, towupper bug on mingw.
11058         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
11059         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
11060         * doc/posix-functions/towlower.texi: Mention the mingw bug.
11061         * doc/posix-functions/towupper.texi: Likewise.
11062         Reported by Eric Blake.
11063
11064 2009-09-08  Jim Meyering  <meyering@redhat.com>
11065
11066         build: don't try to run autoheader if we don't use it
11067         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
11068         is not used in configure.ac.
11069
11070 2009-09-08  Eric Blake  <ebb9@byu.net>
11071
11072         euidaccess: fix compilation error
11073         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
11074
11075         rawmemchr: relax license
11076         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
11077         okay.
11078         Reported by Jim Meyering.
11079
11080         mkfifoat: new module
11081         * modules/mkfifoat: New file.
11082         * lib/mkfifoat.c: Likewise.
11083         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
11084         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11085         * modules/sys_stat (Makefile.am): Use them.
11086         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
11087         * MODULES.html.sh (File system functions): Mention module.
11088         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
11089         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
11090         * modules/mkfifoat-tests: New test.
11091         * tests/test-mkfifoat.c: Likewise.
11092
11093         strchrnul: relax license
11094         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11095         okay.
11096         Reported by Jim Meyering.
11097
11098 2009-09-08  Eric Blake  <ebb9@byu.net>
11099
11100         fstatat: fix compilation on Solaris
11101         * lib/fstatat.c (includes): Add fcntl.h.
11102         Reported by Pádraig Brady.
11103
11104 2009-09-07  Eric Blake  <ebb9@byu.net>
11105
11106         rename: modernize replacement
11107         * modules/rename (Depends-on): Add stdio.
11108         (configure.ac): Declare witness.
11109         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11110         stdio take care of replacement.
11111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11112         * modules/stdio (Makefile.am): Substitute them.
11113         * lib/stdio.in.h (rename): Declare replacement.
11114         * lib/rename.c (includes): Allow cross-compilation to non-windows
11115         machines.
11116         * doc/posix-functions/rename.texi (rename): Improve
11117         documentation.
11118
11119         stdio: sort witness names
11120         * modules/stdio (Makefile.am): Sort replacements.
11121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11122         * lib/stdio.in.h: Likewise.
11123
11124         getcwd: minor cleanups
11125         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11126         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11127
11128         openat: provide more convenience names
11129         * modules/faccessat (configure.ac): Add C witness.
11130         * lib/unistd.in.h (readlinkat): Fix typo.
11131         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11132         convenience wrappers.
11133         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11134         wrappers in syntax checks.
11135
11136 2009-09-06  Eric Blake  <ebb9@byu.net>
11137
11138         doc: fix comments in recent patches
11139         * lib/faccessat.c: Mention correct function.
11140         * lib/fchmodat.c: Likewise.
11141         * lib/fchownat.c: Likewise.
11142         * lib/symlinkat.c: Likewise.
11143         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11144         constants.
11145
11146         faccessat, symlinkat: continue cleanup of previous patch
11147         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11148         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11149         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11151         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11152         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11153         set.
11154
11155 2009-09-06  Bruno Haible  <bruno@clisp.org>
11156
11157         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11158         (fstatat): Declare if GNULIB_FSTATAT is set.
11159         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11160         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11161         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11162         * modules/fcntl-h (Files): Remove m4/openat.m4.
11163         * modules/sys_stat (Files): Remove m4/openat.m4.
11164         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11165         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11166         * modules/unistd (Files): Remove m4/openat.m4.
11167         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11168         GNULIB_OPENAT.
11169         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11170         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11171         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11172         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11173         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11174         gl_OPENAT_DEFAULTS.
11175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11176         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11177         Don't require gl_OPENAT_DEFAULTS.
11178         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11179         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11180         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11181         (gl_OPENAT_DEFAULTS): Remove macro.
11182
11183 2009-09-06  Bruno Haible  <bruno@clisp.org>
11184
11185         * modules/openat (configure.ac): Remove unneeded witness.
11186
11187 2009-09-06  Bruno Haible  <bruno@clisp.org>
11188
11189         Set errno to ENOSYS when a function is entirely unsupported.
11190         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11191         EOPNOTSUPP.
11192         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11193         * modules/chown (Depends-on): Remove errno.
11194
11195 2009-09-06  Bruno Haible  <bruno@clisp.org>
11196
11197         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11198
11199 2009-09-06  Bruno Haible  <bruno@clisp.org>
11200
11201         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11202
11203 2009-09-06  Ben Pfaff  <blp@gnu.org>
11204             Bruno Haible  <bruno@clisp.org>
11205
11206         Work around a glibc bug in strtok_r.
11207         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11208         Undefine if UNDEFINE_STRTOK_R is set.
11209         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11211         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11212         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11213         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11214         UNDEFINE_STRTOK_R.
11215         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11216
11217 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11218
11219         exclude: minor fix
11220         * lib/exclude.c: Include wctype.h
11221
11222 2009-09-06  Akim Demaille  <demaille@gostai.com>
11223
11224         bootstrap: improve error message
11225         * build-aux/bootstrap (find_tool): Upon failure, report the list
11226         of candidates.
11227         Honor the initial value of the envvar.
11228
11229 2009-09-05  Eric Blake  <ebb9@byu.net>
11230
11231         symlinkat: new module
11232         * modules/symlinkat: New file.
11233         * lib/symlinkat.c: Likewise.
11234         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11236         * modules/unistd (Makefile.am): Use them.
11237         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11238         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11239         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11240         * MODULES.html.sh (File system functions): Mention module.
11241         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11242         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11243         * modules/symlinkat-tests: New test.
11244         * tests/test-symlinkat.c: Likewise.
11245
11246         test-openat-safer: add more checks
11247         * tests/test-openat-safer.c (main): Check more code paths.
11248
11249 2009-09-05  Jim Meyering  <meyering@redhat.com>
11250
11251         syntax-check: detect unnecessary inclusion of openat.h
11252         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11253
11254 2009-09-05  Bruno Haible  <bruno@clisp.org>
11255
11256         Support towlower, towupper.
11257         * doc/posix-functions/towlower.texi: Mention module wctype.
11258         * doc/posix-functions/towupper.texi: Likewise.
11259         * lib/wctype.in.h (towlower, towupper): New functions.
11260         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11261         (ASSERT): New macro.
11262         (e): New variable.
11263         (main): Test also towlower, towupper. Test WEOF argument.
11264         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11265
11266 2009-09-05  Bruno Haible  <bruno@clisp.org>
11267
11268         Fix conversion behaviour when the input is invalid.
11269         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11270         mark occurring in first pass of indirect conversion.
11271         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11272         input.
11273         Found by clang's static analyzer.
11274
11275 2009-09-05  Bruno Haible  <bruno@clisp.org>
11276
11277         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11278         where direct conversion is possible.
11279
11280 2009-09-04  Eric Blake  <ebb9@byu.net>
11281
11282         openat: fail with ENOENT on empty name
11283         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11284         buffer.
11285
11286         link-follow: fix logic bug in prior patch
11287         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11288         reversed sense of yes and no in prior patch.  Avoid confusing
11289         compilation failure with desired semantics.
11290
11291         link-follow: accomodate mingw and cross-compilation
11292         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11293         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11294         cross-compilation results to -1, to make linkat easier to
11295         implement when cross-compiling.  Trivially support mingw.
11296         * modules/link-follow (configure.ac): Call new name.
11297         * NEWS: Mention this.
11298
11299 2009-09-03  Eric Blake  <ebb9@byu.net>
11300
11301         faccessat: compile replacement
11302         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11303         needed.
11304
11305         fts: fix compilation error
11306         * lib/fts.c (includes): Re-add "openat.h", for
11307         openat_needs_fchdir.
11308
11309         faccessat: new module
11310         * modules/faccessat: New file.
11311         * lib/faccessat.c: Likewise.
11312         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11314         * modules/unistd (Makefile.am): Use it.
11315         * lib/unistd.in.h (faccessat): Declare it.
11316         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11317         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11318         * MODULES.html.sh (File system functions): Mention it.
11319         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11320         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11321
11322         euidaccess: prefer POSIX over non-standard implementation
11323         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11324         * lib/euidaccess.c (euidaccess): Use it if available.
11325
11326         openat: make template easier to use
11327         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11328         AT_FUNC_F2 to be undefined.
11329         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11330         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11331         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11332         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11333         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11334         Likewise.
11335         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11336         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11337         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11338         Likewise.
11339
11340         openat: declare in POSIX headers
11341         * NEWS: Mention this.
11342         * modules/openat (configure.ac): Declare witnesses.
11343         (Depends-on): Add fcntl-h, sys_stat, unistd.
11344         (Include): Mention correct headers.
11345         * modules/fcntl-h (Depends-on): Add link-warning.
11346         (Files): Add openat.m4.
11347         (Makefile.am): Substitute witnesses.
11348         * modules/sys_stat (Files, Makefile.am): Likewise.
11349         * modules/unistd (Files, Makefile.am): Likewise.
11350         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11351         (gl_OPENAT_DEFAULTS): New macro.
11352         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11354         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11355         (SYS_STAT_H): Remove unused variable.
11356         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11357         * lib/fcntl--.h (includes): Remove unneeded header.
11358         * lib/openat-safer.c (includes): Likewise.
11359         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11360         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11361         appropriate headers.
11362         (__OPENAT_PREFIX): Delete.
11363         * lib/fcntl.in.h (openat): Provide declaration.
11364         (AT_FDCWD): Fix Solaris bug.
11365         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11366         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11367         * lib/fchmodat.c (includes):  Adjust to find declaration.
11368         * lib/fchownat.c (includes): Likewise.
11369         * lib/mkdirat.c (includes): Likewise.
11370         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11371         still visible.
11372
11373 2009-09-02  Eric Blake  <ebb9@byu.net>
11374
11375         errno: use consistently
11376         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11377         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11378         * lib/canonicalize.c (ELOOP): Likewise.
11379         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11380         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11381         * lib/lchown.c (EOPNOTSUPP): Likewise.
11382         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11383         * lib/savewd.c (ESTALE): Likewise.
11384         * lib/settime.c (ENOSYS): Likewise.
11385         * lib/utimens.c (ENOSYS): Likewise.
11386         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11387         * lib/chdir-safer.c (ELOOP): Likewise.
11388         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11389         * modules/c-stack (Depends-on): Add errno.
11390         * modules/canonicalize (Depends-on): Likewise.
11391         * modules/chdir-safer (Depends-on): Likewise.
11392         * modules/fdopendir (Depends-on): Likewise.
11393         * modules/inet_ntop (Depends-on): Likewise.
11394         * modules/inet_pton (Depends-on): Likewise.
11395         * modules/lchown (Depends-on): Likewise.
11396         * modules/openat (Depends-on): Likewise.
11397         * modules/savewd (Depends-on): Likewise.
11398         * modules/settime (Depends-on): Likewise.
11399         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11400
11401         fts: avoid leaking fds
11402         * modules/fts (Depends-on): Add cloexec.
11403         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11404         flag.
11405
11406         fts: make directory fds more robust
11407         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11408         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11409
11410         backupfile, chdir-long, fts, savedir: make safer
11411         * lib/backupfile.c (includes): Use "dirent--.h", since
11412         numbered_backup can write to stderr during readdir.
11413         * lib/savedir.c (includes): Likewise.
11414         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11415         emulation can write to stderr on failure.
11416         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11417         * lib/getcwd.c: Document why opendir_safer is unused.
11418         * lib/glob.c: Likewise.
11419         * lib/scandir.c: Likewise.
11420         * lib/openat-proc.c: Likewise, for open_safer.
11421         * modules/backupfile (Depends-on): Add dirent-safer.
11422         * modules/savedir (Depends-on): Likewise.
11423         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11424         * modules/chdir-long (Depends-on): Add openat-safer.
11425
11426         openat-safer: new module
11427         * modules/openat-safer: New file.
11428         * lib/openat-safer.c: Likewise.
11429         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11430         * lib/fcntl-safer.h (openat_safer): Declare.
11431         * lib/fcntl--.h (openat): Override.
11432         * MODULES.html.sh (File descriptor based I/O): Mention it.
11433         * lib/openat.h: Add double-inclusion guards.
11434         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11435         "fcntl--.h", so we can implement openat.
11436         * modules/openat-safer-tests: New test.
11437         * tests/test-openat-safer.c: New file.
11438
11439         dirent-safer: new module
11440         * modules/dirent-safer: New file.
11441         * lib/dirent--.h: Likewise.
11442         * lib/dirent-safer.h: Likewise.
11443         * lib/opendir-safer.c: Likewise.
11444         * m4/dirent-safer.m4: Likewise.
11445         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11446         * modules/dirent-safer-tests: New test.
11447         * tests/test-dirent-safer.c: New file.
11448         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11449
11450         fdopendir: optimize on mingw
11451         * lib/unistd.in.h (_gl_directory_name): New prototype.
11452         * lib/fchdir.c (_gl_directory_name): Implement it.
11453         (fchdir): Use it to simplify implementation.
11454         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11455         fchdir, when available, to avoid calling [f]chdir().
11456
11457         fdopendir: split into its own module
11458         * lib/openat.c (fdopendir): Move...
11459         * lib/fdopendir.c: ...into new file.
11460         * modules/fdopendir: New module.
11461         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11462         * modules/openat (Depends-on): Add fdopendir.
11463         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11464         fdopendir here.
11465         * modules/savedir (Depends-on): Only need fdopendir, not full
11466         openat.
11467         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11468         * lib/openat.h (fdopendir): Drop prototype.
11469         * lib/dirent.in.h (fdopendir): Provide prototype.
11470         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11471         * modules/dirent (Makefile.am): Substitute them.
11472         * MODULES.html.sh (File system functions): Mention it.
11473         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11474         * modules/fdopendir-tests: New file.
11475         * tests/test-fdopendir.c: Likewise.
11476
11477         fchdir: use more consistent macro convention
11478         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11479         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11480         REPLACE_FCHDIR, rather than relying on config.h macros.
11481         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11482         inside a single make-time REPLACE_FCHDIR block, rather than using
11483         the config.h FCHDIR_REPLACEMENT.
11484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11485         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11486         Manage fstat replacement.
11487         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11488         REPLACE_FCHDIR.
11489         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11490         (Makefile.am): Substitute REPLACE_FCHDIR.
11491         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11492         FCHDIR_REPLACEMENT.
11493         * lib/dup-safer.c (dup_safer): Likewise.
11494         * lib/dup2.c (rpl_dup2): Likewise.
11495         * lib/dup3.c (rpl_dup3): Likewise.
11496         * lib/open.c (rpl_open): Likewise.
11497
11498         fchdir: simplify error handling, and support dup3
11499         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11500         stdbool, malloc-posix, realloc-posix.
11501         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11502         (ensure_dirs_slot): Return false on allocation failure.
11503         (rpl_dup2): Delete.
11504         (_gl_register_dup): New function.
11505         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11506         (_gl_register_fd): Close fd on allocation failure.
11507         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11508         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11509         prototype.
11510         (rpl_dup2_fchdir): Delete prototype.
11511         * lib/open.c (open): Update caller.
11512         * lib/dup2.c (dup2): Track fchdir metadata.
11513         * lib/dup3.c (dup3): Likewise.
11514         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11515         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11516
11517 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11518
11519         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11520         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11521         don't pass arguments to AC_OUTPUT.
11522
11523 2009-09-02  Bruno Haible  <bruno@clisp.org>
11524
11525         * modules/mkdtemp (License): Relicense under LGPLv2+.
11526         Reported by Paolo Bonzini.
11527
11528 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11529
11530         Replace uses of obsolete autoconf macros in Jim's modules.
11531         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11532         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11533         can evoke a warning from autoconf when run with -Wobsolete
11534         enabled.  They were declared obsolete for good reasons (see
11535         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11536         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11537         should not continue using the deprecated macros.
11538         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11539         obsolete Autoconf macros with modern counterparts.
11540         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11541         * m4/dos.m4 (gl_AC_DOS): Likewise.
11542         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11543         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11544         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11545         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11546         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11547         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11548         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11549         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11550         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11551         Likewise.
11552         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11553         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11554         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11555         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11556         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11557         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11558
11559 2009-09-01  Eric Blake  <ebb9@byu.net>
11560
11561         fchdir: fix off-by-one bug in previous patch
11562         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11563         (_gl_unregister_fd): Delete useless if.
11564
11565 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11566
11567         maint.mk: sort the list of syntax-check rules
11568         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11569         easier to get a sense of progress when the rules are run sequentially
11570         and take a long time.
11571
11572 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11573
11574         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11575         * modules/netinet_in: Likewise.
11576         * modules/sys_file: Likewise.
11577         * modules/sys_ioctl: Likewise.
11578         * modules/sys_select: Likewise.
11579         * modules/sys_socket: Likewise.
11580         * modules/sys_stat: Likewise.
11581         * modules/sys_time: Likewise.
11582         * modules/sys_times: Likewise.
11583         * modules/sys_utsname: Likewise.
11584         * modules/sys_wait: Likewise.
11585
11586 2009-09-01  Jim Meyering  <meyering@redhat.com>
11587
11588         fts: help ensure that return values are not ignored
11589         * lib/fts_.h (__GNUC_PREREQ): Define.
11590         (__attribute_warn_unused_result__): Define.
11591         (fts_children, fts_close, fts_open, fts_read): Declare with
11592         __attribute_warn_unused_result__.
11593
11594         fts: fts_close now fails also when closing a dir file descriptor fails
11595         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11596         and propagate to caller, along with errno.
11597
11598         announce-gen: correct formatting in --help output
11599         * build-aux/announce-gen (usage): Move the one-line description in
11600         --help output "up", to where it belongs, just after Usage:.
11601
11602 2009-08-31  Eric Blake  <ebb9@byu.net>
11603
11604         fchdir: port to mingw
11605         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11606         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11607         opened, then use a substitute.
11608         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11609         replacement.
11610         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11611         (_gl_register_fd): No need to check stat if open already filters
11612         all directories.
11613         (fchdir): Fix error condition to match POSIX.
11614         * modules/fchdir (Depends-on): Add sys_stat.
11615         * doc/posix-functions/open.texi (open): Document the limitation.
11616         * modules/fchdir-tests: New file.
11617         * tests/test-fchdir.c: Likewise.
11618
11619         canonicalize: allow cross-testing from cygwin to mingw
11620         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11621         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11622         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11623         Likewise.
11624         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11625         target does not support symlinks.
11626         * tests/test-canonicalize-lgpl.sh: Likewise.
11627
11628         chown: avoid compilation warning on mingw
11629         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11630         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11631         mingw.
11632         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11633         * modules/chown (Depends-on): Add errno.
11634
11635 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11636
11637         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11638         command.
11639
11640 2009-08-31  Jim Meyering  <meyering@redhat.com>
11641
11642         canonicalize: remove useless initialization
11643         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11644         initialization of local, "end".
11645
11646 2009-08-30  Bruno Haible  <bruno@clisp.org>
11647
11648         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11649         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11650         ENOSYS.
11651
11652 2009-08-30  Bruno Haible  <bruno@clisp.org>
11653
11654         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11655         /usr/xpg4/bin/tr when it exists.
11656         * tests/test-pipe-filter-gi1.sh: Likewise.
11657
11658 2009-08-30  Bruno Haible  <bruno@clisp.org>
11659
11660         Work around deficient /usr/bin/id program on Solaris.
11661         * tests/test-file-has-acl.sh (ID): New variable.
11662         * tests/test-set-mode-acl.sh (ID): Likewise.
11663         * tests/test-copy-acl.sh (ID): Likewise.
11664         * tests/test-copy-file.sh (ID): Likewise.
11665
11666 2009-08-30  Bruno Haible  <bruno@clisp.org>
11667
11668         New module 'xstriconveh'.
11669         * lib/xstriconveh.h: New file.
11670         * lib/xstriconveh.c: New file.
11671         * modules/xstriconveh: New file.
11672
11673 2009-08-30  Bruno Haible  <bruno@clisp.org>
11674
11675         Make it easier to use mem_cd_iconveh.
11676         * lib/striconveh.h (iconveh_t): New type.
11677         (iconveh_open, iconveh_close): New declarations.
11678         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11679         with a single 'const iconveh_t *' argument.
11680         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11681         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11682         with a single 'const iconveh_t *' argument.
11683         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11684         * tests/test-striconveh.c (main): Update.
11685         * NEWS: Mention the change.
11686
11687 2009-08-30  Bruno Haible  <bruno@clisp.org>
11688
11689         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11690         problem.
11691
11692 2009-08-30  Bruno Haible  <bruno@clisp.org>
11693
11694         Work around iconv_open problem on Solaris.
11695         * lib/iconv_open-solaris.gperf: New file.
11696         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11697         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11698         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11699         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11700         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11701         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11702
11703 2009-08-29  Jim Meyering  <meyering@redhat.com>
11704
11705         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11706         * top/maint.mk (cvs-check): Remove target; it was just an alias
11707         to the better-named vc-diff-check.
11708         (maintainer-distcheck): Remove rule.  It was used only from
11709         the (alpha/beta/major) target, and all of its commands but one
11710         were coreutils-specific.
11711         (vc-dist): Remove rule.
11712         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11713         Run vc-diff-check, not vc-dist.
11714         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11715
11716 2009-08-27  Bruno Haible  <bruno@clisp.org>
11717
11718         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11719         of 0.
11720
11721 2009-08-27  Bruno Haible  <bruno@clisp.org>
11722
11723         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11724         compilers.
11725         * doc/func.texi: Document the SunPRO C bug.
11726
11727 2009-08-27  Bruno Haible  <bruno@clisp.org>
11728
11729         Fix link error on Solaris.
11730         * tests/test-parse-duration.c (xstrdup): Remove function.
11731
11732 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11733
11734         ignore-value: handle pointer types, too
11735         * lib/ignore-value.h (__attribute__): Remove definition.
11736         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11737         of a more concise and more-often effective "(void) i" statement.
11738         (ignore_ptr): New function to suppress warnings from functions that
11739         return pointers, and to make it explicit that one function doesn't
11740         handle all cases.
11741
11742 2009-08-25  Bruno Haible  <bruno@clisp.org>
11743
11744         dup2: work around a Linux bug.
11745         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11746         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11747         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11748         Reported by Simon Josefsson.
11749
11750 2009-08-25  Jim Meyering  <meyering@redhat.com>
11751
11752         libguestfs uses gnulib
11753         * users.txt: Add libguestfs.
11754
11755 2009-08-24  Eric Blake  <ebb9@byu.net>
11756
11757         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11758         * lib/pipe2.c (includes): Add binary-io.h.
11759         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11760
11761 2009-08-24  Bruno Haible  <bruno@clisp.org>
11762
11763         Tolerate declared but missing accept4 syscall.
11764         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11765         available.
11766         * lib/sys_socket.in.h (accept4): If the function is already present,
11767         override it.
11768         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11769         * modules/accept4 (Makefile.am): Compile accept4.c always.
11770         Reported by Paolo Bonzini and Eric Blake.
11771
11772 2009-08-23  Bruno Haible  <bruno@clisp.org>
11773
11774         New module 'accept4'.
11775         * lib/sys_socket.in.h (accept4): New declaration.
11776         * lib/accept4.c: New file.
11777         * m4/accept4.m4: New file.
11778         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11779         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11780         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11781         HAVE_ACCEPT4.
11782         * modules/accept4: New file.
11783         * doc/glibc-functions/accept4.texi: Mention the new module.
11784
11785 2009-08-24  Jim Meyering  <meyering@redhat.com>
11786
11787         progname: also set global program_invocation_name, when possible
11788         Before this change, a libtool-enabled program that calls glibc's
11789         error function would report the program name as
11790         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11791         * modules/progname (configure.ac): Check for a declaration of
11792         program_invocation_name.
11793         * lib/progname.c:  Include <errno.h>.
11794         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11795         Set program_invocation_name.
11796
11797 2009-08-23  Bruno Haible  <bruno@clisp.org>
11798
11799         * lib/dup3.c: Include <string.h>.
11800
11801 2009-08-23  Bruno Haible  <bruno@clisp.org>
11802
11803         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11804         * lib/pipe2.c (pipe2): Likewise.
11805         Suggested by Eric Blake.
11806
11807 2009-08-23  Bruno Haible  <bruno@clisp.org>
11808
11809         Tolerate declared but missing dup3 syscall.
11810         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11811         * lib/unistd.in.h (dup3): If the function is already present,
11812         override it.
11813         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11814         * modules/dup3 (Makefile.am): Compile dup3.c always.
11815         Reported by Paolo Bonzini.
11816
11817 2009-08-23  Bruno Haible  <bruno@clisp.org>
11818
11819         Tolerate declared but missing pipe2 syscall.
11820         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11821         available.
11822         * lib/unistd.in.h (pipe2): If the function is already present,
11823         override it.
11824         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11825         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11826         Reported by Paolo Bonzini.
11827
11828 2009-08-23  Bruno Haible  <bruno@clisp.org>
11829
11830         * lib/pipe2.c (pipe2): Move #ifs inside function.
11831
11832 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11833
11834         quotearg: document limitations of quote_these_too
11835         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11836         those limitations are created.
11837         * lib/quotearg.h (set_char_quoting): Document that digits and
11838         letters that are special after backslash are not permitted.
11839         (quotearg_char): Cross-reference set_char_quoting documentation.
11840
11841 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11842
11843         quotearg: implement custom_quoting_style
11844         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11845         right_quote fields.
11846         (set_custom_quoting): New public function.
11847         (quotearg_buffer_restyled): Add left_quote and right_quote
11848         arguments, handle them very much like locale quoting, and update
11849         all uses.
11850         (quotearg_n_custom): New public function.
11851         (quotearg_n_custom_mem): New public function.
11852         (quotearg_custom): New public function.
11853         (quotearg_custom_mem): New public function.
11854         * lib/quotearg.h: Prototype and document new public functions.
11855         (enum quoting_style): For escape_quoting_style and
11856         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11857         ignored even though they're otherwise like c_quoting_style.
11858         Add custom_quoting_style member and document with comparison to
11859         clocale_quoting_style.
11860         * tests/test-quotearg.c (custom_quotes): New array.
11861         (custom_results): New array.
11862         (main): Extend to test custom quoting.
11863
11864 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11865
11866         quotearg: fix right quote escaping when it's in quote_these_too
11867         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11868         quote, be sure to prepend only one backslash.
11869         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11870         (main): Test it.
11871
11872 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11873
11874         quotearg-tests: test escaping of embedded locale quotes
11875         * tests/test-quotearg.c (struct result_strings): Add member for
11876         new input.
11877         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11878         (inputs): Add new input.
11879         (results_g): Add expected results.
11880         (flag_results): Likewise.
11881         (locale_results): Likewise.
11882         (compare_strings): Check those.
11883
11884 2009-08-23  Bruno Haible  <bruno@clisp.org>
11885
11886         Tests for module 'dup3'.
11887         * modules/dup3-tests: New file.
11888         * tests/test-dup3.c: New file.
11889
11890         New module 'dup3'.
11891         * lib/unistd.in.h (dup3): New declaration.
11892         * lib/dup3.c: New file.
11893         * m4/dup3.m4: New file.
11894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11895         HAVE_DUP3.
11896         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11897         * modules/dup3: New file.
11898         * doc/glibc-functions/dup3.texi: Mention the new module.
11899
11900 2009-08-23  Bruno Haible  <bruno@clisp.org>
11901
11902         Tweak the dup2 test.
11903         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11904         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11905         the test file is still empty. Fix argument order of lseek.
11906
11907 2009-08-23  Bruno Haible  <bruno@clisp.org>
11908
11909         Avoid test link errors when the modules getopt-gnu, gettext are used.
11910         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11911         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11912
11913 2009-08-23  Bruno Haible  <bruno@clisp.org>
11914
11915         Fix getdtablesize() on mingw.
11916         * lib/getdtablesize.c (getdtablesize): Implement differently.
11917         * lib/unistd.in.h (getdtablesize): Improve comment.
11918
11919 2009-08-23  Bruno Haible  <bruno@clisp.org>
11920
11921         New module 'mkostemp'.
11922         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11923         * lib/stdlib.in.h (mksotemp): New declaration.
11924         * lib/mkostemp.c: New file, from glibc with modifications.
11925         * lib/tempname.h (GT_FILE): Remove outdated comment.
11926         (gen_tempname): Add flags argument.
11927         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11928         (__GT_FILE): Map to 1.
11929         (small_open, large_open): Remove macros.
11930         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11931         * lib/mkstemp.c (mkstemp): Update.
11932         * lib/mkdtemp.c (mkdtemp): Likewise.
11933         * m4/mkostemp.m4: New file.
11934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11935         HAVE_MKOSTEMP.
11936         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11937         HAVE_MKOSTEMP.
11938         * modules/mkostemp: New file, based on modules/mkstemp.
11939         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11940         * NEWS: Mention the change.
11941
11942 2009-08-23  Bruno Haible  <bruno@clisp.org>
11943
11944         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11945         Reported by Eric Blake.
11946
11947 2009-08-23  Bruno Haible  <bruno@clisp.org>
11948
11949         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11950         Reported by Eric Blake.
11951
11952 2009-08-23  Bruno Haible  <bruno@clisp.org>
11953
11954         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11955         * modules/pipe2 (Depends-on): Likewise.
11956
11957 2009-08-23  Eric Blake  <ebb9@byu.net>
11958
11959         fcntl-h: add O_TTY_INIT support
11960         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11961         * tests/test-fcntl-h.c (o): Test it.
11962         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11963
11964         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11965         * modules/fcntl: Move <fcntl.h> header replacement...
11966         * modules/fcntl-h: ...to new name, so as not to collide with
11967         like-named function.
11968         * tests/test-fcntl.c: Rename...
11969         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11970         * modules/fcntl-tests: Rename...
11971         * modules/fcntl-h-tests: ...to this.  Update test file name.
11972         * modules/chdir-long (Depends-on): Update clients.
11973         * modules/chdir-safer (Depends-on): Likewise.
11974         * modules/fcntl-safer (Depends-on): Likewise.
11975         * modules/fts (Depends-on): Likewise.
11976         * modules/mkancesdirs (Depends-on): Likewise.
11977         * modules/mkdir-p (Depends-on): Likewise.
11978         * modules/open (Depends-on): Likewise.
11979         * modules/savewd (Depends-on): Likewise.
11980         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11981         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11982
11983 2009-08-22  Bruno Haible  <bruno@clisp.org>
11984
11985         * modules/binary-io (License): Relicense under LGPL.
11986         * modules/pipe2 (License): Likewise.
11987
11988 2009-08-22  Bruno Haible  <bruno@clisp.org>
11989
11990         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11991         return value.
11992         * lib/pipe-filter-gi.c (filter_init): Likewise.
11993         Reported by Eric Blake.
11994
11995 2009-08-22  Bruno Haible  <bruno@clisp.org>
11996
11997         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11998         * modules/pipe (Depends-on): Add pipe2.
11999
12000 2009-08-22  Bruno Haible  <bruno@clisp.org>
12001
12002         Tests for module 'pipe2'.
12003         * modules/pipe2-tests: New file.
12004         * tests/test-pipe2.c: New file.
12005
12006         New module 'pipe2'.
12007         * lib/unistd.in.h (pipe2): New declaration.
12008         * lib/pipe2.c: New file.
12009         * m4/pipe2.m4: New file.
12010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
12011         HAVE_PIPE2.
12012         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
12013         * modules/pipe2: New file.
12014         * doc/glibc-functions/pipe2.texi: Mention the new module.
12015
12016 2009-08-22  Bruno Haible  <bruno@clisp.org>
12017
12018         Reference some new glibc functions.
12019         * doc/glibc-functions/accept4.texi: New file.
12020         * doc/glibc-functions/dup3.texi: New file.
12021         * doc/glibc-functions/mkostemp.texi: New file.
12022         * doc/glibc-functions/pipe2.texi: New file.
12023         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
12024         (Glibc sys/socket.h): Refer to accept4.
12025         (Glibc unistd.h): Refer to dup3, pipe2.
12026         Reported by Eric Blake.
12027
12028 2009-08-22  Jim Meyering  <meyering@redhat.com>
12029             Bruno Haible  <bruno@clisp.org>
12030
12031         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
12032         This makes it so packages using automake-1.11's silent-rules option
12033         can print e.g., a single "GEN    configmake.h" line, rather than
12034         the 30+ statements that perform the job.  If you want to see the
12035         actual commands, you can still run "make V=1".
12036         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
12037         so that make output is abbreviated when those variables are defined
12038         appropriately.
12039         * modules/argz: Likewise.
12040         * modules/arpa_inet: Likewise.
12041         * modules/byteswap: Likewise.
12042         * modules/configmake: Likewise.
12043         * modules/dirent: Likewise.
12044         * modules/errno: Likewise.
12045         * modules/fcntl: Likewise.
12046         * modules/float: Likewise.
12047         * modules/fnmatch: Likewise.
12048         * modules/getopt-posix: Likewise.
12049         * modules/glob: Likewise.
12050         * modules/iconv_open: Likewise.
12051         * modules/inttypes: Likewise.
12052         * modules/localcharset: Likewise.
12053         * modules/locale: Likewise.
12054         * modules/math: Likewise.
12055         * modules/netdb: Likewise.
12056         * modules/netinet_in: Likewise.
12057         * modules/poll: Likewise.
12058         * modules/posix_spawnp-tests: Likewise.
12059         * modules/sched: Likewise.
12060         * modules/search: Likewise.
12061         * modules/selinux-h: Likewise.
12062         * modules/signal: Likewise.
12063         * modules/spawn: Likewise.
12064         * modules/stdarg: Likewise.
12065         * modules/stdbool: Likewise.
12066         * modules/stddef: Likewise.
12067         * modules/stdint: Likewise.
12068         * modules/stdio: Likewise.
12069         * modules/stdlib: Likewise.
12070         * modules/string: Likewise.
12071         * modules/strings: Likewise.
12072         * modules/sys_file: Likewise.
12073         * modules/sys_ioctl: Likewise.
12074         * modules/sys_select: Likewise.
12075         * modules/sys_socket: Likewise.
12076         * modules/sys_stat: Likewise.
12077         * modules/sys_time: Likewise.
12078         * modules/sys_times: Likewise.
12079         * modules/sys_utsname: Likewise.
12080         * modules/sys_wait: Likewise.
12081         * modules/sysexits: Likewise.
12082         * modules/time: Likewise.
12083         * modules/unistd: Likewise.
12084         * modules/wchar: Likewise.
12085         * modules/wctype: Likewise.
12086
12087 2009-08-22  Jim Meyering  <meyering@redhat.com>
12088
12089         announce-gen: detect write failure
12090         * build-aux/announce-gen: Add Coda at end.
12091         Remove equivalent-but-more-verbose block at top.
12092
12093 2009-08-19  Akim Demaille  <demaille@gostai.com>
12094
12095         bootstrap: --help to stdout.
12096         * bootstrap (usage): Don't send --help to stderr.
12097         Use a here doc instead of a long string.
12098
12099 2009-08-21  Eric Blake  <ebb9@byu.net>
12100
12101         test-popen-safer: split from test-popen
12102         * tests/test-popen.c (main): Move...
12103         * tests/test-popen.h: ...into new file.
12104         * tests/test-popen-safer2.c: New file.
12105         * modules/popen-tests (Files): Add test-popen.h.
12106         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12107         Suggested by Bruno Haible.
12108
12109         test-fcntl-safer: split from test-open
12110         * tests/test-open.c (main): Move...
12111         * tests/test-open.h: ...into new file.
12112         * tests/test-fcntl-safer.c: New file.
12113         * modules/open-tests (Files): Add test-open.h.
12114         * modules/fcntl-safer-tests: New file.
12115         Suggested by Bruno Haible.
12116
12117         test-fopen-safer: split from test-fopen
12118         * tests/test-fopen.c (main): Move...
12119         * tests/test-fopen.h: ...into new file.
12120         * tests/test-fopen-safer.c: New file.
12121         * modules/fopen-tests (Files): Add test-fopen.h.
12122         * modules/fopen-safer-tests: New file.
12123         Suggested by Bruno Haible.
12124
12125 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12126
12127         popen-safer: test O_CLOEXEC at run-time.
12128         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12129
12130 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12131
12132         fcntl: move more flags to the header
12133         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12134         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12135         * lib/fcntl.in.h: Do both things here.
12136
12137 2009-08-21  Jim Meyering  <meyering@redhat.com>
12138
12139         consistently remove $@-t before redirecting to it
12140         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12141         * modules/alloca-opt: Likewise.
12142         * modules/byteswap: Likewise.
12143         * modules/fnmatch: Likewise.
12144         * modules/getopt-posix: Likewise.
12145         * modules/glob: Likewise.
12146         * modules/poll: Likewise.
12147         * modules/posix_spawnp-tests: Likewise.
12148         * modules/sys_socket: Likewise.
12149         * modules/sysexits: Likewise.
12150
12151 2009-08-21  Eric Blake  <ebb9@byu.net>
12152
12153         popen: simplify access to original popen
12154         * lib/popen.c (rpl_popen): No need to worry about popen being a
12155         macro.
12156         Reported by Bruno Haible.
12157
12158 2009-08-20  Eric Blake  <ebb9@byu.net>
12159
12160         build: avoid some compiler warnings
12161         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12162         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12163         type.
12164         (new_exclude_segment, excluded_file_pattern_p)
12165         (excluded_file_name_p): Reduce scope.
12166         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12167         old-style declaration.
12168
12169 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12170
12171         * tests/test-exclude1.sh: Handle Windows EOL.
12172         * tests/test-exclude2.sh: Likewise.
12173         * tests/test-exclude3.sh: Likewise.
12174         * tests/test-exclude4.sh: Likewise.
12175         * tests/test-exclude5.sh: Likewise.
12176         * tests/test-exclude6.sh: Likewise.
12177         * tests/test-exclude7.sh: Likewise.
12178
12179 2009-08-19  Akim Demaille  <demaille@gostai.com>
12180
12181         bootstrap: find sha1sum when named gsha1sum.
12182         * bootstrap (find_tool): New.
12183         ($SHA1SUM): New.
12184         Use it.
12185
12186 2009-08-20  Jim Meyering  <meyering@redhat.com>
12187
12188         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12189         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12190         expression that converts "." in a file name to "\." in the resulting
12191         regexp.  Start with a dummy statement, so that prior shell variable
12192         definitions are expanded portably.  Reported by Simon Josefsson.
12193
12194 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12195
12196         Fix polling for writeability of a screen buffer.
12197         * lib/poll.c: Distinguish input and screen buffers for the
12198         Win32 implementation.
12199         * lib/select.c: Likewise.
12200
12201 2009-08-19  Eric Blake  <ebb9@byu.net>
12202
12203         popen-safer: prevent popen from clobbering std descriptors
12204         * modules/popen-safer: New file.
12205         * lib/popen-safer.c: Likewise.
12206         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12207         * lib/stdio--.h (popen): Provide override.
12208         * lib/stdio-safer.h (popen_safer): Provide declaration.
12209         * tests/test-popen.c (includes): Partially test this.
12210         * modules/popen-safer-tests: New file, for more tests.
12211         * tests/test-popen-safer.c: Likewise.
12212         * MODULES.html.sh (file stream based Input/Output): Mention it.
12213
12214         tests: test some of the *-safer modules
12215         * modules/fopen-safer (Depends-on): Add fopen.
12216         * modules/fcntl-safer (Depends-on): Add fcntl.
12217         * modules/stdlib-safer (Depends-on): Add stdlib.
12218         (configure.ac): Set indicator.
12219         * modules/unistd-safer (configure.ac): Likewise.
12220         * modules/tmpfile-safer (configure.ac): Likewise.
12221         (Depends-on): Add tmpfile.
12222         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12223         active.
12224         * tests/test-fopen.c (includes): Test safer versions when they are
12225         in use.
12226         * tests/test-open.c (includes): Likewise.
12227
12228         popen: fix cygwin 1.5 bug when stdin closed
12229         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12230         * modules/popen: New file.
12231         * modules/popen-tests: Likewise.
12232         * tests/test-popen.c: Likewise.
12233         * m4/popen.m4: Likewise.
12234         * lib/popen.c: Likewise.
12235         * lib/stdio.in.h (popen): New declaration.
12236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12237         * modules/stdio (Makefile.am): Likewise.
12238         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12239
12240 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12241
12242         maint.mk: give full control over update-copyright exclusions
12243         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12244         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12245         (update-copyright): Don't force inclusion of top-level
12246         ChangeLog.  Don't force exclusion of all COPYING files, but make
12247         them the default exclusion instead.
12248
12249 2009-08-16  Bruno Haible  <bruno@clisp.org>
12250
12251         Fix test failures on Solaris 10.
12252         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12253         tests when Solaris iconv() is used.
12254         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12255         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12256         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12257         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12258         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12259
12260 2009-08-16  Bruno Haible  <bruno@clisp.org>
12261
12262         Fix test failures on Solaris 10.
12263         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12264         'tr' program and pass it as first argument.
12265         * tests/test-pipe-filter-gi1.sh: Likewise.
12266         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12267         program as first argument.
12268         * tests/test-pipe-filter-gi1.c (main): Likewise.
12269
12270 2009-08-16  Eric Blake  <ebb9@byu.net>
12271
12272         fpurge: fix previous commits
12273         * modules/fpurge (Makefile.am): Make replacement conditional,
12274         partially reverting 2007-04-29 change; missed in previous
12275         attempt.
12276         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12277         is missing.
12278
12279 2009-08-16  Bruno Haible  <bruno@clisp.org>
12280
12281         Clarify fpurge's effect on the file position.
12282         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12283         * tests/test-fpurge.c (main): Make a second pass for checking the file
12284         position.
12285
12286 2009-08-16  Bruno Haible  <bruno@clisp.org>
12287
12288         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12289         declaration of fpurge is missing.
12290         * tests/test-fpurge.c (main): Check that the file has not more contents
12291         than expected. Close the file before removing it.
12292
12293 2009-08-15  Eric Blake  <ebb9@byu.net>
12294
12295         fpurge: don't wrap working cygwin implementation
12296         * lib/fpurge.c (fpurge): Fix comment typo.
12297         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12298         1.7 to avoid replacement.
12299         * tests/test-fpurge.c (main): Enhance test.
12300
12301 2009-08-15  Eric Blake  <ebb9@byu.net>
12302         and Jim Meyering  <meyering@redhat.com>
12303
12304         test-update-copyright: skip if perl is insufficient
12305         * tests/test-update-copyright.sh: Failure to run maintainer tool
12306         should not cause testsuite failure on cygwin 1.5.
12307
12308 2009-08-14  Eric Blake  <ebb9@byu.net>
12309
12310         doc: mention more functions added in cygwin 1.7.0
12311         * doc/posix-headers/limits.texi (limits.h): Update for recent
12312         cygwin additions.
12313         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12314         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12315         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12316         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12317         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12318
12319 2009-08-14  Eric Blake  <ebb9@byu.net>
12320
12321         maint.mk: simplify update-copyright rule
12322         * top/maint.mk (update-copyright-local): Delete, and document how
12323         to do it in cfg.mk instead.
12324         (update-copyright-exclude-regexp): Delete, and document how to do
12325         it in .x-update-copyright instead.
12326         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12327         exclude ChangeLog.
12328
12329 2009-08-14  Bruno Haible  <bruno@clisp.org>
12330
12331         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12332
12333 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12334
12335         maint.mk: support update-copyright-env
12336         * top/maint.mk (update-copyright-env): Define place-holder.
12337         (update-copyright): Expand $(update-copyright-env) before
12338         invoking update-copyright.
12339
12340 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12341
12342         update-copyright: implement forced reformatting
12343         * build-aux/update-copyright: Implement and document
12344         UPDATE_COPYRIGHT_FORCE.
12345         * tests/test-update-copyright.sh: Test it.
12346
12347 2009-08-14  Eric Blake  <ebb9@byu.net>
12348         and Bruno Haible  <bruno@clisp.org>
12349
12350         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12351         * tests/test-locale.c: Revert previous patch related to NULL.
12352         * tests/test-stdio.c: Likewise.
12353         * tests/test-stdlib.c: Likewise.
12354         * tests/test-string.c: Likewise.
12355         * tests/test-unistd.c: Likewise.
12356         * modules/time-tests (Depends-on): Add verify.
12357         * modules/wchar-tests (Depends-on): Likewise.
12358         * tests/test-time.c: Test for NULL compliance.
12359         * tests/test-wchar.c: Likewise.
12360         * modules/locale (Depends-on): Add stddef.
12361         * modules/stdio (Depends-on): Likewise.
12362         * modules/stdlib (Depends-on): Likewise.
12363         * modules/string (Depends-on): Likewise.
12364         * modules/time (Depends-on): Likewise.
12365         * modules/unistd (Depends-on): Likewise.
12366         * modules/wchar (Depends-on): Likewise.
12367         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12368         * lib/stdlib.in.h (includes): Likewise.
12369         * lib/string.in.h (includes): Likewise.
12370         * lib/time.in.h (includes): Likewise.
12371         * lib/unistd.in.h (includes): Likewise.
12372         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12373         replaced.
12374         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12375         * m4/stddef_h.m4: New file.
12376         * modules/stddef: Likewise.
12377         * lib/stddef.in.h: Likewise.
12378         * modules/stddef-tests: Likewise.
12379         * tests/test-stddef.c: Likewise.
12380         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12381         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12382         * doc/posix-headers/locale.texi (locale.h): Likewise.
12383         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12384         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12385         * doc/posix-headers/string.texi (string.h): Likewise.
12386         * doc/posix-headers/time.texi (time.h): Likewise.
12387         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12388         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12389
12390 2009-08-14  Eric Blake  <ebb9@byu.net>
12391
12392         doc: improve git diff of texinfo files
12393         * .gitattributes: Add rule for *.texi files, with hint on how to
12394         use it.
12395         Copied from m4, and based on a report by Bruno Haible.
12396
12397 2009-08-14  Bruno Haible  <bruno@clisp.org>
12398
12399         Disable multithread support by default on Cygwin 1.5.x for real.
12400         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12401
12402 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12403
12404         update-copyright: much ado about intervals
12405         * build-aux/update-copyright: Implement and document
12406         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12407         of copyright year intervals.
12408         Also, document UPDATE_COPYRIGHT_YEAR.
12409         * tests/test-update-copyright.sh: Test it.
12410
12411         update-copyright: convert 2-digit to 4-digit years
12412         * build-aux/update-copyright: Implement and document.
12413         * tests/test-update-copyright.sh: Update.
12414
12415 2009-08-14  Jim Meyering  <meyering@redhat.com>
12416
12417         test-exclude: avoid coreutils "make check" failure
12418         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12419         just as in test-argmatch.c.
12420
12421 2009-08-13  Eric Blake  <ebb9@byu.net>
12422
12423         test-dup2: fix bad assumption
12424         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12425         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12426
12427         test-version-etc: fix CRLF portability issue
12428         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12429         recognize \r.
12430         * tests/test-argp-version-etc-1.sh: Likewise.
12431
12432         getopt: update client modules
12433         * modules/argp (Depends-on): Use getopt-gnu.
12434         * modules/git-merge-changelog (Depends-on): Likewise.
12435         * modules/long-options (Depends-on): Likewise.
12436         * modules/xstrtol (Depends-on): Likewise.
12437
12438 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12439
12440         * tests/test-version-etc.sh: Don't fail on different
12441         project/version.  Don't fail on CRLF differences.  Rewrite to use
12442         multiple -e instead of multiple sed forks, suggested by Eric Blake
12443         <ebb9@byu.net>.
12444         * tests/test-argp-version-etc-1.sh: Likewise.
12445
12446 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12447
12448         * tests/test-version-etc.sh: Don't fail on different
12449         project/version.
12450
12451 2009-08-12  Bruno Haible  <bruno@clisp.org>
12452
12453         Tests for modules 'getopt-posix', 'getopt-gnu'.
12454         * modules/getopt-posix-tests: New file.
12455         * tests/test-getopt.c: New file.
12456         * tests/test-getopt.h: New file.
12457         * tests/test-getopt_long.h: New file.
12458
12459         New modules 'getopt-posix', 'getopt-gnu'.
12460         * modules/getopt-gnu: New file, renamed from modules/getopt.
12461         * modules/getopt-posix: New file.
12462         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12463         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12464         (gl_GETOPT): Remove macro.
12465         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12466         Disable the test against BSD systems that declare optreset. Test
12467         against mingw bug. Test against lack of support of optional arguments
12468         on many platforms.
12469         * doc/glibc-headers/getopt.texi: Update module name and list of
12470         relevant platforms.
12471         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12472         'getopt-gnu' and more portability problems.
12473         * NEWS: Mention the changes.
12474
12475 2009-08-12  Bruno Haible  <bruno@clisp.org>
12476
12477         Ensure that optarg etc. get declared by <unistd.h>.
12478         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12479         AC_USE_SYSTEM_EXTENSIONS.
12480         * modules/getopt (Depends-on): Add 'extensions'.
12481
12482 2009-08-12  Bruno Haible  <bruno@clisp.org>
12483
12484         Avoid test link errors.
12485         * modules/pipe-filter-ii-tests (Makefile.am): Define
12486         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12487         * modules/pipe-filter-gi-tests (Makefile.am): Define
12488         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12489         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12490
12491 2009-08-12  Bruno Haible  <bruno@clisp.org>
12492
12493         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12494         gl_GETOPT_SUBSTITUTE before.
12495         (gl_GETOPT): Use it.
12496         * m4/argp.m4 (gl_ARGP): Update.
12497         Reported by Sergey Poznyakoff.
12498
12499         * m4/getopt.m4: Reorder macros.
12500         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12501         (gl_GETOPT_SUBSTITUTE): Remove macro.
12502
12503 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12504
12505         Minor improvement in gitlog-to-changelog
12506
12507         * build-aux/gitlog-to-changelog: New option `--format' makes
12508         output format string configurable.
12509
12510 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12511
12512         Optimize exclude: use hash tables for non-wildcard patterns.
12513
12514         * lib/exclude.c: Include hash.h and mbuiter.h
12515         (struct exclude_pattern, exclude_segment): New data types.
12516         (struct exclude): Rewrite.
12517         (fnmatch_pattern_has_wildcards): New function.
12518         (new_exclude_segment, free_exclude_segment): New functions.
12519         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12520         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12521         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12522         * modules/exclude: Depend on hash and mbuiter.
12523
12524         * modules/exclude-tests: New file.
12525         * tests/test-exclude.c: New file.
12526         * tests/test-exclude1.sh: New file.
12527         * tests/test-exclude2.sh: New file.
12528         * tests/test-exclude3.sh: New file.
12529         * tests/test-exclude4.sh: New file.
12530         * tests/test-exclude5.sh: New file.
12531         * tests/test-exclude6.sh: New file.
12532         * tests/test-exclude7.sh: New file.
12533
12534 2009-08-12  Bruno Haible  <bruno@clisp.org>
12535
12536         Ensure that getopt() gets declared by <unistd.h>.
12537         * lib/unistd.in.h: Conditionally include getopt.h.
12538         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12539         Set GNULIB_UNISTD_H_GETOPT.
12540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12541         GNULIB_UNISTD_H_GETOPT.
12542         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12543
12544 2009-08-12  Bruno Haible  <bruno@clisp.org>
12545
12546         Clarify logic.
12547         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12548         gl_replace_getopt instead of GETOPT_H.
12549
12550 2009-08-12  Bruno Haible  <bruno@clisp.org>
12551
12552         * m4/getopt.m4: Add comments.
12553
12554 2009-08-12  Bruno Haible  <bruno@clisp.org>
12555
12556         Disable multithread support by default on Cygwin 1.5.x.
12557         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12558         set gl_use_threads=no if not specified otherwise.
12559
12560 2009-08-11  Bruno Haible  <bruno@clisp.org>
12561
12562         Avoid compilation error on NetBSD 5.0.
12563         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12564         * tests/test-stdio.c: Likewise.
12565         * tests/test-stdlib.c: Likewise.
12566         * tests/test-string.c: Likewise.
12567         * tests/test-unistd.c: Likewise.
12568         Reported by Greg Troxel <gdt@ir.bbn.com>
12569         at <https://savannah.gnu.org/support/?106973>.
12570
12571 2009-08-11  Bruno Haible  <bruno@clisp.org>
12572
12573         * modules/dup2-tests (Depends-on): Remove close.
12574
12575         Undo 2009-07-19 commit.
12576         * modules/acl-tests (Depends-on): Remove close.
12577         * modules/binary-io-tests (Depends-on): Likewise.
12578         * modules/closein-tests (Depends-on): Likewise.
12579         * modules/flock-tests (Depends-on): Likewise.
12580         * modules/fsync-tests (Depends-on): Likewise.
12581         * modules/lseek-tests (Depends-on): Likewise.
12582         * modules/pipe-tests (Depends-on): Likewise.
12583         * modules/posix_spawn-tests (Depends-on): Likewise.
12584         * modules/posix_spawnp-tests (Depends-on): Likewise.
12585         * modules/stat-time-tests (Depends-on): Likewise.
12586         * modules/yesno-tests (Depends-on): Likewise.
12587
12588 2009-08-10  Bruno Haible  <bruno@clisp.org>
12589
12590         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12591
12592 2009-08-10  Bruno Haible  <bruno@clisp.org>
12593
12594         Fix a gcc warning.
12595         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12596
12597 2009-08-10  Bruno Haible  <bruno@clisp.org>
12598
12599         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12600         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12601         not only the first time.
12602         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12603         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12604         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12605         is 1, not only the the first time.
12606
12607 2009-08-10  Bruno Haible  <bruno@clisp.org>
12608
12609         Make it possible to use module 'gethostname' without module 'close'.
12610         * lib/unistd.in.h (close): Evoke a link error only if
12611         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12613         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12614         * modules/unistd (Makefile.am): Substitute
12615         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12616         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12617         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12618         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12619         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12620         * modules/sys_ioctl (Makefile.am): Substitute
12621         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12622         * modules/socket (configure.ac): On native Windows, set
12623         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12624         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12625         Reported by Sam Steingold <sds@gnu.org>.
12626
12627 2009-08-10  Bruno Haible  <bruno@clisp.org>
12628
12629         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12630         * modules/ioctl (configure.ac): Likewise.
12631
12632 2009-08-10  Bruno Haible  <bruno@clisp.org>
12633
12634         Avoid collision between gnulib wrapper and libintl wrapper.
12635         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12636         already defined in intl/printf.c.
12637         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12638         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12639
12640 2009-08-09  Bruno Haible  <bruno@clisp.org>
12641
12642         Make <sys/select.h> really self-contained, also on Solaris 10.
12643         * lib/sys_select.in.h: Include <string.h>.
12644         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12645         Solaris 10 problem.
12646         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12647         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12648         Reported by Jim Meyering.
12649
12650 2009-08-09  Bruno Haible  <bruno@clisp.org>
12651
12652         Avoid warnings from 'aclocal' that are due to a use of macro name
12653         AM_XGETTEXT_OPTION that is not defined in automake.
12654         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12655         automake.
12656         * modules/error (configure.ac): Likewise.
12657         * modules/propername (configure.ac): Likewise.
12658         * modules/vasprintf (configure.ac): Likewise.
12659         * modules/verror (configure.ac): Likewise.
12660         * modules/xprintf (configure.ac): Likewise.
12661         * modules/xvasprintf (configure.ac): Likewise.
12662
12663 2009-08-08  Bruno Haible  <bruno@clisp.org>
12664
12665         Avoid compilation error in C++ mode.
12666         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12667         Reported by Sam Steingold <sds@gnu.org>.
12668
12669 2009-08-08  Bruno Haible  <bruno@clisp.org>
12670
12671         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12672         for the various Unix platforms.
12673         * doc/posix-headers/limits.texi: Update platforms list regarding
12674         HOST_NAME_MAX.
12675         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12676
12677 2009-08-07  Jim Meyering  <meyering@redhat.com>
12678
12679         selinux-at: fix typo in a comment
12680         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12681         Spotted by Paolo Bonzini.
12682
12683         selinux-at: remove redundant m4 code, add documentation
12684         * modules/selinux-at (configure.ac): Remove redundant code.
12685         LIB_SELINUX is already set via the dependent module, selinux-h.
12686         (Include): Add quotes around selinux-at.h.
12687         * lib/selinux-at.h: Add documentation.
12688         Reported by Bruno Haible in
12689         http://marc.info/?l=gnulib-bug&m=124958988300749
12690
12691 2009-08-07  Bruno Haible  <bruno@clisp.org>
12692
12693         Avoid link error on MacOS X 10.3 and 10.4.
12694         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12695         on non-ELF systems.
12696         * lib/argp-pv.c (argp_program_version): Likewise.
12697         Reported by Simon Josefsson.
12698
12699 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12700
12701         * tests/test-version-etc.sh: Use $EXEEXT.
12702
12703 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12704
12705         update-copyright: update documentation to point to maint.mk
12706         * build-aux/update-copyright: Here.
12707
12708 2009-08-06  Jim Meyering  <meyering@redhat.com>
12709
12710         maint.mk: support update-copyright-local
12711         * top/maint.mk (update-copyright-local): Define place-holder.
12712         (update-copyright): Depend on $(update-copyright-local).
12713
12714 2009-08-06  Jim Meyering  <meyering@redhat.com>
12715
12716         selinux-at: new module
12717         Initially written for coreutils, this module will soon be
12718         used by findutils, too.
12719         * MODULES.html.sh [Misc]: Add selinux-at.
12720         * lib/selinux-at.h: New file, from coreutils.
12721         * lib/selinux-at.c: Likewise.
12722         * modules/selinux-at: Likewise.
12723         (License): Change from LGPL to GPL, since it depends
12724         on the GPL'd openat module.
12725
12726         doc: update README
12727         * README: Remove references to cogito.
12728         Remove cvs-repo-updating instructions from 2007.
12729         Don't imply that CVS is better if you have limited disk space.
12730
12731 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12732
12733         update-copyright: support C-style comments
12734         * build-aux/update-copyright: Implement and document.
12735         * tests/test-update-copyright.sh: Test.
12736
12737 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12738
12739         update-copyright: support omitted "(C)"
12740         * build-aux/update-copyright: Implement and document.  Also,
12741         allow variable whitespace before "(C)".
12742         * tests/test-update-copyright.sh: Test.
12743
12744 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12745
12746         update-copyright: don't trip on non-FSF copyright statements
12747         * build-aux/update-copyright: Fix so that the first correctly
12748         formatted FSF copyright statement is recognized no matter what
12749         appears before it.  Update documentation.
12750         * tests/test-update-copyright.sh: Test that.
12751
12752 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12753
12754         update-copyright: clean up code a little
12755         * build-aux/update-copyright: Append "_re" to the name of any
12756         variable holding a regular expression.
12757         Replace "old" and "new" with "stmt" in variable names.
12758         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12759         handled correctly.
12760         Format code more consistently.
12761
12762 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12763
12764         update-copyright-tests: improve portability
12765         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12766         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12767
12768 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12769
12770         update-copyright: support @copyright{} and &copy;
12771         * build-aux/update-copyright: Implement and document.
12772         * tests/test-update-copyright.sh: Test.
12773
12774 2009-08-04  Jim Meyering  <meyering@redhat.com>
12775
12776         update-copyright-tests: correctly test EOL=\r\n handling
12777         * tests/test-update-copyright.sh: Put \r at the end of some lines
12778         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12779
12780         maint.mk: make update-copyright exclusion list more configurable
12781         * top/maint.mk (update-copyright): Default to excluding COPYING,
12782         but allow an override, in case someone does want to update that file.
12783
12784         maint.mk: don't update copyright date in COPYING
12785         * top/maint.mk (update-copyright): Exclude COPYING.
12786
12787         maint.mk: add a copyright-updating rule
12788         * top/maint.mk (update-copyright): New rule.
12789         Derived from coreutils/Makefile.am.
12790
12791         update-copyright: rename some variables
12792         * build-aux/update-copyright: Rename a few variables for clarity.
12793         Tweak syntax.  List Joel E. Denny as coauthor.
12794
12795 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12796
12797         update-copyright: fix bug for 2-digit last year and add tests
12798         * build-aux/update-copyright: Fix bug.
12799         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12800         specified.
12801         * modules/update-copyright-tests: New
12802         * tests/test-update-copyright.sh: New.
12803
12804 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12805
12806         update-copyright: handle leading tabs in line prefix
12807         * build-aux/update-copyright: Count leading tabs as 8 spaces
12808         when computing margin.  This helps with the formatting of
12809         ChangeLogs, for example.
12810         Fix documentation a little.
12811
12812 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12813
12814         update-copyright: support EOL=\r\n
12815         * build-aux/update-copyright: Implement that.
12816
12817 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12818
12819         update-copyright: automatically format copyright statements
12820         * build-aux/update-copyright: Implement that.
12821         Also, be a little more predictable and safer by always failing
12822         when the full copyright format is not perfectly recognized as an
12823         unbroken whole.  Discussed at
12824         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12825         Rewrite documentation.
12826
12827 2009-08-03  Bruno Haible  <bruno@clisp.org>
12828
12829         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12830
12831 2009-08-02  Bruno Haible  <bruno@clisp.org>
12832
12833         Tests for module 'uname'.
12834         * modules/uname-tests: New file.
12835         * tests/test-uname.c: New file.
12836
12837         New module 'uname'.
12838         * lib/uname.c: New file.
12839         * m4/uname.m4: New file.
12840         * modules/uname: New file.
12841         * doc/posix-functions/uname.texi: Mention the new module.
12842
12843 2009-08-02  Bruno Haible  <bruno@clisp.org>
12844
12845         Tests for module 'sys_utsname'.
12846         * modules/sys_utsname-tests: New file.
12847         * tests/test-sys_utsname.c: New file.
12848
12849         New module 'sys_utsname'.
12850         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12851         * m4/sys_utsname_h.m4: New file.
12852         * modules/sys_utsname: New file.
12853         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12854
12855 2009-08-02  Bruno Haible  <bruno@clisp.org>
12856
12857         Implicitly initialize the sockets library.
12858         * lib/gethostname.c: Include sockets.h.
12859         (rpl_gethostname): Invoke gl_sockets_startup.
12860         * lib/socket.c: Include sockets.h.
12861         (rpl_socket): Invoke gl_sockets_startup.
12862         * modules/gethostname (Depends-on): Add sockets.
12863         * modules/socket (Depends-on): Likewise.
12864         * tests/test-poll.c: Don't include sockets.h.
12865         (main): Don't invoke gl_sockets_startup.
12866         * tests/test-select.c: Don't include sockets.h.
12867         (main): Don't invoke gl_sockets_startup.
12868
12869 2009-08-02  Bruno Haible  <bruno@clisp.org>
12870
12871         Allow multiple calls to gl_sockets_startup.
12872         * lib/sockets.c (initialized_sockets_version): New variable.
12873         (gl_sockets_startup): Do nothing if already called for this or a higher
12874         version.
12875         (gl_sockets_cleanup): Reset initialized_sockets_version.
12876
12877 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12878
12879         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12880         different project/version.
12881
12882 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12883             Bruno Haible  <bruno@clisp.org>
12884
12885         Tests for module 'pipe-filter-gi'.
12886         * modules/pipe-filter-gi-tests: New file.
12887         * tests/test-pipe-filter-gi1.sh: New file.
12888         * tests/test-pipe-filter-gi1.c: New file.
12889         * tests/test-pipe-filter-gi2.sh: New file.
12890         * tests/test-pipe-filter-gi2-main.c: New file.
12891         * tests/test-pipe-filter-gi2-child.c: New file.
12892
12893         New module 'pipe-filter-gi'.
12894         * lib/pipe-filter-gi.c: New file.
12895         * modules/pipe-filter-gi: New file.
12896
12897 2009-08-02  Bruno Haible  <bruno@clisp.org>
12898             Paolo Bonzini  <bonzini@gnu.org>
12899
12900         Tests for module 'pipe-filter-ii'.
12901         * modules/pipe-filter-ii-tests: New file.
12902         * tests/test-pipe-filter-ii1.sh: New file.
12903         * tests/test-pipe-filter-ii1.c: New file.
12904         * tests/test-pipe-filter-ii2.sh: New file.
12905         * tests/test-pipe-filter-ii2-main.c: New file.
12906         * tests/test-pipe-filter-ii2-child.c: New file.
12907
12908         New module 'pipe-filter-ii'.
12909         * lib/pipe-filter.h: New file.
12910         * lib/pipe-filter-ii.c: New file.
12911         * lib/pipe-filter-aux.h: New file.
12912         * modules/pipe-filter-ii: New file.
12913
12914 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12915
12916         * lib/gc-libgcrypt.c: Change copyright to FSF.
12917         * lib/gc-gnulib.c: Likewise.
12918
12919 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12920
12921         * lib/gethostname.c: Include limits.h.
12922
12923 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12924             Bruno Haible  <bruno@clisp.org>
12925
12926         Ensure HOST_NAME_MAX as part of the gethostname module.
12927         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12928         define also HOST_NAME_MAX.
12929         * tests/test-gethostname.c: Include <limits.h>.
12930         (main): Check also HOST_NAME_MAX.
12931         * doc/posix-headers/limits.texi: Document the mingw problem.
12932
12933 2009-08-02  Bruno Haible  <bruno@clisp.org>
12934
12935         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12936         Add comments.
12937
12938 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12939
12940         * lib/gethostname.c: Add Windows wrapper.
12941         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12942         * modules/gethostname: Depend on sys_socket & errno, for also
12943         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12944         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12945
12946 2009-07-31  Jim Meyering  <meyering@redhat.com>
12947
12948         getloadavg: fix symbol name in comment
12949         * lib/getloadavg.c: Correct a typo I introduced when adding
12950         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12951         Matt Kraai spotted the problem.
12952
12953 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12954
12955         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12956         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12957         code also if ! defined N_NAME_POINTER.
12958         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12959         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12960         but the n_name member is a 12-byte array.
12961
12962 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12963
12964         update-copyright: generalize comment handling
12965         * build-aux/update-copyright: Handle copyright statements
12966         within more comment styles.
12967         Document usage.
12968         Report any file with an external copyright holder or parse failure.
12969
12970 2009-07-29  Jim Meyering  <meyering@redhat.com>
12971
12972         mktime: correct setting of REPLACE_MKTIME
12973         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12974
12975         update-copyright: new module
12976         * modules/update-copyright: New file.
12977         * build-aux/update-copyright: New file.
12978         * MODULES.html.sh (maint+release support): Add update-copyright.
12979
12980 2009-07-27  Bruno Haible  <bruno@clisp.org>
12981
12982         Fix compilation error when <ctime> is used and mktime is replaced.
12983         * lib/time.in.h (mktime): New declaration.
12984         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12985         REPLACE_MKTIME instead of defining mktime in config.h.
12986         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12987         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12988         Reported by Ross McFarland <rwmcfa1@neces.com>.
12989
12990 2009-07-27  Bruno Haible  <bruno@clisp.org>
12991
12992         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12993         Reported by Matt Kraai <mkraai@beckman.com>.
12994
12995 2009-07-25  Jim Meyering  <meyering@redhat.com>
12996
12997         maint.mk: avoid warnings about missing files
12998         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12999         diagnostic when .prev-version does not exist.
13000         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
13001         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
13002         nonexistent cfg.mk.
13003         Suggestions from Simon Josefsson.
13004
13005 2009-07-25  Bruno Haible  <bruno@clisp.org>
13006
13007         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
13008         defined as macros. Needed on QNX 6.4.1.
13009         Reported by Matt Kraai <mkraai@beckman.com>.
13010
13011 2009-07-23  Jim Meyering  <meyering@redhat.com>
13012
13013         maint.mk: invoke "make dist" with a working value of XZ_OPT
13014         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
13015
13016 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
13017
13018         Make fseeko.c compile on QNX.
13019         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
13020
13021 2009-07-22  Peter Simons  <simons@cryp.to>
13022
13023         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
13024         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
13025         * lib/md4.h: Likewise.
13026         * lib/md5.h: Likewise.
13027         * lib/sha1.h: Likewise.
13028         * lib/sha256.h: Likewise.
13029         * lib/sha512.h: Likewise.
13030
13031         tests-sha1: don't assign literal string to 'char *' variable
13032         * tests/test-sha1.c (main): Declare locals with "const" to match
13033         attributes of the right hand side.
13034
13035 2009-07-21  Eric Blake  <ebb9@byu.net>
13036
13037         dup2: fix more mingw problems
13038         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
13039         fd to itself.
13040         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13041         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
13042         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
13043         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
13044         care of mingw bugs.
13045
13046 2009-07-21  Jim Meyering  <meyering@redhat.com>
13047
13048         vc-list-files: avoid failure when /bin/sh is dash
13049         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
13050         On some Debian based systems, /bin/sh is a symlink to dash, and running
13051         this command would omit the "/" following each 'tests' prefix:
13052           dash -x build-aux/vc-list-files -C . tests
13053         That is because bash and dash work differently:
13054           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
13055           bash ok
13056           dash odd
13057
13058 2009-07-21  Eric Blake  <ebb9@byu.net>
13059
13060         dup2-tests: test previous patch
13061         * modules/dup2-tests: New file.
13062         * tests/test-dup2.c: Likewise.
13063         * tests/test-open.c (main): Avoid unspecified behavior.
13064         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
13065         test.
13066
13067         dup2: work around mingw and cygwin 1.5 bug
13068         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
13069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13070         * modules/unistd (Makefile.am): Substitute it.
13071         * lib/unistd.in.h (dup2): Declare the replacement.
13072         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
13073         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
13074         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
13075         * modules/execute (Depends-on): Add dup2.
13076         * modules/fseterr (Depends-on): Likewise.
13077         * modules/pipe (Depends-on): Likewise.
13078         * modules/posix_spawn-internal (Depends-on): Likewise.
13079
13080 2009-07-21  Bruno Haible  <bruno@clisp.org>
13081
13082         * modules/.gitattributes: New file.
13083
13084 2009-07-20  Bruno Haible  <bruno@clisp.org>
13085
13086         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
13087         (main): Use it.
13088
13089 2009-07-20  Eric Blake  <ebb9@byu.net>
13090
13091         test-pipe: make a bit more robust.
13092         * tests/test-pipe.c (myerr): Allow error messages regardless of
13093         what we do to stderr.
13094         (test_pipe): Rearrange to avoid deadlock.
13095         (child_main): Try a larger read, to ensure we avoided deadlock.
13096         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13097         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13098         if misused.
13099
13100 2009-07-19  Jim Meyering  <meyering@redhat.com>
13101
13102         fts: avoid false-positive cycle-detection
13103         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13104         for each new command line argument.
13105
13106 2009-07-19  Bruno Haible  <bruno@clisp.org>
13107
13108         Fix build error on mingw with the modules sys_select and unistd.
13109         * modules/acl-tests (Depends-on): Add close.
13110         * modules/binary-io-tests (Depends-on): Likewise.
13111         * modules/closein-tests (Depends-on): Likewise.
13112         * modules/flock-tests (Depends-on): Likewise.
13113         * modules/fsync-tests (Depends-on): Likewise.
13114         * modules/lseek-tests (Depends-on): Likewise.
13115         * modules/pipe-tests (Depends-on): Likewise.
13116         * modules/posix_spawn-tests (Depends-on): Likewise.
13117         * modules/posix_spawnp-tests (Depends-on): Likewise.
13118         * modules/stat-time-tests (Depends-on): Likewise.
13119         * modules/yesno-tests (Depends-on): Likewise.
13120
13121 2009-07-19  Bruno Haible  <bruno@clisp.org>
13122
13123         Unify conditionals.
13124         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13125         macros, not at the compiler macros.
13126         * lib/pipe.c: Likewise.
13127         * lib/execute.c: Likewise.
13128         * lib/spawni.c: Likewise.
13129
13130 2009-07-19  Bruno Haible  <bruno@clisp.org>
13131
13132         Fix handling of closed stdin/stdout/stderr on mingw.
13133         * lib/w32spawn.h: Include unistd.h.
13134         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13135         file descriptor with O_NOINHERIT flag.
13136         (fd_safer_noinherit): New function, based on fd-safer.c.
13137         (dup_safer_noinherit): New function, based on dup-safer.c.
13138         (undup_safer_noinherit): New function.
13139         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13140         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13141         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13142         instead of fd_safer.
13143         * tests/test-pipe.c: Include <windows.h>.
13144         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13145
13146         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13147         from main.
13148         (test_pipe): Pass an extra argument for disambiguation.
13149         (main): Invoke parent_main or child_main.
13150
13151         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13152         consistently.
13153
13154 2009-07-18  Eric Blake  <ebb9@byu.net>
13155
13156         test-pipe: fix mingw build
13157         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13158
13159 2009-07-18  Bruno Haible  <bruno@clisp.org>
13160
13161         * modules/pipe-tests (Makefile.am): Fix typo.
13162
13163 2009-07-18  Eric Blake  <ebb9@byu.net>
13164
13165         error: fix mingw build
13166         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13167         Reported by Bruno Haible.
13168
13169         error: avoid undefined use of stdout
13170         * lib/error.c (error, error_at_line): Check that fd 1 is open
13171         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13172         is handling faults and the close_stdout module wants to report the
13173         detection of closed stdout as an error.
13174
13175 2009-07-17  Eric Blake  <ebb9@byu.net>
13176
13177         pipe: be robust in face of closed fds
13178         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13179         should cause child to misbehave.
13180         * modules/pipe-tests: New module.
13181         * tests/test-pipe.c: New file.
13182         * tests/test-pipe.sh: New file.
13183         Reported by Akim Demaille.
13184
13185 2009-07-14  Bruno Haible  <bruno@clisp.org>
13186
13187         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13188         Reported by anonymous kc.
13189
13190 2009-07-07  Jim Meyering  <meyering@redhat.com>
13191
13192         maint.mk: don't look for translatable strings in *.m4 or *.mk
13193         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13194         when searching for translatable strings.
13195
13196 2009-07-05  Jim Meyering  <meyering@redhat.com>
13197
13198         remove superfluous parentheses in STREQ definition
13199         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13200         * lib/getugroups.c (STREQ): Likewise.
13201         * lib/fnmatch.c (STREQ): Likewise.
13202         Spotted by Bruno Haible.
13203
13204 2009-07-04  Jim Meyering  <meyering@redhat.com>
13205
13206         argv-iter: new module
13207         * MODULES.html.sh: Add argv-iter.
13208         * lib/argv-iter.c, lib/argv-iter.h: New files.
13209         * modules/argv-iter: New file.
13210         * modules/argv-iter-tests: New file.
13211         * tests/test-argv-iter.c: Test it.
13212
13213 2009-07-04  Bruno Haible  <bruno@clisp.org>
13214
13215         Fix assertion.
13216         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13217         contains more exact copies of a given entry than file2, leave the extra
13218         copies unpaired rather than aborting.
13219         Reported by Eric Blake.
13220
13221 2009-07-02  Bruno Haible  <bruno@clisp.org>
13222
13223         Speedup git-merge-changelog for git cherry-pick.
13224         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13225         (entries_mapping_get): New function, extracted from compute_mapping.
13226         (entries_mapping_reverse_get): New function.
13227         (compute_mapping): Add a 'full' argument. Return the result in a
13228         'struct entries_mapping'.
13229         (main): Update. Access the mappings through entries_mapping_get.
13230         Reported by Eric Blake.
13231
13232 2009-07-02  Bruno Haible  <bruno@clisp.org>
13233
13234         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13235         best_i.
13236
13237 2009-07-02  Bruno Haible  <bruno@clisp.org>
13238
13239         Speed up approximate search for matching ChangeLog entries.
13240         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13241         argument. Call fstrcmp_bounded instead of fstrcmp.
13242         (compute_mapping, try_split_merged_entry, main): Update callers.
13243
13244 2009-07-02  Bruno Haible  <bruno@clisp.org>
13245
13246         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13247
13248 2009-06-30  Bruno Haible  <bruno@clisp.org>
13249
13250         Reduce the number of uc_is_cased calls.
13251         * lib/unicase.h (casing_suffix_context_t): Add
13252         'first_char_except_ignorable' field.
13253         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13254         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13255         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13256         Update initializer.
13257         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13258         case-ignorable characters.
13259         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13260         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13261         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13262         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13263         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13264
13265 2009-06-30  Bruno Haible  <bruno@clisp.org>
13266
13267         Tests for module 'unicase/ignorable'.
13268         * modules/unicase/ignorable-tests: New file.
13269         * tests/unicase/test-ignorable.c: New file, generated by
13270         gen-uni-tables.
13271
13272         Tests for module 'unicase/cased'.
13273         * modules/unicase/cased-tests: New file.
13274         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13275         * tests/unicase/test-predicate-part1.h: New file, derived from
13276         tests/unictype/test-predicate-part1.h.
13277         * tests/unicase/test-predicate-part2.h: New file, same as
13278         tests/unictype/test-predicate-part2.h.
13279
13280         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13281         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13282         (output_casing_properties): New function.
13283         (main): Call it.
13284         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13285         * lib/unicase/cased.c: Include unictype/bitmap.h.
13286         (uc_is_cased): Define through a bitmap lookup.
13287         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13288         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13289         (uc_is_case_ignorable): Define through a bitmap lookup.
13290         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13291         lib/unictype/bitmap.h.
13292         (Depends-on): Add inline. Clean up.
13293         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13294         lib/unictype/bitmap.h.
13295         (Depends-on): Add inline. Clean up.
13296         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13297         recognition.
13298         * tests/unicase/test-u16-tolower.c (main): Likewise.
13299         * tests/unicase/test-u32-tolower.c (main): Likewise.
13300
13301 2009-06-30  Bruno Haible  <bruno@clisp.org>
13302
13303         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13304         * lib/unicase/u16-casemap.c: Likewise.
13305         * lib/unicase/u32-casemap.c: Likewise.
13306
13307 2009-06-29  Bruno Haible  <bruno@clisp.org>
13308
13309         Define u32_casefold as a wrapper around u32_ct_casefold.
13310         * lib/unicase/u32-casefold.c: Update.
13311         * modules/unicase/u32-casefold (Depends-on): Add
13312         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13313         unicase/empty-suffix-context. Clean up.
13314
13315         Define u16_casefold as a wrapper around u16_ct_casefold.
13316         * lib/unicase/u16-casefold.c: Update.
13317         * modules/unicase/u16-casefold (Depends-on): Add
13318         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13319         unicase/empty-suffix-context. Clean up.
13320
13321         Define u8_casefold as a wrapper around u8_ct_casefold.
13322         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13323         * lib/unicase/u8-casefold.c: Update.
13324         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13325         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13326
13327         Define u32_totitle as a wrapper around u32_ct_totitle.
13328         * lib/unicase/u32-totitle.c: Update.
13329         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13330         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13331
13332         Define u16_totitle as a wrapper around u16_ct_totitle.
13333         * lib/unicase/u16-totitle.c: Update.
13334         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13335         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13336
13337         Define u8_totitle as a wrapper around u8_ct_totitle.
13338         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13339         functions.
13340         (FUNC): Delegate to U_CT_TOTITLE.
13341         * lib/unicase/u8-totitle.c: Update.
13342         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13343         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13344
13345         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13346         invocation.
13347         * modules/unicase/u32-tolower (Depends-on): Add
13348         unicase/empty-prefix-context, unicase/empty-suffix-context.
13349
13350         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13351         invocation.
13352         * modules/unicase/u16-tolower (Depends-on): Add
13353         unicase/empty-prefix-context, unicase/empty-suffix-context.
13354
13355         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13356         * modules/unicase/u8-tolower (Depends-on): Add
13357         unicase/empty-prefix-context, unicase/empty-suffix-context.
13358
13359         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13360         invocation.
13361         * modules/unicase/u32-toupper (Depends-on): Add
13362         unicase/empty-prefix-context, unicase/empty-suffix-context.
13363
13364         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13365         invocation.
13366         * modules/unicase/u16-toupper (Depends-on): Add
13367         unicase/empty-prefix-context, unicase/empty-suffix-context.
13368
13369         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13370         * modules/unicase/u8-toupper (Depends-on): Add
13371         unicase/empty-prefix-context, unicase/empty-suffix-context.
13372
13373         New module 'unicase/u32-ct-casefold'.
13374         * lib/unicase/u32-ct-casefold.c: New file.
13375         * modules/unicase/u32-ct-casefold: New file.
13376
13377         New module 'unicase/u16-ct-casefold'.
13378         * lib/unicase/u16-ct-casefold.c: New file.
13379         * modules/unicase/u16-ct-casefold: New file.
13380
13381         New module 'unicase/u8-ct-casefold'.
13382         * lib/unicase/u8-ct-casefold.c: New file.
13383         * lib/unicase/u-ct-casefold.h: New file, derived from
13384         lib/unicase/u-casefold.h.
13385         * modules/unicase/u8-ct-casefold: New file.
13386
13387         New module 'unicase/u32-ct-totitle'.
13388         * lib/unicase/u32-ct-totitle.c: New file.
13389         * modules/unicase/u32-ct-totitle: New file.
13390
13391         New module 'unicase/u16-ct-totitle'.
13392         * lib/unicase/u16-ct-totitle.c: New file.
13393         * modules/unicase/u16-ct-totitle: New file.
13394
13395         New module 'unicase/u8-ct-totitle'.
13396         * lib/unicase/u8-ct-totitle.c: New file.
13397         * lib/unicase/u-ct-totitle.h: New file, derived from
13398         lib/unicase/u-totitle.h.
13399         * modules/unicase/u8-ct-totitle: New file.
13400
13401         New module 'unicase/u32-ct-tolower'.
13402         * lib/unicase/u32-ct-tolower.c: New file.
13403         * modules/unicase/u32-ct-tolower: New file.
13404
13405         New module 'unicase/u16-ct-tolower'.
13406         * lib/unicase/u16-ct-tolower.c: New file.
13407         * modules/unicase/u16-ct-tolower: New file.
13408
13409         New module 'unicase/u8-ct-tolower'.
13410         * lib/unicase/u8-ct-tolower.c: New file.
13411         * modules/unicase/u8-ct-tolower: New file.
13412
13413         New module 'unicase/u32-ct-toupper'.
13414         * lib/unicase/u32-ct-toupper.c: New file.
13415         * modules/unicase/u32-ct-toupper: New file.
13416
13417         New module 'unicase/u16-ct-toupper'.
13418         * lib/unicase/u16-ct-toupper.c: New file.
13419         * modules/unicase/u16-ct-toupper: New file.
13420
13421         New module 'unicase/u8-ct-toupper'.
13422         * lib/unicase/u8-ct-toupper.c: New file.
13423         * modules/unicase/u8-ct-toupper: New file.
13424
13425         Add context arguments to u*_casemap functions.
13426         * lib/unicase/unicasemap.h: Include unicase.h.
13427         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13428         suffix_context arguments.
13429         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13430         functions.
13431         (FUNC): Add prefix_context and suffix_context arguments. Use
13432         uc_is_cased and uc_is_case_ignorable.
13433         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13434         * lib/unicase/u16-casemap.c: Likewise.
13435         * lib/unicase/u32-casemap.c: Likewise.
13436         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13437         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13438         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13439         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13440         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13441         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13442
13443         New module 'unicase/u32-suffix-context'.
13444         * lib/unicase/u32-suffix-context.c: New file.
13445         * modules/unicase/u32-suffix-context: New file.
13446
13447         New module 'unicase/u16-suffix-context'.
13448         * lib/unicase/u16-suffix-context.c: New file.
13449         * modules/unicase/u16-suffix-context: New file.
13450
13451         New module 'unicase/u8-suffix-context'.
13452         * lib/unicase/u8-suffix-context.c: New file.
13453         * lib/unicase/u-suffix-context.h: New file.
13454         * modules/unicase/u8-suffix-context: New file.
13455
13456         New module 'unicase/empty-suffix-context'.
13457         * lib/unicase/empty-suffix-context.c: New file.
13458         * modules/unicase/empty-suffix-context: New file.
13459
13460         New module 'unicase/u32-prefix-context'.
13461         * lib/unicase/u32-prefix-context.c: New file.
13462         * modules/unicase/u32-prefix-context: New file.
13463
13464         New module 'unicase/u16-prefix-context'.
13465         * lib/unicase/u16-prefix-context.c: New file.
13466         * modules/unicase/u16-prefix-context: New file.
13467
13468         New module 'unicase/u8-prefix-context'.
13469         * lib/unicase/u8-prefix-context.c: New file.
13470         * lib/unicase/u-prefix-context.h: New file.
13471         * lib/unicase/context.h: New file.
13472         * modules/unicase/u8-prefix-context: New file.
13473
13474         New module 'unicase/empty-prefix-context'.
13475         * lib/unicase/empty-prefix-context.c: New file.
13476         * modules/unicase/empty-prefix-context: New file.
13477
13478         New module 'unicase/ignorable'.
13479         * lib/unicase/ignorable.c: New file.
13480         * modules/unicase/ignorable: New file.
13481
13482         New module 'unicase/cased'.
13483         * lib/unicase/caseprop.h: New file.
13484         * lib/unicase/cased.c: New file.
13485         * modules/unicase/cased: New file.
13486
13487         New functions for case mapping of substrings.
13488         * lib/unicase.h (casing_prefix_context_t): New type.
13489         (unicase_empty_prefix_context): New variable.
13490         (u8_casing_prefix_context, u16_casing_prefix_context,
13491         u32_casing_prefix_context, u8_casing_prefixes_context,
13492         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13493         declarations.
13494         (casing_suffix_context_t): New type.
13495         (unicase_empty_suffix_context): New variable.
13496         (u8_casing_suffix_context, u16_casing_suffix_context,
13497         u32_casing_suffix_context, u8_casing_suffixes_context,
13498         u16_casing_suffixes_context, u32_casing_suffixes_context,
13499         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13500         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13501         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13502         declarations.
13503
13504 2009-06-28  Jim Meyering  <meyering@redhat.com>
13505
13506         boostrap: indent only with spaces
13507         * build-aux/bootstrap: Indent only with spaces, never TABs.
13508
13509         bootstrap: split long lines
13510         * build-aux/bootstrap: Keep line length < 80.
13511
13512         bootstrap: sync from coreutils
13513         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13514         just as autoreconf does.  Verify a list of prerequisite
13515         package-name,version-number pairs if defined in bootstrap.conf.
13516         Refer to README-prereq, if prerequisites are not satisfied.
13517
13518 2009-06-27  Eric Blake  <ebb9@byu.net>
13519
13520         tests: add test for bogus NULL definition
13521         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13522         * tests/test-stdlib.c: Likewise.
13523         * tests/test-string.c: Likewise.
13524         * tests/test-locale.c: Likewise.
13525         * tests/test-unistd.c: Likewise.
13526         * modules/stdio-tests (Depends-on): Add verify.
13527         * modules/stdlib-tests (Depends-on): Likewise.
13528         * modules/string-tests (Depends-on): Likewise.
13529         * modules/locale-tests (Depends-on): Likewise.
13530         * modules/unistd-tests (Depends-on): Likewise.
13531
13532 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13533
13534         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13535         self-explaining comment.
13536         * m4/selinux-selinux-h: Update serial.
13537         (gl_LIBSELINUX): New macro, adding a warning for missing development
13538         packages to code extracted from...
13539         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13540         Add warning for missing development packages here, too.
13541
13542 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13543
13544         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13545
13546 2009-06-25  Eric Blake  <ebb9@byu.net>
13547
13548         version-etc: fix regression
13549         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13550         gcc.
13551         (version_etc): Use it, to catch bugs with trailing NULL.
13552         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13553         (version_etc_va): Fix logic bug.
13554         * modules/version-etc-tests: Add test.
13555         * tests/test-version-etc.c: New file.
13556         * tests/test-version-etc.sh: Likewise.
13557
13558 2009-06-25  Sam Steingold  <sds@gnu.org>
13559
13560         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13561         mbtowc declaration.
13562
13563 2009-06-25  Eric Blake  <ebb9@byu.net>
13564
13565         fpurge: migrate into <stdio.h>
13566         * lib/fpurge.h: Delete...
13567         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13568         * lib/fpurge.c (fpurge): Change declaring header.
13569         * modules/fpurge (Files): Drop deleted file.
13570         (Depends-on): Add stdio.
13571         (configure.ac): Set witness.
13572         * modules/stdio (Makefile.am): Support fpurge macros.
13573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13574         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13575         * lib/fflush.c: Update client.
13576         * tests/test-fpurge.c: Likewise.
13577         * NEWS: Mention the change.
13578
13579 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13580
13581         * lib/argp-version-etc.c (program_authors): Add const
13582         qualifier.
13583         * lib/version-etc.c: Fix typos in the comments.
13584         * modules/argp-version-etc: Depends on version-etc.
13585
13586 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13587
13588         argp-version-etc: new module.
13589
13590         * lib/argp-version-etc.c: New file.
13591         * lib/argp-version-etc.h: New file.
13592         * modules/argp-version-etc: New file.
13593         * modules/argp-version-etc-tests: New file.
13594         * tests/test-argp-version-etc.c: New test.
13595         * tests/test-argp-version-etc-1.sh: New test.
13596
13597 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13598
13599         Provide additional interfaces and documentation for version-etc
13600         module.
13601
13602         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13603         interfaces.
13604         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13605         prototypes.
13606
13607 2009-06-24  Bruno Haible  <bruno@clisp.org>
13608
13609         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13610         HAVE_LIB${NAME} macro.
13611         Reported by Sam Steingold <sds@gnu.org>.
13612
13613 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13614
13615         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13616         needed.
13617
13618 2009-06-21  Bruno Haible  <bruno@clisp.org>
13619
13620         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13621         work.
13622         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13623         together with LIB${NAME}, LTLIB${NAME}.
13624         Reported by Sam Steingold <sds@gnu.org>.
13625
13626 2009-06-20  Jim Meyering  <meyering@redhat.com>
13627
13628         tests: make sc_require_test_exit_idiom more generic
13629         * top/maint.mk (Exit_witness_file): New overridable variable.
13630         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13631         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13632
13633 2009-06-19  Jim Meyering  <meyering@redhat.com>
13634
13635         hash: reverse order of src/dst parameters in an internal interface
13636         * lib/hash.c (transfer_entries): Reverse order of parameters to
13637         put DST before SRC.  Adjust callers.
13638
13639         tests: test-hash: avoid wholesale duplication
13640         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13641         Instead, use a loop and add a single conditional.
13642
13643         tests: test-hash: allow seed selection via a command line argument
13644         * tests/test-hash.c (get_seed): New function.
13645         (main): Use it.
13646
13647 2009-06-19  Eric Blake  <ebb9@byu.net>
13648
13649         hash: avoid memory leak on allocation failure
13650         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13651         failure.  Factor repeated algorithm...
13652         (transfer_entries): ...into new helper routine.
13653         (hash_delete): React to hash_rehash return value.
13654
13655         hash: reduce memory pressure in hash_rehash no-op case
13656         * lib/hash.c (next_prime): Avoid overflow.
13657         (hash_initialize): Factor bucket size computation...
13658         (compute_bucket_size): ...into new helper function.
13659         (hash_rehash): Use new function and open coding to reduce memory
13660         pressure, and avoid a memory leak in USE_OBSTACK code.
13661         Reported by Jim Meyering.
13662
13663 2009-06-18  Eric Blake  <ebb9@byu.net>
13664
13665         hash: make rotation more obvious
13666         * modules/hash (Depends-on): Add bitrotate and stdint.
13667         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13668         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13669         (SIZE_MAX): Rely on headers for definition.
13670         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13671         (raw_hasher): Use rotr_sz.
13672         Suggested by Jim Meyering.
13673
13674         hash: fix memory leak in last patch
13675         * lib/hash.c (hash_rehash): Avoid memory leak.
13676
13677         hash: avoid no-op rehashing
13678         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13679
13680         hash: provide default callback functions
13681         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13682         (hash_initialize): Use them as defaults.
13683         * tests/test-hash.c (main): Test this.
13684
13685         hash: minor optimization
13686         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13687         when possible.
13688         (hash_initialize): Document this promise.
13689         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13690         * tests/test-hash.c (hash_compare_strings): Test this.
13691
13692 2009-06-18  Bruno Haible  <bruno@clisp.org>
13693
13694         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13695         going to be replaced anyway.
13696
13697 2009-06-18  Bruno Haible  <bruno@clisp.org>
13698
13699         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13700         in one place.
13701         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13702         be replaced anyway.
13703
13704 2009-06-18  Eric Blake  <ebb9@byu.net>
13705
13706         hash: check for resize before insertion
13707         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13708         threshold before insertion, so that a pathological hash_rehash
13709         that fills every bucket can still trigger another rehash.
13710
13711 2009-06-18  Jim Meyering  <meyering@redhat.com>
13712
13713         hash-tests: add a loop around the small tests
13714         * tests/test-hash.c (main): Repeat small tests with selected
13715         small initial table sizes.
13716
13717 2009-06-17  Eric Blake  <ebb9@byu.net>
13718
13719         hash: minor cleanups
13720         * lib/hash.h (hash_entry): Make opaque, by moving...
13721         * lib/hash.c (hash_entry): ...here.
13722         (hash_insert): Clarify restrictions on what can be inserted.
13723         (hash_get_next): Clarify when it is safe to remove an element
13724         during traversal.
13725         (check_tuning): Skip verification when tuning is known safe.
13726         (hash_initialize): Clarify restrictions on tuning.
13727
13728 2009-06-17  Jim Meyering  <jim@meyering.net>
13729         and Eric Blake  <ebb9@byu.net>
13730
13731         hash-tests: new module
13732         * modules/hash-tests: New file.
13733         * tests/test-hash.c: New file.
13734
13735 2009-06-17  Eric Blake  <ebb9@byu.net>
13736
13737         strstr-simple: document new module
13738         * MODULES.html.sh: Document new module.
13739
13740         strstr, strcasestr: replace on platforms with broken memchr
13741         * modules/strstr: Split into...
13742         * modules/strstr-simple: ...new module that does not care about
13743         performance, but does care about glibc bug.
13744         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13745         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13746         if platform memchr is broken, per Debian bug 521737.
13747         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13748         memchr.
13749         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13750         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13751         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13752         * modules/mountlist (Depends-on): Add strstr-simple.
13753         * modules/gen-uni-tables (Depends-on): Likewise.
13754         * modules/argz (Depends-on): Add strstr.
13755
13756 2009-06-17  Bruno Haible  <bruno@clisp.org>
13757
13758         * modules/posix_spawn-internal (Depends-on): Add errno.
13759
13760 2009-06-17  Bruno Haible  <bruno@clisp.org>
13761
13762         Define missing ESTALE on Interix 3.5.
13763         * lib/errno.in.h (ESTALE): Assign a value if missing.
13764         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13765         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13766         missing.
13767         * doc/posix-headers/errno.texi: Mention the Interix bug.
13768         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13769
13770 2009-06-15  Eric Blake  <ebb9@byu.net>
13771
13772         memchr, memchr2: add valgrind exception
13773         * lib/memchr.valgrind: New file.
13774         * lib/memchr2.valgrind: New file.
13775         * modules/memchr (Files): Distribute valgrind file.
13776         * modules/memchr2 (Files): Likewise.
13777
13778         docs: memchr is no longer obsolete
13779         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13780         * lib/string.in.h (memchr): Simplify logic.
13781
13782 2009-06-14  Jim Meyering  <meyering@redhat.com>
13783
13784         link-follow: fix the "checking..." message to not mention trailing slash
13785         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13786         never considered trailing slashes.
13787
13788 2009-06-14  Bruno Haible  <bruno@clisp.org>
13789
13790         * m4/memchr.m4: Mention also the bug on IA-64.
13791         * doc/posix-functions/memchr.texi: Likewise.
13792
13793 2009-06-12  Eric Blake  <ebb9@byu.net>
13794
13795         memchr: detect broken x86_64 and alpha implementations
13796         * modules/memchr-tests (Depends-on): Move mmap detection...
13797         * modules/memchr (Depends-on): ...here.
13798         (configure.ac): Set indicator.
13799         * lib/string.in.h (memchr): Declare replacement.
13800         * modules/string (Makefile.am): Trigger replacement.
13801         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13802         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13803         bugs.
13804         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13805         * modules/getpagesize (License): Relax license.
13806
13807 2009-06-11  Bruno Haible  <bruno@clisp.org>
13808
13809         * lib/idpriv.h: Add more references.
13810
13811 2009-06-08  Bruno Haible  <bruno@clisp.org>
13812
13813         Tests for module 'idpriv-droptemp'.
13814         * modules/idpriv-droptemp-tests: New file.
13815         * tests/test-idpriv-droptemp.sh: New file.
13816         * tests/test-idpriv-droptemp.su.sh: New file.
13817         * tests/test-idpriv-droptemp.c: New file.
13818
13819         New module 'idpriv-droptemp'.
13820         * lib/idpriv-droptemp.c: New file.
13821         * modules/idpriv-droptemp: New file.
13822
13823 2009-06-08  Bruno Haible  <bruno@clisp.org>
13824
13825         Tests for module 'idpriv-drop'.
13826         * modules/idpriv-drop-tests: New file.
13827         * tests/test-idpriv-drop.sh: New file.
13828         * tests/test-idpriv-drop.su.sh: New file.
13829         * tests/test-idpriv-drop.c: New file.
13830
13831         New module 'idpriv-drop'.
13832         * lib/idpriv.h: New file.
13833         * lib-idpriv-drop.c: New file.
13834         * m4/idpriv.m4: New file.
13835         * modules/idpriv-drop: New file.
13836
13837 2009-06-08  Bruno Haible  <bruno@clisp.org>
13838
13839         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13840         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13841         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13842         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13843         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13844         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13845         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13846
13847 2009-06-08  Eric Blake  <ebb9@byu.net>
13848
13849         test-strstr: use memory fence, when possible
13850         * tests/test-strstr.c (main): Use memory fence, in order to be
13851         more likely to trigger Debian bug 521737.
13852         * modules/strstr-tests (Files): Pull in additional files.
13853
13854         memchr: no longer obsolete, for wider field testing
13855         * modules/memchr (Status, Notice): Delete, this module is no
13856         longer obsolete.
13857         * modules/vasnprintf (Depends-on): Add memchr.
13858
13859 2009-06-07  Jim Meyering  <meyering@redhat.com>
13860
13861         hash: declare some functions with the warn_unused_result attribute
13862         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13863
13864 2009-06-07  Bruno Haible  <bruno@clisp.org>
13865
13866         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13867         Reported by Eric Blake.
13868
13869 2009-06-06  Eric Blake  <ebb9@byu.net>
13870
13871         test-alignof: fix typo with long double
13872         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13873         compiler error.
13874
13875 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13876
13877         Escape non-texinfo { and }s.
13878         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13879         markup error.
13880
13881 2009-06-04  Jim Meyering  <meyering@redhat.com>
13882
13883         gitlog-to-changelog: don't infloop on an empty commit log
13884         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13885         Reported by Boris Petersen <transacid@centerim.org>.
13886
13887 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13888
13889         version-etc: extend for packagers
13890         Add three new configure options, intended for packagers:
13891           --with-packager="packager name"
13892           --with-packager-version="packager-specific version"
13893           --with-packager-bug-reports="packager bug reporting"
13894         An example with coreutils:
13895           $ ./configure \
13896             --with-packager=Gentoo \
13897             --with-packager-bug-report=http://bugs.gentoo.org/ \
13898             --with-packager-version="patchset 1.6"
13899           $ ./src/ls --version | head -n2
13900           ls (GNU coreutils) 7.1-dirty
13901           Packaged by Gentoo (patchset 1.6)
13902         Note that the bug reporting info via --help doesn't show up because
13903         coreutils uses its own custom emit_bug_reporting_address() implementation
13904         in src/system.h.  If it didn't, it'd look like:
13905           $ ./src/ls --help | tail -n4
13906           Report bugs to <bug-coreutils@gnu.org>.
13907           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13908           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13909           General help using GNU software: <http://www.gnu.org/gethelp/>.
13910         * lib/version-etc.c: Print new information, if provided.
13911         * m4/version-etc.m4: New file.
13912         * modules/version-etc (Files): Add m4/version-etc.m4.
13913         (configure.ac): Add gl_VERSION_ETC.
13914
13915 2009-05-31  Bruno Haible  <bruno@clisp.org>
13916
13917         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13918         and 'int64_t'.
13919         * modules/alignof-tests (Dependencies): Add stdint.
13920         Reported by Eric Blake.
13921
13922 2009-05-31  Bruno Haible  <bruno@clisp.org>
13923
13924         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13925         restriction due to compiler bugs.
13926         Reported by Eric Blake.
13927
13928 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13929             Bruno Haible  <bruno@clisp.org>
13930
13931         Fix test-alignof failure.
13932         * lib/alignof.h (alignof_slot): New macro.
13933         (alignof_type): New macro, with the same semantics as the previous
13934         'alignof'.
13935         (alignof): Alias to alignof_slot.
13936         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13937         check that the results are usable as constant expressions.
13938
13939 2009-05-31  Bruno Haible  <bruno@clisp.org>
13940
13941         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13942         * tests/test-memchr.c (main): Check that memchr does not read past the
13943         first occurrence of the byte.
13944         * tests/test-strstr.c (main): Update comment.
13945         Suggested by Eric Blake.
13946
13947 2009-05-30  Bruno Haible  <bruno@clisp.org>
13948
13949         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13950         detail how to use dumpbin.
13951         Reported by David Byron <dbyron@dbyron.com>.
13952
13953 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13954
13955         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13956
13957 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13958
13959         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13960
13961 2009-05-28  Bruno Haible  <bruno@clisp.org>
13962
13963         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13964         build-aux/ files.
13965
13966 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13967
13968         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13969
13970 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13971
13972         * gnulib-tool (sed_transform_main_lib_file)
13973         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13974         regexps.
13975
13976 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13977
13978         * tests/test-strstr.c: Add another self-test.
13979         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13980         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13981
13982 2009-05-23  Bruno Haible  <bruno@clisp.org>
13983
13984         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13985         change.
13986
13987 2009-05-21  Bruno Haible  <bruno@clisp.org>
13988
13989         Simplify use of mode_t varargs.
13990         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13991         uses 'mode_t' or 'int'.
13992         * lib/openat.c (openat): Likewise.
13993         * lib/open-safer.c (open_safer): Likewise.
13994         * m4/mode_t.m4: New file.
13995         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13996         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13997         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13998         * modules/open (Files): Add m4/mode_t.m4.
13999         * modules/openat (Files): Likewise.
14000         * modules/fcntl-safer (Files): Likewise.
14001         Suggested by Eric Blake.
14002
14003 2009-05-21  Pádraig Brady  <P@draigbrady.com>
14004
14005         * doc/glibc-functions/fallocate.texi: New file.
14006         * doc/gnulib.texi: Include it.
14007
14008 2009-05-21  Eric Blake  <ebb9@byu.net>
14009             Bruno Haible  <bruno@clisp.org>
14010
14011         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
14012         invocations.
14013         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14014
14015 2009-05-21  Eric Blake  <ebb9@byu.net>
14016             Bruno Haible  <bruno@clisp.org>
14017
14018         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
14019         include_next. Fix of 2008-11-20 commit.
14020         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
14021         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
14022         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
14023         NEXT_MATH_H.
14024         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
14025         instead of NEXT_MATH_H.
14026
14027 2009-05-21  Bruno Haible  <bruno@clisp.org>
14028
14029         Avoid redefinition warnings for SIZE_MAX.
14030         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
14031         Reported by Simon Josefsson.
14032
14033 2009-05-21  Bruno Haible  <bruno@clisp.org>
14034
14035         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
14036         AC_CACHE_VAL.
14037
14038 2009-05-20  Bruno Haible  <bruno@clisp.org>
14039
14040         Make zeroptr.h work on mingw.
14041         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
14042         mprotect.
14043         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
14044         * modules/memchr2-tests (configure.ac): Likewise.
14045         * modules/memcmp-tests (configure.ac): Likewise.
14046         * modules/memmem-tests (configure.ac): Likewise.
14047         * modules/memrchr-tests (configure.ac): Likewise.
14048         Reported by Simon Josefsson.
14049
14050 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14051
14052         * tests/test-glob.c: Include string.h for strcmp prototype.
14053
14054 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14055
14056         * modules/getdelim (Depends-on): Add explicit stdint, although it
14057         was implicitly already pulled in via realloc-posix.
14058         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
14059
14060 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14061
14062         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
14063         G. Christensen" <tgc@jupiterrise.com>.
14064         * m4/sys_socket_h.m4: Check for sa_family_t.
14065         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
14066         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
14067         * tests/test-sys_socket.c: Check that sa_family_t works.
14068
14069 2009-05-18  Eric Blake  <ebb9@byu.net>
14070
14071         maint.mk: allow gnulib_dir in VPATH build
14072         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
14073
14074 2009-05-15  Jim Meyering  <meyering@redhat.com>
14075
14076         maint.mk: Give gnulib_dir a default definition.
14077         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
14078         Thus, most packages no longer need to specify this variable in cfg.mk
14079
14080 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
14081
14082         rename.m4: fix typos that would make non-mingw cross-configure fail
14083         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
14084
14085 2009-05-13  Eric Blake  <ebb9@byu.net>
14086
14087         mmap-anon: avoid out-of-order autoconf expansion
14088         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
14089         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
14090         * modules/memchr-tests (Depends-on): Add extensions.
14091         * modules/memchr2-tests (Depends-on): Add extensions.
14092         * modules/memcmp-tests (Depends-on): Add extensions.
14093         * modules/memmem-tests (Depends-on): Add extensions.
14094         * modules/memrchr-tests (Depends-on): Add extensions.
14095
14096 2009-05-13  Bruno Haible  <bruno@clisp.org>
14097
14098         Make some tests ISO C 99 compliant.
14099         * tests/zerosize-ptr.h: New file.
14100         * tests/test-memchr.c: Include zerosize-ptr.h.
14101         (main): Use a zero-size object pointer instead of NULL.
14102         * tests/test-memchr2.c: Include zerosize-ptr.h.
14103         (main): Use a zero-size object pointer instead of NULL.
14104         * tests/test-memcmp.c: Include zerosize-ptr.h.
14105         (main): Use a zero-size object pointer instead of NULL.
14106         * tests/test-memmem.c: Include zerosize-ptr.h.
14107         (main): Use a zero-size object pointer instead of NULL.
14108         * tests/test-memrchr.c: Include zerosize-ptr.h.
14109         (main): Use a zero-size object pointer instead of NULL.
14110         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14111         m4/mmap-anon.m4.
14112         (Depends-on): Add getpagesize.
14113         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14114         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14115         m4/mmap-anon.m4.
14116         (Depends-on): Add getpagesize.
14117         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14118         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14119         m4/mmap-anon.m4.
14120         (Depends-on): Add getpagesize.
14121         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14122         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14123         m4/mmap-anon.m4.
14124         (Depends-on): Add getpagesize.
14125         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14126         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14127         m4/mmap-anon.m4.
14128         (Depends-on): Add getpagesize.
14129         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14130
14131 2009-05-12  Bruno Haible  <bruno@clisp.org>
14132
14133         Tests for module 'alignof'.
14134         * modules/alignof-tests: New file.
14135         * tests/test-alignof.c: New file.
14136
14137 2009-05-12  Bruno Haible  <bruno@clisp.org>
14138
14139         Fix alignof macro.
14140         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14141         vendor compilers that are always correct.
14142
14143 2009-05-12  Bruno Haible  <bruno@clisp.org>
14144
14145         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14146         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14147         not whether its fully works.
14148
14149 2009-05-12  Bruno Haible  <bruno@clisp.org>
14150
14151         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14152
14153 2009-05-12  Jim Meyering  <meyering@redhat.com>
14154
14155         * top/maint.mk: Adjust backslash alignment.
14156
14157 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14158
14159         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14160
14161 2009-05-11  Eric Blake  <ebb9@byu.net>
14162
14163         argp: avoid undefined behavior
14164         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14165         macros.
14166
14167 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14168
14169         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14170         user.name to prevent git commit from complaining.
14171
14172 2009-05-10  Bruno Haible  <bruno@clisp.org>
14173
14174         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14175         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14176         it rewrites every file name only once.
14177         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14178
14179 2009-05-08  Bruno Haible  <bruno@clisp.org>
14180
14181         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14182         instead of 'max'.
14183
14184 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14185
14186         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14187         sockaddr_storage test.
14188
14189 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14190
14191         * modules/sys_socket (Makefile.am): Substitute
14192         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14193         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14194         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14195         * tests/test-sys_socket.c: Check sockaddr_storage.
14196
14197 2009-05-08  Bruno Haible  <bruno@clisp.org>
14198
14199         New module 'alignof'.
14200         * lib/alignof.h: New file.
14201         * modules/alignof: New file.
14202
14203 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14204             Bruno Haible  <bruno@clisp.org>
14205
14206         Fix test-file-has-acl on FreeBSD.
14207         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14208         mask is implicitly added.
14209         * tests/test-file-has-acl.c: Include <signal.h>.
14210         (main): Terminate the test after 5 seconds.
14211         * modules/acl-tests (configure.ac): Check for alarm function.
14212
14213 2009-05-04  Bruno Haible  <bruno@clisp.org>
14214
14215         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14216         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14217         * modules/errno (configure.ac): Drop AC_REQUIRE.
14218         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14219         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14220
14221 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14222
14223         * modules/glob-tests: New module.
14224         * tests/test-glob.c: Add.
14225
14226 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14227
14228         * modules/fnmatch-tests: New module.
14229         * tests/test-fnmatch.c: Add.
14230
14231 2009-05-04  Eric Blake  <ebb9@byu.net>
14232
14233         maint: make the new no-submodule-changes rule VPATH-safe
14234         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14235
14236 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14237             Bruno Haible  <bruno@clisp.org>
14238
14239         acl: Fix infinite loop on FreeBSD.
14240         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14241         of return value from acl_get_entry.
14242         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14243         Likewise.
14244
14245 2009-05-03  Bruno Haible  <bruno@clisp.org>
14246
14247         * lib/acl-internal.h (acl_entries): Clarify return value.
14248         * lib/acl_entries.c (acl_entries): Likewise.
14249
14250 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14251
14252         Bug fix in acl module.
14253         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14254
14255 2009-05-03  Bruno Haible  <bruno@clisp.org>
14256
14257         Create gperf-generated file in the source dir, not in the build dir.
14258         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14259         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14260         * modules/unicase/locale-language (unicase/locale-languages.h):
14261         Likewise.
14262         * modules/unicase/special-casing (unicase/special-casing-table.h):
14263         Likewise.
14264         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14265         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14266         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14267         Reported by Ralf Wildenhues.
14268
14269 2009-05-03  Bruno Haible  <bruno@clisp.org>
14270
14271         * modules/fnmatch (Description, configure.ac): Taken from
14272         fnmatch-posix.
14273         * modules/fnmatch-posix: Turn into a symbolic reference to the
14274         'fnmatch' module, and deprecate.
14275         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14276
14277 2009-05-03  Bruno Haible  <bruno@clisp.org>
14278
14279         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14280         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14281         Reported by Ralf Wildenhues.
14282
14283 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14284
14285         * m4/fnmatch.m4: Fix fnmatch re-define.
14286
14287 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14288
14289         priv-set: new module and tests; adapt write-any-file
14290         * lib/priv-set.c: New file.
14291         * lib/priv-set.h: New file.
14292         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14293         * lib/write-any-file.c: Simplify by using priv-set module.
14294         * m4/priv-set.m4: New file.
14295         * modules/priv-set: New file.
14296         * modules/unlinkdir: Add dependency on priv-set module.
14297         * modules/write-any-file: Likewise.
14298
14299         Tests for module 'priv-set'.
14300         * modules/priv-set-tests: New file.
14301         * tests/test-priv-set.c: New file.
14302
14303 2009-05-03  Jim Meyering  <meyering@redhat.com>
14304             Bruno Haible  <bruno@clisp.org>
14305
14306         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14307         use the converted UTF-8 variant of the name instead.
14308
14309 2009-05-03  Jim Meyering  <meyering@redhat.com>
14310
14311         tests: tighten some getdate tests
14312         * tests/test-getdate.c (main): Tighten tests: require equality,
14313         not just greater than.  Set TZ envvar to UTC0.
14314
14315 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14316
14317         getdate: correctly interpret "next monday" when run on a Monday
14318         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14319         that e.g., "next tues" (when run on a tuesday) results in a date
14320         that is one week in the future, and not today's date.
14321         I.e., add a week when the wday is the same as the current one.
14322         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14323         and earlier by Martin Bernreuther and Jan Minář.
14324         * tests/test-getdate.c (main): Check that "next DAY" is always in
14325         the future and that "last DAY" is always in the past.
14326
14327 2009-05-02  Jim Meyering  <meyering@redhat.com>
14328
14329         build: ensure that a release build fails when a submodule is unclean
14330         * top/maint.mk (no-submodule-changes): New rule.
14331         (alpha beta major): Depend on it.
14332
14333 2009-05-02  Bruno Haible  <bruno@clisp.org>
14334
14335         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14336         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14337         shell variable gl_fnmatch_required to detect which variant is
14338         requested.
14339         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14340         gl_FUNC_FNMATCH_POSIX.
14341         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14342         exclude fnmatch-posix.
14343
14344 2009-05-02  Bruno Haible  <bruno@clisp.org>
14345
14346         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14347         * modules/mbsrtowcs (License): Change to LGPLv2+.
14348         * modules/strnlen1 (License): Likewise.
14349         Reported by Simon Josefsson.
14350
14351 2009-05-02  Bruno Haible  <bruno@clisp.org>
14352
14353         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14354         "cross".
14355         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14356         gnulib-tool was called with option --source-base=lib.
14357
14358 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14359
14360         Use automake *-local hooks without commands, for extensibility.
14361         * modules/localcharset (Makefile.am): Rename install-exec-local
14362         rule to install-exec-localcharset, and make it a prerequisite of
14363         install-exec-local.  Likewise, rename the uninstall-local rule to
14364         uninstall-localcharset, and make it a prerequisite of the former.
14365
14366 2009-05-01  Bruno Haible  <bruno@clisp.org>
14367
14368         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14369         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14370         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14371         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14372         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14373         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14374         m4/locale-zh.m4, m4/codeset.m4.
14375
14376         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14377         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14378         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14379         m4/locale-zh.m4.
14380
14381         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14382         REPLACE_WCRTOMB if mbstate_t must be replaced.
14383         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14384         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14385
14386 2009-05-01  Bruno Haible  <bruno@clisp.org>
14387
14388         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14389         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14390         dngettext, dcngettext, textdomain, bindtextdomain,
14391         bind_textdomain_codeset): Undefine before redefining.
14392
14393 2009-04-30  Bruno Haible  <bruno@clisp.org>
14394
14395         Fix bug introduced on 2009-04-25.
14396         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14397         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14398         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14399         is defined.
14400         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14401         is defined.
14402         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14403         is defined.
14404         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14405
14406 2009-04-28  Bruno Haible  <bruno@clisp.org>
14407
14408         Comment tweaks.
14409         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14410         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14411         * lib/unicase.h (u*_casexfrm): Likewise.
14412         Reported by Paolo Bonzini.
14413
14414 2009-04-28  Bruno Haible  <bruno@clisp.org>
14415
14416         Fix a compilation error.
14417         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14418         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14419         Reported by Jim Meyering.
14420
14421 2009-04-27  Bruno Haible  <bruno@clisp.org>
14422
14423         New module 'libunistring'.
14424         * modules/libunistring: New file.
14425         * m4/libunistring.m4: New file.
14426         * MODULES.html.sh (Unicode string functions): Add it.
14427
14428 2009-04-27  Eric Blake  <ebb9@byu.net>
14429
14430         maint.mk: allow package-specific header to provide <config.h>
14431         * top/maint.mk (sc_require_config_h): New variable.
14432         (sc_require_config_h, sc_require_config_h_first): Use it.
14433
14434 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14435
14436         * top/maint.mk (sc_avoid_if_before_free): Except
14437         useless-if-before-free script.
14438
14439 2009-04-27  Eric Blake  <ebb9@byu.net>
14440
14441         maintainer-makefile: depend on all required helper scripts
14442         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14443         useless-if-before-free.
14444         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14445         version, rather than assuming gnulib checkout is available.
14446         Reported by Simen Josefsson.
14447
14448 2009-04-26  Bruno Haible  <bruno@clisp.org>
14449
14450         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14451         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14452         "../" or "..".
14453
14454 2009-04-26  Bruno Haible  <bruno@clisp.org>
14455
14456         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14457         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14458         AC_LIB_HAVE_LINKFLAGS.
14459
14460 2009-04-26  Bruno Haible  <bruno@clisp.org>
14461
14462         Simplify calling convention of u*_conv_from_encoding.
14463         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14464         u32_conv_from_encoding): Expect a resultbuf argument and return the
14465         result directly as a pointer.
14466         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14467         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14468         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14469         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14470         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14471         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14472         Update.
14473         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14474         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14475         * lib/vasnprintf.c (VASNPRINTF): Update.
14476         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14477         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14478         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14479         * NEWS: Mention the change.
14480
14481 2009-04-26  Bruno Haible  <bruno@clisp.org>
14482
14483         Simplify calling convention of u*_conv_to_encoding.
14484         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14485         u32_conv_to_encoding): Expect a resultbuf argument and return the
14486         result directly as a pointer.
14487         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14488         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14489         freeing scaled_offsets if mem_iconveha failed.
14490         * lib/unicase/u-casexfrm.h (FUNC): Update.
14491         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14492         * lib/vasnprintf.c (VASNPRINTF): Update.
14493         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14494         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14495         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14496         * NEWS: Mention the change.
14497
14498 2009-04-26  Bruno Haible  <bruno@clisp.org>
14499
14500         Avoid test failures on AIX and OSF/1.
14501         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14502         malloc(0).
14503         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14504         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14505         Likewise.
14506         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14507         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14508         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14509         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14510         * doc/posix-functions/malloc.texi: Document the portability problem
14511         related to malloc(0).
14512
14513 2009-04-26  Bruno Haible  <bruno@clisp.org>
14514
14515         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14516         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14517         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14518
14519 2009-04-25  Bruno Haible  <bruno@clisp.org>
14520
14521         Avoid link error when creating a namespace clean library.
14522         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14523         as macro with arguments if already defined as an alias.
14524         * lib/signbitf.c (gl_signbitf): Don't undefine.
14525         * lib/signbitd.c (gl_signbitd): Don't undefine.
14526         * lib/signbitl.c (gl_signbitl): Don't undefine.
14527
14528 2009-04-25  Jim Meyering  <meyering@redhat.com>
14529
14530         vc-list-files: fix another quoting bug
14531         * build-aux/vc-list-files: Avoid sed backslash expansion
14532         of pathological directory names.
14533
14534 2009-04-25  Eric Blake  <ebb9@byu.net>
14535
14536         vc-list-files: fix shell quoting error
14537         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14538         timestamp.
14539
14540 2009-04-25  Jim Meyering  <meyering@redhat.com>
14541
14542         vc-list-files: restore lost functionality with subdir argument
14543         * build-aux/vc-list-files: When given a non-"." sub-directory
14544         argument, substitute the $dir/ prefix back onto each resulting name.
14545         Otherwise, coreutils' root_tests check would fail.
14546
14547 2009-04-24  Eric Blake  <ebb9@byu.net>
14548
14549         vc-list-files: ignore git symlinks
14550         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14551         than ls-files, to ignore git symlinks.
14552
14553         maint.mk: import improvements from m4
14554         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14555         (move_if_change): Delete unused macro.
14556         (news-date-check, vc-diff-check): Support VPATH builds.
14557         (announcement): Likewise.  Split --bootstrap-tools list...
14558         (boostrap-tools): ...into separate list, which can be overridden
14559         in cfg.mk.
14560         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14561         requiring dependency on useless-if-before-free module.
14562         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14563         Support VPATH builds.
14564
14565 2009-04-24  Jim Meyering  <meyering@redhat.com>
14566
14567         maint.mk: remove coreutils-specific rules and variables
14568         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14569         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14570         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14571
14572         maint.mk: remove obsolete rule
14573         * top/maint.mk (rel-check): Remove rule.
14574         (WGET, WGETFLAGS): Remove now-unused variables.
14575
14576 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14577
14578         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14579         consistency.
14580
14581         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14582         '$(PATH_SEPARATOR)' instead of ':'.
14583
14584 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14585
14586         * lib/getopt1.c (main): Use 'const' for static array.
14587
14588 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14589
14590         * top/maint.mk: Sync with coreutils.
14591         * NEWS: Explain incompatibilities.
14592
14593 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14594             Bruno Haible  <bruno@clisp.org>
14595
14596         Fix cross-compilation results.
14597         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14598         statement, as third argument of AC_TRY_RUN.
14599         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14600         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14601         Likewise.
14602         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14603         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14604         Likewise.
14605         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14606         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14607         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14608
14609 2009-04-20  Bruno Haible  <bruno@clisp.org>
14610
14611         Avoid test failure on mingw.
14612         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14613
14614 2009-04-20  Bruno Haible  <bruno@clisp.org>
14615
14616         Avoid compilation error on mingw.
14617         * modules/localename-tests (Depends-on): Add locale.
14618
14619 2009-04-19  Bruno Haible  <bruno@clisp.org>
14620
14621         Support for building a shared library on Windows platforms.
14622         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14623         (main): Test the presence of UNINORM_NFC here.
14624         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14625         (main): Test the presence of UNINORM_NFD here.
14626         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14627         (main): Test the presence of UNINORM_NFKC here.
14628         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14629         (main): Test the presence of UNINORM_NFKD here.
14630
14631 2009-04-19  Bruno Haible  <bruno@clisp.org>
14632
14633         Avoid a compiler warning.
14634         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14635         Change type of variable 'sequence'.
14636
14637 2009-04-19  Bruno Haible  <bruno@clisp.org>
14638
14639         * modules/configmake (Makefile.am): When the contents of configmake.h
14640         does not change, arrange to preserve its modification time.
14641
14642 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14643
14644         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14645         gettext domain.
14646
14647 2009-04-16  Jim Meyering  <meyering@redhat.com>
14648
14649         useless-if-before-free: improve conversion code
14650         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14651         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14652
14653 2009-04-14  Bruno Haible  <bruno@clisp.org>
14654
14655         * modules/fcntl (Depends-on): Add extensions.
14656         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14657
14658 2009-04-12  Ben Pfaff  <blp@gnu.org>
14659
14660         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14661         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14662
14663 2009-03-20  Ben Pfaff  <blp@gnu.org>
14664
14665         Make rename replace existing destinations on Windows.
14666         * m4/rename.m4: Add test for Mingw.
14667         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14668         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14669         * doc/posix-functions/rename.texi: Document.
14670
14671 2009-04-10  Bruno Haible  <bruno@clisp.org>
14672
14673         New include file "iconveh.h".
14674         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14675         * lib/striconveh.h: Include it.
14676         (enum iconv_ilseq_handler): Remove definition.
14677         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14678         striconveh.h.
14679         * lib/striconveha.c: Include striconveh.h.
14680         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14681         * modules/striconveh (Files): Add lib/iconveh.h.
14682         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14683         lib/striconveh.h.
14684
14685 2009-04-10  Bruno Haible  <bruno@clisp.org>
14686
14687         * lib/uniconv.h: Update comment.
14688
14689 2009-04-10  Bruno Haible  <bruno@clisp.org>
14690
14691         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14692         always.
14693         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14694         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14695         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14696         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14697         "unistring-notinline.h", so that the function gets defined always.
14698         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14699         * lib/unistr/u8-uctomb.c: Likewise.
14700         * lib/unistr/u16-mbtouc.c: Likewise.
14701         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14702         * lib/unistr/u16-uctomb.c: Likewise.
14703         * lib/unistr/u32-mbtouc.c: Likewise.
14704         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14705         * lib/unistr/u32-uctomb.c: Likewise.
14706
14707 2009-04-10  Bruno Haible  <bruno@clisp.org>
14708
14709         Mark 'utime' obsolete.
14710         * modules/utime (Status, Notice): New sections.
14711         Suggested by Jim Meyering.
14712
14713         Fix cross-compile guess for utime test.
14714         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14715         autoconf.
14716         * doc/posix-functions/utime.texi: Give more precisions.
14717         Reported by Jan <ipif@ymail.com>.
14718
14719 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14720
14721         filevercmp: correct today's change
14722         * lib/filevercmp.c: Also handle coreutils' test inputs.
14723         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14724
14725         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14726         for reporting it.
14727         * lib/filevercmp.c: Special handle for "", "." and "..".
14728         * tests/test-filevercmp.c: Enlarge the set suite.
14729
14730 2009-04-07  Jim Meyering  <meyering@redhat.com>
14731
14732         useless-if-before-free: show how to remove braced useless free, too
14733         * build-aux/useless-if-before-free: still only in a comment, though.
14734
14735 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14736
14737         maint.mk: import changes to syntax-check macros from coreutils
14738         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14739         Use them in the relevant macros.
14740
14741 2009-04-06  Bruno Haible  <bruno@clisp.org>
14742
14743         Fix unportable use of bit-fields.
14744         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14745         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14746         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14747
14748 2009-04-06  Bruno Haible  <bruno@clisp.org>
14749
14750         Avoid test failures on AIX and OSF/1.
14751         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14752         that malloc(0) = NULL.
14753         * tests/unicase/test-u8-tolower.c (check): Likewise.
14754         * tests/unicase/test-u8-totitle.c (check): Likewise.
14755         * tests/unicase/test-u8-toupper.c (check): Likewise.
14756         * tests/unicase/test-u16-casefold.c (check): Likewise.
14757         * tests/unicase/test-u16-tolower.c (check): Likewise.
14758         * tests/unicase/test-u16-totitle.c (check): Likewise.
14759         * tests/unicase/test-u16-toupper.c (check): Likewise.
14760         * tests/unicase/test-u32-casefold.c (check): Likewise.
14761         * tests/unicase/test-u32-tolower.c (check): Likewise.
14762         * tests/unicase/test-u32-totitle.c (check): Likewise.
14763         * tests/unicase/test-u32-toupper.c (check): Likewise.
14764         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14765         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14766         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14767         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14768         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14769         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14770         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14771         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14772         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14773         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14774         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14775         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14776
14777 2009-04-05  Bruno Haible  <bruno@clisp.org>
14778
14779         Work around an autoconf limitation.
14780         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14781         comment line if it would be longer than 3 KB.
14782
14783 2009-04-05  Bruno Haible  <bruno@clisp.org>
14784
14785         Avoid test failure with libiconv-1.13.
14786         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14787         of the expected test results.
14788
14789 2009-04-05  Bruno Haible  <bruno@clisp.org>
14790
14791         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14792         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14793         that it should be installed.
14794
14795 2009-04-05  Bruno Haible  <bruno@clisp.org>
14796
14797         * gnulib-tool: New option --copy-file.
14798         (func_usage): Document it.
14799         (func_dest_tmpfilename): Moved out of func_import.
14800         (func_add_file, func_update_file): New functions, extracted from
14801         func_import.
14802         (func_import): Update.
14803
14804 2009-04-05  Karl Berry  <karl@gnu.org>
14805
14806         * README: prominently mention gnulib-tool.
14807         Rearrange sections so getting the code is near the top.
14808
14809 2009-04-05  Bruno Haible  <bruno@clisp.org>
14810
14811         * lib/unicase.h: Mention u*_cmp2.
14812         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14813         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14814         * lib/unicase/ulc-casecmp.c: Likewise.
14815         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14816         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14817         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14818         unistr/u8-cmp.
14819         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14820         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14821         unistr/u16-cmp.
14822         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14823         unistr/u32-cmp.
14824
14825         * lib/uninorm.h: Mention u*_cmp2.
14826         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14827         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14828         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14829         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14830         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14831         unistr/u8-cmp.
14832         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14833         unistr/u16-cmp.
14834         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14835         unistr/u32-cmp.
14836
14837         New module 'unistr/u32-cmp2'.
14838         * lib/unistr/u32-cmp2.c: New file.
14839         * modules/unistr/u32-cmp2: New file.
14840
14841         New module 'unistr/u16-cmp2'.
14842         * lib/unistr/u16-cmp2.c: New file.
14843         * modules/unistr/u16-cmp2: New file.
14844
14845         New module 'unistr/u8-cmp2'.
14846         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14847         * lib/unistr/u8-cmp2.c: New file.
14848         * lib/unistr/u-cmp2.h: New file.
14849         * modules/unistr/u8-cmp2: New file.
14850
14851 2009-04-05  Bruno Haible  <bruno@clisp.org>
14852
14853         * lib/unictype.h (uc_property_is_valid): New macro.
14854         * tests/unictype/test-pr_byname.c (main): Use it.
14855
14856         * lib/unistr.h: Doc fixes.
14857         * lib/uniconv.h: Doc fixes.
14858         * lib/unictype.h: Doc fixes.
14859
14860 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14861
14862         Port coreutils 7.2 to Solaris 8.
14863
14864         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14865         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14866         for Solaris 8.  This is a bit of a hack, as it means it's the
14867         caller's responsibility to add -lnsl if needed, but most likely it
14868         won't be needed since only getaddrinfo uses this and getaddrinfo
14869         isn't needed on Solaris 8.
14870
14871         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14872         problem to Solaris 8 encountered with coreutils 7.2, which
14873         resulted in a message "fnmatch.c:292: warning: passing argument 4
14874         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14875         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14876
14877 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14878
14879         * m4/ld-version-script.m4: Add FIXME comment.
14880
14881 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14882
14883         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14884         SOVERSION variable.
14885
14886 2009-04-02  Bruno Haible  <bruno@clisp.org>
14887
14888         * Makefile (info, html, dvi, pdf): Combine the rules.
14889         Suggested by Jim Meyering.
14890
14891 2009-04-01  Bruno Haible  <bruno@clisp.org>
14892
14893         * Makefile (info, html, dvi, pdf): New targets.
14894         Reported by Reuben Thomas <rrt@sc3d.org>.
14895
14896 2009-04-01  Bruno Haible  <bruno@clisp.org>
14897
14898         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14899         can be put into PATH.
14900         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14901
14902 2009-04-01  Bruno Haible  <bruno@clisp.org>
14903
14904         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14905
14906 2009-04-01  Bruno Haible  <bruno@clisp.org>
14907
14908         Rename module 'visibility'.
14909         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14910         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14911         * doc/gnulib.texi: Update.
14912         * MODULES.html.sh (Misc): Update.
14913         * NEWS: Mention the change.
14914
14915 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14916
14917         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14918         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14919         Eric Blake <ebb9@byu.net> for review.
14920         * MODULES.html.sh: Add lib-msvc-compat.
14921         * doc/gnulib.texi: Link to new section.
14922         * m4/ld-output-def.m4: New file.
14923         * doc/ld-output-def.texi: New file.
14924
14925 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14926
14927         Rename ld-version-script to lib-symbol-versions.  Suggested by
14928         Bruno Haible <bruno@clisp.org>.
14929         * modules/ld-version-script: Renamed to lib-symbol-versions.
14930         * doc/ld-version-script.texi: Fix module name.
14931         * MODULES.html.sh: Add lib-symbol-versions.
14932
14933 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14934
14935         * modules/u64-tests: New file.
14936         * tests/test-u64.c: New file.
14937
14938 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14939
14940         * MODULES.html.sh: Mention u64.
14941         * modules/u64: New module.
14942         * modules/crypto/sha512: Depend on u64 module instead of providing
14943         u64.h.
14944
14945 2009-03-27  Eric Blake  <ebb9@byu.net>
14946
14947         test-strerror: make debugging EAI_SYSTEM easier
14948         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14949         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14950         failure was EAI_SYSTEM.
14951
14952 2009-03-25  Bruno Haible  <bruno@clisp.org>
14953
14954         Fix a problem with --enable-relocatable on Solaris 7.
14955         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14956         since 2008-02-24.
14957
14958 2009-03-25  Eric Blake  <ebb9@byu.net>
14959
14960         test-sockets: avoid gcc warning
14961         * tests/test-sockets.c (main): Silence compiler warning.
14962
14963 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14964
14965         New modules nproc, pthread, contributed by Glen Lenker.
14966
14967         * MODULES.html.sh: Add pthread, nproc.
14968         * lib/nproc.c: New file.
14969         * lib/nproc.h: New file.
14970         * lib/pthread.in.h: New file.
14971         * m4/pthread.m4: New file.
14972         * modules/nproc: New file.
14973         * modules/pthread: New file.
14974
14975 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14976
14977         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14978         New variable.
14979
14980 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14981
14982         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14983         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14984         * tests/test-filevercmp.c: Add tests for backup suffixes.
14985
14986 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14987
14988         * modules/stdlib (Depends-on): Add stdint, needed when defining
14989         struct random_data on, for example, HP-UX 10.20.  Reported by
14990         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14991
14992 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14993
14994         * lib/readline.c (readline): Call fflush on stdout after printing
14995         prompt.
14996
14997 2009-03-20  Bruno Haible  <bruno@clisp.org>
14998
14999         Remove dependency from 'close' module to -lws2_32 on native Windows.
15000         * lib/close-hook.h: New file.
15001         * lib/close-hook.c: New file.
15002         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
15003         w32sock.h.
15004         (_gl_close_fd_maybe_socket): Remove function.
15005         (rpl_close): Invoke execute_all_close_hooks instead of
15006         _gl_close_fd_maybe_socket.
15007         * lib/sockets.c: Include close-hook.h, w32sock.h.
15008         (close_fd_maybe_socket): New function, essentially from lib/close.c.
15009         (close_sockets_hook): New variable.
15010         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
15011         (gl_sockets_cleanup): Unregister it.
15012         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
15013         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
15014         * modules/close-hook: New file.
15015         * modules/close (Files): Remove lib/w32sock.h.
15016         (Depends-on): Add close-hook.
15017         (Link): Remove section.
15018         * modules/sockets (Files): Add lib/w32sock.h.
15019         (Depends-on): Add close-hook.
15020         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
15021         invocation.
15022         * NEWS: Mention that LIB_CLOSE is gone.
15023
15024 2009-03-23  Eric Blake  <ebb9@byu.net>
15025
15026         signal-tests: test previous patch
15027         * tests/test-signal.c: New file.
15028         * modules/signal-tests: Likewise.
15029
15030         signal.h: always support 'volatile sig_atomic_t'
15031         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
15032         (gl_SIGNAL_H_DEFAULTS): Add a default.
15033         * modules/signal (Makefile.am): Substitute if needed.
15034         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
15035         users can blindly add volatile.
15036         * doc/posix-headers/signal.texi (signal.h): Document it.
15037         Reported by Matthew Woehlke.
15038
15039 2009-03-23  Jim Meyering  <meyering@redhat.com>
15040
15041         pathmax: PATH_MAX: use pathconf only when available
15042         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
15043         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
15044         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
15045         This avoids a link failure in a PSP cross-compilation environment
15046         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
15047
15048         * lib/vasnprintf.c (divide): Fix typo in comment.
15049
15050 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15051
15052         * gnulib-tool (func_filter_filelist): Fix comment.
15053
15054 2009-03-20  Bruno Haible  <bruno@clisp.org>
15055
15056         Make sockets.h self-contained.
15057         * lib/sockets.c: Include sockets.h first.
15058         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
15059
15060 2009-03-19  Eric Blake  <ebb9@byu.net>
15061
15062         doc: mention more functions added in cygwin 1.7.0
15063         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
15064         addition.
15065         * doc/posix-functions/log2f.texi: Likewise.
15066
15067 2009-03-19  Jim Meyering  <meyering@redhat.com>
15068
15069         fsusage: avoid syntax error due to statement-before-declaration
15070         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
15071         after all declarations.  Reported by Matthew Woehlke in
15072         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
15073
15074 2009-03-18  Eric Blake  <ebb9@byu.net>
15075
15076         build-aux/compile: sync from automake
15077         * build-aux/compile: New file, from automake.
15078         * config/srclist.txt: Mention build-aux/compile.
15079
15080 2009-03-17  Bruno Haible  <bruno@clisp.org>
15081
15082         * lib/git-merge-changelog.c: Fix typo in comment.
15083         Reported by Reuben Thomas <rrt@sc3d.org>.
15084
15085 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
15086
15087         * m4/regex.m4: update and improve help for
15088         --without-included-regex.
15089
15090 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15091
15092         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15093         failure on missing include files.
15094
15095 2009-03-17  Eric Blake  <ebb9@byu.net>
15096
15097         doc: mention more functions added in cygwin 1.7.0
15098         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15099         addition.
15100         * doc/posix-functions/fwscanf.texi: Likewise.
15101         * doc/posix-functions/swprintf.texi: Likewise.
15102         * doc/posix-functions/swscanf.texi: Likewise.
15103         * doc/posix-functions/vfwprintf.texi: Likewise.
15104         * doc/posix-functions/vfwscanf.texi: Likewise.
15105         * doc/posix-functions/vswprintf.texi: Likewise.
15106         * doc/posix-functions/vswscanf.texi: Likewise.
15107         * doc/posix-functions/vwprintf.texi: Likewise.
15108         * doc/posix-functions/vwscanf.texi: Likewise.
15109         * doc/posix-functions/wcscasecmp.texi: Likewise.
15110         * doc/posix-functions/wcsdup.texi: Likewise.
15111         * doc/posix-functions/wcsftime.texi: Likewise.
15112         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15113         * doc/posix-functions/wprintf.texi: Likewise.
15114         * doc/posix-functions/wscanf.texi: Likewise.
15115         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15116
15117 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15118
15119         maint.mk: really add $(AM_MAKEFLAGS)
15120         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15121         was inadvertently omitted in the last commit.
15122         Spotted by Bruno Haible.
15123
15124         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15125         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15126         $(AM_MAKEFLAGS)' rather than plain `make'.
15127
15128         gnulib-tool: execute $MAKE not make
15129         * gnulib-tool: Default $MAKE to 'make'.
15130         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15131         than make.  Initialize $MAKE in the do-autobuild script.
15132
15133         gnulib-tool: use $MAKE not make in generated files
15134         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15135         make, in generated files.  Initialize $MAKE in the do-autobuild
15136         script.
15137
15138         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15139
15140         GNUmakefile: disable parallelism only for multiple, recursive targets
15141         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15142         additions in the Makefile.
15143         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15144         by Automake.
15145         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15146         are listed on the command line and at least one of them is
15147         listed in $(ALL_RECURSIVE_TARGETS).
15148
15149 2009-03-14  Bruno Haible  <bruno@clisp.org>
15150
15151         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15152         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15153         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15154         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15155         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15156         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15157         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15158         unistr/u8-uctomb.
15159         * modules/unistr/u8-strchr (Depends-on): Likewise.
15160         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15161         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15162         unistr/u16-uctomb.
15163         * modules/unistr/u16-strchr (Depends-on): Likewise.
15164         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15165
15166 2009-03-12  Bruno Haible  <bruno@clisp.org>
15167
15168         Work around select() bug on Interix 3.5.
15169         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15170         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15171         * m4/select.m4: New file.
15172         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15173         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15174         * modules/select (Files): Add m4/select.m4.
15175         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15176         * modules/nanosleep (Depends-on): Add select.
15177         * modules/poll (Depends-on): Likewise.
15178         * doc/posix-functions/select.texi: Mention the Interix bug.
15179         Reported by Markus Duft <mduft@gentoo.org>.
15180
15181         * lib/select.c: Renamed from lib/winsock-select.c.
15182         * modules/select (Files): Add lib/select.c, remove
15183         lib/winsock-select.c.
15184         (configure.ac): Update.
15185
15186 2009-03-12  Jim Meyering  <meyering@redhat.com>
15187
15188         avoid gcc warnings about unused macro definitions
15189         * lib/readtokens.c (STREQ): Remove unused definition.
15190         * lib/xmalloc.c (SIZE_MAX): Likewise.
15191         * lib/openat-die.c (N_): Likewise.
15192         * lib/mountlist.c (SIZE_MAX): Remove definition.
15193         Instead, include <stdint.h>.
15194         * lib/readutmp.c: Likewise.
15195         * modules/readutmp (Depends-on): Add stdint.
15196         * modules/mountlist (Depends-on): Add stdint.
15197         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15198
15199 2009-03-10  Bruno Haible  <bruno@clisp.org>
15200
15201         Tests for module 'mbmemcasecoll'.
15202         * modules/mbmemcasecoll-tests: New file.
15203         * tests/test-mbmemcasecoll1.sh: New file.
15204         * tests/test-mbmemcasecoll2.sh: New file.
15205         * tests/test-mbmemcasecoll3.sh: New file.
15206         * tests/test-mbmemcasecoll.c: New file.
15207
15208         New module 'mbmemcasecoll'.
15209         * lib/mbmemcasecoll.h: New file.
15210         * lib/mbmemcasecoll.c: New file.
15211         * modules/mbmemcasecoll: New file.
15212
15213         * tests/test-mbmemcasecmp.h: New file, extracted from
15214         tests/test-mbmemcasecmp.c.
15215         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15216         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15217         (main): Update.
15218         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15219
15220 2009-03-09  Bruno Haible  <bruno@clisp.org>
15221
15222         Tests for module 'mbmemcasecmp'.
15223         * modules/mbmemcasecmp-tests: New file.
15224         * tests/test-mbmemcasecmp1.sh: New file.
15225         * tests/test-mbmemcasecmp2.sh: New file.
15226         * tests/test-mbmemcasecmp3.sh: New file.
15227         * tests/test-mbmemcasecmp.c: New file.
15228
15229         New module 'mbmemcasecmp'.
15230         * lib/mbmemcasecmp.h: New file.
15231         * lib/mbmemcasecmp.c: New file.
15232         * modules/mbmemcasecmp: New file.
15233
15234 2009-03-09  Bruno Haible  <bruno@clisp.org>
15235
15236         Tests for module 'unicase/ulc-casecoll'.
15237         * modules/unicase/ulc-casecoll-tests: New file.
15238         * tests/unicase/test-ulc-casecoll1.sh: New file.
15239         * tests/unicase/test-ulc-casecoll2.sh: New file.
15240         * tests/unicase/test-ulc-casecoll.c: New file.
15241
15242         New module 'unicase/ulc-casecoll'.
15243         * lib/unicase.h (ulc_casecoll): New declaration.
15244         * lib/unicase/ulc-casecoll.c: New file.
15245         * modules/unicase/ulc-casecoll: New file.
15246
15247         New module 'unicase/ulc-casexfrm'.
15248         * lib/unicase.h (ulc_casexfrm): New declaration.
15249         * lib/unicase/ulc-casexfrm.c: New file.
15250         * modules/unicase/ulc-casexfrm: New file.
15251
15252 2009-03-09  Bruno Haible  <bruno@clisp.org>
15253
15254         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15255         invocations.
15256
15257         * m4/mbscasecmp.m4: Remove file.
15258         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15259         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15260
15261         * m4/mbscasestr.m4: Remove file.
15262         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15263         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15264
15265         * m4/mbschr.m4: Remove file.
15266         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15267         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15268
15269         * m4/mbscspn.m4: Remove file.
15270         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15271         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15272
15273         * m4/mbslen.m4: Remove file.
15274         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15275         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15276
15277         * m4/mbsncasecmp.m4: Remove file.
15278         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15279         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15280
15281         * m4/mbsnlen.m4: Remove file.
15282         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15283         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15284
15285         * m4/mbspbrk.m4: Remove file.
15286         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15287         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15288
15289         * m4/mbspcasecmp.m4: Remove file.
15290         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15291         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15292
15293         * m4/mbsrchr.m4: Remove file.
15294         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15295         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15296
15297         * m4/mbssep.m4: Remove file.
15298         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15299         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15300
15301         * m4/mbsspn.m4: Remove file.
15302         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15303         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15304
15305         * m4/mbsstr.m4: Remove file.
15306         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15307         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15308
15309         * m4/mbstok_r.m4: Remove file.
15310         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15311         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15312
15313         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15314
15315         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15316         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15317
15318         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15319
15320 2009-03-08  Bruno Haible  <bruno@clisp.org>
15321
15322         Tests for module 'unicase/ulc-casecmp'.
15323         * modules/unicase/ulc-casecmp-tests: New file.
15324         * tests/unicase/test-ulc-casecmp1.sh: New file.
15325         * tests/unicase/test-ulc-casecmp2.sh: New file.
15326         * tests/unicase/test-ulc-casecmp.c: New file.
15327
15328         New module 'unicase/ulc-casecmp'.
15329         * lib/unicase.h (ulc_casecmp): New declaration.
15330         * lib/unicase/ulc-casecmp.c: New file.
15331         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15332         'const SRC_UNIT *'.
15333         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15334         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15335         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15336         * modules/unicase/ulc-casecmp: New file.
15337
15338         Tests for module 'unicase/u32-is-cased'.
15339         * modules/unicase/u32-is-cased-tests: New file.
15340         * tests/unicase/test-u32-is-cased.c: New file.
15341
15342         Tests for module 'unicase/u16-is-cased'.
15343         * modules/unicase/u16-is-cased-tests: New file.
15344         * tests/unicase/test-u16-is-cased.c: New file.
15345
15346         Tests for module 'unicase/u8-is-cased'.
15347         * modules/unicase/u8-is-cased-tests: New file.
15348         * tests/unicase/test-u8-is-cased.c: New file.
15349         * tests/unicase/test-is-cased.h: New file.
15350
15351         New module 'unicase/u32-is-cased'.
15352         * lib/unicase/u32-is-cased.c: New file.
15353         * modules/unicase/u32-is-cased: New file.
15354
15355         New module 'unicase/u16-is-cased'.
15356         * lib/unicase/u16-is-cased.c: New file.
15357         * modules/unicase/u16-is-cased: New file.
15358
15359         New module 'unicase/u8-is-cased'.
15360         * lib/unicase/u8-is-cased.c: New file.
15361         * lib/unicase/u-is-cased.h: New file.
15362         * modules/unicase/u8-is-cased: New file.
15363
15364         Tests for module 'unicase/u32-is-casefolded'.
15365         * modules/unicase/u32-is-casefolded-tests: New file.
15366         * tests/unicase/test-u32-is-casefolded.c: New file.
15367
15368         Tests for module 'unicase/u16-is-casefolded'.
15369         * modules/unicase/u16-is-casefolded-tests: New file.
15370         * tests/unicase/test-u16-is-casefolded.c: New file.
15371
15372         Tests for module 'unicase/u8-is-casefolded'.
15373         * modules/unicase/u8-is-casefolded-tests: New file.
15374         * tests/unicase/test-u8-is-casefolded.c: New file.
15375         * tests/unicase/test-is-casefolded.h: New file.
15376
15377         New module 'unicase/u32-is-casefolded'.
15378         * lib/unicase/u32-is-casefolded.c: New file.
15379         * modules/unicase/u32-is-casefolded: New file.
15380
15381         New module 'unicase/u16-is-casefolded'.
15382         * lib/unicase/u16-is-casefolded.c: New file.
15383         * modules/unicase/u16-is-casefolded: New file.
15384
15385         New module 'unicase/u8-is-casefolded'.
15386         * lib/unicase/u8-is-casefolded.c: New file.
15387         * modules/unicase/u8-is-casefolded: New file.
15388
15389         Tests for module 'unicase/u32-is-titlecase'.
15390         * modules/unicase/u32-is-titlecase-tests: New file.
15391         * tests/unicase/test-u32-is-titlecase.c: New file.
15392
15393         Tests for module 'unicase/u16-is-titlecase'.
15394         * modules/unicase/u16-is-titlecase-tests: New file.
15395         * tests/unicase/test-u16-is-titlecase.c: New file.
15396
15397         Tests for module 'unicase/u8-is-titlecase'.
15398         * modules/unicase/u8-is-titlecase-tests: New file.
15399         * tests/unicase/test-u8-is-titlecase.c: New file.
15400         * tests/unicase/test-is-titlecase.h: New file.
15401
15402         New module 'unicase/u32-is-titlecase'.
15403         * lib/unicase/u32-is-titlecase.c: New file.
15404         * modules/unicase/u32-is-titlecase: New file.
15405
15406         New module 'unicase/u16-is-titlecase'.
15407         * lib/unicase/u16-is-titlecase.c: New file.
15408         * modules/unicase/u16-is-titlecase: New file.
15409
15410         New module 'unicase/u8-is-titlecase'.
15411         * lib/unicase/u8-is-titlecase.c: New file.
15412         * modules/unicase/u8-is-titlecase: New file.
15413
15414         Tests for module 'unicase/u32-is-lowercase'.
15415         * modules/unicase/u32-is-lowercase-tests: New file.
15416         * tests/unicase/test-u32-is-lowercase.c: New file.
15417
15418         Tests for module 'unicase/u16-is-lowercase'.
15419         * modules/unicase/u16-is-lowercase-tests: New file.
15420         * tests/unicase/test-u16-is-lowercase.c: New file.
15421
15422         Tests for module 'unicase/u8-is-lowercase'.
15423         * modules/unicase/u8-is-lowercase-tests: New file.
15424         * tests/unicase/test-u8-is-lowercase.c: New file.
15425         * tests/unicase/test-is-lowercase.h: New file.
15426
15427         New module 'unicase/u32-is-lowercase'.
15428         * lib/unicase/u32-is-lowercase.c: New file.
15429         * modules/unicase/u32-is-lowercase: New file.
15430
15431         New module 'unicase/u16-is-lowercase'.
15432         * lib/unicase/u16-is-lowercase.c: New file.
15433         * modules/unicase/u16-is-lowercase: New file.
15434
15435         New module 'unicase/u8-is-lowercase'.
15436         * lib/unicase/u8-is-lowercase.c: New file.
15437         * modules/unicase/u8-is-lowercase: New file.
15438
15439         Tests for module 'unicase/u32-is-uppercase'.
15440         * modules/unicase/u32-is-uppercase-tests: New file.
15441         * tests/unicase/test-u32-is-uppercase.c: New file.
15442
15443         Tests for module 'unicase/u16-is-uppercase'.
15444         * modules/unicase/u16-is-uppercase-tests: New file.
15445         * tests/unicase/test-u16-is-uppercase.c: New file.
15446
15447         Tests for module 'unicase/u8-is-uppercase'.
15448         * modules/unicase/u8-is-uppercase-tests: New file.
15449         * tests/unicase/test-u8-is-uppercase.c: New file.
15450         * tests/unicase/test-is-uppercase.h: New file.
15451
15452         New module 'unicase/u32-is-uppercase'.
15453         * lib/unicase/u32-is-uppercase.c: New file.
15454         * modules/unicase/u32-is-uppercase: New file.
15455
15456         New module 'unicase/u16-is-uppercase'.
15457         * lib/unicase/u16-is-uppercase.c: New file.
15458         * modules/unicase/u16-is-uppercase: New file.
15459
15460         New module 'unicase/u8-is-uppercase'.
15461         * lib/unicase/u8-is-uppercase.c: New file.
15462         * modules/unicase/u8-is-uppercase: New file.
15463
15464         New module 'unicase/u32-is-invariant'.
15465         * lib/unicase/u32-is-invariant.c: New file.
15466         * modules/unicase/u32-is-invariant: New file.
15467
15468         New module 'unicase/u16-is-invariant'.
15469         * lib/unicase/u16-is-invariant.c: New file.
15470         * modules/unicase/u16-is-invariant: New file.
15471
15472         New module 'unicase/u8-is-invariant'.
15473         * lib/unicase/u8-is-invariant.c: New file.
15474         * lib/unicase/invariant.h: New file.
15475         * lib/unicase/u-is-invariant.h: New file.
15476         * modules/unicase/u8-is-invariant: New file.
15477
15478         Tests for module 'unicase/u32-casecoll'.
15479         * modules/unicase/u32-casecoll-tests: New file.
15480         * tests/unicase/test-u32-casecoll.c: New file.
15481
15482         Tests for module 'unicase/u16-casecoll'.
15483         * modules/unicase/u16-casecoll-tests: New file.
15484         * tests/unicase/test-u16-casecoll.c: New file.
15485
15486         Tests for module 'unicase/u8-casecoll'.
15487         * modules/unicase/u8-casecoll-tests: New file.
15488         * tests/unicase/test-u8-casecoll.c: New file.
15489
15490         New module 'unicase/u32-casecoll'.
15491         * lib/unicase/u32-casecoll.c: New file.
15492         * modules/unicase/u32-casecoll: New file.
15493
15494         New module 'unicase/u16-casecoll'.
15495         * lib/unicase/u16-casecoll.c: New file.
15496         * modules/unicase/u16-casecoll: New file.
15497
15498         New module 'unicase/u8-casecoll'.
15499         * lib/unicase/u8-casecoll.c: New file.
15500         * lib/unicase/u-casecoll.h: New file.
15501         * modules/unicase/u8-casecoll: New file.
15502
15503         New module 'unicase/u32-casexfrm'.
15504         * lib/unicase/u32-casexfrm.c: New file.
15505         * modules/unicase/u32-casexfrm: New file.
15506
15507         New module 'unicase/u16-casexfrm'.
15508         * lib/unicase/u16-casexfrm.c: New file.
15509         * modules/unicase/u16-casexfrm: New file.
15510
15511         New module 'unicase/u8-casexfrm'.
15512         * lib/unicase/u8-casexfrm.c: New file.
15513         * lib/unicase/u-casexfrm.h: New file.
15514         * modules/unicase/u8-casexfrm: New file.
15515
15516         Tests for module 'unicase/u32-casecmp'.
15517         * modules/unicase/u32-casecmp-tests: New file.
15518         * tests/unicase/test-u32-casecmp.c: New file.
15519
15520         Tests for module 'unicase/u16-casecmp'.
15521         * modules/unicase/u16-casecmp-tests: New file.
15522         * tests/unicase/test-u16-casecmp.c: New file.
15523
15524         Tests for module 'unicase/u8-casecmp'.
15525         * modules/unicase/u8-casecmp-tests: New file.
15526         * tests/unicase/test-u8-casecmp.c: New file.
15527         * tests/unicase/test-casecmp.h: New file.
15528
15529         New module 'unicase/u32-casecmp'.
15530         * lib/unicase/u32-casecmp.c: New file.
15531         * modules/unicase/u32-casecmp: New file.
15532
15533         New module 'unicase/u16-casecmp'.
15534         * lib/unicase/u16-casecmp.c: New file.
15535         * modules/unicase/u16-casecmp: New file.
15536
15537         New module 'unicase/u8-casecmp'.
15538         * lib/unicase/u8-casecmp.c: New file.
15539         * lib/unicase/u-casecmp.h: New file.
15540         * modules/unicase/u8-casecmp: New file.
15541
15542         Tests for module 'unicase/u32-casefold'.
15543         * modules/unicase/u32-casefold-tests: New file.
15544         * tests/unicase/test-u32-casefold.c: New file.
15545
15546         Tests for module 'unicase/u16-casefold'.
15547         * modules/unicase/u16-casefold-tests: New file.
15548         * tests/unicase/test-u16-casefold.c: New file.
15549
15550         Tests for module 'unicase/u8-casefold'.
15551         * modules/unicase/u8-casefold-tests: New file.
15552         * tests/unicase/test-u8-casefold.c: New file.
15553
15554         New module 'unicase/u32-casefold'.
15555         * lib/unicase/u32-casefold.c: New file.
15556         * modules/unicase/u32-casefold: New file.
15557
15558         New module 'unicase/u16-casefold'.
15559         * lib/unicase/u16-casefold.c: New file.
15560         * modules/unicase/u16-casefold: New file.
15561
15562         New module 'unicase/u8-casefold'.
15563         * lib/unicase/u8-casefold.c: New file.
15564         * lib/unicase/u-casefold.h: New file.
15565         * modules/unicase/u8-casefold: New file.
15566
15567         New module 'unicase/tocasefold'.
15568         * lib/unicase/casefold.h: New file.
15569         * lib/unicase/tocasefold.c: New file.
15570         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15571         * modules/unicase/tocasefold: New file.
15572
15573         Tests for module 'unicase/u32-totitle'.
15574         * modules/unicase/u32-totitle-tests: New file.
15575         * tests/unicase/test-u32-totitle.c: New file.
15576
15577         Tests for module 'unicase/u16-totitle'.
15578         * modules/unicase/u16-totitle-tests: New file.
15579         * tests/unicase/test-u16-totitle.c: New file.
15580
15581         Tests for module 'unicase/u8-totitle'.
15582         * modules/unicase/u8-totitle-tests: New file.
15583         * tests/unicase/test-u8-totitle.c: New file.
15584
15585         New module 'unicase/u32-totitle'.
15586         * lib/unicase/u32-totitle.c: New file.
15587         * modules/unicase/u32-totitle: New file.
15588
15589         New module 'unicase/u16-totitle'.
15590         * lib/unicase/u16-totitle.c: New file.
15591         * modules/unicase/u16-totitle: New file.
15592
15593         New module 'unicase/u8-totitle'.
15594         * lib/unicase/u8-totitle.c: New file.
15595         * lib/unicase/u-totitle.h: New file.
15596         * modules/unicase/u8-totitle: New file.
15597
15598         Tests for module 'unicase/u32-tolower'.
15599         * modules/unicase/u32-tolower-tests: New file.
15600         * tests/unicase/test-u32-tolower.c: New file.
15601
15602         Tests for module 'unicase/u16-tolower'.
15603         * modules/unicase/u16-tolower-tests: New file.
15604         * tests/unicase/test-u16-tolower.c: New file.
15605
15606         Tests for module 'unicase/u8-tolower'.
15607         * modules/unicase/u8-tolower-tests: New file.
15608         * tests/unicase/test-u8-tolower.c: New file.
15609
15610         New module 'unicase/u32-tolower'.
15611         * lib/unicase/u32-tolower.c: New file.
15612         * modules/unicase/u32-tolower: New file.
15613
15614         New module 'unicase/u16-tolower'.
15615         * lib/unicase/u16-tolower.c: New file.
15616         * modules/unicase/u16-tolower: New file.
15617
15618         New module 'unicase/u8-tolower'.
15619         * lib/unicase/u8-tolower.c: New file.
15620         * modules/unicase/u8-tolower: New file.
15621
15622         Tests for module 'unicase/u32-toupper'.
15623         * modules/unicase/u32-toupper-tests: New file.
15624         * tests/unicase/test-u32-toupper.c: New file.
15625
15626         Tests for module 'unicase/u16-toupper'.
15627         * modules/unicase/u16-toupper-tests: New file.
15628         * tests/unicase/test-u16-toupper.c: New file.
15629
15630         Tests for module 'unicase/u8-toupper'.
15631         * modules/unicase/u8-toupper-tests: New file.
15632         * tests/unicase/test-u8-toupper.c: New file.
15633
15634         New module 'unicase/u32-toupper'.
15635         * lib/unicase/u32-toupper.c: New file.
15636         * modules/unicase/u32-toupper: New file.
15637
15638         New module 'unicase/u16-toupper'.
15639         * lib/unicase/u16-toupper.c: New file.
15640         * modules/unicase/u16-toupper: New file.
15641
15642         New module 'unicase/u8-toupper'.
15643         * lib/unicase/u8-toupper.c: New file.
15644         * modules/unicase/u8-toupper: New file.
15645
15646         New module 'unicase/u32-casemap'.
15647         * lib/unicase/u32-casemap.c: New file.
15648         * modules/unicase/u32-casemap: New file.
15649
15650         New module 'unicase/u16-casemap'.
15651         * lib/unicase/u16-casemap.c: New file.
15652         * modules/unicase/u16-casemap: New file.
15653
15654         New module 'unicase/u8-casemap'.
15655         * lib/unicase/unicasemap.h: New file.
15656         * lib/unicase/u8-casemap.c: New file.
15657         * lib/unicase/u-casemap.h: New file.
15658         * modules/unicase/u8-casemap: New file.
15659
15660         New module 'unicase/special-casing'.
15661         * lib/unicase/special-casing.h: New file.
15662         * lib/unicase/special-casing.c: New file.
15663         * lib/unicase/special-casing-table.gperf: New file, generated by
15664         gen-uni-tables.c.
15665         * modules/unicase/special-casing: New file.
15666
15667         Tests for module 'unicase/locale-language'.
15668         * modules/unicase/locale-language-tests: New file.
15669         * tests/unicase/test-locale-language.sh: New file.
15670         * tests/unicase/test-locale-language.c: New file.
15671
15672         New module 'unicase/locale-language'.
15673         * lib/unicase/locale-language.c: New file.
15674         * lib/unicase/locale-languages.gperf: New file.
15675         * modules/unicase/locale-language: New file.
15676
15677         Generate more tables for case conversion and case folding.
15678         * lib/gen-uni-tables.c (SCC_*): New enum items.
15679         (struct special_casing_rule): New type.
15680         (casing_rules, num_casing_rules, allocated_casing_rules): New
15681         variables.
15682         (add_casing_rule, fill_casing_rules): New functions.
15683         (struct casefold_rule): New type.
15684         (casefolding_rules, num_casefolding_rules,
15685         allocated_casefolding_rules): New variables.
15686         (fill_casefolding_rules): New function.
15687         (unicode_casefold): New variable.
15688         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15689         sort_casing_rules, output_casing_rules): New functions.
15690         (main): Accept to more arguments: SpecialCasing.txt and
15691         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15692         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15693         Output mapping for casefolding.
15694
15695         * lib/unicase.h: Include stdbool.h, uninorm.h.
15696         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15697         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15698         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15699         arguments.
15700         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15701         resultp arguments.
15702         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15703         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15704         resultp arguments.
15705         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15706         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15707         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15708         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15709         declarations.
15710         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15711
15712 2009-03-08  Bruno Haible  <bruno@clisp.org>
15713
15714         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15715         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15716         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15717         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15718
15719 2009-03-07  Bruno Haible  <bruno@clisp.org>
15720
15721         Adjust u*_normcmp, u*_normcoll API.
15722         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15723         u16_normcoll, u32_normcoll): Change failure conventions.
15724         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15725         errno and return -1.
15726         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15727
15728 2009-03-07  Bruno Haible  <bruno@clisp.org>
15729
15730         Tests for module 'uninorm/u32-normcoll'.
15731         * modules/uninorm/u32-normcoll-tests: New file.
15732         * tests/uninorm/test-u32-normcoll.c: New file.
15733
15734         Tests for module 'uninorm/u16-normcoll'.
15735         * modules/uninorm/u16-normcoll-tests: New file.
15736         * tests/uninorm/test-u16-normcoll.c: New file.
15737
15738         Tests for module 'uninorm/u8-normcoll'.
15739         * modules/uninorm/u8-normcoll-tests: New file.
15740         * tests/uninorm/test-u8-normcoll.c: New file.
15741
15742 2009-03-07  Bruno Haible  <bruno@clisp.org>
15743
15744         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15745         tests/uninorm/test-u32-normcmp.c.
15746         * tests/uninorm/test-u32-normcmp.c: Include it.
15747         (test_nonascii): New function, extracted from main. Add some more
15748         tests.
15749         (main): Invoke test_ascii and test_nonascii.
15750         * modules/uninorm/u32-normcmp-tests (Files): Add
15751         tests/uninorm/test-u32-normcmp.h.
15752         (Depends-on): Remove uninorm/u32-normcmp.
15753
15754         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15755         tests/uninorm/test-u16-normcmp.c.
15756         * tests/uninorm/test-u16-normcmp.c: Include it.
15757         (test_nonascii): New function, extracted from main. Add some more
15758         tests.
15759         (main): Invoke test_ascii and test_nonascii.
15760         * modules/uninorm/u16-normcmp-tests (Files): Add
15761         tests/uninorm/test-u16-normcmp.h.
15762         (Depends-on): Remove uninorm/u16-normcmp.
15763
15764         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15765         tests/uninorm/test-u8-normcmp.c.
15766         * tests/uninorm/test-u8-normcmp.c: Include it.
15767         (test_nonascii): New function, extracted from main. Add some more
15768         tests.
15769         (main): Invoke test_ascii and test_nonascii.
15770         * modules/uninorm/u8-normcmp-tests (Files): Add
15771         tests/uninorm/test-u8-normcmp.h.
15772         (Depends-on): Remove uninorm/u8-normcmp.
15773
15774 2009-03-07  Bruno Haible  <bruno@clisp.org>
15775
15776         New module 'uninorm/u32-normcoll'.
15777         * lib/uninorm/u32-normcoll.c: New file.
15778         * modules/uninorm/u32-normcoll: New file.
15779
15780         New module 'uninorm/u16-normcoll'.
15781         * lib/uninorm/u16-normcoll.c: New file.
15782         * modules/uninorm/u16-normcoll: New file.
15783
15784         New module 'uninorm/u8-normcoll'.
15785         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15786         declarations.
15787         * lib/uninorm/u8-normcoll.c: New file.
15788         * lib/uninorm/u-normcoll.h: New file.
15789         * modules/uninorm/u8-normcoll: New file.
15790
15791         New module 'uninorm/u32-normxfrm'.
15792         * lib/uninorm/u32-normxfrm.c: New file.
15793         * modules/uninorm/u32-normxfrm: New file.
15794
15795         New module 'uninorm/u16-normxfrm'.
15796         * lib/uninorm/u16-normxfrm.c: New file.
15797         * modules/uninorm/u16-normxfrm: New file.
15798
15799         New module 'uninorm/u8-normxfrm'.
15800         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15801         declarations.
15802         * lib/uninorm/u8-normxfrm.c: New file.
15803         * lib/uninorm/u-normxfrm.h: New file.
15804         * modules/uninorm/u8-normxfrm: New file.
15805
15806 2009-03-07  Bruno Haible  <bruno@clisp.org>
15807
15808         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15809         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15810         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15811
15812 2009-03-07  Bruno Haible  <bruno@clisp.org>
15813
15814         New module 'memxfrm'.
15815         * lib/memxfrm.h: New file.
15816         * lib/memxfrm.c: New file.
15817         * modules/memxfrm: New file.
15818
15819 2009-03-07  Bruno Haible  <bruno@clisp.org>
15820
15821         New module 'memcmp2'.
15822         * lib/memcmp2.h: New file.
15823         * lib/memcmp2.c: New file.
15824         * modules/memcmp2: New file.
15825
15826 2009-03-07  Bruno Haible  <bruno@clisp.org>
15827
15828         Tests for module 'uninorm/decomposing-form'.
15829         * modules/uninorm/decomposing-form-tests: New file.
15830         * tests/uninorm/test-decomposing-form.c: New file.
15831
15832         New module 'uninorm/decomposing-form'.
15833         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15834         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15835         Add 'decomposing_variant' field.
15836         * lib/uninorm/decomposing-form.c: New file.
15837         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15838         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15839         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15840         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15841         * modules/uninorm/decomposing-form: New file.
15842         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15843         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15844
15845 2009-03-07  Bruno Haible  <bruno@clisp.org>
15846
15847         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15848         strings.
15849
15850 2009-03-06  Bruno Haible  <bruno@clisp.org>
15851
15852         Tests for module 'uninorm/u32-normcmp'.
15853         * tests/uninorm/test-u32-normcmp.c: New file.
15854         * modules/uninorm/u32-normcmp-tests: New file.
15855
15856         Tests for module 'uninorm/u16-normcmp'.
15857         * tests/uninorm/test-u16-normcmp.c: New file.
15858         * modules/uninorm/u16-normcmp-tests: New file.
15859
15860         Tests for module 'uninorm/u8-normcmp'.
15861         * tests/uninorm/test-u8-normcmp.c: New file.
15862         * modules/uninorm/u8-normcmp-tests: New file.
15863
15864         New module 'uninorm/u32-normcmp'.
15865         * lib/uninorm/u32-normcmp.c: New file.
15866         * modules/uninorm/u32-normcmp: New file.
15867
15868         New module 'uninorm/u16-normcmp'.
15869         * lib/uninorm/u16-normcmp.c: New file.
15870         * modules/uninorm/u16-normcmp: New file.
15871
15872         New module 'uninorm/u8-normcmp'.
15873         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15874         declarations.
15875         * lib/uninorm/u8-normcmp.c: New file.
15876         * lib/uninorm/u-normcmp.h: New file.
15877         * modules/uninorm/u8-normcmp: New file.
15878
15879 2009-03-06  Bruno Haible  <bruno@clisp.org>
15880
15881         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15882         Reported by Eric Blake.
15883
15884 2009-03-06  Eric Blake  <ebb9@byu.net>
15885             Bruno Haible  <bruno@clisp.org>
15886
15887         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15888         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15889         condition.
15890         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15891         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15892         condition.
15893         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15894
15895 2009-03-06  Eric Blake  <ebb9@byu.net>
15896
15897         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15898         to avoid compiler warnings.
15899         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15900
15901 2009-03-05  Bruno Haible  <bruno@clisp.org>
15902
15903         * tests/test-ftell.c (main): Disable test beyond end of file on
15904         FreeMiNT.
15905         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15906
15907 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15908
15909         * lib/filevercmp.c: Move hidden files up in ordering.
15910         * tests/test-filevercmp.c: Add tests for hidden files.
15911
15912 2009-03-04  Bruno Haible  <bruno@clisp.org>
15913
15914         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15915         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15916         AM_CFLAGS.
15917         Reported by Simon Josefsson.
15918
15919 2009-03-03  Bruno Haible  <bruno@clisp.org>
15920
15921         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15922         Reported by Simon Josefsson.
15923
15924         * doc/ld-version-script.texi: Update node reference.
15925
15926 2009-03-03  Bruno Haible  <bruno@clisp.org>
15927
15928         * modules/visibility (License): Change to 'unlimited'.
15929         Suggested by Simon Josefsson.
15930
15931 2009-03-03  Jim Meyering  <meyering@redhat.com>
15932
15933         unlinkdir: cannot_unlink_dir may modify process state
15934         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15935         it's neither thread-safe nor appropriate for use in a library.
15936
15937 2009-03-03  Eric Blake  <ebb9@byu.net>
15938
15939         test-closein: silence test under Darwin
15940         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15941         care if it dies from EPIPE or EBADF.
15942
15943 2009-03-03  Bruno Haible  <bruno@clisp.org>
15944
15945         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15946         earlier.
15947         * doc/visibility.texi: Fix @node and @section.
15948
15949 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15950
15951         * doc/gnulib.texi: Link to sections for ld version script and
15952         visibility.
15953         * doc/visibility.texi: Add @node and @section.
15954         * modules/ld-version-script: New module.
15955         * m4/ld-version-script.m4: New file.
15956         * doc/ld-version-script.texi: New file.
15957
15958 2009-03-02  David Lutterkort  <lutter@redhat.com>
15959
15960         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15961         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15962
15963 2009-03-02  Bruno Haible  <bruno@clisp.org>
15964
15965         * doc/visibility.texi: Mention libtool's -export-symbols option.
15966
15967 2009-03-02  Jim Meyering  <meyering@redhat.com>
15968
15969         announce-gen: new option: --no-print-checksums
15970         * build-aux/announce-gen (usage): Describe it.
15971         (print_checksums): Print a newline here, not in the [*] footnote.
15972         (main): Honor it.
15973
15974 2009-03-01  Bruno Haible  <bruno@clisp.org>
15975
15976         Use socklen_t in the native Windows replacements prototypes.
15977         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15978         instead of 'int'.
15979         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15980         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15981         * modules/getsockopt (Depends-on): Add socklen.
15982         * modules/setsockopt (Depends-on): Add socklen.
15983
15984 2009-03-01  Bruno Haible  <bruno@clisp.org>
15985
15986         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15987         least 4.2.
15988
15989 2009-03-01  Eric Blake  <ebb9@byu.net>
15990             Bruno Haible  <bruno@clisp.org>
15991
15992         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15993         error messages.
15994         * lib/wait-process.c (wait_subprocess): Omit error message about
15995         deadly signal sent to the child of termsigp != NULL.
15996
15997 2009-03-01  Eric Blake  <ebb9@byu.net>
15998
15999         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
16000
16001 2009-03-01  Bruno Haible  <bruno@clisp.org>
16002
16003         Avoid a gcc warning.
16004         * tests/test-sched.c (b): Make global.
16005         Reported by Eric Blake.
16006
16007 2009-01-19  Martin Lambers  <marlam@marlam.de>
16008
16009         Provide POSIX semantics for socket timeout options on W32.
16010         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
16011         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
16012         * modules/setsockopt: Depend on sys_time module for struct timeval.
16013         * modules/getsockopt: Depend on sys_time module for struct timeval.
16014
16015 2009-03-01  Simon Josefsson  <simon@josefsson.org>
16016
16017         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
16018         __USE_GNU, for consistency with netdb.in.h.
16019         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16020
16021 2009-03-01  Bruno Haible  <bruno@clisp.org>
16022
16023         More support for FreeMiNT.
16024         * lib/fseeko.c (rpl_fseeko): Complete last commit.
16025         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16026
16027 2009-03-01  Bruno Haible  <bruno@clisp.org>
16028
16029         More support for FreeMiNT.
16030         * lib/fpurge.c (fpurge): Correct last commit.
16031         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16032
16033 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16034
16035         Fix unportable awk script in vc-list-files.
16036         * build-aux/vc-list-files: In the replacement awk script, use
16037         substr with a second argument of 1, not zero.
16038         Report by Simon Josefsson.
16039
16040 2009-02-28  Bruno Haible  <bruno@clisp.org>
16041
16042         More support for FreeMiNT.
16043         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
16044         to FreeMiNT today.
16045         * lib/fwriting.c (fwriting): Likewise.
16046         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
16047
16048 2009-02-28  Bruno Haible  <bruno@clisp.org>
16049
16050         * tests/test-freadseek.c (main): Disable test beyond end of file on
16051         FreeMiNT.
16052         * tests/test-ftello.c (main): Likewise.
16053         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16054
16055 2009-02-28  Bruno Haible  <bruno@clisp.org>
16056
16057         Add tentative support for FreeMiNT.
16058         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
16059         * lib/fpurge.c (fpurge): Likewise.
16060         * lib/freadable.c (freadable): Likewise.
16061         * lib/freading.c (freading): Likewise.
16062         * lib/freadptr.c (freadptr): Likewise.
16063         * lib/freadseek.c (freadptrinc): Likewise.
16064         * lib/fseeko.c (rpl_fseeko): Likewise.
16065         * lib/fseterr.c (fseterr): Likewise.
16066         * lib/fwritable.c (fwritable): Likewise.
16067         * lib/fwriting.c (fwriting): Likewise.
16068         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
16069         Hourihane.
16070         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16071
16072 2009-02-28  Bruno Haible  <bruno@clisp.org>
16073
16074         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
16075         SIGCHLD.
16076         Reported by Jim Meyering.
16077
16078 2009-02-28  Bruno Haible  <bruno@clisp.org>
16079
16080         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
16081         Mention the results of these tests on various platforms.
16082         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
16083         order.
16084         * doc/posix-functions/printf.texi: Likewise.
16085         * doc/posix-functions/snprintf.texi: Likewise.
16086         * doc/posix-functions/sprintf.texi: Likewise.
16087         * doc/posix-functions/vfprintf.texi: Likewise.
16088         * doc/posix-functions/vprintf.texi: Likewise.
16089         * doc/posix-functions/vsnprintf.texi: Likewise.
16090         * doc/posix-functions/vsprintf.texi: Likewise.
16091         * doc/glibc-functions/obstack_printf.texi: Likewise.
16092         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16093
16094 2009-02-28  Bruno Haible  <bruno@clisp.org>
16095
16096         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16097         Reported by Loïc Minier <lool@dooz.org>.
16098
16099 2009-02-27  Bruno Haible  <bruno@clisp.org>
16100
16101         * gnulib-tool (func_import): Make the sed expression used to create the
16102         sed script for updating the .gitignore file POSIX compliant.
16103         Reported by Eric Blake.
16104
16105 2009-02-27  Bruno Haible  <bruno@clisp.org>
16106
16107         * gnulib-tool (sed): Don't alias as "sed --posix".
16108         Reported by Eric Blake.
16109
16110 2009-02-27  Bruno Haible  <bruno@clisp.org>
16111
16112         Avoid test link errors.
16113         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16114         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16115         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16116         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16117         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16118
16119 2009-02-27  Bruno Haible  <bruno@clisp.org>
16120
16121         Avoid spurious "(cached)" in configure output.
16122         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16123         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16124         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16125         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16126         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16127         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16128         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16129         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16130         Reported by Eric Blake.
16131
16132 2009-02-27  Eric Blake  <ebb9@byu.net>
16133
16134         printf: fix regression in previous patch
16135         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16136
16137 2009-02-27  Bruno Haible  <bruno@clisp.org>
16138
16139         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16140         value.
16141         * lib/stdint.in.h: Likewise.
16142         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16143
16144 2009-02-27  Eric Blake  <ebb9@byu.net>
16145
16146         doc: mention more functions added in cygwin 1.7.0
16147         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16148         addition.
16149         * doc/posix-functions/open_wmemstream.texi: Likewise.
16150         * doc/posix-functions/wcsnlen.texi: Likewise.
16151         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16152         * doc/posix-functions/wcstod.texi: Likewise.
16153         * doc/posix-functions/wcstof.texi: Likewise.
16154         * doc/posix-functions/wcstoimax.texi: Likewise.
16155         * doc/posix-functions/wcstok.texi: Likewise.
16156         * doc/posix-functions/wcstoumax.texi: Likewise.
16157
16158         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16159         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16160         * doc/posix-functions/fprintf.texi: Update.
16161         * doc/posix-functions/printf.texi: Update.
16162         * doc/posix-functions/snprintf.texi: Update.
16163         * doc/posix-functions/sprintf.texi: Update.
16164         * doc/posix-functions/vfprintf.texi: Update.
16165         * doc/posix-functions/vprintf.texi: Update.
16166         * doc/posix-functions/vsnprintf.texi: Update.
16167         * doc/posix-functions/vsprintf.texi: Update.
16168         * doc/glibc-functions/obstack_printf.texi: Update.
16169         * doc/glibc-functions/obstack_vprintf.texi: Update.
16170
16171 2009-02-26  Eric Blake  <ebb9@byu.net>
16172
16173         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16174         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16175         compilation bug by using runtime conversion.
16176         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16177         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16178         * modules/ceill-tests (Files): Use nan.h.
16179         * modules/floorl-tests (Files): Likewise.
16180         * modules/frexpl-tests (Files): Likewise.
16181         * modules/isnanl-tests (Files): Likewise.
16182         * modules/ldexpl-tests (Files): Likewise.
16183         * modules/roundl-tests (Files): Likewise.
16184         * modules/truncl-tests (Files): Likewise.
16185         * tests/test-ceill.c (main): Use a working NaN.
16186         * tests/test-floorl.c (main): Likewise.
16187         * tests/test-frexpl.c (main): Likewise.
16188         * tests/test-isnan.c (test_long_double): Likewise.
16189         * tests/test-isnanl.h (main): Likewise.
16190         * tests/test-ldexpl.h (main): Likewise.
16191         * tests/test-roundl.h (main): Likewise.
16192         * tests/test-truncl.h (main): Likewise.
16193         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16194
16195 2009-02-26  Eric Blake  <ebb9@byu.net>
16196             Bruno Haible  <bruno@clisp.org>
16197
16198         Work around a *printf bug with %ls on Solaris.
16199         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16200         precision is specified, sprintf stops converting the wide string
16201         argument when the number of bytes that have been produced by this
16202         conversion equals or exceeds the precision.
16203         * doc/posix-functions/fprintf.texi: Update.
16204         * doc/posix-functions/printf.texi: Update.
16205         * doc/posix-functions/snprintf.texi: Update.
16206         * doc/posix-functions/sprintf.texi: Update.
16207         * doc/posix-functions/vfprintf.texi: Update.
16208         * doc/posix-functions/vprintf.texi: Update.
16209         * doc/posix-functions/vsnprintf.texi: Update.
16210         * doc/posix-functions/vsprintf.texi: Update.
16211         * doc/glibc-functions/obstack_printf.texi: Update.
16212         * doc/glibc-functions/obstack_vprintf.texi: Update.
16213
16214 2009-02-26  Eric Blake  <ebb9@byu.net>
16215
16216         stdlib: favor compiler check of random.h
16217         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16218         to avoid an ObjC random.h installed by Swarm.
16219
16220 2009-02-26  Bruno Haible  <bruno@clisp.org>
16221
16222         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16223         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16224         Reported by Gary V. Vaughan <gary@gnu.org>.
16225
16226 2009-02-26  Bruno Haible  <bruno@clisp.org>
16227
16228         Fix *printf behaviour regarding the %ls directive.
16229         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16230         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16231         NEED_PRINTF_DIRECTIVE_LS.
16232         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16233         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16234         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16235         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16236         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16237         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16238         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16240         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16241         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16242         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16243         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16244         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16246         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16247         * doc/posix-functions/fprintf.texi: Update.
16248         * doc/posix-functions/printf.texi: Update.
16249         * doc/posix-functions/snprintf.texi: Update.
16250         * doc/posix-functions/sprintf.texi: Update.
16251         * doc/posix-functions/vfprintf.texi: Update.
16252         * doc/posix-functions/vprintf.texi: Update.
16253         * doc/posix-functions/vsnprintf.texi: Update.
16254         * doc/posix-functions/vsprintf.texi: Update.
16255         * doc/glibc-functions/obstack_printf.texi: Update.
16256         * doc/glibc-functions/obstack_vprintf.texi: Update.
16257         Reported by Eric Blake.
16258
16259 2009-02-25  Bruno Haible  <bruno@clisp.org>
16260
16261         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16262         with known value.
16263         Reported by Gary V. Vaughan <gary@gnu.org>.
16264
16265 2009-02-25  Bruno Haible  <bruno@clisp.org>
16266
16267         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16268         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16269         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16270         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16271         Reported by Gary V. Vaughan <gary@gnu.org>.
16272
16273 2009-02-25  Bruno Haible  <bruno@clisp.org>
16274
16275         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16276         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16277         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16278         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16279         Reported by Gary V. Vaughan <gary@gnu.org>.
16280
16281 2009-02-25  Eric Blake  <ebb9@byu.net>
16282
16283         tests: skip fseek/ftell tests if ungetc is broken
16284         * m4/ungetc.m4: New file.
16285         * modules/fseek-tests: Split test, so ungetc dependency is
16286         separate from rest of test.
16287         * modules/fseeko-tests: Likewise.
16288         * modules/ftell-tests: Likewise.
16289         * modules/ftello-tests: Likewise.
16290         * tests/test-fseek.c (main): Isolate ungetc dependency.
16291         * tests/test-fseeko.c (main): Likewise.
16292         * tests/test-ftell.c (main): Likewise.
16293         * tests/test-ftello.c (main): Likewise.
16294         * tests/test-fseek2.sh: New file.
16295         * tests/test-fseeko2.sh: Likewise.
16296         * tests/test-ftell2.sh: Likewise.
16297         * tests/test-ftello2.sh: Likewise.
16298
16299 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
16300
16301         test-getaddrinfo: fix usage of skip return code 77
16302         * tests/test-gettaddrinfo.c: Return skip code 77 only
16303         for first occurance of skip (4x77 is not 77)
16304
16305 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16306
16307         strtod: avoid C99 decl-after-statement
16308         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16309
16310 2009-02-24  Eric Blake  <ebb9@byu.net>
16311
16312         strtod: detect HP-UX 11.31 bug
16313         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16314         Reported by Gary V. Vaughan.
16315
16316 2009-02-23  Bruno Haible  <bruno@clisp.org>
16317
16318         Fix invalid read past end of memory block.
16319         * lib/vasnprintf.c (DCHAR_SET): Define.
16320         (local_wcslen): Define only when needed.
16321         (local_strnlen, local_wcsnlen): New functions.
16322         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16323         directives that involve a conversion ourselves.
16324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16325         wcsnlen, mbrtowc, wcrtomb.
16326         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16327         * tests/test-vasprintf-posix.c (test_function): Likewise.
16328         * tests/test-snprintf-posix.h (test_function): Likewise.
16329         * tests/test-sprintf-posix.h (test_function): Likewise.
16330         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16331
16332 2009-02-22  Bruno Haible  <bruno@clisp.org>
16333
16334         Implement new clarified decomposition of Hangul syllables.
16335         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16336         of type LTV, return only a pairwise decomposition.
16337         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16338         Likewise.
16339         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16340         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16341         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16342
16343 2009-02-22  Bruno Haible  <bruno@clisp.org>
16344
16345         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16346         zero-length results and shrink excess allocated memory.
16347         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16348         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16349         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16350         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16351         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16352         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16353         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16354         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16355         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16356         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16357         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16358         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16359
16360 2009-02-21  Bruno Haible  <bruno@clisp.org>
16361
16362         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16363         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16364         spaces after a period. Put a space between a macro name and its
16365         argument list. Trivial rewordings.
16366         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16367         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16368         (main): Return 0 explicitly.
16369
16370 2009-02-21  Bruno Haible  <bruno@clisp.org>
16371
16372         Tests for module 'uninorm/filter'.
16373         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16374         * modules/uninorm/filter-tests: New file.
16375
16376         New module 'uninorm/filter'.
16377         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16378         uninorm_filter_flush, uninorm_filter_free): New declarations.
16379         * lib/uninorm/uninorm-filter.c: New file.
16380         * modules/uninorm/filter: New file.
16381
16382 2009-02-21  Bruno Haible  <bruno@clisp.org>
16383
16384         Tests for module 'uninorm/nfkc'.
16385         * tests/uninorm/test-nfkc.c: New file.
16386         * tests/uninorm/test-u8-nfkc.c: New file.
16387         * tests/uninorm/test-u16-nfkc.c: New file.
16388         * tests/uninorm/test-u32-nfkc.c: New file.
16389         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16390         * tests/uninorm/test-u32-nfkc-big.c: New file.
16391         * modules/uninorm/nfkc-tests: New file.
16392
16393         New module 'uninorm/nfkc'.
16394         * lib/uninorm/nfkc.c: New file.
16395         * modules/uninorm/nfkc: New file.
16396
16397         Tests for module 'uninorm/nfkd'.
16398         * tests/uninorm/test-nfkd.c: New file.
16399         * tests/uninorm/test-u8-nfkd.c: New file.
16400         * tests/uninorm/test-u16-nfkd.c: New file.
16401         * tests/uninorm/test-u32-nfkd.c: New file.
16402         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16403         * tests/uninorm/test-u32-nfkd-big.c: New file.
16404         * modules/uninorm/nfkd-tests: New file.
16405
16406         New module 'uninorm/nfkd'.
16407         * lib/uninorm/nfkd.c: New file.
16408         * modules/uninorm/nfkd: New file.
16409
16410         Tests for module 'uninorm/nfc'.
16411         * tests/uninorm/test-nfc.c: New file.
16412         * tests/uninorm/test-u8-nfc.c: New file.
16413         * tests/uninorm/test-u16-nfc.c: New file.
16414         * tests/uninorm/test-u32-nfc.c: New file.
16415         * tests/uninorm/test-u32-nfc-big.sh: New file.
16416         * tests/uninorm/test-u32-nfc-big.c: New file.
16417         * modules/uninorm/nfc-tests: New file.
16418
16419         New module 'uninorm/nfc'.
16420         * lib/uninorm/nfc.c: New file.
16421         * modules/uninorm/nfc: New file.
16422
16423         Tests for module 'uninorm/nfd'.
16424         * tests/uninorm/test-nfd.c: New file.
16425         * tests/uninorm/test-u8-nfd.c: New file.
16426         * tests/uninorm/test-u16-nfd.c: New file.
16427         * tests/uninorm/test-u32-nfd.c: New file.
16428         * tests/uninorm/test-u32-nfd-big.sh: New file.
16429         * tests/uninorm/test-u32-nfd-big.c: New file.
16430         * tests/uninorm/test-u32-normalize-big.h: New file.
16431         * tests/uninorm/test-u32-normalize-big.c: New file.
16432         * tests/uninorm/NormalizationTest.txt: New file, created from
16433         Unicode 5.1.0 NormalizationTest.txt.
16434         * modules/uninorm/nfd-tests: New file.
16435
16436         New module 'uninorm/nfd'.
16437         * lib/uninorm/nfd.c: New file.
16438         * modules/uninorm/nfd: New file.
16439
16440         New module 'uninorm/u32-normalize'.
16441         * lib/uninorm/u32-normalize.c: New file.
16442         * modules/uninorm/u32-normalize: New file.
16443
16444         New module 'uninorm/u16-normalize'.
16445         * lib/uninorm/u16-normalize.c: New file.
16446         * modules/uninorm/u16-normalize: New file.
16447
16448         New module 'uninorm/u8-normalize'.
16449         * lib/uninorm/u8-normalize.c: New file.
16450         * lib/uninorm/normalize-internal.h: New file.
16451         * lib/uninorm/u-normalize-internal.h: New file.
16452         * modules/uninorm/u8-normalize: New file.
16453
16454         New module 'uninorm/decompose-internal'.
16455         * lib/uninorm/decompose-internal.c: New file.
16456         * modules/uninorm/decompose-internal: New file.
16457
16458         Tests for module 'uninorm/composition'.
16459         * tests/uninorm/test-composition.c: New file.
16460         * modules/uninorm/composition-tests: New file.
16461
16462         New module 'uninorm/composition'.
16463         * lib/uninorm/composition.c: New file.
16464         * lib/uninorm/composition-table.gperf: New file, generated by
16465         gen-uni-tables.
16466         * modules/uninorm/composition: New file.
16467
16468         Tests for module 'uninorm/compat-decomposition'.
16469         * tests/uninorm/test-compat-decomposition.c: New file.
16470         * modules/uninorm/compat-decomposition-tests: New file.
16471
16472         New module 'uninorm/compat-decomposition'.
16473         * lib/uninorm/decompose-internal.h: New file.
16474         * lib/uninorm/compat-decomposition.c: New file.
16475         * modules/uninorm/compat-decomposition: New file.
16476
16477         Tests for module 'uninorm/canonical-decomposition'.
16478         * tests/uninorm/test-canonical-decomposition.c: New file.
16479         * modules/uninorm/canonical-decomposition-tests: New file.
16480
16481         New module 'uninorm/canonical-decomposition'.
16482         * lib/uninorm/canonical-decomposition.c: New file.
16483         * modules/uninorm/canonical-decomposition: New file.
16484
16485         Tests for module 'uninorm/decomposition'.
16486         * tests/uninorm/test-decomposition.c: New file.
16487         * modules/uninorm/decomposition-tests: New file.
16488
16489         New module 'uninorm/decomposition'.
16490         * lib/uninorm/decomposition.c: New file.
16491         * modules/uninorm/decomposition: New file.
16492
16493         New module 'uninorm/decomposition-table'.
16494         * lib/uninorm/decomposition-table.h: New file.
16495         * lib/uninorm/decomposition-table.c: New file.
16496         * lib/uninorm/decomposition-table1.h: New file, generated by
16497         gen-uni-tables.
16498         * lib/uninorm/decomposition-table2.h: New file, generated by
16499         gen-uni-tables.
16500         * modules/uninorm/decomposition-table: New file.
16501
16502         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16503         (UC_DECOMP_*): New enumeration items.
16504         (get_decomposition): New function.
16505         (struct decomp_table): New type.
16506         (output_decomposition, output_decomposition_tables): New functions.
16507         (unicode_composition_exclusions): New variable.
16508         (fill_composition_exclusions, debug_output_composition_tables): New
16509         functions.
16510         (main): Accept one more argument. Invoke fill_composition_exclusions.
16511         Output decomposition and composition tables.
16512
16513         New module 'uninorm/base'.
16514         * lib/uninorm.h: New file.
16515         * lib/unictype.h: Update comment.
16516         * modules/uninorm/base: New file.
16517
16518 2009-02-21  David Lutterkort  <lutter@redhat.com>
16519
16520         Tests for module 'safe-alloc'.
16521         * tests/test-safe-alloc.c: New file.
16522         * modules/safe-alloc-tests: New file.
16523
16524         New module 'safe-alloc'.
16525         * lib/safe-alloc.h: New file.
16526         * lib/safe-alloc.c: New file.
16527         * m4/safe-alloc.m4: New file.
16528         * modules/safe-alloc: New file.
16529         * doc/safe-alloc.texi: New file.
16530         * doc/gnulib.texi: Include it.
16531         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16532         safe-alloc.
16533
16534 2009-02-18  Bruno Haible  <bruno@clisp.org>
16535
16536         Fix link error on non-glibc systems.
16537         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16538         variable.
16539         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16540
16541 2009-02-18  Jim Meyering  <meyering@redhat.com>
16542
16543         fts: avoid used-uninitialized error due to recent change
16544         * lib/fts.c (fts_read): Guard uses of the new member,
16545         parent->fts_n_dirs_remaining, since it's not relevant for
16546         the parent of a directory specified on the command-line.
16547
16548 2009-02-17  James Youngman  <jay@gnu.org>
16549             Bruno Haible  <bruno@clisp.org>
16550
16551         * m4/include_next.m4: Reformulate comment.
16552
16553 2009-02-16  Jim Meyering  <meyering@redhat.com>
16554
16555         fts: add #if guards so that the fts_lgpl module still builds
16556         * lib/fts.c: Guard just-added hash-table-using parts with
16557         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16558         Reported by Simon Josefsson.
16559
16560 2009-02-15  Bruno Haible  <bruno@clisp.org>
16561
16562         * modules/array-mergesort-tests: New file.
16563         * tests/test-array-mergesort.c: New file.
16564
16565         New module 'array-mergesort'.
16566         * modules/array-mergesort: New file.
16567         * lib/array-mergesort.h: New file.
16568
16569 2009-02-15  Bruno Haible  <bruno@clisp.org>
16570
16571         Fix 2009-02-07 commit.
16572         * lib/gen-uni-tables.c (output_predicate, output_category,
16573         output_combclass, output_bidi_category, output_decimal_digit,
16574         output_digit, output_numeric, output_mirror, output_scripts,
16575         output_ident_category, output_simple_mapping): Fix format directives.
16576         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16577
16578 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16579
16580         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16581         fixes are available from IBM.
16582
16583 2009-02-13  Jim Meyering  <meyering@redhat.com>
16584
16585         fts: arrange not to stat non-directories in more cases
16586         This makes GNU find (when it doesn't need to stat each file)
16587         *much* more efficient at traversing reiserfs file systems.
16588         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16589         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16590         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16591         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16592         (leaf_optimization_applies): New function.
16593         (LCO_hash, LCO_compare): New helper functions.
16594         (link_count_optimize_ok): New function.
16595         (fts_stat): Initialize new member (if dir).
16596         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16597         we've just stat'ed a directory.  Skip the stat call when possible.
16598         ---
16599         Note this AFS-related exchange:
16600         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16601         and note find's pioctl call in find/fstype.c.
16602         But that is necessary only if you want to enable the
16603         optimization for AFS, and for now, I don't.
16604
16605         fts: move a function definition "up" (no semantic change)
16606         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16607         "up" to precede upcoming use of a related function.
16608
16609 2009-02-11  Jim Meyering  <meyering@redhat.com>
16610
16611         fts: correct internal computation of nlinks (optimization-related)
16612         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16613         whether the current entry is a directory, so don't test it.
16614
16615 2009-02-10  Bruno Haible  <bruno@clisp.org>
16616
16617         Tests for module 'uniwbrk/ulc-wordbreaks'.
16618         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16619         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16620         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16621
16622         Tests for module 'uniwbrk/u32-wordbreaks'.
16623         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16624         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16625
16626         Tests for module 'uniwbrk/u16-wordbreaks'.
16627         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16628         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16629
16630         Tests for module 'uniwbrk/u8-wordbreaks'.
16631         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16632         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16633
16634 2009-02-10  Bruno Haible  <bruno@clisp.org>
16635
16636         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16637         property.
16638         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16639         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16640         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16641
16642 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16643
16644         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16645         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16646
16647 2009-02-10  Bruno Haible  <bruno@clisp.org>
16648
16649         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16650         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16651         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16652         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16653         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16654         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16655
16656 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16657
16658         * lib/sockets.h (gl_fd_to_handle): New function.
16659
16660         * tests/test-sockets.c: Call gl_fd_to_handle.
16661
16662 2009-02-09  Bruno Haible  <bruno@clisp.org>
16663
16664         * doc/havelib.texi: Document the conventions on bi-arch systems.
16665
16666 2009-02-08  Bruno Haible  <bruno@clisp.org>
16667
16668         Document the AC_LIB_LINKFLAGS macro.
16669         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16670         * doc/gnulib.texi: Include it.
16671
16672 2009-02-08  Bruno Haible  <bruno@clisp.org>
16673
16674         Fix wrong order of sections, compared to TOC.
16675         * doc/gnulib.texi: Include relocatable-maint.texi after the
16676         "Regular expressions" node, not before.
16677
16678 2009-02-08  Bruno Haible  <bruno@clisp.org>
16679
16680         Tests for module 'unicase/totitle'.
16681         * modules/unicase/totitle-tests: New file.
16682
16683         Tests for module 'unicase/tolower'.
16684         * modules/unicase/tolower-tests: New file.
16685
16686         Tests for module 'unicase/toupper'.
16687         * modules/unicase/toupper-tests: New file.
16688         * tests/unicase/test-mapping-part1.h: New file.
16689         * tests/unicase/test-mapping-part2.h: New file.
16690
16691         New module 'unicase/totitle'.
16692         * modules/unicase/totitle: New file.
16693         * lib/unicase/totitle.c: New file.
16694
16695         New module 'unicase/tolower'.
16696         * modules/unicase/tolower: New file.
16697         * lib/unicase/tolower.c: New file.
16698
16699         New module 'unicase/toupper'.
16700         * modules/unicase/toupper: New file.
16701         * lib/unicase/toupper.c: New file.
16702         * lib/unicase/simple-mapping.h: New file.
16703
16704         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16705         (mapping_table): New structure.
16706         (output_simple_mapping): New function.
16707         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16708         * modules/gen-uni-tables (Description): Update.
16709         * lib/unicase/toupper.h: New file, automatically generated by
16710         gen-uni-tables.
16711         * lib/unicase/tolower.h: New file, automatically generated by
16712         gen-uni-tables.
16713         * lib/unicase/totitle.h: New file, automatically generated by
16714         gen-uni-tables.
16715         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16716         gen-uni-tables.
16717         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16718         gen-uni-tables.
16719         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16720         gen-uni-tables.
16721
16722         New module 'unicase/base'.
16723         * modules/unicase/base: New file.
16724         * lib/unicase.h: New file.
16725
16726 2009-02-08  Bruno Haible  <bruno@clisp.org>
16727
16728         New module 'uniwbrk/ulc-wordbreaks'.
16729         * modules/uniwbrk/ulc-wordbreaks: New file.
16730         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16731
16732         New module 'uniwbrk/u32-wordbreaks'.
16733         * modules/uniwbrk/u32-wordbreaks: New file.
16734         * lib/uniwbrk/u32-wordbreaks.c: New file.
16735
16736         New module 'uniwbrk/u16-wordbreaks'.
16737         * modules/uniwbrk/u16-wordbreaks: New file.
16738         * lib/uniwbrk/u16-wordbreaks.c: New file.
16739
16740         New module 'uniwbrk/u8-wordbreaks'.
16741         * modules/uniwbrk/u8-wordbreaks: New file.
16742         * lib/uniwbrk/u8-wordbreaks.c: New file.
16743         * lib/uniwbrk/u-wordbreaks.h: New file.
16744
16745         New module 'uniwbrk/table'.
16746         * modules/uniwbrk/table: New file.
16747         * lib/uniwbrk/wbrktable.h: New file.
16748         * lib/uniwbrk/wbrktable.c: New file.
16749
16750         New module 'uniwbrk/wordbreak-property'.
16751         * modules/uniwbrk/wordbreak-property: New file.
16752         * lib/uniwbrk/wordbreak-property.c: New file.
16753
16754         * lib/gen-uni-tables.c (WBP_*): New enum items.
16755         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16756         (unicode_org_wbp): New variable.
16757         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16758         New functions.
16759         (wbp_table): New structure.
16760         (output_wbp, output_wbrk_tables): New functions.
16761         (main): Accept additional argument. Invoke fill_org_wbp,
16762         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16763         output_wbrk_tables.
16764         * modules/gen-uni-tables (Description): Update.
16765         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16766         gen-uni-tables.
16767
16768         New module 'uniwbrk/base'.
16769         * modules/uniwbrk/base: New file.
16770         * lib/uniwbrk.h: New file.
16771
16772 2009-02-08  Bruno Haible  <bruno@clisp.org>
16773
16774         Update to Unicode 5.1.0.
16775         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16776         U+2185..U+2188.
16777         (is_property_default_ignorable_code_point): Don't include characters
16778         of category Cc or Cs and not-a-characters.
16779         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16780         U+0D79, U+109E, U+109F, U+A60C.
16781         * lib/unictype/bidi_of.h: Regenerated.
16782         * lib/unictype/blocks.h: Regenerated.
16783         * lib/unictype/categ_C.h: Regenerated.
16784         * lib/unictype/categ_Cf.h: Regenerated.
16785         * lib/unictype/categ_Cn.h: Regenerated.
16786         * lib/unictype/categ_L.h: Regenerated.
16787         * lib/unictype/categ_Ll.h: Regenerated.
16788         * lib/unictype/categ_Lm.h: Regenerated.
16789         * lib/unictype/categ_Lo.h: Regenerated.
16790         * lib/unictype/categ_Lu.h: Regenerated.
16791         * lib/unictype/categ_M.h: Regenerated.
16792         * lib/unictype/categ_Mc.h: Regenerated.
16793         * lib/unictype/categ_Me.h: Regenerated.
16794         * lib/unictype/categ_Mn.h: Regenerated.
16795         * lib/unictype/categ_N.h: Regenerated.
16796         * lib/unictype/categ_Nd.h: Regenerated.
16797         * lib/unictype/categ_Nl.h: Regenerated.
16798         * lib/unictype/categ_No.h: Regenerated.
16799         * lib/unictype/categ_P.h: Regenerated.
16800         * lib/unictype/categ_Pd.h: Regenerated.
16801         * lib/unictype/categ_Pe.h: Regenerated.
16802         * lib/unictype/categ_Pf.h: Regenerated.
16803         * lib/unictype/categ_Pi.h: Regenerated.
16804         * lib/unictype/categ_Po.h: Regenerated.
16805         * lib/unictype/categ_Ps.h: Regenerated.
16806         * lib/unictype/categ_S.h: Regenerated.
16807         * lib/unictype/categ_Sk.h: Regenerated.
16808         * lib/unictype/categ_Sm.h: Regenerated.
16809         * lib/unictype/categ_So.h: Regenerated.
16810         * lib/unictype/categ_of.h: Regenerated.
16811         * lib/unictype/combining.h: Regenerated.
16812         * lib/unictype/ctype_alnum.h: Regenerated.
16813         * lib/unictype/ctype_alpha.h: Regenerated.
16814         * lib/unictype/ctype_graph.h: Regenerated.
16815         * lib/unictype/ctype_lower.h: Regenerated.
16816         * lib/unictype/ctype_print.h: Regenerated.
16817         * lib/unictype/ctype_punct.h: Regenerated.
16818         * lib/unictype/ctype_upper.h: Regenerated.
16819         * lib/unictype/decdigit.h: Regenerated.
16820         * lib/unictype/digit.h: Regenerated.
16821         * lib/unictype/mirror.h: Regenerated.
16822         * lib/unictype/numeric.h: Regenerated.
16823         * lib/unictype/pr_alphabetic.h: Regenerated.
16824         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16825         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16826         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16827         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16828         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16829         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16830         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16831         * lib/unictype/pr_combining.h: Regenerated.
16832         * lib/unictype/pr_dash.h: Regenerated.
16833         * lib/unictype/pr_decimal_digit.h: Regenerated.
16834         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16835         * lib/unictype/pr_deprecated.h: Regenerated.
16836         * lib/unictype/pr_diacritic.h: Regenerated.
16837         * lib/unictype/pr_extender.h: Regenerated.
16838         * lib/unictype/pr_format_control.h: Regenerated.
16839         * lib/unictype/pr_grapheme_base.h: Regenerated.
16840         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16841         * lib/unictype/pr_grapheme_link.h: Regenerated.
16842         * lib/unictype/pr_id_continue.h: Regenerated.
16843         * lib/unictype/pr_id_start.h: Regenerated.
16844         * lib/unictype/pr_ideographic.h: Regenerated.
16845         * lib/unictype/pr_ignorable_control.h: Regenerated.
16846         * lib/unictype/pr_lowercase.h: Regenerated.
16847         * lib/unictype/pr_math.h: Regenerated.
16848         * lib/unictype/pr_numeric.h: Regenerated.
16849         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16850         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16851         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16852         * lib/unictype/pr_other_id_continue.h: Regenerated.
16853         * lib/unictype/pr_other_lowercase.h: Regenerated.
16854         * lib/unictype/pr_other_math.h: Regenerated.
16855         * lib/unictype/pr_punctuation.h: Regenerated.
16856         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16857         * lib/unictype/pr_soft_dotted.h: Regenerated.
16858         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16859         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16860         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16861         * lib/unictype/pr_uppercase.h: Regenerated.
16862         * lib/unictype/pr_xid_continue.h: Regenerated.
16863         * lib/unictype/pr_xid_start.h: Regenerated.
16864         * lib/unictype/pr_zero_width.h: Regenerated.
16865         * lib/unictype/scripts.h: Regenerated.
16866         * lib/unictype/scripts_byname.gperf: Regenerated.
16867         * lib/unictype/sy_java_ident.h: Regenerated.
16868         * lib/unilbrk/lbrkprop1.h: Regenerated.
16869         * lib/unilbrk/lbrkprop2.h: Regenerated.
16870         * tests/unictype/test-categ_C.c: Regenerated.
16871         * tests/unictype/test-categ_Cf.c: Regenerated.
16872         * tests/unictype/test-categ_Cn.c: Regenerated.
16873         * tests/unictype/test-categ_L.c: Regenerated.
16874         * tests/unictype/test-categ_Ll.c: Regenerated.
16875         * tests/unictype/test-categ_Lm.c: Regenerated.
16876         * tests/unictype/test-categ_Lo.c: Regenerated.
16877         * tests/unictype/test-categ_Lu.c: Regenerated.
16878         * tests/unictype/test-categ_M.c: Regenerated.
16879         * tests/unictype/test-categ_Mc.c: Regenerated.
16880         * tests/unictype/test-categ_Me.c: Regenerated.
16881         * tests/unictype/test-categ_Mn.c: Regenerated.
16882         * tests/unictype/test-categ_N.c: Regenerated.
16883         * tests/unictype/test-categ_Nd.c: Regenerated.
16884         * tests/unictype/test-categ_Nl.c: Regenerated.
16885         * tests/unictype/test-categ_No.c: Regenerated.
16886         * tests/unictype/test-categ_P.c: Regenerated.
16887         * tests/unictype/test-categ_Pd.c: Regenerated.
16888         * tests/unictype/test-categ_Pe.c: Regenerated.
16889         * tests/unictype/test-categ_Pf.c: Regenerated.
16890         * tests/unictype/test-categ_Pi.c: Regenerated.
16891         * tests/unictype/test-categ_Po.c: Regenerated.
16892         * tests/unictype/test-categ_Ps.c: Regenerated.
16893         * tests/unictype/test-categ_S.c: Regenerated.
16894         * tests/unictype/test-categ_Sk.c: Regenerated.
16895         * tests/unictype/test-categ_Sm.c: Regenerated.
16896         * tests/unictype/test-categ_So.c: Regenerated.
16897         * tests/unictype/test-ctype_alnum.c: Regenerated.
16898         * tests/unictype/test-ctype_alpha.c: Regenerated.
16899         * tests/unictype/test-ctype_graph.c: Regenerated.
16900         * tests/unictype/test-ctype_lower.c: Regenerated.
16901         * tests/unictype/test-ctype_print.c: Regenerated.
16902         * tests/unictype/test-ctype_punct.c: Regenerated.
16903         * tests/unictype/test-ctype_upper.c: Regenerated.
16904         * tests/unictype/test-decdigit.h: Regenerated.
16905         * tests/unictype/test-digit.h: Regenerated.
16906         * tests/unictype/test-numeric.h: Regenerated.
16907         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16908         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16909         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16910         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16911         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16912         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16913         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16914         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16915         * tests/unictype/test-pr_combining.c: Regenerated.
16916         * tests/unictype/test-pr_dash.c: Regenerated.
16917         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16918         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16919         * tests/unictype/test-pr_deprecated.c: Regenerated.
16920         * tests/unictype/test-pr_diacritic.c: Regenerated.
16921         * tests/unictype/test-pr_extender.c: Regenerated.
16922         * tests/unictype/test-pr_format_control.c: Regenerated.
16923         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16924         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16925         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16926         * tests/unictype/test-pr_id_continue.c: Regenerated.
16927         * tests/unictype/test-pr_id_start.c: Regenerated.
16928         * tests/unictype/test-pr_ideographic.c: Regenerated.
16929         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16930         * tests/unictype/test-pr_lowercase.c: Regenerated.
16931         * tests/unictype/test-pr_math.c: Regenerated.
16932         * tests/unictype/test-pr_numeric.c: Regenerated.
16933         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16934         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16935         Regenerated.
16936         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16937         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16938         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16939         * tests/unictype/test-pr_other_math.c: Regenerated.
16940         * tests/unictype/test-pr_punctuation.c: Regenerated.
16941         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16942         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16943         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16944         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16945         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16946         * tests/unictype/test-pr_uppercase.c: Regenerated.
16947         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16948         * tests/unictype/test-pr_xid_start.c: Regenerated.
16949         * tests/unictype/test-pr_zero_width.c: Regenerated.
16950
16951         Update to Unicode 5.1.0.
16952         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16953         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16954         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16955         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16956         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16957         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16958         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16959         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16960         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16961         (nonspacing_table_ind): Update.
16962         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16963
16964         Update to Unicode 5.1.0.
16965         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16966         code transform.
16967         * lib/uniname/uniname.c (unicode_character_name,
16968         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16969         * lib/uniname/uninames.h: Regenerated.
16970         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16971
16972 2009-02-07  Bruno Haible  <bruno@clisp.org>
16973
16974         Merge gen-ctype and gen-lbrk into a single program.
16975         * lib/gen-uni-tables.c: New file, incorporating
16976         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16977         Add directory prefixes to the names of the generated files.
16978         * lib/unictype/gen-ctype.c: Remove file.
16979         * lib/unilbrk/gen-lbrk.c: Remove file.
16980         * modules/gen-uni-tables: New file.
16981         * modules/unictype/gen-ctype: Remove file.
16982         * modules/unilbrk/gen-lbrk: Remove file.
16983
16984 2009-02-07  Bruno Haible  <bruno@clisp.org>
16985
16986         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16987
16988         New module 'unistr/u32-strcoll'.
16989         * modules/unistr/u32-strcoll: New file.
16990         * lib/unistr/u32-strcoll.c: New file.
16991
16992         New module 'unistr/u16-strcoll'.
16993         * modules/unistr/u16-strcoll: New file.
16994         * lib/unistr/u16-strcoll.c: New file.
16995
16996         New module 'unistr/u8-strcoll'.
16997         * modules/unistr/u8-strcoll: New file.
16998         * lib/unistr/u8-strcoll.c: New file.
16999         * lib/unistr/u-strcoll.h: New file.
17000
17001 2009-02-07  Bruno Haible  <bruno@clisp.org>
17002
17003         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
17004         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17005         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17006         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
17007         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
17008         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
17009
17010 2009-02-07  Bruno Haible  <bruno@clisp.org>
17011
17012         Make 64-bit clean.
17013         * lib/unictype/gen-ctype.c (output_predicate, output_category,
17014         output_combclass, output_bidi_category, output_decimal_digit,
17015         output_digit, output_numeric, output_mirror, output_scripts,
17016         output_ident_category): Use proper width specifier in format strings.
17017
17018 2009-02-07  Bruno Haible  <bruno@clisp.org>
17019
17020         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
17021         failure behaviour.
17022
17023 2009-02-07  Jim Meyering  <meyering@redhat.com>
17024
17025         regex: avoid compilation failure with upcoming gcc-4.4
17026         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
17027         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
17028         "... error: integer overflow in preprocessor expression".
17029
17030 2009-02-05  Ben Pfaff  <blp@gnu.org>
17031
17032         Fix link errors on Windows when close module is used.
17033         * modules/close: Add $(LIB_CLOSE) to Link section.
17034         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
17035         $(LIB_CLOSE) on Windows.
17036
17037 2009-02-05  Jim Meyering  <meyering@redhat.com>
17038
17039         still avoid unused-parameter warnings, but do it cleanly
17040         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
17041         (get_fs_usage): Cast to void instead.
17042         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
17043         (dev_from_mount_options, read_file_system_list): Cast to void.
17044         Prompted by Bruno Haible.
17045
17046 2009-02-04  Jim Meyering  <meyering@redhat.com>
17047
17048         fsusage.c: correct copyright year
17049         * lib/fsusage.c: Reflect year in which the change is pushed into
17050
17051         avoid misc. warnings
17052         * lib/fsusage.c (UNUSED_PARAM): Define.
17053         (get_fs_usage): Mark parameter "disk" as unused.
17054         * lib/getugroups.c (getgrent): Use "void" in prototype.
17055         * lib/mountlist.c: Mark unused parameters.
17056         (read_file_system_list): Declare a local with "const".
17057         * lib/nanosleep.c (getnow): Declare static.
17058         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
17059
17060         dirfd: set errno upon failure
17061         * lib/dirfd.c: Include <errno.h>.
17062         Set errno to ENOTSUP when returning -1.
17063         * modules/dirfd (Depends-on): Add errno.
17064         Suggested by John Kodis <kodis@comcast.net>.
17065
17066 2009-02-01  Bruno Haible  <bruno@clisp.org>
17067
17068         Don't assume sizeof (long) >= sizeof (void *).
17069         * lib/memcmp.c: Include stdint.h.
17070         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
17071         srcp2 to 'const byte *'.
17072         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
17073         types to uintptr_t.
17074         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
17075         * modules/memcmp (Depends-on): Add stdint.
17076         Reported by Ozkan Sezer <sezeroz@gmail.com>.
17077
17078 2009-01-30  Eric Blake  <ebb9@byu.net>
17079
17080         fix more require-before-expand issues
17081         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
17082         expand, AC_PROG_AWK.
17083         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
17084
17085 2009-01-28  Eric Blake  <ebb9@byu.net>
17086
17087         version-etc: use consistent URL formatting
17088         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
17089         Improve formatting.  Use fputs for string without %.
17090
17091 2009-01-28  Jim Meyering  <meyering@redhat.com>
17092
17093         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17094         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17095         "underquoted definition of NAME" from autoconf-2.59.
17096
17097 2009-01-28  Bruno Haible  <bruno@clisp.org>
17098
17099         * doc/gnulib.texi: Add "Obsolete modules" to index.
17100
17101 2009-01-28  Jim Meyering  <meyering@redhat.com>
17102
17103         useless-if-before-free: recognize more variants
17104         * build-aux/useless-if-before-free: Also recognize e.g.,
17105         if (NULL != p) free (p);
17106
17107 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17108
17109         test-getaddrinfo: skip (don't fail) this test when there's no network
17110         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17111         on the presumption that it means you lack network access.
17112
17113 2009-01-26  Jim Meyering  <meyering@redhat.com>
17114
17115         fflush: avoid warnings on modern systems
17116         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17117         pos and result, into scopes where they're used.
17118
17119 2009-01-26  Eric Blake  <ebb9@byu.net>
17120
17121         Silence warning reintroduced by recent extensions patch.
17122         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17123         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17124         autoconf.
17125
17126         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17127         * m4/00gnulib.m4: New file.
17128         * gnulib-tool (func_get_filelist): Always use it.
17129         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17130         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17131
17132 2009-01-25  Bruno Haible  <bruno@clisp.org>
17133
17134         Make test-quotearg work on MacOS X and AIX.
17135         * tests/test-quotearg.sh: New file.
17136         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17137         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17138         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17139         include <libintl.h>.
17140         (fake_locale): Remove variable.
17141         (gettext, dgettext, dcgettext): Remove functions.
17142         (main): Instead of setting a fake locale, set a real locale. Call
17143         textdomain and bindtextdomain.
17144         * modules/quotearg-tests (Files): Add the new files.
17145         (Depends-on): Add gettext, setenv, unsetenv.
17146         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17147         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17148         Augment TESTS_ENVIRONMENT.
17149
17150 2009-01-25  Bruno Haible  <bruno@clisp.org>
17151
17152         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17153         fr_FR.ISO8859-1 locale on MacOS X.
17154         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17155         ja_JP.eucJP locale on MacOS X.
17156         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17157         zh_CN.GB18030 locale on MacOS X.
17158
17159 2009-01-25  Bruno Haible  <bruno@clisp.org>
17160
17161         Avoid link errors on MacOS X 10.3.
17162         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17163         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17164
17165 2009-01-25  Bruno Haible  <bruno@clisp.org>
17166
17167         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17168         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17169         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17170         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17171         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17172         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17173         posix_spawnattr_init, posix_spawnattr_setsigmask,
17174         posix_spawnattr_setflags, posix_spawnattr_destroy.
17175
17176         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17177         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17178         * modules/execute (Files): Remove m4/posix_spawn.m4.
17179         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17180         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17181         posix_spawnattr_init, posix_spawnattr_setsigmask,
17182         posix_spawnattr_setflags, posix_spawnattr_destroy.
17183
17184 2009-01-25  Bruno Haible  <bruno@clisp.org>
17185
17186         * lib/glthread/threadlib.c: Include <stdlib.h>.
17187
17188 2009-01-25  Bruno Haible  <bruno@clisp.org>
17189
17190         * lib/glthread/threadlib.c (dummy): New declaration.
17191
17192 2009-01-25  Bruno Haible  <bruno@clisp.org>
17193
17194         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17195         multibyte characters also for the GB18030 encoding. Don't crash when
17196         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17197
17198 2009-01-25  Bruno Haible  <bruno@clisp.org>
17199
17200         Avoid redefining 'struct random_data' on OSF/1 5.1.
17201         * lib/stdlib.in.h: Include <random.h> if it exists.
17202         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17203         HAVE_RANDOM_H. Include <random.h> when testing whether
17204         'struct random_data' exists.
17205         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17206
17207 2009-01-25  Bruno Haible  <bruno@clisp.org>
17208
17209         Don't install charset.alias on MacOS X >= 10.3.
17210         * lib/localcharset.c (DARWIN7): New macro.
17211         (get_charset_aliases): Hardcode the result for Darwin7.
17212         * modules/localcharset (install-exec-local): Don't install
17213         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17214
17215 2009-01-25  Bruno Haible  <bruno@clisp.org>
17216
17217         Don't install charset.alias on mingw and Cygwin.
17218         * modules/localcharset (install-exec-local): Don't install
17219         charset.alias on mingw and Cygwin, if the file does not yet exist.
17220         The result for these platforms is hardcoded in localcharset.c.
17221
17222 2009-01-25  Bruno Haible  <bruno@clisp.org>
17223
17224         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17225         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17226         before requiring AC_USE_SYSTEM_EXTENSIONS.
17227
17228 2009-01-25  Jim Meyering  <meyering@redhat.com>
17229
17230         c-strtod: avoid warnings
17231         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17232         "assignment discards qualifiers from pointer target type" warnings.
17233
17234 2009-01-24  Bruno Haible  <bruno@clisp.org>
17235
17236         Add support for non-UTF-8 locales on MacOS X.
17237         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17238         canonical encodings. For Darwin 7 and newer, don't map traditional
17239         encodings to UTF-8.
17240         Reported by Vincent Lefevre <vincent@vinc17.org>
17241         at <http://savannah.gnu.org/bugs/?25235>.
17242
17243 2009-01-24  Bruno Haible  <bruno@clisp.org>
17244
17245         * doc/gnulib.texi (Obsolete modules): New section.
17246         Reported by Mike Frysinger <vapier@gentoo.org>.
17247
17248 2009-01-24  Bruno Haible  <bruno@clisp.org>
17249
17250         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17251         (%.dvi): New rule.
17252
17253 2009-01-24  Bruno Haible  <bruno@clisp.org>
17254
17255         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17256         Reported by Eric Blake.
17257
17258 2009-01-24  Bruno Haible  <bruno@clisp.org>
17259
17260         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17261         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17262         Reported by Gary V. Vaughan <gary@gnu.org>.
17263
17264 2009-01-24  Bruno Haible  <bruno@clisp.org>
17265
17266         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17267
17268 2009-01-23  Bruno Haible  <bruno@clisp.org>
17269
17270         Make c-strtod, c-strtold usable in libraries.
17271         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17272         (C_STRTOD): Call strdup instead of xstrdup.
17273         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17274         * modules/c-strtold (Depends-on): Likewise.
17275         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17276         * NEWS: Mention the change.
17277         Reported by Michael Gold <mgold@ncf.ca>.
17278
17279 2009-01-23  Jim Meyering  <meyering@redhat.com>
17280
17281         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17282         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17283         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17284
17285 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17286
17287         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17288         GNU CoreUtils.
17289         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17290         * modules/version-etc (Description): Update.
17291
17292 2009-01-22  Bruno Haible  <bruno@clisp.org>
17293
17294         Cache the C locale object.
17295         * lib/c-strtod.c (c_locale_cache): New variable.
17296         (c_locale): New function.
17297         (C_STRTOD): Use it, and don't call freelocale.
17298         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17299         Suggested by Paolo Bonzini.
17300
17301 2009-01-21  Bruno Haible  <bruno@clisp.org>
17302
17303         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17304         conditions other than overflow.
17305
17306 2009-01-21  Bruno Haible  <bruno@clisp.org>
17307
17308         * lib/c-strtod.c: Include errno.h.
17309         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17310         value from STRTOD_L and STRTOD.
17311
17312 2009-01-21  Bruno Haible  <bruno@clisp.org>
17313         and Jim Meyering  <meyering@redhat.com>
17314
17315         nanosleep: skip configure test (fail it) for apple universal builds
17316         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17317         universal builds, assume that nanosleep does not work.
17318         * modules/nanosleep (Depends-on): Add multiarch.
17319
17320         mktime: skip configure test (fail it) for apple universal builds
17321         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17322         universal builds, assume that mktime does not work.
17323         * modules/mktime (Depends-on): Add multiarch.
17324
17325 2009-01-21  Eric Blake  <ebb9@byu.net>
17326
17327         multiarch: avoid expand-before-require warning
17328         * modules/multiarch (configure.ac): Require, rather than expand,
17329         gl_MULTIARCH.
17330         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17331         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17332         enforce that all clients require it.  Partial reversion of
17333         2008-12-29 patch.
17334
17335         error: avoid expand-before-require warning
17336         * modules/errno (configure.ac): Require, rather than expand,
17337         gl_HEADER_ERRNO_H.
17338         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17339         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17340         enforce that all clients require it.
17341
17342         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17343         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17344         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17345         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17346
17347 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17348
17349         Revert:
17350         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17351
17352         regex: do not depend on obsolete modules.
17353         * modules/regex: Remove memcmp and memmove.
17354
17355 2009-01-20  Bruno Haible  <bruno@clisp.org>
17356
17357         Make the 'link' module link on Windows NT 4.
17358         * lib/link.c (_WIN32_WINNT): Don't define.
17359         (CreateHardLinkFuncType): New type.
17360         (CreateHardLinkFunc, initialized): New variables.
17361         (initialize): New function.
17362         (link): Invoke CreateHardLink indirectly through the function pointer.
17363
17364 2009-01-20  Bruno Haible  <bruno@clisp.org>
17365
17366         Fix compilation failure on mingw.
17367         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17368
17369 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17370
17371         * doc/c-strtod.texi: Mention a couple of restrictions.
17372
17373 2009-01-20  Jim Meyering  <meyering@redhat.com>
17374
17375         gettimeofday: move more declarations out of functions
17376         * lib/gettimeofday.c: Move extern declarations of tzset and
17377         gmtime out of containing functions.  Prompted by Bruno Haible.
17378
17379 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17380
17381         regex: do not depend on obsolete modules.
17382         * modules/regex: Remove memcmp and memmove.
17383
17384 2009-01-19  Bruno Haible  <bruno@clisp.org>
17385
17386         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17387         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17388         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17389         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17390         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17391
17392 2009-01-19  Bruno Haible  <bruno@clisp.org>
17393
17394         * tests/test-link.c: Include <errno.h>.
17395         (main): Exit with code 77 when a hard link cannot be created due to
17396         the file system.
17397         * tests/test-link.sh: Skip test when a hard link cannot be created due
17398         to the file system.
17399         Suggested by Eric Blake.
17400
17401 2009-01-19  Martin Lambers  <marlam@marlam.de>
17402
17403         * modules/link-tests: New file.
17404         * tests/test-link.sh: New file.
17405         * tests/test-link.c: New file.
17406
17407 2009-01-19  Eric Blake  <ebb9@byu.net>
17408
17409         doc: mention another function added in cygwin 1.7.0
17410         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17411         Another new function in cygwin 1.7.
17412
17413 2009-01-19  Bruno Haible  <bruno@clisp.org>
17414
17415         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17416         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17417         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17418         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17419         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17420         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17421         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17422         * m4/md4.m4 (gl_MD4): Likewise.
17423         * m4/md5.m4 (gl_MD5): Likewise.
17424         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17425         * m4/sha1.m4 (gl_SHA1): Likewise.
17426         * m4/sha256.m4 (gl_SHA256): Likewise.
17427         * m4/sha512.m4 (gl_SHA512): Likewise.
17428
17429 2009-01-19  Bruno Haible  <bruno@clisp.org>
17430
17431         * modules/uniname/uniname-tests (Depends-on): Add progname.
17432         * tests/uniname/test-uninames.c: Include progname.h.
17433         (main): Call set_program_name.
17434
17435         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17436         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17437         (main): Call set_program_name.
17438
17439         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17440         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17441         (main): Call set_program_name.
17442
17443         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17444         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17445         (main): Call set_program_name.
17446
17447         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17448         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17449         (main): Call set_program_name.
17450
17451         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17452         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17453         (main): Call set_program_name.
17454
17455         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17456         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17457         (main): Call set_program_name.
17458
17459         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17460         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17461         (main): Call set_program_name.
17462
17463         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17464         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17465         (main): Call set_program_name.
17466
17467 2009-01-19  Eric Blake  <ebb9@byu.net>
17468
17469         test-unistd: test previous patch
17470         * tests/test-unistd.c: Test *_FILENO macros.
17471
17472         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17473         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17474         Guarantee a definition.
17475         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17476         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17477         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17478         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17479         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17480         Likewise.
17481         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17482         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17483         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17484         Likewise.
17485         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17486         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17487         (STDERR_FILENO): Likewise.
17488         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17489         (STDERR_FILENO): Likewise.
17490         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17491         (STDERR_FILENO): Likewise.
17492         Reported by Elbert Pol.
17493
17494 2009-01-19  Eric Blake  <ebb9@byu.net>
17495
17496         doc: mention more functions added in cygwin 1.7.0
17497         * doc/posix-functions/abort.texi (abort): Update wording related
17498         to cygwin.
17499         * doc/posix-functions/daylight.texi (daylight): Likewise.
17500         * doc/posix-functions/optarg.texi (optarg): Likewise.
17501         * doc/posix-functions/optarg.texi (opterr): Likewise.
17502         * doc/posix-functions/optarg.texi (optind): Likewise.
17503         * doc/posix-functions/optarg.texi (optopt): Likewise.
17504         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17505         worked in 1.5.x, and was withdrawn in 1.7.
17506         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17507         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17508         cygwin versions.
17509         * doc/posix-functions/perror.texi (perror): Likewise.
17510         * doc/posix-functions/printf.texi (printf): Likewise.
17511         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17512         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17513         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17514         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17515         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17516         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17517         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17518         Likewise.
17519         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17520         Likewise.
17521         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17522         this function.
17523         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17524         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17525         Likewise.
17526         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17527         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17528         * doc/posix-functions/confstr.texi (confstr): Likewise.
17529         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17530         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17531         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17532         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17533         * doc/posix-functions/fputws.texi (fputws): Likewise.
17534         * doc/posix-functions/fwide.texi (fwide): Likewise.
17535         * doc/posix-functions/getwc.texi (getwc): Likewise.
17536         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17537         * doc/posix-functions/putwc.texi (putwc): Likewise.
17538         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17539         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17540         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17541         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17542         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17543         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17544         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17545         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17546         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17547         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17548         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17549
17550 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17551
17552         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17553         * lib/ioctl.c: Include <sys/ioctl.h>.
17554
17555 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17556
17557         * modules/getdate-tests (Depends-on): Add progname.
17558         * tests/test-getdate.c: Use progname module, to avoid link errors
17559         on non-glibc systems.
17560
17561 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17562
17563         * modules/filenamecat-tests (Depends-on): Add progname.
17564         * modules/fstrcmp-tests (Depends-on): Likewise.
17565
17566         * tests/test-filenamecat.c: Use progname module, to avoid link
17567         errors on non-glibc systems.
17568         * tests/test-fstrcmp.c: Likewise.
17569
17570 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17571
17572         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17573         * lib/gettimeofday.c: Move extern declaration out of function.
17574
17575 2009-01-18  Bruno Haible  <bruno@clisp.org>
17576
17577         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17578         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17579         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17580
17581 2009-01-18  Bruno Haible  <bruno@clisp.org>
17582
17583         * lib/strftime.c (MEMPCPY): Remove unused macro.
17584         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17585
17586 2009-01-18  Martin Lambers  <marlam@marlam.de>
17587
17588         New module 'link'.
17589         * lib/unistd.in.h (link): New declaration.
17590         * lib/link.c: New file.
17591         * m4/link.m4: New file.
17592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17593         HAVE_LINK.
17594         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17595         * modules/link: New file.
17596         * doc/posix-functions/link.texi: Mention the new module.
17597
17598 2009-01-18  Bruno Haible  <bruno@clisp.org>
17599
17600         * tests/test-avltree_list.c (main): Call set_program_name.
17601         * tests/test-avltree_oset.c (main): Likewise.
17602         * tests/test-obstack-printf.c: Include progname.h.
17603         (main): Call set_program_name.
17604         * tests/test-quotearg.c: Include progname.h.
17605         (main): Call set_program_name.
17606         * tests/test-xmemdup0.c: Include progname.h.
17607         (main): Call set_program_name.
17608
17609 2009-01-18  Bruno Haible  <bruno@clisp.org>
17610
17611         New module 'alphasort'.
17612         * lib/dirent.in.h (alphasort): New declaration.
17613         * lib/alphasort.c: New file, from glibc with modifications.
17614         * m4/alphasort.m4: New file.
17615         * modules/alphasort: New file.
17616         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17617         HAVE_ALPHASORT.
17618         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17619         HAVE_ALPHASORT.
17620         * doc/posix-functions/alphasort.texi: Mention the new module and the
17621         portability problems.
17622
17623 2009-01-18  Bruno Haible  <bruno@clisp.org>
17624
17625         New module 'scandir'.
17626         * lib/dirent.in.h (scandir): New declaration.
17627         * lib/scandir.c: New file, from glibc with modifications.
17628         * m4/scandir.m4: New file.
17629         * modules/scandir: New file.
17630         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17631         HAVE_SCANDIR.
17632         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17633         HAVE_SCANDIR.
17634         * doc/posix-functions/scandir.texi: Mention the new module and the
17635         portability problems.
17636
17637 2009-01-17  Bruno Haible  <bruno@clisp.org>
17638
17639         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17640         Update documentation.
17641         (func_remove_suffix): Escape all dots in the suffix. Update
17642         documentation.
17643         (func_filter_filelist): Update documentation.
17644         Reported by Ralf Wildenhues.
17645
17646 2009-01-17  Bruno Haible  <bruno@clisp.org>
17647
17648         * modules/dprintf-posix-tests: New file.
17649         * tests/test-dprintf-posix.sh: New file.
17650         * tests/test-dprintf-posix.c: New file.
17651
17652         New modules 'dprintf', 'dprintf-posix'.
17653         * lib/stdio.in.h (dprintf): New declaration.
17654         * lib/dprintf.c: New file.
17655         * m4/dprintf.m4: New file.
17656         * m4/dprintf-posix.m4: New file.
17657         * modules/dprintf: New file.
17658         * modules/dprintf-posix: New file.
17659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17660         HAVE_DPRINTF, REPLACE_DPRINTF.
17661         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17662         HAVE_DPRINTF, REPLACE_DPRINTF.
17663         * doc/posix-functions/dprintf.texi: Mention the new modules.
17664
17665 2009-01-17  Bruno Haible  <bruno@clisp.org>
17666
17667         * modules/vdprintf-posix-tests: New file.
17668         * tests/test-vdprintf-posix.sh: New file.
17669         * tests/test-vdprintf-posix.c: New file.
17670
17671         New modules 'vdprintf', 'vdprintf-posix'.
17672         * lib/stdio.in.h (vdprintf): New declaration.
17673         * lib/vdprintf.c: New file.
17674         * m4/vdprintf.m4: New file.
17675         * m4/vdprintf-posix.m4: New file.
17676         * modules/vdprintf: New file.
17677         * modules/vdprintf-posix: New file.
17678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17679         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17680         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17681         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17682         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17683
17684 2009-01-17  Bruno Haible  <bruno@clisp.org>
17685
17686         Fix replacement of fopen on mingw.
17687         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17688         mingw.
17689
17690 2009-01-17  Bruno Haible  <bruno@clisp.org>
17691
17692         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17693         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17694
17695 2009-01-17  Bruno Haible  <bruno@clisp.org>
17696
17697         Avoid test-fflush2.sh failure on mingw.
17698         * tests/test-fflush2.c: Include binary-io.h.
17699         (main): Put standard input into binary mode.
17700         * modules/fflush-tests (Depends-on): Add binary-io.
17701
17702 2009-01-17  Bruno Haible  <bruno@clisp.org>
17703
17704         * lib/wchar.in.h: In another particular situation, include only the
17705         system's <wchar.h> file.
17706         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17707         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17708         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17709
17710 2009-01-17  Bruno Haible  <bruno@clisp.org>
17711
17712         Support for stripping executables in --enable-relocatable.
17713         * build-aux/install-reloc: Expect one more argument, or an environment
17714         variable RELOC_STRIP_PROG. If set, strip the destination program and
17715         its wrapper.
17716         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17717         RELOC_STRIP_PROG.
17718         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17719         to set RELOCATABLE_STRIP.
17720         * NEWS: Mention the new Makefile requirement.
17721
17722 2009-01-17  Bruno Haible  <bruno@clisp.org>
17723
17724         * build-aux/install-reloc: Remove debugging information left over by
17725         C compiler on MacOS X.
17726
17727 2009-01-17  Bruno Haible  <bruno@clisp.org>
17728
17729         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17730         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17731         _NSGetExecutablePath.
17732
17733 2009-01-16  Jim Meyering  <meyering@redhat.com>
17734
17735         strerror: avoid warnings about discarding "const"
17736         * lib/strerror.c (rpl_strerror): Instead of returning a const
17737         string from each and every "case", use a variable, and add a single
17738         cast after the switch.
17739
17740 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17741
17742         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17743
17744 2009-01-16  Bruno Haible  <bruno@clisp.org>
17745
17746         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17747         array initializer syntax that also works in C++ mode.
17748         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17749
17750 2009-01-16  Jim Meyering  <meyering@redhat.com>
17751
17752         poll: suppress a warning
17753         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17754         to ignore "...unsigned expression < 0 is always false" warnings.
17755
17756 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17757
17758         poll: remove declarations of unused variables
17759         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17760         sockbuf and optlen.
17761
17762 2009-01-15  Bruno Haible  <bruno@clisp.org>
17763
17764         Make fflush-after-ungetc POSIX compliant on BSD systems.
17765         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17766         (clear_ungetc_buffer): Implement also for other systems.
17767         (rpl_fflush): On glibc systems, invoke
17768         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17769         clear_ungetc_buffer after fetching the stream's position, not before.
17770
17771 2009-01-15  Bruno Haible  <bruno@clisp.org>
17772
17773         Make fflush-after-ungetc POSIX compliant on glibc systems.
17774         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17775         after ungetc.
17776         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17777         (rpl_fflush): On glibc systems, simply call the system's fflush
17778         function after clearing the ungetc buffer.
17779         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17780         Instead, lseek only to the end of file, then use the system's fseeko
17781         for the rest. On glibc systems, reset the EOF indicator bit.
17782
17783 2009-01-15  Jim Meyering  <meyering@redhat.com>
17784
17785         openmp.m4: revert quote-adding change, for portability to older autoconf
17786         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17787         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17788         Simon Josefsson noticed the problem when using autoconf-2.61.
17789
17790 2009-01-15  Bruno Haible  <bruno@clisp.org>
17791
17792         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17793         * tests/test-fflush2.c (ASSERT): Always fail.
17794         (main): Add two tests for fflush() after ungetc(), taking into account
17795         the Austin Group's clarification.
17796         Suggested by Eric Blake.
17797
17798 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17799
17800         mktime.m4: remove K&R-style function prototypes
17801         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17802         for the Sun C++ compiler.
17803
17804 2009-01-14  Bruno Haible  <bruno@clisp.org>
17805
17806         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17807         while including <wchar.h>.
17808         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17809         the system's <wchar.h> file.
17810         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17811
17812 2009-01-14  Bruno Haible  <bruno@clisp.org>
17813
17814         * m4/csharp.m4: Don't mention gettext on the serial number line.
17815         * m4/csharpexec.m4: Likewise.
17816         * m4/eaccess.m4: Likewise.
17817         * m4/javaexec.m4: Likewise.
17818         * m4/sig_atomic_t.m4: Likewise.
17819         * m4/tmpdir.m4: Likewise.
17820         * m4/intldir.m4: Bump gettext version.
17821         * m4/lib-ld.m4: Likewise.
17822
17823 2009-01-14  Bruno Haible  <bruno@clisp.org>
17824
17825         * lib/progname.c (set_program_name): Add more comments.
17826         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17827
17828 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17829
17830         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17831         were sys/stat.h does not define it.
17832
17833 2009-01-14  Jim Meyering  <meyering@redhat.com>
17834
17835         many *.m4 files: improve m4 quoting
17836         99% of this change was performed by running the following commands:
17837         git ls-files | grep '\.m4$' | xargs perl -pi \
17838           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17839           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17840           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17841           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17842         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17843         The remainder were to add Copyright dates, increment serial numbers,
17844         undo some changes in comments, exclude m4/intl.m4, and add quotes
17845         around the "1" in ",1" where the unusual spacing prohibited the
17846         above regexps from doing the job.  For more details, see
17847         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17848         * m4/acl.m4: Modified.
17849         * m4/afs.m4: Likewise.
17850         * m4/alloca.m4: Likewise.
17851         * m4/argp.m4: Likewise.
17852         * m4/argz.m4: Likewise.
17853         * m4/atexit.m4: Likewise.
17854         * m4/bison-i18n.m4: Likewise.
17855         * m4/bison.m4: Likewise.
17856         * m4/byteswap.m4: Likewise.
17857         * m4/c-stack.m4: Likewise.
17858         * m4/c-strtod.m4: Likewise.
17859         * m4/calloc.m4: Likewise.
17860         * m4/canonicalize-lgpl.m4: Likewise.
17861         * m4/chown.m4: Likewise.
17862         * m4/clock_time.m4: Likewise.
17863         * m4/codeset.m4: Likewise.
17864         * m4/copy-file.m4: Likewise.
17865         * m4/csharp.m4: Likewise.
17866         * m4/csharpcomp.m4: Likewise.
17867         * m4/csharpexec.m4: Likewise.
17868         * m4/d-ino.m4: Likewise.
17869         * m4/d-type.m4: Likewise.
17870         * m4/dirfd.m4: Likewise.
17871         * m4/double-slash-root.m4: Likewise.
17872         * m4/eaccess.m4: Likewise.
17873         * m4/eealloc.m4: Likewise.
17874         * m4/environ.m4: Likewise.
17875         * m4/errno_h.m4: Likewise.
17876         * m4/euidaccess.m4: Likewise.
17877         * m4/execute.m4: Likewise.
17878         * m4/fatal-signal.m4: Likewise.
17879         * m4/fchdir.m4: Likewise.
17880         * m4/fcntl_h.m4: Likewise.
17881         * m4/fileblocks.m4: Likewise.
17882         * m4/filenamecat.m4: Likewise.
17883         * m4/findprog.m4: Likewise.
17884         * m4/flexmember.m4: Likewise.
17885         * m4/fnmatch.m4: Likewise.
17886         * m4/fopen.m4: Likewise.
17887         * m4/fpending.m4: Likewise.
17888         * m4/fprintf-posix.m4: Likewise.
17889         * m4/free.m4: Likewise.
17890         * m4/frexp.m4: Likewise.
17891         * m4/frexpl.m4: Likewise.
17892         * m4/fsusage.m4: Likewise.
17893         * m4/ftruncate.m4: Likewise.
17894         * m4/gc-camellia.m4: Likewise.
17895         * m4/gc-random.m4: Likewise.
17896         * m4/gc.m4: Likewise.
17897         * m4/getaddrinfo.m4: Likewise.
17898         * m4/getcwd-abort-bug.m4: Likewise.
17899         * m4/getcwd-path-max.m4: Likewise.
17900         * m4/getdate.m4: Likewise.
17901         * m4/getdomainname.m4: Likewise.
17902         * m4/getgroups.m4: Likewise.
17903         * m4/gethostname.m4: Likewise.
17904         * m4/gethrxtime.m4: Likewise.
17905         * m4/getline.m4: Likewise.
17906         * m4/getloadavg.m4: Likewise.
17907         * m4/getndelim2.m4: Likewise.
17908         * m4/getpass.m4: Likewise.
17909         * m4/gettext.m4: Likewise.
17910         * m4/gettime.m4: Likewise.
17911         * m4/gettimeofday.m4: Likewise.
17912         * m4/gnulib-common.m4: Likewise.
17913         * m4/group-member.m4: Likewise.
17914         * m4/host-os.m4: Likewise.
17915         * m4/iconv.m4: Likewise.
17916         * m4/iconv_open.m4: Likewise.
17917         * m4/inet_ntop.m4: Likewise.
17918         * m4/inet_pton.m4: Likewise.
17919         * m4/inline.m4: Likewise.
17920         * m4/intldir.m4: Likewise.
17921         * m4/intlmacosx.m4: Likewise.
17922         * m4/intmax.m4: Likewise.
17923         * m4/intmax_t.m4: Likewise.
17924         * m4/inttypes.m4: Likewise.
17925         * m4/inttypes_h.m4: Likewise.
17926         * m4/inttypes-pri.m4: Likewise.
17927         * m4/isapipe.m4: Likewise.
17928         * m4/isnand.m4: Likewise.
17929         * m4/isnanf.m4: Likewise.
17930         * m4/isnanl.m4: Likewise.
17931         * m4/javacomp.m4: Likewise.
17932         * m4/javaexec.m4: Likewise.
17933         * m4/jm-winsz1.m4: Likewise.
17934         * m4/jm-winsz2.m4: Likewise.
17935         * m4/lchown.m4: Likewise.
17936         * m4/lcmessage.m4: Likewise.
17937         * m4/ldexpl.m4: Likewise.
17938         * m4/lib-ld.m4: Likewise.
17939         * m4/lib-link.m4: Likewise.
17940         * m4/libsigsegv.m4: Likewise.
17941         * m4/link-follow.m4: Likewise.
17942         * m4/localcharset.m4: Likewise.
17943         * m4/locale-fr.m4: Likewise.
17944         * m4/locale-ja.m4: Likewise.
17945         * m4/locale-tr.m4: Likewise.
17946         * m4/locale-zh.m4: Likewise.
17947         * m4/lock.m4: Likewise.
17948         * m4/longlong.m4: Likewise.
17949         * m4/ls-mntd-fs.m4: Likewise.
17950         * m4/lstat.m4: Likewise.
17951         * m4/malloc.m4: Likewise.
17952         * m4/mathl.m4: Likewise.
17953         * m4/mbrtowc.m4: Likewise.
17954         * m4/mbstate_t.m4: Likewise.
17955         * m4/mbswidth.m4: Likewise.
17956         * m4/memchr.m4: Likewise.
17957         * m4/memcmp.m4: Likewise.
17958         * m4/memcpy.m4: Likewise.
17959         * m4/memmem.m4: Likewise.
17960         * m4/memmove.m4: Likewise.
17961         * m4/mempcpy.m4: Likewise.
17962         * m4/memrchr.m4: Likewise.
17963         * m4/memset.m4: Likewise.
17964         * m4/minmax.m4: Likewise.
17965         * m4/mkdir-slash.m4: Likewise.
17966         * m4/mkdtemp.m4: Likewise.
17967         * m4/mktime.m4: Likewise.
17968         * m4/mmap-anon.m4: Likewise.
17969         * m4/mountlist.m4: Likewise.
17970         * m4/nanosleep.m4: Likewise.
17971         * m4/nls.m4: Likewise.
17972         * m4/nocrash.m4: Likewise.
17973         * m4/open.m4: Likewise.
17974         * m4/openat.m4: Likewise.
17975         * m4/openmp.m4: Likewise.
17976         * m4/pathmax.m4: Likewise.
17977         * m4/perl.m4: Likewise.
17978         * m4/physmem.m4: Likewise.
17979         * m4/pipe.m4: Likewise.
17980         * m4/po.m4: Likewise.
17981         * m4/poll.m4: Likewise.
17982         * m4/posixtm.m4: Likewise.
17983         * m4/posixver.m4: Likewise.
17984         * m4/printf-frexp.m4: Likewise.
17985         * m4/printf-frexpl.m4: Likewise.
17986         * m4/printf-posix.m4: Likewise.
17987         * m4/printf-posix-rpl.m4: Likewise.
17988         * m4/printf.m4: Likewise.
17989         * m4/progtest.m4: Likewise.
17990         * m4/putenv.m4: Likewise.
17991         * m4/readline.m4: Likewise.
17992         * m4/readlink.m4: Likewise.
17993         * m4/readutmp.m4: Likewise.
17994         * m4/realloc.m4: Likewise.
17995         * m4/regex.m4: Likewise.
17996         * m4/relocatable.m4: Likewise.
17997         * m4/relocatable-lib.m4: Likewise.
17998         * m4/rename-dest-slash.m4: Likewise.
17999         * m4/rename.m4: Likewise.
18000         * m4/rmdir-errno.m4: Likewise.
18001         * m4/rmdir.m4: Likewise.
18002         * m4/roundf.m4: Likewise.
18003         * m4/roundl.m4: Likewise.
18004         * m4/rpmatch.m4: Likewise.
18005         * m4/save-cwd.m4: Likewise.
18006         * m4/selinux-selinux-h.m4: Likewise.
18007         * m4/setenv.m4: Likewise.
18008         * m4/settime.m4: Likewise.
18009         * m4/sig2str.m4: Likewise.
18010         * m4/sig_atomic_t.m4: Likewise.
18011         * m4/signalblocking.m4: Likewise.
18012         * m4/signbit.m4: Likewise.
18013         * m4/sigpipe.m4: Likewise.
18014         * m4/sockets.m4: Likewise.
18015         * m4/sockpfaf.m4: Likewise.
18016         * m4/st_dm_mode.m4: Likewise.
18017         * m4/stat-time.m4: Likewise.
18018         * m4/stdbool.m4: Likewise.
18019         * m4/stdint.m4: Likewise.
18020         * m4/stdint_h.m4: Likewise.
18021         * m4/stpcpy.m4: Likewise.
18022         * m4/stpncpy.m4: Likewise.
18023         * m4/strcase.m4: Likewise.
18024         * m4/strchrnul.m4: Likewise.
18025         * m4/strcspn.m4: Likewise.
18026         * m4/strdup.m4: Likewise.
18027         * m4/strftime.m4: Likewise.
18028         * m4/strndup.m4: Likewise.
18029         * m4/strnlen.m4: Likewise.
18030         * m4/strpbrk.m4: Likewise.
18031         * m4/strptime.m4: Likewise.
18032         * m4/strsep.m4: Likewise.
18033         * m4/strtod.m4: Likewise.
18034         * m4/strtoimax.m4: Likewise.
18035         * m4/strtok_r.m4: Likewise.
18036         * m4/strtol.m4: Likewise.
18037         * m4/strtoll.m4: Likewise.
18038         * m4/strtoul.m4: Likewise.
18039         * m4/strtoull.m4: Likewise.
18040         * m4/strtoumax.m4: Likewise.
18041         * m4/strverscmp.m4: Likewise.
18042         * m4/threadlib.m4: Likewise.
18043         * m4/timegm.m4: Likewise.
18044         * m4/tm_gmtoff.m4: Likewise.
18045         * m4/tmpdir.m4: Likewise.
18046         * m4/tmpfile.m4: Likewise.
18047         * m4/tzset.m4: Likewise.
18048         * m4/uintmax_t.m4: Likewise.
18049         * m4/unlinkdir.m4: Likewise.
18050         * m4/unlocked-io.m4: Likewise.
18051         * m4/uptime.m4: Likewise.
18052         * m4/userspec.m4: Likewise.
18053         * m4/utimbuf.m4: Likewise.
18054         * m4/utime.m4: Likewise.
18055         * m4/utimes-null.m4: Likewise.
18056         * m4/utimes.m4: Likewise.
18057         * m4/vararrays.m4: Likewise.
18058         * m4/vasnprintf.m4: Likewise.
18059         * m4/vfprintf-posix.m4: Likewise.
18060         * m4/vprintf-posix.m4: Likewise.
18061         * m4/wait-process.m4: Likewise.
18062         * m4/wchar_t.m4: Likewise.
18063         * m4/wint_t.m4: Likewise.
18064         * m4/write-any-file.m4: Likewise.
18065         * m4/yield.m4: Likewise.
18066
18067 2009-01-13  Bruno Haible  <bruno@clisp.org>
18068
18069         Avoid test-copy-file.sh failures when ACL support insufficient.
18070         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
18071         TESTS_ENVIRONMENT.
18072         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
18073         Reported by Jim Meyering.
18074
18075 2009-01-13  Bruno Haible  <bruno@clisp.org>
18076
18077         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
18078         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
18079         * modules/unistdio/u8-printf-parse (Files): Likewise.
18080         * modules/unistdio/u32-printf-parse (Files): Likewise.
18081         * modules/unistdio/ulc-printf-parse (Files): Likewise.
18082
18083 2009-01-13  Simon Josefsson  <simon@josefsson.org>
18084
18085         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
18086         and m4/inttypes_h.m4 too.
18087
18088 2009-01-12  Eric Blake  <ebb9@byu.net>
18089
18090         tests: IRIX 6.2 cc can't compile -0.0 into .data
18091         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18092         rather than at compile-time.
18093         * tests/test-floorl.c (minus_zero): Likewise.
18094         * tests/test-frexpl.c (minus_zero): Likewise.
18095         * tests/test-isnan.c (minus_zerol): Likewise.
18096         * tests/test-isnanl.h (minus_zero): Likewise.
18097         * tests/test-ldexpl.c (minus_zero): Likewise.
18098         * tests/test-roundl.c (minus_zero): Likewise.
18099         * tests/test-signbit.c (minus_zerol): Likewise.
18100         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18101         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18102         * tests/test-truncl.c (minus_zero): Likewise.
18103         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18104         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18105         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18106
18107 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18108
18109         regex: fix glibc bug 9697
18110         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18111         handling.
18112
18113 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18114
18115         regex: fix glibc bug 697
18116         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18117         being NULL also if there are no backreferences.
18118
18119 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18120
18121         regex: merge glibc changes
18122         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18123         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18124         re_string_skip_chars, re_string_reconstruct): Likewise.
18125         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18126
18127 2009-01-07  Jim Meyering  <meyering@redhat.com>
18128
18129         poll: filter through cppi
18130         * lib/poll.c: Indent cpp directives to reflect nesting.
18131
18132 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18133
18134         poll: don't return uninitialized
18135         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18136
18137 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18138
18139         avoid compile failure on AIX 6.1
18140         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18141         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18142
18143 2009-01-04  Jim Meyering  <meyering@redhat.com>
18144
18145         remove duplicate inclusion of <stdio.h>
18146         * tests/test-fprintf-posix.c: Likewise.
18147         * tests/test-printf-posix.c: Likewise.
18148         * tests/test-snprintf-posix.c: Likewise.
18149         * tests/test-sprintf-posix.c: Likewise.
18150         * tests/test-vasprintf-posix.c: Likewise.
18151         * tests/test-vfprintf-posix.c: Likewise.
18152         * tests/test-vprintf-posix.c: Likewise.
18153         * tests/test-vsnprintf-posix.c: Likewise.
18154         * tests/test-vsprintf-posix.c: Likewise.
18155
18156 2009-01-03  Jim Meyering  <meyering@redhat.com>
18157
18158         gnulib-tool: fix sed-based filtering
18159         * gnulib-tool (func_filter_filelist): Remove extra backslash
18160         in sed_fff_filter definition.
18161
18162 2009-01-02  Jim Meyering  <meyering@redhat.com>
18163
18164         strftime: avoid compilation failure on Solaris 2.6
18165         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18166         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18167         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18168         be available.  Reported by Tom G. Christensen.  Details in
18169         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18170
18171 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18172             Bruno Haible  <bruno@clisp.org>
18173
18174         Speed up gnulib-tool by doing more string processing through shell
18175         built-ins.
18176         * gnulib-tool (fast_func_append): New variable.
18177         (func_remove_prefix, func_remove_suffix): New functions.
18178         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18179         (func_filter_filelist): New function.
18180         (func_get_dependencies): Use func_remove_suffix instead of sed.
18181         (func_get_automake_snippet): Use func_filter_filelist instead of a
18182         subshell and sed invocation.
18183
18184 2009-01-01  Bruno Haible  <bruno@clisp.org>
18185
18186         Fix a security bug.
18187         * gnulib-tool (func_import, import, update): Don't allow the characters
18188         '"', '$', '`', '\' in macro arguments that become part of commands that
18189         are evaluated.
18190
18191 2009-01-01  Bruno Haible  <bruno@clisp.org>
18192
18193         * gnulib-tool (func_reset_sigpipe): Add more comments.
18194
18195 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18196
18197         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18198         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18199         already know the answer.
18200
18201 2009-01-01  Jim Meyering  <meyering@redhat.com>
18202
18203         * lib/version-etc.c (version_etc_va): Update copyright year.
18204
18205 2008-12-30  Bruno Haible  <bruno@clisp.org>
18206
18207         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18208         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18209         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18210
18211 2008-12-29  Eric Blake  <ebb9@byu.net>
18212
18213         multiarch: avoid autoconf AC_REQUIRE bug
18214         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18215         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18216         2.63 and older.
18217         Reported by Bruno Haible, and analyzed in
18218         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18219
18220 2008-12-29  Bruno Haible  <bruno@clisp.org>
18221
18222         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18223         files in subdirectories correctly.
18224         Reported by Ralf Wildenhues.
18225
18226 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18227
18228         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18229         rather than 'join FILE -', for Solaris join.
18230
18231 2008-12-29  Bruno Haible  <bruno@clisp.org>
18232
18233         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18234         quoting.
18235         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18236         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18237         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18238         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18239         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18240         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18241         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18242         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18243         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18244         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18245         * m4/nls.m4 (AM_NLS): Likewise.
18246         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18247         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18248         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18249         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18250         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18251         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18252         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18253         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18254         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18255         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18256         * m4/xsize.m4 (gl_XSIZE): Likewise.
18257         Suggested by Jim Meyering.
18258
18259 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18260
18261         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18262         * lib/parse-duration.c: use a switch instead of cascading if's.
18263
18264 2008-12-29  Eric Blake  <ebb9@byu.net>
18265
18266         wchar.h: supply WEOF on Irix 5.3
18267         * lib/wchar.in.h (wint_t): Also supply WEOF.
18268         * lib/wctype.in.h (wint_t): Likewise.
18269         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18270         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18271         Reported by Tom G. Christensen.
18272
18273 2008-12-26  Bruno Haible  <bruno@clisp.org>
18274
18275         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18276         i486, i586, i686.
18277
18278 2008-12-26  Bruno Haible  <bruno@clisp.org>
18279
18280         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18281
18282 2008-12-26  Bruno Haible  <bruno@clisp.org>
18283
18284         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18285         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18286         not __STDC_CONSTANT_MACROS.
18287         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18288
18289 2008-12-25  Bruno Haible  <bruno@clisp.org>
18290
18291         Add support for universal builds to vasnprintf.
18292         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18293         universal builds, guess no.
18294         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18295         * modules/vasprintf-posix (Depends-on): Likewise.
18296         * modules/fprintf-posix (Depends-on): Likewise.
18297         * modules/vfprintf-posix (Depends-on): Likewise.
18298         * modules/snprintf-posix (Depends-on): Likewise.
18299         * modules/vsnprintf-posix (Depends-on): Likewise.
18300         * modules/sprintf-posix (Depends-on): Likewise.
18301         * modules/vsprintf-posix (Depends-on): Likewise.
18302         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18303         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18304         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18305         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18306         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18307         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18308         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18309
18310         Add support for universal builds to <inttypes.h>.
18311         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18312         _SCNu64_PREFIX): In Apple
18313         universal builds, define directly, using _LP64.
18314         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18315         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18316         * modules/inttypes (Depends-on): Add multiarch.
18317         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18318
18319         Add support for universal builds to <stdint.h>.
18320         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18321         universal builds, define directly, using _LP64.
18322         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18323         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18324         and size_t.
18325         * modules/stdint (Depends-on): Add multiarch.
18326         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18327
18328         New module 'multiarch'.
18329         * modules/multiarch: New file.
18330         * m4/multiarch.m4: New file.
18331
18332 2008-12-25  Bruno Haible  <bruno@clisp.org>
18333
18334         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18335
18336 2008-12-25  Bruno Haible  <bruno@clisp.org>
18337
18338         * modules/btowc (License): Relicense under LGPLv2+.
18339         * modules/mbsinit (License): Likewise.
18340         * modules/mbrtowc (License): Likewise.
18341         * modules/wcrtomb (License): Likewise.
18342         * modules/streq (License): Likewise.
18343         Reported by David Lutterkort <lutter@redhat.com>.
18344
18345 2008-12-23  Bruno Haible  <bruno@clisp.org>
18346
18347         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18348
18349 2008-12-23  Bruno Haible  <bruno@clisp.org>
18350
18351         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18352         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18353         GETADDRINFO_LIB, not in LIBS.
18354         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18355         * modules/canon-host (Link): Likewise.
18356         * NEWS: Mention the change.
18357         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18358         GETADDRINFO_LIB.
18359
18360 2008-12-22  Bruno Haible  <bruno@clisp.org>
18361
18362         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18363         * doc/posix-functions/iswalpha_l.texi: Likewise.
18364         * doc/posix-functions/iswblank_l.texi: Likewise.
18365         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18366         * doc/posix-functions/iswctype_l.texi: Likewise.
18367         * doc/posix-functions/iswdigit_l.texi: Likewise.
18368         * doc/posix-functions/iswgraph_l.texi: Likewise.
18369         * doc/posix-functions/iswlower_l.texi: Likewise.
18370         * doc/posix-functions/iswprint_l.texi: Likewise.
18371         * doc/posix-functions/iswpunct_l.texi: Likewise.
18372         * doc/posix-functions/iswspace_l.texi: Likewise.
18373         * doc/posix-functions/iswupper_l.texi: Likewise.
18374         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18375         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18376         * doc/posix-functions/open_wmemstream.texi: Likewise.
18377         * doc/posix-functions/swscanf.texi: Likewise.
18378         * doc/posix-functions/towctrans_l.texi: Likewise.
18379         * doc/posix-functions/towlower.texi: Likewise.
18380         * doc/posix-functions/towlower_l.texi: Likewise.
18381         * doc/posix-functions/towupper.texi: Likewise.
18382         * doc/posix-functions/towupper_l.texi: Likewise.
18383         * doc/posix-functions/vfwprintf.texi: Likewise.
18384         * doc/posix-functions/vfwscanf.texi: Likewise.
18385         * doc/posix-functions/vswscanf.texi: Likewise.
18386         * doc/posix-functions/vwprintf.texi: Likewise.
18387         * doc/posix-functions/vwscanf.texi: Likewise.
18388         * doc/posix-functions/wcpcpy.texi: Likewise.
18389         * doc/posix-functions/wcpncpy.texi: Likewise.
18390         * doc/posix-functions/wcscasecmp.texi: Likewise.
18391         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18392         * doc/posix-functions/wcscoll_l.texi: Likewise.
18393         * doc/posix-functions/wcsdup.texi: Likewise.
18394         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18395         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18396         * doc/posix-functions/wcsnlen.texi: Likewise.
18397         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18398         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18399         * doc/posix-functions/wctrans_l.texi: Likewise.
18400         * doc/posix-functions/wctype_l.texi: Likewise.
18401         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18402         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18403         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18404         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18405         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18406         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18407         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18408         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18409         * doc/glibc-functions/wcschrnul.texi: Likewise.
18410         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18411         * doc/glibc-functions/wcstod_l.texi: Likewise.
18412         * doc/glibc-functions/wcstof_l.texi: Likewise.
18413         * doc/glibc-functions/wcstol_l.texi: Likewise.
18414         * doc/glibc-functions/wcstold_l.texi: Likewise.
18415         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18416         * doc/glibc-functions/wcstoq.texi: Likewise.
18417         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18418         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18419         * doc/glibc-functions/wcstouq.texi: Likewise.
18420         * doc/glibc-functions/wmempcpy.texi: Likewise.
18421
18422 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18423             Eric Blake  <ebb9@byu.net>
18424             Paolo Bonzini  <bonzini@gnu.org>
18425             Bruno Haible  <bruno@clisp.org>
18426
18427         Make c-stack work on Haiku.
18428         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18429         (c_stack_action): Use SA_ONSTACK flag.
18430
18431 2008-12-22  Bruno Haible  <bruno@clisp.org>
18432
18433         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18434
18435 2008-12-22  Bruno Haible  <bruno@clisp.org>
18436
18437         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18438         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18439         being overridden.
18440         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18441         New macros.
18442         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18443         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18444         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18445         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18446
18447 2008-12-22  Bruno Haible  <bruno@clisp.org>
18448
18449         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18450         from test code.
18451
18452 2008-12-22  Eric Blake  <ebb9@byu.net>
18453
18454         Avoid gcc warnings on cygwin.
18455         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18456         Avoid unused variable.
18457         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18458         Likewise.
18459
18460 2008-12-22  Bruno Haible  <bruno@clisp.org>
18461
18462         Remove HAVE_MBRTOWC conditionals.
18463         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18464         (mbscasecmp): Assume mbrtowc function.
18465         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18466         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18467         * lib/mbschr.c: Include mbuiter.h unconditionally.
18468         (mbschr): Assume mbrtowc function.
18469         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18470         (mbscspn): Assume mbrtowc function.
18471         * lib/mbslen.c: Include mbuiter.h unconditionally.
18472         (mbslen): Assume mbrtowc function.
18473         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18474         (mbsncasecmp): Assume mbrtowc function.
18475         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18476         (mbsnlen): Assume mbrtowc function.
18477         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18478         (mbspbrk): Assume mbrtowc function.
18479         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18480         (mbspcasecmp): Assume mbrtowc function.
18481         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18482         (mbsrchr): Assume mbrtowc function.
18483         * lib/mbssep.c: Include mbuiter.h unconditionally.
18484         (mbssep): Assume mbrtowc function.
18485         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18486         (mbsspn): Assume mbrtowc function.
18487         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18488         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18489         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18490         (mbstok_r): Assume mbrtowc function.
18491         * lib/propername.c: Include mbuiter.h unconditionally.
18492         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18493         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18494         (trim2): Assume mbrtowc function.
18495         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18496         (mbsnwidth): Assume mbrtowc function.
18497         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18498         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18499         fallback definitions.
18500         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18501
18502 2008-12-22  Bruno Haible  <bruno@clisp.org>
18503
18504         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18505
18506 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18507
18508         * modules/regex: Request emulations for the mb*/wc* functions we need.
18509         * m4/regex.m4: Don't look for those functions here.
18510         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18511
18512 2008-12-22  Bruno Haible  <bruno@clisp.org>
18513
18514         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18515
18516 2008-12-21  Bruno Haible  <bruno@clisp.org>
18517
18518         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18519         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18520         (Include): Remove conditionalization.
18521         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18522         (Include): Remove conditionalization.
18523         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18524         (Include): Remove conditionalization.
18525         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18526         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18527         * NEWS: Mention the change.
18528         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18529         via Sergey Poznyakoff <gray@gnu.org.ua>.
18530
18531 2008-12-21  Bruno Haible  <bruno@clisp.org>
18532
18533         * MODULES.html.sh (Extended multibyte and wide character utilities
18534         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18535         wcrtomb, wcsrtombs.
18536         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18537         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18538         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18539         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18540
18541 2008-12-21  Bruno Haible  <bruno@clisp.org>
18542
18543         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18544
18545 2008-12-21  Bruno Haible  <bruno@clisp.org>
18546
18547         * modules/wcsnrtombs-tests: New file.
18548         * tests/test-wcsnrtombs1.sh: New file.
18549         * tests/test-wcsnrtombs2.sh: New file.
18550         * tests/test-wcsnrtombs3.sh: New file.
18551         * tests/test-wcsnrtombs4.sh: New file.
18552         * tests/test-wcsnrtombs.c: New file.
18553
18554         New module 'wcsnrtombs'.
18555         * lib/wchar.in.h (wcsnrtombs): New declaration.
18556         * lib/wcsnrtombs.c: New file.
18557         * lib/wcsrtombs-state.c: New file.
18558         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18559         (internal_state): Remove variable.
18560         * m4/wcsnrtombs.m4: New file.
18561         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18562         compilation units.
18563         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18564         HAVE_WCSNRTOMBS.
18565         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18566         HAVE_WCSNRTOMBS.
18567         * modules/wcsnrtombs: New file.
18568         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18569         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18570
18571 2008-12-21  Bruno Haible  <bruno@clisp.org>
18572
18573         * modules/wcsrtombs-tests: New file.
18574         * tests/test-wcsrtombs1.sh: New file.
18575         * tests/test-wcsrtombs2.sh: New file.
18576         * tests/test-wcsrtombs3.sh: New file.
18577         * tests/test-wcsrtombs4.sh: New file.
18578         * tests/test-wcsrtombs.c: New file.
18579
18580         New module 'wcsrtombs'.
18581         * lib/wchar.in.h (wcsrtombs): New declaration.
18582         * lib/wcsrtombs.c: New file.
18583         * m4/wcsrtombs.m4: New file.
18584         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18585         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18586         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18587         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18588         * modules/wcsrtombs: New file.
18589         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18590         bugs.
18591
18592 2008-12-21  Bruno Haible  <bruno@clisp.org>
18593
18594         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18595         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18596         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18597         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18598         if not correct.
18599         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18600         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18601         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18602         m4/locale-zh.m4, m4/codeset.m4.
18603         * doc/posix-functions/wcrtomb.texi: Document the bug.
18604
18605 2008-12-21  Bruno Haible  <bruno@clisp.org>
18606
18607         Work around a btowc() bug on IRIX 6.5.
18608         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18609         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18610         REPLACE_WTOBC if not.
18611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18612         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18613         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18614
18615 2008-12-21  Bruno Haible  <bruno@clisp.org>
18616
18617         * modules/wcrtomb-tests: New file.
18618         * tests/test-wcrtomb.sh: New file.
18619         * tests/test-wcrtomb.c: New file.
18620
18621         New module 'wcrtomb'.
18622         * lib/wchar.in.h (wcrtomb): New declaration.
18623         * lib/wcrtomb.c: New file.
18624         * m4/wcrtomb.m4: New file.
18625         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18626         HAVE_WCRTOMB.
18627         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18628         HAVE_WCRTOMB.
18629         * modules/wcrtomb: New file.
18630         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18631
18632 2008-12-21  Bruno Haible  <bruno@clisp.org>
18633
18634         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18635         * modules/mbsrtowcs (Files): Likewise.
18636         * modules/wctob (Files): Likewise.
18637         * modules/c-strcase-tests (Files): Likewise.
18638         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18639         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18640         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18641         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18642         * modules/vasnprintf-posix-tests (Files): Likewise.
18643
18644 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18645
18646         gitlog-to-changelog: pass all command-line arguments to git-log
18647         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18648         it is sometimes convenient to filter the commits in various ways.
18649         gitlog-to-changelog only allows --since to specify a start date,
18650         but git-log itself supports many other filtering mechanisms.
18651         At the moment, I want to filter by branch name.  Rather than
18652         adding a --branch option to gitlog-to-changelog, it seems more
18653         flexible to simply pass all options directly to git-log and let
18654         git do the work.  Notice that this effectively makes --since a
18655         redundant option for gitlog-to-changelog, but removing it would
18656         require current usage to change since calls would then require
18657         an additional '--'.
18658
18659 2008-12-21  Bruno Haible  <bruno@clisp.org>
18660
18661         * modules/mbsnrtowcs-tests: New file.
18662         * tests/test-mbsnrtowcs1.sh: New file.
18663         * tests/test-mbsnrtowcs2.sh: New file.
18664         * tests/test-mbsnrtowcs3.sh: New file.
18665         * tests/test-mbsnrtowcs4.sh: New file.
18666         * tests/test-mbsnrtowcs.c: New file.
18667
18668         New module 'mbsnrtowcs'.
18669         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18670         * lib/mbsnrtowcs.c: New file.
18671         * lib/mbsrtowcs-state.c: New file.
18672         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18673         (internal_state): Remove variable.
18674         * m4/mbsnrtowcs.m4: New file.
18675         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18676         compilation units.
18677         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18678         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18679         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18680         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18681         * modules/mbsnrtowcs: New file.
18682         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18683         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18684         portability problem.
18685
18686 2008-12-21  Bruno Haible  <bruno@clisp.org>
18687
18688         Work around mbsrtowcs bug.
18689         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18690         (gl_FUNC_MBSRTOWCS): Invoke it.
18691         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18692         m4/locale-zh.m4.
18693         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18694
18695 2008-12-21  Bruno Haible  <bruno@clisp.org>
18696
18697         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18698
18699 2008-12-21  Bruno Haible  <bruno@clisp.org>
18700
18701         Update doc for AIX.
18702         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18703         16-bit wchar_t type.
18704         * doc/posix-functions/btowc.texi: Likewise.
18705         * doc/posix-functions/fgetwc.texi: Likewise.
18706         * doc/posix-functions/fgetws.texi: Likewise.
18707         * doc/posix-functions/fputwc.texi: Likewise.
18708         * doc/posix-functions/fputws.texi: Likewise.
18709         * doc/posix-functions/fwide.texi: Likewise.
18710         * doc/posix-functions/fwprintf.texi: Likewise.
18711         * doc/posix-functions/fwscanf.texi: Likewise.
18712         * doc/posix-functions/getwchar.texi: Likewise.
18713         * doc/posix-functions/getwc.texi: Likewise.
18714         * doc/posix-functions/iswalnum.texi: Likewise.
18715         * doc/posix-functions/iswalpha.texi: Likewise.
18716         * doc/posix-functions/iswblank.texi: Likewise.
18717         * doc/posix-functions/iswcntrl.texi: Likewise.
18718         * doc/posix-functions/iswctype.texi: Likewise.
18719         * doc/posix-functions/iswdigit.texi: Likewise.
18720         * doc/posix-functions/iswgraph.texi: Likewise.
18721         * doc/posix-functions/iswlower.texi: Likewise.
18722         * doc/posix-functions/iswprint.texi: Likewise.
18723         * doc/posix-functions/iswpunct.texi: Likewise.
18724         * doc/posix-functions/iswspace.texi: Likewise.
18725         * doc/posix-functions/iswupper.texi: Likewise.
18726         * doc/posix-functions/iswxdigit.texi: Likewise.
18727         * doc/posix-functions/mbrtowc.texi: Likewise.
18728         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18729         * doc/posix-functions/mbstowcs.texi: Likewise.
18730         * doc/posix-functions/mbtowc.texi: Likewise.
18731         * doc/posix-functions/putwchar.texi: Likewise.
18732         * doc/posix-functions/putwc.texi: Likewise.
18733         * doc/posix-functions/swprintf.texi: Likewise.
18734         * doc/posix-functions/tolower.texi: Likewise.
18735         * doc/posix-functions/toupper.texi: Likewise.
18736         * doc/posix-functions/towctrans.texi: Likewise.
18737         * doc/posix-functions/ungetwc.texi: Likewise.
18738         * doc/posix-functions/vswprintf.texi: Likewise.
18739         * doc/posix-functions/wcrtomb.texi: Likewise.
18740         * doc/posix-functions/wcscat.texi: Likewise.
18741         * doc/posix-functions/wcschr.texi: Likewise.
18742         * doc/posix-functions/wcscmp.texi: Likewise.
18743         * doc/posix-functions/wcscoll.texi: Likewise.
18744         * doc/posix-functions/wcscpy.texi: Likewise.
18745         * doc/posix-functions/wcscspn.texi: Likewise.
18746         * doc/posix-functions/wcsftime.texi: Likewise.
18747         * doc/posix-functions/wcslen.texi: Likewise.
18748         * doc/posix-functions/wcsncat.texi: Likewise.
18749         * doc/posix-functions/wcsncmp.texi: Likewise.
18750         * doc/posix-functions/wcsncpy.texi: Likewise.
18751         * doc/posix-functions/wcspbrk.texi: Likewise.
18752         * doc/posix-functions/wcsrchr.texi: Likewise.
18753         * doc/posix-functions/wcsrtombs.texi: Likewise.
18754         * doc/posix-functions/wcsspn.texi: Likewise.
18755         * doc/posix-functions/wcsstr.texi: Likewise.
18756         * doc/posix-functions/wcstod.texi: Likewise.
18757         * doc/posix-functions/wcstof.texi: Likewise.
18758         * doc/posix-functions/wcstoimax.texi: Likewise.
18759         * doc/posix-functions/wcstok.texi: Likewise.
18760         * doc/posix-functions/wcstold.texi: Likewise.
18761         * doc/posix-functions/wcstoll.texi: Likewise.
18762         * doc/posix-functions/wcstol.texi: Likewise.
18763         * doc/posix-functions/wcstombs.texi: Likewise.
18764         * doc/posix-functions/wcstoull.texi: Likewise.
18765         * doc/posix-functions/wcstoul.texi: Likewise.
18766         * doc/posix-functions/wcstoumax.texi: Likewise.
18767         * doc/posix-functions/wcswidth.texi: Likewise.
18768         * doc/posix-functions/wcsxfrm.texi: Likewise.
18769         * doc/posix-functions/wctob.texi: Likewise.
18770         * doc/posix-functions/wctomb.texi: Likewise.
18771         * doc/posix-functions/wctrans.texi: Likewise.
18772         * doc/posix-functions/wctype.texi: Likewise.
18773         * doc/posix-functions/wcwidth.texi: Likewise.
18774         * doc/posix-functions/wmemchr.texi: Likewise.
18775         * doc/posix-functions/wmemcmp.texi: Likewise.
18776         * doc/posix-functions/wmemcpy.texi: Likewise.
18777         * doc/posix-functions/wmemmove.texi: Likewise.
18778         * doc/posix-functions/wmemset.texi: Likewise.
18779         * doc/posix-functions/wprintf.texi: Likewise.
18780         * doc/posix-functions/wscanf.texi: Likewise.
18781
18782 2008-12-21  Bruno Haible  <bruno@clisp.org>
18783
18784         Update doc for HP-UX 11.11.
18785         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18786         in HP-UX version 11.00, not in all versions of HP-UX 11.
18787         * doc/posix-functions/fwide.texi: Likewise.
18788         * doc/posix-functions/fwprintf.texi: Likewise.
18789         * doc/posix-functions/fwscanf.texi: Likewise.
18790         * doc/posix-functions/inet_ntop.texi: Likewise.
18791         * doc/posix-functions/inet_pton.texi: Likewise.
18792         * doc/posix-functions/mbrlen.texi: Likewise.
18793         * doc/posix-functions/mbrtowc.texi: Likewise.
18794         * doc/posix-functions/mbsinit.texi: Likewise.
18795         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18796         * doc/posix-functions/swprintf.texi: Likewise.
18797         * doc/posix-functions/swscanf.texi: Likewise.
18798         * doc/posix-functions/towctrans.texi: Likewise.
18799         * doc/posix-functions/vfwprintf.texi: Likewise.
18800         * doc/posix-functions/vswprintf.texi: Likewise.
18801         * doc/posix-functions/vwprintf.texi: Likewise.
18802         * doc/posix-functions/wcrtomb.texi: Likewise.
18803         * doc/posix-functions/wcsrtombs.texi: Likewise.
18804         * doc/posix-functions/wcsstr.texi: Likewise.
18805         * doc/posix-functions/wctob.texi: Likewise.
18806         * doc/posix-functions/wctrans.texi: Likewise.
18807         * doc/posix-functions/wmemchr.texi: Likewise.
18808         * doc/posix-functions/wmemcmp.texi: Likewise.
18809         * doc/posix-functions/wmemcpy.texi: Likewise.
18810         * doc/posix-functions/wmemmove.texi: Likewise.
18811         * doc/posix-functions/wmemset.texi: Likewise.
18812         * doc/posix-functions/wprintf.texi: Likewise.
18813         * doc/posix-functions/wscanf.texi: Likewise.
18814
18815 2008-12-21  Bruno Haible  <bruno@clisp.org>
18816
18817         Work around a portability problem.
18818         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18819         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18820
18821 2008-12-20  Bruno Haible  <bruno@clisp.org>
18822
18823         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18824         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18825         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18827         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18828
18829         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18830         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18831         set.
18832         (GNULIB_defined_mbstate_t): New macro.
18833         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18834         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18835         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18836         reuses the system's mbrtowc function but works around the bugs.
18837         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18838         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18839         macros.
18840         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18841         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18842         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18843         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18844         REPLACE_MBSINIT if mbsinit needs to be overridden.
18845         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18846         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18847         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18848         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18849         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18850         m4/locale-zh.m4.
18851         (Depends): Add mbsinit.
18852         * modules/mbsinit (Depends): Add mbrtowc.
18853         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18854
18855 2008-12-20  Bruno Haible  <bruno@clisp.org>
18856
18857         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18858         so that there are no conversion errors on AIX.
18859         * tests/test-mbsrtowcs.c (main): LIkewise.
18860
18861 2008-12-20  Bruno Haible  <bruno@clisp.org>
18862
18863         Work around wctob bug on Solaris <= 9.
18864         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18865         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18866         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18867         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18868         * modules/wctob (Files): Add m4/locale-fr.m4.
18869         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18870
18871 2008-12-20  Bruno Haible  <bruno@clisp.org>
18872
18873         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18874         /dev/null.
18875         * tests/test-select-in.sh: Likewise.
18876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18877
18878 2008-12-20  Bruno Haible  <bruno@clisp.org>
18879
18880         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18881         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18882         Cygwin 1.5.x.
18883
18884 2008-12-20  Bruno Haible  <bruno@clisp.org>
18885
18886         Ensure mbstate_t is defined on HP-UX 11.11.
18887         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18888         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18889         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18890         AC_USE_SYSTEM_EXTENSIONS.
18891         * modules/fnmatch (Depends-on): Add extensions.
18892         * modules/mbrlen (Depends-on): Likewise.
18893         * modules/mbrtowc (Depends-on): Likewise.
18894         * modules/mbsinit (Depends-on): Likewise.
18895         * modules/mbsrtowcs (Depends-on): Likewise.
18896         * modules/mbswidth (Depends-on): Likewise.
18897         * modules/quotearg (Depends-on): Likewise.
18898         * modules/strftime (Depends-on): Likewise.
18899
18900 2008-12-20  Bruno Haible  <bruno@clisp.org>
18901
18902         Ensure wctob is declared on IRIX 6.5.
18903         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18904         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18905         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18906         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18907         of HAVE_WCTOB.
18908         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18909         HAVE_WCTOB.
18910         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18911
18912 2008-12-19  Bruno Haible  <bruno@clisp.org>
18913
18914         * modules/mbsrtowcs-tests: New file.
18915         * tests/test-mbsrtowcs1.sh: New file.
18916         * tests/test-mbsrtowcs2.sh: New file.
18917         * tests/test-mbsrtowcs3.sh: New file.
18918         * tests/test-mbsrtowcs4.sh: New file.
18919         * tests/test-mbsrtowcs.c: New file.
18920
18921         New module 'mbsrtowcs'.
18922         * lib/wchar.in.h (mbsrtowcs): New declaration.
18923         * lib/mbsrtowcs.c: New file.
18924         * m4/mbsrtowcs.m4: New file.
18925         * modules/mbsrtowcs: New file.
18926         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18927         HAVE_MBSRTOWCS.
18928         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18929         HAVE_MBSRTOWCS.
18930         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18931
18932 2008-12-19  Bruno Haible  <bruno@clisp.org>
18933
18934         New module 'mbrlen'.
18935         * lib/wchar.in.h (mbrlen): New declaration.
18936         * lib/mbrlen.c: New file.
18937         * m4/mbrlen.m4: New file.
18938         * modules/mbrlen: New file.
18939         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18940         HAVE_MBRLEN.
18941         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18942         HAVE_MBRLEN.
18943         * doc/posix-functions/mbrlen.texi: Document the new module.
18944
18945 2008-12-19  Bruno Haible  <bruno@clisp.org>
18946
18947         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18948         * modules/mbrtowc (Depends-on): Add verify.
18949         Suggested by Paul Eggert.
18950
18951 2008-12-18  Bruno Haible  <bruno@clisp.org>
18952
18953         * modules/mbsinit-tests: New file.
18954         * tests/test-mbsinit.sh: New file.
18955         * tests/test-mbsinit.c: New file.
18956
18957 2008-12-18  Bruno Haible  <bruno@clisp.org>
18958
18959         * modules/mbrtowc-tests: New file.
18960         * tests/test-mbrtowc1.sh: New file.
18961         * tests/test-mbrtowc2.sh: New file.
18962         * tests/test-mbrtowc3.sh: New file.
18963         * tests/test-mbrtowc4.sh: New file.
18964         * tests/test-mbrtowc.c: New file.
18965
18966         New module 'mbrtowc'.
18967         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18968         mbsinit and mbrtowc.
18969         (mbrtowc): New declaration.
18970         * lib/mbrtowc.c: New file.
18971         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18972         * modules/mbrtowc: New file.
18973         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18974         HAVE_MBRTOWC.
18975         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18976         HAVE_MBRTOWC.
18977         * doc/posix-functions/mbrtowc.texi: Document the new module.
18978
18979 2008-12-18  Bruno Haible  <bruno@clisp.org>
18980
18981         New module 'wctob'.
18982         * lib/wchar.in.h (wctob): New declaration.
18983         * lib/wctob.c: New file.
18984         * m4/wctob.m4: New file.
18985         * modules/wctob: New file.
18986         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18987         HAVE_WCTOB.
18988         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18989         * doc/posix-functions/wctob.texi: Document the new module.
18990
18991 2008-12-18  Bruno Haible  <bruno@clisp.org>
18992
18993         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18994         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18995
18996 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18997
18998         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18999         G. Christensen" <tgc@jupiterrise.com>.
19000
19001         * lib/flock.c: Need to include errno.h.  Reported by "Tom
19002         G. Christensen" <tgc@jupiterrise.com>.
19003
19004         * lib/flock.c: Need to include string.h.  Reported by "Tom
19005         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
19006         <ebb9@byu.net>.
19007
19008 2008-12-18  Bruno Haible  <bruno@clisp.org>
19009
19010         * m4/locale-ja.m4: New file, from GNU gettext.
19011
19012 2008-12-17  Bruno Haible  <bruno@clisp.org>
19013
19014         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
19015         Suggested by Eric Blake.
19016
19017 2008-12-17  Bruno Haible  <bruno@clisp.org>
19018
19019         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
19020
19021 2008-12-17  Bruno Haible  <bruno@clisp.org>
19022
19023         * lib/mbsinit.c: Include verify.h. Verify an assumption.
19024         * modules/mbsinit (Depends-on): Add verify.
19025         Suggested by Paul Eggert.
19026
19027 2008-12-17  Bruno Haible  <bruno@clisp.org>
19028
19029         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
19030         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
19031         gl_FUNC_MBRTOWC.
19032         * m4/mbiter.m4 (gl_MBITER): LIkewise.
19033         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
19034         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
19035         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
19036         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
19037         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
19038         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
19039         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
19040         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
19041         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
19042         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
19043         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
19044         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
19045         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
19046         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
19047         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19048         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
19049         * modules/trim (configure.ac): Likewise.
19050
19051 2008-12-17  Bruno Haible  <bruno@clisp.org>
19052
19053         * modules/btowc-tests: New file.
19054         * tests/test-btowc1.sh: New file.
19055         * tests/test-btowc2.sh: New file.
19056         * tests/test-btowc.c: New file.
19057
19058         New module 'btowc'.
19059         * lib/wchar.in.h (btowc): New declaration.
19060         * lib/btowc.c: New file.
19061         * m4/btowc.m4: New file.
19062         * modules/btowc: New file.
19063         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
19064         HAVE_BTOWC.
19065         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
19066         * doc/posix-functions/btowc.texi: Document the new module.
19067
19068 2008-12-17  Bruno Haible  <bruno@clisp.org>
19069
19070         New module 'mbsinit'.
19071         * lib/wchar.in.h (mbsinit): New declaration.
19072         * lib/mbsinit.c: New file.
19073         * m4/mbsinit.m4: New file.
19074         * modules/mbsinit: New file.
19075         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
19076         HAVE_MBSINIT.
19077         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
19078         HAVE_MBSINIT.
19079         * doc/posix-functions/mbsinit.texi: Document the new module.
19080
19081 2008-12-16  Bruno Haible  <bruno@clisp.org>
19082
19083         * lib/unistd.in.h: Add comment.
19084         * tests/test-environ.c: Don't include <stdlib.h>.
19085
19086 2008-12-16  Bruno Haible  <bruno@clisp.org>
19087
19088         * lib/parse-duration.h (parse_duration): Document return value
19089         convention.
19090         * lib/parse-duration.c: Include specification header first. Add
19091         comments.
19092         (_): Remove macro.
19093         (parse_year_month_day, parse_hour_minute_second): Move side effects
19094         outside of strchr call.
19095         (parse_non_iso8601): Move side effects outside of isspace call.
19096         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19097         call.
19098
19099 2008-12-16  Bruno Haible  <bruno@clisp.org>
19100
19101         * tests/test-parse-duration.sh: Produce no output when the test
19102         succeeds.
19103
19104 2008-12-16  Bruno Haible  <bruno@clisp.org>
19105
19106         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19107         expressions.
19108
19109 2008-12-15  Bruno Haible  <bruno@clisp.org>
19110
19111         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19112         * doc/glibc-functions/flistxattr.texi: Likewise.
19113         * doc/glibc-functions/fopencookie.texi: Likewise.
19114         * doc/glibc-functions/fremovexattr.texi: Likewise.
19115         * doc/glibc-functions/fsetxattr.texi: Likewise.
19116         * doc/glibc-functions/getxattr.texi: Likewise.
19117         * doc/glibc-functions/lgetxattr.texi: Likewise.
19118         * doc/glibc-functions/listxattr.texi: Likewise.
19119         * doc/glibc-functions/llistxattr.texi: Likewise.
19120         * doc/glibc-functions/lremovexattr.texi: Likewise.
19121         * doc/glibc-functions/lsetxattr.texi: Likewise.
19122         * doc/glibc-functions/removexattr.texi: Likewise.
19123         * doc/glibc-functions/setxattr.texi: Likewise.
19124         * doc/posix-functions/open_memstream.texi: Likewise.
19125
19126 2008-12-15  Eric Blake  <ebb9@byu.net>
19127
19128         Update doc for cygwin 1.7.
19129         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19130         functions.
19131         * doc/posix-functions/fchmodat.texi: Likewise.
19132         * doc/posix-functions/fchownat.texi: Likewise.
19133         * doc/posix-functions/fdopendir.texi: Likewise.
19134         * doc/posix-functions/fmemopen.texi: Likewise.
19135         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19136         * doc/posix-functions/fstatat.texi: Likewise.
19137         * doc/posix-functions/futimens.texi: Likewise.
19138         * doc/posix-functions/gai_strerror.texi: Likewise.
19139         * doc/posix-functions/getaddrinfo.texi: Likewise.
19140         * doc/posix-functions/getnameinfo.texi: Likewise.
19141         * doc/posix-functions/if_freenameindex.texi: Likewise.
19142         * doc/posix-functions/if_indextoname.texi: Likewise.
19143         * doc/posix-functions/if_nameindex.texi: Likewise.
19144         * doc/posix-functions/if_nametoindex.texi: Likewise.
19145         * doc/posix-functions/insque.texi: Likewise.
19146         * doc/posix-functions/linkat.texi: Likewise.
19147         * doc/posix-functions/llrint.texi: Likewise.
19148         * doc/posix-functions/llrintf.texi: Likewise.
19149         * doc/posix-functions/llrintl.texi: Likewise.
19150         * doc/posix-functions/lockf.texi: Likewise.
19151         * doc/posix-functions/lrintl.texi: Likewise.
19152         * doc/posix-functions/mkdirat.texi: Likewise.
19153         * doc/posix-functions/mkfifoat.texi: Likewise.
19154         * doc/posix-functions/mknodat.texi: Likewise.
19155         * doc/posix-functions/mq_close.texi: Likewise.
19156         * doc/posix-functions/mq_getattr.texi: Likewise.
19157         * doc/posix-functions/mq_notify.texi: Likewise.
19158         * doc/posix-functions/mq_open.texi: Likewise.
19159         * doc/posix-functions/mq_receive.texi: Likewise.
19160         * doc/posix-functions/mq_send.texi: Likewise.
19161         * doc/posix-functions/mq_setattr.texi: Likewise.
19162         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19163         * doc/posix-functions/mq_timedsend.texi: Likewise.
19164         * doc/posix-functions/mq_unlink.texi: Likewise.
19165         * doc/posix-functions/open_memstream.texi: Likewise.
19166         * doc/posix-functions/openat.texi: Likewise.
19167         * doc/posix-functions/posix_fadvise.texi: Likewise.
19168         * doc/posix-functions/posix_fallocate.texi: Likewise.
19169         * doc/posix-functions/posix_madvise.texi: Likewise.
19170         * doc/posix-functions/posix_memalign.texi: Likewise.
19171         * doc/posix-functions/posix_openpt.texi: Likewise.
19172         * doc/posix-functions/readlinkat.texi: Likewise.
19173         * doc/posix-functions/remque.texi: Likewise.
19174         * doc/posix-functions/renameat.texi: Likewise.
19175         * doc/posix-functions/rintl.texi: Likewise.
19176         * doc/posix-functions/sem_unlink.texi: Likewise.
19177         * doc/posix-functions/shm_open.texi: Likewise.
19178         * doc/posix-functions/shm_unlink.texi: Likewise.
19179         * doc/posix-functions/signgam.texi: Likewise.
19180         * doc/posix-functions/sigset.texi: Likewise.
19181         * doc/posix-functions/stpcpy.texi: Likewise.
19182         * doc/posix-functions/stpncpy.texi: Likewise.
19183         * doc/posix-functions/strerror.texi: Likewise.
19184         * doc/posix-functions/strtod.texi: Likewise.
19185         * doc/posix-functions/symlinkat.texi: Likewise.
19186         * doc/posix-functions/unlinkat.texi: Likewise.
19187         * doc/posix-functions/utimensat.texi: Likewise.
19188         * doc/glibc-functions/bindresvport.texi: Likewise.
19189         * doc/glibc-functions/dn_expand.texi: Likewise.
19190         * doc/glibc-functions/exp10.texi: Likewise.
19191         * doc/glibc-functions/exp10f.texi: Likewise.
19192         * doc/glibc-functions/fgetxattr.texi: Likewise.
19193         * doc/glibc-functions/flistxattr.texi: Likewise.
19194         * doc/glibc-functions/fopencookie.texi: Likewise.
19195         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19196         * doc/glibc-functions/fremovexattr.texi: Likewise.
19197         * doc/glibc-functions/fsetxattr.texi: Likewise.
19198         * doc/glibc-functions/getifaddrs.texi: Likewise.
19199         * doc/glibc-functions/getxattr.texi: Likewise.
19200         * doc/glibc-functions/lgetxattr.texi: Likewise.
19201         * doc/glibc-functions/listxattr.texi: Likewise.
19202         * doc/glibc-functions/llistxattr.texi: Likewise.
19203         * doc/glibc-functions/lremovexattr.texi: Likewise.
19204         * doc/glibc-functions/lsetxattr.texi: Likewise.
19205         * doc/glibc-functions/pow10.texi: Likewise.
19206         * doc/glibc-functions/pow10f.texi: Likewise.
19207         * doc/glibc-functions/rcmd_af.texi: Likewise.
19208         * doc/glibc-functions/removexattr.texi: Likewise.
19209         * doc/glibc-functions/res_init.texi: Likewise.
19210         * doc/glibc-functions/res_mkquery.texi: Likewise.
19211         * doc/glibc-functions/res_query.texi: Likewise.
19212         * doc/glibc-functions/res_querydomain.texi: Likewise.
19213         * doc/glibc-functions/res_send.texi: Likewise.
19214         * doc/glibc-functions/rresvport_af.texi: Likewise.
19215         * doc/glibc-functions/setxattr.texi: Likewise.
19216         * doc/glibc-functions/strcasestr.texi: Likewise.
19217
19218 2008-12-15  Bruno Haible  <bruno@clisp.org>
19219
19220         Fix compilation error on OSF/1 4.0.
19221         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19222         <sys/time.h>, simply delegate to the system header.
19223         Reported by Daniel Richard G. <oss@teragram.com>.
19224
19225 2008-12-15  Bruno Haible  <bruno@clisp.org>
19226
19227         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19228         * doc/posix-functions/fchmodat.texi: Likewise.
19229         * doc/posix-functions/fchownat.texi: Likewise.
19230         * doc/posix-functions/fdopendir.texi: Likewise.
19231         * doc/posix-functions/fstatat.texi: Likewise.
19232         * doc/posix-functions/mkdirat.texi: Likewise.
19233         * doc/posix-functions/unlinkat.texi: Likewise.
19234
19235 2008-12-14  Bruno Haible  <bruno@clisp.org>
19236
19237         Update doc for POSIX:2008.
19238         * doc/posix-functions/faccessat.texi: New file.
19239         * doc/posix-functions/fchmodat.texi: New file.
19240         * doc/posix-functions/fchownat.texi: New file.
19241         * doc/posix-functions/fdopendir.texi: New file.
19242         * doc/posix-functions/fstatat.texi: New file.
19243         * doc/posix-functions/futimens.texi: New file.
19244         * doc/posix-functions/linkat.texi: New file.
19245         * doc/posix-functions/mkdirat.texi: New file.
19246         * doc/posix-functions/mkfifoat.texi: New file.
19247         * doc/posix-functions/mknodat.texi: New file.
19248         * doc/posix-functions/open_wmemstream.texi: New file.
19249         * doc/posix-functions/openat.texi: New file.
19250         * doc/posix-functions/psiginfo.texi: New file.
19251         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19252         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19253         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19254         * doc/posix-functions/readlinkat.texi: New file.
19255         * doc/posix-functions/renameat.texi: New file.
19256         * doc/posix-functions/strerror_l.texi: New file.
19257         * doc/posix-functions/symlinkat.texi: New file.
19258         * doc/posix-functions/unlinkat.texi: New file.
19259         * doc/posix-functions/utimensat.texi: New file.
19260         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19261
19262 2008-12-14  Bruno Haible  <bruno@clisp.org>
19263
19264         Update doc for POSIX:2008.
19265         * doc/posix-functions/alphasort.texi: Renamed from
19266         doc/glibc-functions/alphasort.texi.
19267         * doc/posix-functions/dirfd.texi: Renamed from
19268         doc/glibc-functions/dirfd.texi.
19269         * doc/posix-functions/dprintf.texi: Renamed from
19270         doc/glibc-functions/dprintf.texi.
19271         * doc/posix-functions/duplocale.texi: Renamed from
19272         doc/glibc-functions/duplocale.texi.
19273         * doc/posix-functions/fexecve.texi: Renamed from
19274         doc/glibc-functions/fexecve.texi.
19275         * doc/posix-functions/fmemopen.texi: Renamed from
19276         doc/glibc-functions/fmemopen.texi.
19277         * doc/posix-functions/freelocale.texi: Renamed from
19278         doc/glibc-functions/freelocale.texi.
19279         * doc/posix-functions/getdate_err.texi: Renamed from
19280         doc/glibc-functions/getdate_err.texi.
19281         * doc/posix-functions/isalnum_l.texi: Renamed from
19282         doc/glibc-functions/isalnum_l.texi.
19283         * doc/posix-functions/isalpha_l.texi: Renamed from
19284         doc/glibc-functions/isalpha_l.texi.
19285         * doc/posix-functions/isblank_l.texi: Renamed from
19286         doc/glibc-functions/isblank_l.texi.
19287         * doc/posix-functions/iscntrl_l.texi: Renamed from
19288         doc/glibc-functions/iscntrl_l.texi.
19289         * doc/posix-functions/isdigit_l.texi: Renamed from
19290         doc/glibc-functions/isdigit_l.texi.
19291         * doc/posix-functions/isgraph_l.texi: Renamed from
19292         doc/glibc-functions/isgraph_l.texi.
19293         * doc/posix-functions/islower_l.texi: Renamed from
19294         doc/glibc-functions/islower_l.texi.
19295         * doc/posix-functions/isprint_l.texi: Renamed from
19296         doc/glibc-functions/isprint_l.texi.
19297         * doc/posix-functions/ispunct_l.texi: Renamed from
19298         doc/glibc-functions/ispunct_l.texi.
19299         * doc/posix-functions/isspace_l.texi: Renamed from
19300         doc/glibc-functions/isspace_l.texi.
19301         * doc/posix-functions/isupper_l.texi: Renamed from
19302         doc/glibc-functions/isupper_l.texi.
19303         * doc/posix-functions/iswalnum_l.texi: Renamed from
19304         doc/glibc-functions/iswalnum_l.texi.
19305         * doc/posix-functions/iswalpha_l.texi: Renamed from
19306         doc/glibc-functions/iswalpha_l.texi.
19307         * doc/posix-functions/iswblank_l.texi: Renamed from
19308         doc/glibc-functions/iswblank_l.texi.
19309         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19310         doc/glibc-functions/iswcntrl_l.texi.
19311         * doc/posix-functions/iswctype_l.texi: Renamed from
19312         doc/glibc-functions/iswctype_l.texi.
19313         * doc/posix-functions/iswdigit_l.texi: Renamed from
19314         doc/glibc-functions/iswdigit_l.texi.
19315         * doc/posix-functions/iswgraph_l.texi: Renamed from
19316         doc/glibc-functions/iswgraph_l.texi.
19317         * doc/posix-functions/iswlower_l.texi: Renamed from
19318         doc/glibc-functions/iswlower_l.texi.
19319         * doc/posix-functions/iswprint_l.texi: Renamed from
19320         doc/glibc-functions/iswprint_l.texi.
19321         * doc/posix-functions/iswpunct_l.texi: Renamed from
19322         doc/glibc-functions/iswpunct_l.texi.
19323         * doc/posix-functions/iswspace_l.texi: Renamed from
19324         doc/glibc-functions/iswspace_l.texi.
19325         * doc/posix-functions/iswupper_l.texi: Renamed from
19326         doc/glibc-functions/iswupper_l.texi.
19327         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19328         doc/glibc-functions/iswxdigit_l.texi.
19329         * doc/posix-functions/isxdigit_l.texi: Renamed from
19330         doc/glibc-functions/isxdigit_l.texi.
19331         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19332         doc/glibc-functions/mbsnrtowcs.texi.
19333         * doc/posix-functions/mkdtemp.texi: Renamed from
19334         doc/glibc-functions/mkdtemp.texi.
19335         * doc/posix-functions/newlocale.texi: Renamed from
19336         doc/glibc-functions/newlocale.texi.
19337         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19338         doc/glibc-functions/nl_langinfo_l.texi.
19339         * doc/posix-functions/open_memstream.texi: Renamed from
19340         doc/glibc-functions/open_memstream.texi.
19341         * doc/posix-functions/opterr.texi: Renamed from
19342         doc/glibc-functions/opterr.texi.
19343         * doc/posix-functions/optind.texi: Renamed from
19344         doc/glibc-functions/optind.texi.
19345         * doc/posix-functions/optopt.texi: Renamed from
19346         doc/glibc-functions/optopt.texi.
19347         * doc/posix-functions/psignal.texi: Renamed from
19348         doc/glibc-functions/psignal.texi.
19349         * doc/posix-functions/scandir.texi: Renamed from
19350         doc/glibc-functions/scandir.texi.
19351         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19352         doc/glibc-functions/sched_get_priority_min.texi.
19353         * doc/posix-functions/signgam.texi: Renamed from
19354         doc/glibc-functions/signgam.texi.
19355         * doc/posix-functions/stpcpy.texi: Renamed from
19356         doc/glibc-functions/stpcpy.texi.
19357         * doc/posix-functions/stpncpy.texi: Renamed from
19358         doc/glibc-functions/stpncpy.texi.
19359         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19360         doc/glibc-functions/strcasecmp_l.texi.
19361         * doc/posix-functions/strcoll_l.texi: Renamed from
19362         doc/glibc-functions/strcoll_l.texi.
19363         * doc/posix-functions/strfmon_l.texi: Renamed from
19364         doc/glibc-functions/strfmon_l.texi.
19365         * doc/posix-functions/strftime_l.texi: Renamed from
19366         doc/glibc-functions/strftime_l.texi.
19367         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19368         doc/glibc-functions/strncasecmp_l.texi.
19369         * doc/posix-functions/strndup.texi: Renamed from
19370         doc/glibc-functions/strndup.texi.
19371         * doc/posix-functions/strnlen.texi: Renamed from
19372         doc/glibc-functions/strnlen.texi.
19373         * doc/posix-functions/strsignal.texi: Renamed from
19374         doc/glibc-functions/strsignal.texi.
19375         * doc/posix-functions/strxfrm_l.texi: Renamed from
19376         doc/glibc-functions/strxfrm_l.texi.
19377         * doc/posix-functions/timer_gettime.texi: Renamed from
19378         doc/glibc-functions/timer_gettime.texi.
19379         * doc/posix-functions/tolower_l.texi: Renamed from
19380         doc/glibc-functions/tolower_l.texi.
19381         * doc/posix-functions/toupper_l.texi: Renamed from
19382         doc/glibc-functions/toupper_l.texi.
19383         * doc/posix-functions/towctrans_l.texi: Renamed from
19384         doc/glibc-functions/towctrans_l.texi.
19385         * doc/posix-functions/towlower_l.texi: Renamed from
19386         doc/glibc-functions/towlower_l.texi.
19387         * doc/posix-functions/towupper_l.texi: Renamed from
19388         doc/glibc-functions/towupper_l.texi.
19389         * doc/posix-functions/uselocale.texi: Renamed from
19390         doc/glibc-functions/uselocale.texi.
19391         * doc/posix-functions/vdprintf.texi: Renamed from
19392         doc/glibc-functions/vdprintf.texi.
19393         * doc/posix-functions/wcpcpy.texi:
19394         Renamed from doc/glibc-functions/wcpcpy.texi.
19395         * doc/posix-functions/wcpncpy.texi: Renamed from
19396         doc/glibc-functions/wcpncpy.texi.
19397         * doc/posix-functions/wcscasecmp.texi: Renamed from
19398         doc/glibc-functions/wcscasecmp.texi.
19399         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19400         doc/glibc-functions/wcscasecmp_l.texi.
19401         * doc/posix-functions/wcscoll_l.texi: Renamed from
19402         doc/glibc-functions/wcscoll_l.texi.
19403         * doc/posix-functions/wcsdup.texi: Renamed from
19404         doc/glibc-functions/wcsdup.texi.
19405         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19406         doc/glibc-functions/wcsncasecmp.texi.
19407         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19408         doc/glibc-functions/wcsncasecmp_l.texi.
19409         * doc/posix-functions/wcsnlen.texi: Renamed from
19410         doc/glibc-functions/wcsnlen.texi.
19411         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19412         doc/glibc-functions/wcsnrtombs.texi.
19413         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19414         doc/glibc-functions/wcsxfrm_l.texi.
19415         * doc/posix-functions/wctrans_l.texi: Renamed from
19416         doc/glibc-functions/wctrans_l.texi.
19417         * doc/posix-functions/wctype_l.texi: Renamed from
19418         doc/glibc-functions/wctype_l.texi.
19419         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19420         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19421         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19422         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19423         these subsections.
19424         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19425         Remove sections.
19426
19427 2008-12-14  Bruno Haible  <bruno@clisp.org>
19428
19429         Update doc for POSIX:2008.
19430         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19431
19432 2008-12-14  Bruno Haible  <bruno@clisp.org>
19433
19434         Update doc for POSIX:2008.
19435         * doc/pastposix-functions/bcmp.texi: Renamed from
19436         doc/posix-functions/bcmp.texi.
19437         * doc/pastposix-functions/bcopy.texi: Renamed from
19438         doc/posix-functions/bcopy.texi.
19439         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19440         doc/posix-functions/bsd_signal.texi.
19441         * doc/pastposix-functions/bzero.texi: Renamed from
19442         doc/posix-functions/bzero.texi.
19443         * doc/pastposix-functions/ecvt.texi: Renamed from
19444         doc/posix-functions/ecvt.texi.
19445         * doc/pastposix-functions/fcvt.texi: Renamed from
19446         doc/posix-functions/fcvt.texi.
19447         * doc/pastposix-functions/ftime.texi: Renamed from
19448         doc/posix-functions/ftime.texi.
19449         * doc/pastposix-functions/gcvt.texi: Renamed from
19450         doc/posix-functions/gcvt.texi.
19451         * doc/pastposix-functions/getcontext.texi: Renamed from
19452         doc/posix-functions/getcontext.texi.
19453         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19454         doc/posix-functions/gethostbyaddr.texi.
19455         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19456         doc/posix-functions/gethostbyname.texi.
19457         * doc/pastposix-functions/getwd.texi: Renamed from
19458         doc/posix-functions/getwd.texi.
19459         * doc/pastposix-functions/h_errno.texi: Renamed from
19460         doc/posix-functions/h_errno.texi.
19461         * doc/pastposix-functions/index.texi: Renamed from
19462         doc/posix-functions/index.texi.
19463         * doc/pastposix-functions/makecontext.texi: Renamed from
19464         doc/posix-functions/makecontext.texi.
19465         * doc/pastposix-functions/mktemp.texi: Renamed from
19466         doc/posix-functions/mktemp.texi.
19467         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19468         doc/posix-functions/pthread_attr_getstackaddr.texi.
19469         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19470         doc/posix-functions/pthread_attr_setstackaddr.texi.
19471         * doc/pastposix-functions/rindex.texi: Renamed from
19472         doc/posix-functions/rindex.texi.
19473         * doc/pastposix-functions/scalb.texi: Renamed from
19474         doc/posix-functions/scalb.texi.
19475         * doc/pastposix-functions/setcontext.texi: Renamed from
19476         doc/posix-functions/setcontext.texi.
19477         * doc/pastposix-functions/swapcontext.texi: Renamed from
19478         doc/posix-functions/swapcontext.texi.
19479         * doc/pastposix-functions/ualarm.texi: Renamed from
19480         doc/posix-functions/ualarm.texi.
19481         * doc/pastposix-functions/usleep.texi: Renamed from
19482         doc/posix-functions/usleep.texi.
19483         * doc/pastposix-functions/vfork.texi: Renamed from
19484         doc/posix-functions/vfork.texi.
19485         * doc/pastposix-functions/wcswcs.texi: Renamed from
19486         doc/posix-functions/wcswcs.texi.
19487         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19488         (Function Substitutes): Update.
19489
19490 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19491
19492         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19493         m4/strerror.m4.
19494
19495 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19496             Bruno Haible  <bruno@clisp.org>
19497
19498         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19499
19500 2008-12-13  Bruno Haible  <bruno@clisp.org>
19501
19502         * modules/strtoull (Depends-on): Remove unistd.
19503
19504 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19505
19506         * modules/strtoull (Depends-on): Add stdlib.
19507
19508 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19509
19510         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19511
19512 2008-12-10  Jim Meyering  <meyering@redhat.com>
19513
19514         gl_ASSERT: don't say assertions are disabled when they're not
19515         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19516         "checking whether to enable assertions... no", when they are in
19517         fact enabled.  This is solely a bug in the output of configure.
19518         In spite of saying "no", NDEBUG was not defined in that case.
19519         Also, as noted by Eric Blake, leave assertions enabled upon
19520         --enable-assert=INVALID.
19521
19522 2008-12-10  Bruno Haible  <bruno@clisp.org>
19523
19524         Change MODULES.html to refer to POSIX:2008 where possible.
19525         * MODULES.html.sh (POSIX2008_URL): New variable.
19526         (posix_headers): Remove sys/timeb, ucontext.
19527         (posix2001_headers): New variable.
19528         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19529         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19530         index, makecontext, mktemp, pthread_attr_getstackaddr,
19531         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19532         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19533         (posix2001_functions): New variable.
19534         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19535         otherwise.
19536
19537 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19538
19539         add missing include to parse-duration.c
19540         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19541         * modules/parse-duration (Depends-on): Add xalloc.
19542
19543         fix sed script reading maint.mk
19544         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19545         (syntax-check-rules): Use it.
19546
19547 2008-12-09  Bruno Haible  <bruno@clisp.org>
19548
19549         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19550         MacOS X 10.4/PowerPC.
19551         Reported by Simon Josefsson.
19552
19553 2008-12-08  Jim Meyering  <meyering@redhat.com>
19554
19555         work around mingw's lack of some S_IF definitions
19556         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19557         Reported by Simon Josefsson.
19558
19559 2008-12-08  Bruno Haible  <bruno@clisp.org>
19560
19561         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19562         applied to variables. Needed on MacOS X 10.4/PowerPC.
19563         Reported by Simon Josefsson.
19564
19565 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19566         and Eric Blake  <ebb9@byu.net>
19567
19568         assert: honor --enable-assert
19569         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19570         order to honor --enable-assert, rather than treating it as a
19571         synonym for --disable-assert.
19572
19573 2008-12-08  Jim Meyering  <meyering@redhat.com>
19574
19575         * lib/posixtm.c: Remove now-useless declaration of mktime.
19576
19577         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19578
19579 2008-12-07  Bruno Haible  <bruno@clisp.org>
19580
19581         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19582         test_once): Mark functions as static.
19583         * tests/test-tls.c (test_tls): Likewise.
19584
19585 2008-12-07  Bruno Haible  <bruno@clisp.org>
19586
19587         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19588         iconv_register_autodetect.
19589
19590 2008-12-07  Jim Meyering  <meyering@redhat.com>
19591
19592         posixtm.c: avoid a warning
19593         * lib/posixtm.c (posixtime): Don't initialize tm0.
19594         It's no longer needed to placate gcc4's -Wuninitialized,
19595         and the attempt to placate would elicit a new warning.
19596
19597         unicodeio.c: mark unused parameters
19598         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19599         (fallback_failure_callback): Likewise.
19600
19601 2008-12-07  Bruno Haible  <bruno@clisp.org>
19602
19603         * gnulib-tool (func_create_testdir): When building the tests
19604         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19605         Reported by Simon Josefsson.
19606
19607 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19608
19609         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19610
19611 2008-12-06  Bruno Haible  <bruno@clisp.org>
19612
19613         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19614         Suggested by Eric Blake.
19615
19616 2008-12-06  Bruno Haible  <bruno@clisp.org>
19617
19618         Fix a c-stack test failure on MacOS X.
19619         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19620         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19621         handler for SIGBUS as well.
19622         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19623         install a signal handler for SIGBUS as well.
19624         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19625
19626 2008-12-06  Bruno Haible  <bruno@clisp.org>
19627
19628         Advocacy documentation.
19629         * doc/gnulib-intro.texi (Benefits): New section.
19630         * doc/gnulib.texi: Update.
19631
19632 2008-12-06  Bruno Haible  <bruno@clisp.org>
19633
19634         Document the 'manywarnings' module.
19635         * doc/manywarnings.texi: New file.
19636         * doc/gnulib.texi: Include it.
19637
19638 2008-12-05  Eric Blake  <ebb9@byu.net>
19639
19640         tests: silence some gcc warnings
19641         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19642         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19643         type mismatches.
19644
19645 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19646             Bruno Haible  <bruno@clisp.org>
19647
19648         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19649
19650 2008-11-29  Jim Meyering  <meyering@redhat.com>
19651
19652         unicodeio.c: mark unused parameters
19653         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19654         (fallback_failure_callback): Likewise.
19655
19656         fts: fix a thinko
19657         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19658         (set_stat_type): Return S_IF*-valued "type" directly.
19659         Prompted by James Youngman's spotting a related bug.
19660         Confirmed by further testing through find.
19661
19662         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19663         * lib/fts.c (D_TYPE): Define.
19664         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19665         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19666         (s_ifmt_shift_bits): New function.
19667         (set_stat_type): New function.
19668         (fts_build): When not calling fts_stat, call set_stat_type
19669         to propagate dirent.d_type info to fts_read caller.
19670         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19671         fts_statp->st_mode type information may be valid.
19672
19673 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19674
19675         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19676         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19677         <sds@gnu.org>.
19678
19679 2008-11-20  Bruno Haible  <bruno@clisp.org>
19680
19681         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19682         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19683         INCLUDE_NEXT.
19684         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19685         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19686         * modules/math (Makefile.am): Substitute
19687         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19688         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19689
19690 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19691             Bruno Haible  <bruno@clisp.org>
19692
19693         * lib/stdint.in.h: Define all type macros so that their expansion is
19694         a single typedef'ed token. Fixes a compilation failure in Boost which
19695         does "using ::int8_t;".
19696
19697 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19698
19699         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19700         gl_MANYWARN_ALL_GCC.
19701         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19702         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19703         * modules/manywarnings: New file.
19704         * MODULES.html.sh: Mention manywarnings module.
19705
19706 2008-11-18  Bruno Haible  <bruno@clisp.org>
19707
19708         * doc/gnulib-tool.texi (Unit tests): New section.
19709
19710 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19711
19712         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19713         paths like 'lib/po/foo.po'.
19714
19715 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19716
19717         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19718         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19719
19720 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19721
19722         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19723         parameter works.
19724
19725 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19726
19727         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19728
19729 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19730
19731         * modules/parse-duration-tests: New file.
19732         * tests/test-parse-duration.sh: New file.
19733         * tests/test-parse-duration.c: New file.
19734
19735         New module 'parse-duration'.
19736         * lib/parse-duration.h: New file.
19737         * lib/parse-duration.c: New file.
19738         * modules/parse-duration: New file.
19739
19740 2008-11-17  Bruno Haible  <bruno@clisp.org>
19741
19742         * tests/test-select-out.sh: Comment out the first pipe test.
19743         Reported by Simon Josefsson.
19744
19745 2008-11-17  Bruno Haible  <bruno@clisp.org>
19746
19747         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19748         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19749         gl_HOSTENT.
19750
19751 2008-11-17  Bruno Haible  <bruno@clisp.org>
19752
19753         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19754         -lnetwork and -lnet. Needed for Haiku and BeOS.
19755
19756 2008-11-16  Bruno Haible  <bruno@clisp.org>
19757
19758         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19759
19760 2008-11-16  Bruno Haible  <bruno@clisp.org>
19761
19762         Avoid test failure on Haiku.
19763         * tests/test-fsync.c: Include <errno.h>.
19764         (main): Don't require that fsync (0) fails.
19765
19766 2008-11-15  Bruno Haible  <bruno@clisp.org>
19767
19768         New module 'hostent'.
19769         * modules/hostent: New file.
19770         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19771
19772 2008-11-15  Bruno Haible  <bruno@clisp.org>
19773
19774         New module 'servent'.
19775         * modules/servent: New file.
19776         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19777
19778 2008-11-15  Bruno Haible  <bruno@clisp.org>
19779
19780         Avoid generating same test program with two different rules.
19781         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19782         test-frexp to test-frexp-nolibm.
19783         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19784         test-frexpl to test-frexpl-nolibm.
19785
19786 2008-11-15  Bruno Haible  <bruno@clisp.org>
19787
19788         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19789         $(FREXPL_LIBM).
19790
19791 2008-11-15  Bruno Haible  <bruno@clisp.org>
19792
19793         * lib/netdb.in.h: Activate the definitions also when the system's
19794         <netdb.h> has 'struct addrinfo'.
19795         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19796         EAI_OVERFLOW or AI_NUMERICSERV.
19797         * doc/posix-headers/netdb.texi: Document the problem.
19798
19799 2008-11-15  Bruno Haible  <bruno@clisp.org>
19800
19801         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19802
19803         Make the 'sched' module work on platforms where <sched.h> exists but
19804         is incomplete (such as Haiku).
19805         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19806         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19807         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19808         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19809         HAVE_STRUCT_SCHED_PARAM.
19810         * modules/sched (Depends-on): Add include_next.
19811         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19812         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19813         * doc/posix-headers/sched.texi: Document the issue.
19814
19815 2008-11-13  Jim Meyering  <meyering@redhat.com>
19816
19817         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19818         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19819         test would fail due to the difference in the Report bugs to ...
19820         line.  The expected address is empty, "<>", while the actual
19821         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19822
19823 2008-11-12  Bruno Haible  <bruno@clisp.org>
19824
19825         lstat: don't compile lstat.c on systems lacking lstat
19826         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19827         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19828         Reported by Daniel P. Berrange via Jim Meyering.
19829
19830 2008-11-12  Jim Meyering  <meyering@redhat.com>
19831
19832         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19833
19834 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19835
19836         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19837         instead.
19838
19839 2008-11-12  Bruno Haible  <bruno@clisp.org>
19840
19841         * lib/unicodeio.c: Include unistr.h.
19842         (utf8_wctomb): Remove function.
19843         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19844
19845 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19846
19847         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19848         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19849         <bruno@clisp.org>.
19850         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19851
19852 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19853
19854         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19855         * doc/gnulib.texi: Add section for warnings.
19856
19857 2008-11-11  Bruno Haible  <bruno@clisp.org>
19858
19859         * lib/sockets.h: Add a comment.
19860
19861 2008-11-11  Karl Berry  <karl@gnu.org>
19862
19863         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19864
19865 2008-11-11  Eric Blake  <ebb9@byu.net>
19866
19867         fdl.texi: avoid git symlinks
19868         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19869
19870 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19871
19872         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19873
19874 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19875
19876         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19877         (gl_WARN_ADD): Substitute $2 if literal.
19878
19879 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19880
19881         * m4/warning.m4: Remove.
19882
19883 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19884
19885         * m4/warnings.m4: Almost complete rewrite. :-)
19886
19887 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19888
19889         * modules/warnings: New module.
19890         * m4/warnings.m4: New file.
19891         * MODULES.html.sh: Mention warnings module.
19892         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19893         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19894
19895 2008-11-10  Eric Blake  <ebb9@byu.net>
19896
19897         fdl.texi: make a symlink to the latest version
19898         * doc/standards.texi: Revert today's earlier change.
19899         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19900         * doc/fdl.texi: ...and replace this with a symlink to the newer
19901         fdl-1.3.texi.
19902
19903 2008-11-10  Bruno Haible  <bruno@clisp.org>
19904
19905         * tests/test-select-fd.c (main): Accept the result file name as fourth
19906         argument.
19907         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19908         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19909
19910 2008-11-10  Bruno Haible  <bruno@clisp.org>
19911
19912         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19913         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19914         as autoconf-substituted macros.
19915         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19916         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19917         gl_NETDB_H_DEFAULTS. Set these variables.
19918         * modules/netdb (Makefile.am): Substitute these variables.
19919
19920 2008-11-10  Eric Blake  <ebb9@byu.net>
19921
19922         standards.texi: include correct file for FDL 1.3
19923         * doc/standards.texi (GNU Free Documentation License): Change
19924         include file to pull in FDL 1.3, not 1.2.
19925
19926         fdl.texi: revert accidental change to license
19927         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19928
19929 2008-11-10  Bruno Haible  <bruno@clisp.org>
19930
19931         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19932         cross-compiling guesses also when the native compile gives no result.
19933
19934 2008-11-10  Bruno Haible  <bruno@clisp.org>
19935
19936         * lib/spawni.c (__spawni): Force variable into the stack.
19937
19938 2008-11-10  Bruno Haible  <bruno@clisp.org>
19939
19940         Add support for Haiku.
19941         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19942         glibc and BeOS, but also on Haiku.
19943         * lib/fpurge.c (fpurge): Likewise.
19944         * lib/freadable.c (freadable): Likewise.
19945         * lib/freadahead.c (freadahead): Likewise.
19946         * lib/freading.c (freading): Likewise.
19947         * lib/freadptr.c (freadptr): Likewise.
19948         * lib/freadseek.c (freadptrinc): Likewise.
19949         * lib/fseeko.c (rpl_fseeko): Likewise.
19950         * lib/fseterr.c (fseterr): Likewise.
19951         * lib/fwritable.c (fwritable): Likewise.
19952         * lib/fwriting.c (fwriting): Likewise.
19953         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19954
19955 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19956
19957         * lib/config.charset: Treat Haiku like BeOS.
19958
19959 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19960
19961         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19962         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19963
19964 2008-11-08  Bruno Haible  <bruno@clisp.org>
19965
19966         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19967         AC_CACHE_CHECK.
19968
19969 2008-11-08  Bruno Haible  <bruno@clisp.org>
19970
19971         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19972
19973 2008-11-08  Bruno Haible  <bruno@clisp.org>
19974
19975         * tests/test-select-fd.c: New file.
19976         * tests/test-select-in.sh: New file.
19977         * tests/test-select-out.sh: New file.
19978         * tests/test-select-stdin.c: New file.
19979         * modules/select-tests (Files): Add the new files.
19980         (Depends-on): Add gettimeofday.
19981         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19982         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19983         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19984
19985 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19986             Bruno Haible  <bruno@clisp.org>
19987
19988         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19989
19990 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19991
19992         * build-aux/pmccabe2html: Added support for C++ source files.
19993
19994 2008-11-05  Ben Pfaff  <blp@gnu.org>
19995
19996         Fix lib/close.c build on Windows.
19997         * modules/close (Files): Add lib/w32sock.h.
19998
19999 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
20000
20001         Accept Bison's NEWS format.
20002         * build-aux/announce-gen (print_news_deltas): Tweak
20003         $re_prefix.
20004
20005 2008-11-04  Bruno Haible  <bruno@clisp.org>
20006
20007         * modules/random_r (Maintainer): Add glibc.
20008
20009 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20010
20011         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
20012         by karl@freefriends.org (Karl Berry).
20013         * doc/alloca.texi: Likewise.
20014         * doc/c-ctype.texi: Likewise.
20015         * doc/c-strcase.texi: Likewise.
20016         * doc/c-strcaseeq.texi: Likewise.
20017         * doc/c-strcasestr.texi: Likewise.
20018         * doc/c-strstr.texi: Likewise.
20019         * doc/c-strtod.texi: Likewise.
20020         * doc/c-strtold.texi: Likewise.
20021         * doc/ctime.texi: Likewise.
20022         * doc/error.texi: Likewise.
20023         * doc/fdl.texi: Likewise.
20024         * doc/gcd.texi: Likewise.
20025         * doc/getdate.texi: Likewise.
20026         * doc/gnulib-intro.texi: Likewise.
20027         * doc/gnulib-tool.texi: Likewise.
20028         * doc/gnulib.texi: Likewise.
20029         * doc/inet_ntoa.texi: Likewise.
20030         * doc/maintain.texi: Likewise.
20031         * doc/make-stds.texi: Likewise.
20032         * doc/quote.texi: Likewise.
20033         * doc/regexprops-generic.texi: Likewise.
20034         * doc/standards.texi: Likewise.
20035         * doc/verify.texi: Likewise.
20036         * doc/visibility.texi: Likewise.
20037         * doc/gnulib.texi (GNU Free Documentation License): Include
20038         fdl-1.3.texi instead of fdl.texi.
20039
20040 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20041
20042         * doc/fdl-1.3.texi: New file, from
20043         <http://www.gnu.org/licenses/fdl-1.3.texi>.
20044         * modules/fdl-1.3: Add.
20045         * MODULES.html.sh: Add fdl-1.3.
20046
20047 2008-11-03  Bruno Haible  <bruno@clisp.org>
20048
20049         Make determination of absolute name of header file work with AIX xlc.
20050         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
20051         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
20052         preprocessing.
20053         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20054         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20055
20056 2008-11-03  Simon Josefsson  <simon@josefsson.org>
20057
20058         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
20059         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
20060         <ludo@gnu.org>.
20061
20062 2008-11-02  Bruno Haible  <bruno@clisp.org>
20063
20064         Mark 'strpbrk' obsolete.
20065         * modules/strpbrk (Status, Notice): New sections.
20066         * modules/strtok_r (Depends-on): Add strpbrk.
20067
20068 2008-11-02  Bruno Haible  <bruno@clisp.org>
20069
20070         Mark 'strdup' obsolete.
20071         * modules/strdup (Status, Notice): New sections.
20072         * modules/findprog (Depends-on): Add strdup.
20073         * modules/getaddrinfo (Depends-on): Likewise.
20074         * modules/localename (Depends-on): Likewise.
20075         * modules/relocatable-lib (Depends-on): Likewise.
20076         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
20077         * modules/relocatable-prog (Depends-on): Likewise.
20078         * modules/trim (Depends-on): Likewise.
20079         * modules/unictype/gen-ctype (Depends-on): Likewise.
20080         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20081
20082 2008-11-02  Bruno Haible  <bruno@clisp.org>
20083
20084         Mark 'strcspn' obsolete.
20085         * modules/strcspn (Status, Notice): New sections.
20086
20087 2008-11-02  Bruno Haible  <bruno@clisp.org>
20088
20089         Mark 'rmdir' obsolete.
20090         * modules/rmdir (Status, Notice): New sections.
20091         * modules/clean-temp (Depends-on): Add rmdir.
20092         * modules/openat (Depends-on): Likewise.
20093
20094 2008-11-02  Bruno Haible  <bruno@clisp.org>
20095
20096         Mark 'raise' obsolete.
20097         * modules/raise (Status, Notice): New sections.
20098         (Include): Specify <signal.h>.
20099         * modules/stdio (Depends-on): Add raise.
20100         * modules/write (Depends-on): Likewise.
20101
20102 2008-11-02  Bruno Haible  <bruno@clisp.org>
20103
20104         Mark 'memset' obsolete.
20105         * modules/memset (Status, Notice): New sections.
20106
20107 2008-11-02  Bruno Haible  <bruno@clisp.org>
20108
20109         Mark 'memmove' obsolete.
20110         * modules/memmove (Status, Notice): New sections.
20111         * modules/argp (Depends-on): Add memmove.
20112         * modules/argz (Depends-on): Likewise.
20113         * modules/canonicalize (Depends-on): Likewise.
20114         * modules/canonicalize-lgpl (Depends-on): Likewise.
20115         * modules/fts (Depends-on): Likewise.
20116         * modules/getcwd (Depends-on): Likewise.
20117         * modules/human (Depends-on): Likewise.
20118         * modules/regex (Depends-on): Likewise.
20119         * modules/striconveh (Depends-on): Likewise.
20120         * modules/trim (Depends-on): Likewise.
20121         * modules/unistr/u8-move (Depends-on): Likewise.
20122         * modules/unistr/u16-move (Depends-on): Likewise.
20123         * modules/unistr/u32-move (Depends-on): Likewise.
20124
20125 2008-11-02  Bruno Haible  <bruno@clisp.org>
20126
20127         Mark 'memcpy' obsolete.
20128         * modules/memcpy (Status, Notice): New sections.
20129
20130 2008-11-02  Bruno Haible  <bruno@clisp.org>
20131
20132         Mark 'memcmp' obsolete.
20133         * modules/memcmp (Status, Notice): New sections.
20134         * modules/argmatch (Depends-on): Add memchr.
20135         * modules/backupfile (Depends-on): Likewise.
20136         * modules/c-strcasestr (Depends-on): Likewise.
20137         * modules/crypto/des (Depends-on): Likewise.
20138         * modules/csharpcomp (Depends-on): Likewise.
20139         * modules/fnmatch (Depends-on): Likewise.
20140         * modules/git-merge-changelog (Depends-on): Likewise.
20141         * modules/isnand (Depends-on): Likewise.
20142         * modules/isnand-nolibm (Depends-on): Likewise.
20143         * modules/isnanf (Depends-on): Likewise.
20144         * modules/isnanf-nolibm (Depends-on): Likewise.
20145         * modules/isnanl (Depends-on): Likewise.
20146         * modules/isnanl-nolibm (Depends-on): Likewise.
20147         * modules/mbchar (Depends-on): Likewise.
20148         * modules/memcoll (Depends-on): Likewise.
20149         * modules/quotearg (Depends-on): Likewise.
20150         * modules/regex (Depends-on): Likewise.
20151         * modules/relocatable-prog (Depends-on): Likewise.
20152         * modules/same (Depends-on): Likewise.
20153         * modules/signbit (Depends-on): Likewise.
20154         * modules/strcasestr-simple (Depends-on): Likewise.
20155         * modules/unictype/gen-ctype (Depends-on): Likewise.
20156         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20157         * modules/uniname/uniname (Depends-on): Likewise.
20158         * modules/unistr/u8-cmp (Depends-on): Likewise.
20159
20160 2008-11-02  Bruno Haible  <bruno@clisp.org>
20161
20162         Mark 'memchr' obsolete.
20163         * modules/memchr (Status, Notice): New sections.
20164         * modules/argp (Depends-on): Add memchr.
20165         * modules/base64 (Depends-on): Likewise.
20166         * modules/c-strcasestr (Depends-on): Likewise.
20167         * modules/chdir-long (Depends-on): Likewise.
20168         * modules/fnmatch (Depends-on): Likewise.
20169         * modules/getsubopt (Depends-on): Likewise.
20170         * modules/git-merge-changelog (Depends-on): Likewise.
20171         * modules/glob (Depends-on): Likewise.
20172         * modules/strcasestr-simple (Depends-on): Likewise.
20173         * modules/strnlen (Depends-on): Likewise.
20174
20175 2008-11-02  Bruno Haible  <bruno@clisp.org>
20176
20177         Mark 'atexit' obsolete.
20178         * modules/atexit (Status, Notice): New sections.
20179         * modules/chdir-long (Depends-on): Add atexit.
20180         * modules/wait-process (Depends-on): Likewise.
20181
20182 2008-11-02  Bruno Haible  <bruno@clisp.org>
20183
20184         * gnulib-tool: New option --with-obsolete.
20185         (func_usage): Document it.
20186         (func_modules_transitive_closure): Drop obsolete dependencies if
20187         incobsolete is not true.
20188         (func_import): Read and save the incobsolete variable to the cache.
20189
20190 2008-11-02  Bruno Haible  <bruno@clisp.org>
20191
20192         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20193         * gnulib-tool: New option --extract-status.
20194         (func_usage): Document it.
20195         (sed_extract_prog): Recognize it.
20196         (func_get_status): New function.
20197
20198 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20199
20200         * modules/sockets (License): Change from LGPL to LGPLv2+.
20201
20202 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20203
20204         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20205
20206 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20207
20208         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20209         Mention times and sys_times.
20210         * modules/sys_times, modules/sys_times-tests: New modules.
20211         * modules/times, modules/times-tests: Likewise
20212         * m4/sys_times_h.m4: New file.
20213         * lib/sys_times.in.h: Likewise
20214         * lib/times.c: Likewise.
20215         * tests/test-sys_times.c: Likewise.
20216         * tests/test-times.c: Likewise.
20217         * doc/posix-headers/sys_times.texi: Update.
20218         * doc/posix-functions/times.texi: Update.
20219
20220 2008-10-28  Jim Meyering  <meyering@redhat.com>
20221
20222         * modules/tempname (Depends-on): Add lstat.
20223
20224         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20225
20226 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20227
20228         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20229         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20230         using idiom used elsewhere in gnulib.
20231
20232 2008-10-27  Jim Meyering  <meyering@redhat.com>
20233
20234         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20235
20236 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20237
20238         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20239         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20240         programs.
20241         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20242
20243 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20244
20245         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20246
20247 2008-10-27  Bruno Haible  <bruno@clisp.org>
20248
20249         * tests/test-lstat.c: Include <stdio.h>.
20250
20251 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20252
20253         * modules/lstat-tests: New module.
20254         * tests/test-lstat.c: New file.
20255
20256 2008-10-26  Jim Meyering  <meyering@redhat.com>
20257
20258         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20259
20260 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20261             Bruno Haible  <bruno@clisp.org>
20262
20263         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20264         * modules/configmake (Include): Add a note that the include must come
20265         after all system headers.
20266         * lib/javaversion.c: Include configmake.h after all other includes.
20267
20268 2008-10-26  Bruno Haible  <bruno@clisp.org>
20269
20270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20271         HAVE_STRUCT_RANDOM_DATA to 1.
20272         (gl_STDLIB_H): Simplify.
20273
20274 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20275
20276         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20277         substitute HAVE_STRUCT_RANDOM_DATA.
20278         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20279         random_data.
20280         * modules/stdlib (Makefile.am): Substitute
20281         HAVE_STRUCT_RANDOM_DATA.
20282
20283 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20284
20285         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20286         * doc/gnulib-intro.texi (Copyright): Likewise.
20287
20288 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20289
20290         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20291         findings.
20292
20293 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20294             Bruno Haible  <bruno@clisp.org>
20295
20296         * lib/unistd.in.h: Include <winsock2.h>.
20297         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20298         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20299         Provide dummy declarations.
20300         (gethostname): Override.
20301         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20302         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20303         gl_PREREQ_SYS_H_WINSOCK2.
20304         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20305         * doc/posix-functions/gethostname.texi: More details.
20306
20307 2008-10-25  Bruno Haible  <bruno@clisp.org>
20308
20309         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20310         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20311         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20312
20313         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20314         here ...
20315         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20316         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20317         gl_UNISTD_H_DEFAULTS.
20318
20319 2008-10-25  Eric Blake  <ebb9@byu.net>
20320
20321         signbit: avoid spurious compiler failure
20322         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20323         declarations inside function.
20324
20325 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20326             Bruno Haible  <bruno@clisp.org>
20327
20328         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20329         * modules/random_r (Depends-on): Add stdint.
20330
20331 2008-10-24  Bruno Haible  <bruno@clisp.org>
20332
20333         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20334         Eggert.
20335         * modules/strerror (License): Likewise.
20336
20337 2008-10-24  Jim Meyering  <meyering@redhat.com>
20338
20339         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20340         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20341
20342 2008-10-24  Eric Blake  <ebb9@byu.net>
20343
20344         getgroups: fix compilation when getgroups is available
20345         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20346         but with <config.h> override of getgroups disabled.
20347
20348 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20349
20350         * doc/gnulib.texi (Header files): Add note about C++ problems.
20351         Explained by Bruno Haible <bruno@clisp.org>.
20352
20353 2008-10-23  Bruno Haible  <bruno@clisp.org>
20354
20355         Define a dummy SA_NODEFER macro on Interix.
20356         * lib/signal.in.h (SA_NODEFER): Define fallback.
20357         Reported by Aleksey Cheusov <cheusov@tut.by> via
20358         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20359
20360 2008-10-23  Bruno Haible  <bruno@clisp.org>
20361
20362         * modules/freadahead (License): Change to LGPLv2+.
20363         Suggested by Simon Josefsson.
20364
20365 2008-10-23  Jim Meyering  <meyering@redhat.com>
20366
20367         random_r: new module
20368         * modules/random_r: New file.
20369         * m4/random_r.m4: New file.
20370         * lib/random_r.c: New file, from glibc.
20371         * modules/random_r-tests: New file.
20372         * tests/test-random_r.c: New file.
20373         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20374          Declare.
20375         (RAND_MAX): Define.
20376         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20377         * modules/stdlib: Substitute them, too.
20378         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20379         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20380         * doc/glibc-functions/random_r.texi: Likewise.
20381         * doc/glibc-functions/setstate_r.texi: Likewise.
20382         * doc/glibc-functions/srandom_r.texi: Likewise.
20383         * config/srclist.txt: Mention it.
20384
20385 2008-10-23  David Lutterkort  <lutter@redhat.com>
20386
20387         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20388         link requirement
20389
20390 2008-10-23  Jim Meyering  <meyering@redhat.com>
20391
20392         selinux-h: mark parameters of stub functions as intentionally unused
20393         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20394         * lib/se-context.in.h: Likewise.
20395
20396 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20397
20398         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20399
20400 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20401
20402         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20403
20404 2008-10-22  Eric Blake  <ebb9@byu.net>
20405
20406         glthread/thread: avoid compiler warning
20407         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20408         Add unreachable abort to silence compiler.
20409
20410 2008-10-22  Eric Blake  <ebb9@byu.net>
20411
20412         netdb: also supply struct addrinfo for cygwin 1.5.x
20413         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20414         older cygwin.
20415         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20416         cygwin.
20417         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20418
20419 2008-10-22  Bruno Haible  <bruno@clisp.org>
20420
20421         * users.txt: Update entry about pspp.
20422
20423 2008-10-21  Bruno Haible  <bruno@clisp.org>
20424
20425         Simplification.
20426         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20427         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20428
20429         Simplification.
20430         * lib/ioctl.c (ioctl): Don't undefine.
20431         * lib/socket.c (socket): Don't undefine.
20432
20433         Remove unused module indicator macros.
20434         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20435         GNULIB_$1 as a C macro.
20436
20437         * doc/posix-functions/close.texi: Undo last change.
20438         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20439         Windows platforms.
20440
20441 2008-10-21  Bruno Haible  <bruno@clisp.org>
20442
20443         Add gethostname() declaration to <unistd.h>.
20444         * lib/unistd.in.h (gethostname): New declaration.
20445         * lib/gethostname.c: Include <unistd.h>.
20446         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20447         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20449         and HAVE_GETHOSTNAME.
20450         * modules/gethostname (Depends-on): Add unistd.
20451         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20452         (Include): Specify <unistd.h>.
20453         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20454         HAVE_GETHOSTNAME.
20455         * tests/test-gethostname.c: Include <unistd.h> first.
20456
20457 2008-10-21  Bruno Haible  <bruno@clisp.org>
20458
20459         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20460         * modules/select-tests (Depends-on): Likewise.
20461         Reported by Simon Josefsson.
20462
20463 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20464
20465         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20466         * lib/accept.c: New file, based on winsock.c.
20467         * lib/bind.c: New file, based on winsock.c.
20468         * lib/connect.c: New file, based on winsock.c.
20469         * lib/getpeername.c: New file, based on winsock.c.
20470         * lib/getsockname.c: New file, based on winsock.c.
20471         * lib/getsockopt.c: New file, based on winsock.c.
20472         * lib/ioctl.c: New file, based on winsock.c.
20473         * lib/listen.c: New file, based on winsock.c.
20474         * lib/recv.c: New file, based on winsock.c.
20475         * lib/recvfrom.c: New file, based on winsock.c.
20476         * lib/send.c: New file, based on winsock.c.
20477         * lib/sendto.c: New file, based on winsock.c.
20478         * lib/setsockopt.c: New file, based on winsock.c.
20479         * lib/shutdown.c: New file, based on winsock.c.
20480         * lib/socket.c: New file, based on winsock.c.
20481         * lib/w32sock.h: New file, based on winsock.c.
20482         * lib/winsock.c: Remove file.
20483         * modules/accept: Likewise.
20484         * modules/bind: Likewise.
20485         * modules/connect: Likewise.
20486         * modules/getpeername: Likewise.
20487         * modules/getsockname: Likewise.
20488         * modules/getsockopt: Likewise.
20489         * modules/ioctl: Likewise.
20490         * modules/listen: Likewise.
20491         * modules/recv: Likewise.
20492         * modules/recvfrom: Likewise.
20493         * modules/send: Likewise.
20494         * modules/sendto: Likewise.
20495         * modules/setsockopt: Likewise.
20496         * modules/shutdown: Likewise.
20497         * modules/socket: Use socket.c instead of winsock.c.
20498         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20499         * doc/posix-functions/accept.texi: Doc fix.
20500         * doc/posix-functions/bind.texi: Doc fix.
20501         * doc/posix-functions/close.texi: Doc fix.
20502         * doc/posix-functions/connect.texi: Doc fix.
20503         * doc/posix-functions/getpeername.texi: Doc fix.
20504         * doc/posix-functions/getsockname.texi: Doc fix.
20505         * doc/posix-functions/getsockopt.texi: Doc fix.
20506         * doc/posix-functions/ioctl.texi: Doc fix.
20507         * doc/posix-functions/listen.texi: Doc fix.
20508         * doc/posix-functions/recv.texi: Doc fix.
20509         * doc/posix-functions/recvfrom.texi: Doc fix.
20510         * doc/posix-functions/send.texi: Doc fix.
20511         * doc/posix-functions/sendto.texi: Doc fix.
20512         * doc/posix-functions/setsockopt.texi: Doc fix.
20513         * doc/posix-functions/shutdown.texi: Doc fix.
20514         * doc/posix-functions/socket.texi: Doc fix.
20515
20516 2008-10-20  Bruno Haible  <bruno@clisp.org>
20517
20518         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20519         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20520         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20521         as an alias for SIGABRT.
20522         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20523         (sigaction): Map it to SIGABRT.
20524         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20525
20526 2008-10-20  Bruno Haible  <bruno@clisp.org>
20527
20528         * lib/fts.c: Don't include lstat.h.
20529         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20530
20531         Move the lstat() declaration to <sys/stat.h>.
20532         * lib/lstat.h: Remove file.
20533         * lib/sys_stat.in.h: Add special invocation convention.
20534         (lstat): New declaration.
20535         * lib/lstat.c (orig_lstat): New function.
20536         (rpl_lstat): Use orig_lstat instead of lstat.
20537         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20538         AC_C_INLINE. Set REPLACE_LSTAT.
20539         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20540         and REPLACE_LSTAT.
20541         * modules/lstat (Files): Remove lib/lstat.h.
20542         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20543         (Include): Specify <sys/stat.h> instead of lstat.h.
20544         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20545         REPLACE_LSTAT.
20546         * NEWS: Mention the change.
20547
20548 2008-10-20  Bruno Haible  <bruno@clisp.org>
20549
20550         * modules/posix_spawn-tests: New file.
20551         * tests/test-posix_spawn3.c: New file.
20552
20553 2008-10-20  Bruno Haible  <bruno@clisp.org>
20554
20555         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20556         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20557         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20558         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20559         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20560
20561 2008-10-20  Bruno Haible  <bruno@clisp.org>
20562
20563         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20564         of posix_spawn on AIX 5.3.
20565
20566 2008-10-20  Bruno Haible  <bruno@clisp.org>
20567
20568         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20569
20570 2008-10-20  Bruno Haible  <bruno@clisp.org>
20571
20572         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20573         of AC_LANG_PROGRAM.
20574
20575 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20576
20577         * lib/netdb.in.h: Don't define GNU specific constants until they
20578         are supported or needed.  Reported by Bruno Haible
20579         <bruno@clisp.org>.
20580
20581 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20582
20583         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20584
20585 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20586
20587         * lib/getaddrinfo.h: Remove file.
20588         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20589         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20590         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20591         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20592         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20593         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20594         * tests/test-getaddrinfo.c: Likewise.
20595         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20596         * NEWS: Mention change.
20597
20598 2008-10-19  Bruno Haible  <bruno@clisp.org>
20599
20600         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20601
20602 2008-10-19  Bruno Haible  <bruno@clisp.org>
20603
20604         * lib/wait-process.c: Include simply <sys/wait.h>.
20605         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20606         WIFSTOPPED): Remove fallback definitions.
20607         * modules/wait-process (Depends-on): Add sys_wait.
20608
20609         New module 'sys_wait'.
20610         * modules/sys_wait: New file.
20611         * lib/sys_wait.in.h: New file, partially copied from
20612         lib/wait-process.c.
20613         * m4/sys_wait_h.m4: New file.
20614         * doc/posix-headers/sys_wait.texi: Mention the new module.
20615
20616 2008-10-19  Bruno Haible  <bruno@clisp.org>
20617
20618         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20619
20620 2008-10-19  Bruno Haible  <bruno@clisp.org>
20621
20622         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20623         * lib/wait-process.c (WAIT_T): Remove type.
20624         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20625         (wait_subprocess): Update.
20626
20627 2008-10-19  Bruno Haible  <bruno@clisp.org>
20628
20629         New module 'atoll'.
20630         * modules/atoll: New file.
20631         * lib/stdlib.in.h (atoll): New declaration.
20632         * lib/atoll.c: New file, from glibc with modifications.
20633         * m4/atoll.m4: New file.
20634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20635         HAVE_ATOLL.
20636         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20637         * doc/posix-functions/atoll.texi: Mention the new module.
20638
20639 2008-10-19  Bruno Haible  <bruno@clisp.org>
20640
20641         Add strtoull() declaration to <stdlib.h>.
20642         * lib/stdlib.in.h (strtoull): New declaration.
20643         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20644         Set HAVE_STRTOULL.
20645         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20646         HAVE_STRTOULL.
20647         * modules/strtoull (Depends-on): Add stdlib.
20648         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20649         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20650         HAVE_STRTOULL.
20651
20652 2008-10-19  Bruno Haible  <bruno@clisp.org>
20653
20654         Add strtoll() declaration to <stdlib.h>.
20655         * lib/stdlib.in.h (strtoll): New declaration.
20656         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20657         Set HAVE_STRTOLL.
20658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20659         HAVE_STRTOLL.
20660         * modules/strtoll (Depends-on): Add stdlib.
20661         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20662         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20663
20664 2008-10-19  Bruno Haible  <bruno@clisp.org>
20665
20666         * modules/bcopy (Depends-on): Add strings.
20667         (Include): Specify <strings.h>.
20668
20669 2008-10-19  Bruno Haible  <bruno@clisp.org>
20670
20671         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20672
20673 2008-10-19  Bruno Haible  <bruno@clisp.org>
20674
20675         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20676         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20677         mingw.
20678
20679 2008-10-19  Bruno Haible  <bruno@clisp.org>
20680
20681         * lib/atanl.c: Don't include isnanl.h.
20682         * lib/cosl.c: Likewise.
20683         * lib/ldexpl.c: Likewise.
20684         * lib/logl.c: Likewise.
20685         * lib/sinl.c: Likewise.
20686         * lib/sqrtl.c: Likewise.
20687         * lib/tanl.c: Likewise.
20688
20689         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20690         * lib/isnanf.h: Remove file.
20691         * lib/isnand.h: Remove file.
20692         * lib/isnanl.h: Remove file.
20693         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20694         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20695         macros.
20696         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20697         HAVE_ISNANF, don't define it as a C macro.
20698         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20699         HAVE_ISNAND, don't define it as a C macro.
20700         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20701         HAVE_ISNANL, don't define it as a C macro.
20702         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20703         HAVE_ISNAN[FDL].
20704         * modules/isnanf (Files): Remove lib/isnanf.h.
20705         (Depends-on): Add math.
20706         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20707         (Include): Specify <math.h> instead of isnanf.h.
20708         * modules/isnand (Files): Remove lib/isnand.h.
20709         (Depends-on): Add math.
20710         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20711         (Include): Specify <math.h> instead of isnand.h.
20712         * modules/isnanl (Files): Remove lib/isnanl.h.
20713         (Depends-on): Add math.
20714         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20715         (Include): Specify <math.h> instead of isnanl.h.
20716         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20717         HAVE_ISNAN[FDL].
20718         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20719         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20720         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20721         * NEWS: Mention the change.
20722
20723 2008-10-18  Bruno Haible  <bruno@clisp.org>
20724
20725         Add getusershell(), setusershell(), endusershell() declarations to
20726         <unistd.h>.
20727         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20728         declarations.
20729         * lib/getusershell.c: Include unistd.h.
20730         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20731         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20732         HAVE_GETUSERSHELL.
20733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20734         and HAVE_GETUSERSHELL.
20735         * modules/getusershell (Depends-on): Add unistd, extensions.
20736         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20737         (Include): Specify <unistd.h>.
20738         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20739         HAVE_GETUSERSHELL.
20740
20741 2008-10-18  Bruno Haible  <bruno@clisp.org>
20742
20743         Add a getloadavg() declaration to <stdlib.h>.
20744         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20745         getloadavg declaration.
20746         (getloadavg): New declaration.
20747         * lib/getloadavg.c: Include <stdlib.h> first.
20748         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20749         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20750         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20752         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20753         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20754         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20755         (Include): Specify <stdlib.h>.
20756         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20757         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20758
20759 2008-10-18  Bruno Haible  <bruno@clisp.org>
20760
20761         * lib/dirchownmod.c: Don't include lchmod.h.
20762
20763         Move the lchmod() declaration to <sys/stat.h>.
20764         * lib/lchmod.h: Remove file.
20765         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20766         (lchmod): New declaration, moved here from lib/lchown.h.
20767         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20768         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20769         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20770         and HAVE_LCHMOD.
20771         * modules/lchmod (Files): Remove lib/lchmod.h.
20772         (Depends-on): Add sys_stat, extensions.
20773         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20774         (Include): Specify <sys/stat.h> instead of lchmod.h.
20775         * modules/sys_stat (Depends-on): Add link-warning.
20776         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20777         definition of GL_LINK_WARNING.
20778         * NEWS: Mention the change.
20779
20780 2008-10-18  Bruno Haible  <bruno@clisp.org>
20781
20782         * lib/fchdir.c: Don't include dirfd.h.
20783         * lib/fts.c: Likewise.
20784         * lib/getcwd.c: Likewise.
20785         * lib/glob.c: Likewise.
20786
20787         Move the dirfd() declaration to <dirent.h>.
20788         * lib/dirfd.h: Remove file.
20789         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20790         (dirfd): New declaration.
20791         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20792         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20793         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20794         HAVE_DECL_DIRFD.
20795         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20796         HAVE_DECL_DIRFD.
20797         * modules/dirfd (Files): Remove lib/dirfd.h.
20798         (Depends-on): Add dirent, extensions.
20799         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20800         (Include): Specify <dirent.h> instead of dirfd.h.
20801         * modules/dirent (Depends-on): Add link-warning.
20802         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20803         definition of GL_LINK_WARNING.
20804         * NEWS: Mention the change.
20805
20806 2008-10-18  Bruno Haible  <bruno@clisp.org>
20807
20808         Move the euidaccess() declaration to <unistd.h>.
20809         * lib/euidaccess.h: Remove file.
20810         * lib/unistd.in.h (euidaccess): New declaration.
20811         * lib/euidaccess.c: Don't include euidaccess.h.
20812         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20813         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20815         and HAVE_EUIDACCESS.
20816         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20817         (Depends-on): Add unistd.
20818         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20819         (Include): Specify <unistd.h> instead of euidaccess.h.
20820         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20821         HAVE_EUIDACCESS.
20822         * NEWS: Mention the change.
20823
20824 2008-10-18  Bruno Haible  <bruno@clisp.org>
20825
20826         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20827
20828         Move the getdomainname() declaration to <unistd.h>.
20829         * lib/getdomainname.h: Remove file.
20830         * lib/unistd.in.h (getdomainname): New declaration.
20831         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20832         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20833         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20834         HAVE_GETDOMAINNAME.
20835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20836         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20837         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20838         (Depends-on): Add unistd, extensions.
20839         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20840         (Includes): Specify <unistd.h> instead of getdomainname.h.
20841         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20842         HAVE_GETDOMAINNAME.
20843         * NEWS: Mention the change.
20844
20845 2008-10-18  Bruno Haible  <bruno@clisp.org>
20846
20847         * modules/dirent: New file.
20848         * m4/dirent_h.m4: New file.
20849         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20850         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20851         * modules/fchdir (Files): Remove lib/dirent.in.h.
20852         (Depends-on): Add dirent.
20853         (Makefile.am): Move rules to modules/dirent.
20854         * doc/posix-headers/dirent.texi: Mention the new module.
20855
20856 2008-10-18  Bruno Haible  <bruno@clisp.org>
20857
20858         Avoid -Wunused-parameter warnings in public gnulib header files.
20859         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20860         macro.
20861         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20862
20863 2008-10-18  Bruno Haible  <bruno@clisp.org>
20864
20865         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20866         * doc/glibc-functions/error.texi: Mention the module 'error'.
20867         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20868         * doc/glibc-functions/getdomainname.texi: Mention the module
20869         'getdomainname'.
20870         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20871         * doc/glibc-functions/getpagesize.texi: Mention the module
20872         'getpagesize'.
20873         * doc/glibc-functions/getusershell.texi: Mention the module
20874         'getusershell'.
20875         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20876         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20877         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20878         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20879         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20880         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20881         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20882         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20883         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20884         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20885         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20886         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20887         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20888         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20889
20890 2008-10-17  Bruno Haible  <bruno@clisp.org>
20891
20892         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20893         HP-UX and IRIX, use -0.0L.
20894         * tests/test-ceill.c (minus_zero): Likewise.
20895         * tests/test-floorl.c (minus_zero): Likewise.
20896         * tests/test-frexpl.c (minus_zero): Likewise.
20897         * tests/test-isnan.c (minus_zerol): Likewise.
20898         * tests/test-isnanl.h (minus_zero): Likewise.
20899         * tests/test-ldexpl.c (minus_zero): Likewise.
20900         * tests/test-roundl.c (minus_zero): Likewise.
20901         * tests/test-signbit.c (minus_zerol): Likewise.
20902         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20903         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20904         * tests/test-truncl.c (minus_zero): Likewise.
20905         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20906         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20907         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20908         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20909
20910 2008-10-17  Bruno Haible  <bruno@clisp.org>
20911
20912         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20913         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20914         that it gets activated only for gcc >= 3.0.
20915         * lib/dirent.in.h: Likewise.
20916         * lib/errno.in.h: Likewise.
20917         * lib/fcntl.in.h: Likewise.
20918         * lib/float.in.h: Likewise.
20919         * lib/iconv.in.h: Likewise.
20920         * lib/inttypes.in.h: Likewise.
20921         * lib/locale.in.h: Likewise.
20922         * lib/math.in.h: Likewise.
20923         * lib/netdb.in.h: Likewise.
20924         * lib/netinet_in.in.h: Likewise.
20925         * lib/search.in.h: Likewise.
20926         * lib/signal.in.h: Likewise.
20927         * lib/spawn.in.h: Likewise.
20928         * lib/stdarg.in.h: Likewise.
20929         * lib/stdint.in.h: Likewise.
20930         * lib/stdio.in.h: Likewise.
20931         * lib/stdlib.in.h: Likewise.
20932         * lib/string.in.h: Likewise.
20933         * lib/strings.in.h: Likewise.
20934         * lib/sys_file.in.h: Likewise.
20935         * lib/sys_ioctl.in.h: Likewise.
20936         * lib/sys_select.in.h: Likewise.
20937         * lib/sys_socket.in.h: Likewise.
20938         * lib/sys_stat.in.h: Likewise.
20939         * lib/sys_time.in.h: Likewise.
20940         * lib/sysexits.in.h: Likewise.
20941         * lib/time.in.h: Likewise.
20942         * lib/unistd.in.h: Likewise.
20943         * lib/wchar.in.h: Likewise.
20944         * lib/wctype.in.h: Likewise.
20945         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20946
20947 2008-10-17  Jim Meyering  <meyering@redhat.com>
20948
20949         ignore-value: don't depend on inline module
20950         * modules/ignore-value (Depends-on): Remove 'inline'.
20951         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20952         Suggestion from Bruno Haible.
20953
20954 2008-10-17  Bruno Haible  <bruno@clisp.org>
20955
20956         New implementation of condition variables for Win32.
20957         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20958         (gl_linked_waitqueue_t): New type.
20959         (gl_cond_t): Use it.
20960         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20961         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20962         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20963         (glthread_cond_init_func, glthread_cond_wait_func,
20964         glthread_cond_timedwait_func, glthread_cond_signal_func,
20965         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20966         Reimplemented on the basis of gl_linked_waitqueue_t.
20967         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20968         gl_waitqueue_t.
20969         (gl_rwlock_t): Update.
20970         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20971
20972 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20973
20974         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20975         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20976
20977 2008-10-17  Jim Meyering  <meyering@redhat.com>
20978
20979         ignore-value: new module
20980         * modules/ignore-value: New file.
20981         * lib/ignore-value.h: New file.
20982         * MODULES.html.sh (Compiler warning management): New section,
20983         just for this module.  More to come.
20984
20985 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20986
20987         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20988         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20989         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20990
20991 2008-10-16  Jim Meyering  <meyering@redhat.com>
20992
20993         openat-die.c: avoid 'no previous prototype' warning
20994         * lib/openat-die.c: Include "openat.h".
20995         Reported by Reuben Thomas <rrt@sc3d.org>.
20996
20997 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20998
20999         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
21000         * lib/netdb.in.h: Fix typo.
21001         Reported by Bruno Haible  <bruno@clisp.org>
21002
21003         * lib/netdb.in.h: Include sys/socket.h for platforms without
21004         netdb.h, to get structures like hostent on MinGW.
21005         * modules/netdb (Depends-on): Add sys_socket.
21006
21007 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21008
21009         * modules/netdb, modules/netdb-tests: New file.
21010         * m4/netdb_h.m4: New file.
21011         * lib/netdb.in.h: Add, currently just an empty file pending
21012         definitions.
21013         * tests/test-netdb.c: New file.
21014         * doc/posix-headers/netdb.texi: Mention that we replace it if
21015         needed.
21016         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21017         netdb.
21018
21019 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21020
21021         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
21022         with code.
21023
21024 2008-10-13  Bruno Haible  <bruno@clisp.org>
21025
21026         * lib/glthread/cond.c (glthread_cond_wait_func,
21027         glthread_cond_timedwait_func): Add a comment.
21028
21029 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21030
21031         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
21032         * tests/test-select.c: Likewise,
21033
21034 2008-10-13  Bruno Haible  <bruno@clisp.org>
21035
21036         * lib/glthread/cond.c (glthread_cond_wait_func,
21037         glthread_cond_timedwait_func): Fix variable name.
21038         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21039
21040 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
21041
21042         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
21043         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
21044         struct sockaddr.sa_len.
21045         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
21046
21047 2008-10-13  Simon Josefsson  <simon@josefsson.org>
21048
21049         * build-aux/pmccabe2html: Add css and css_url parameters.
21050
21051 2008-10-12  Bruno Haible  <bruno@clisp.org>
21052
21053         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
21054         calling aclx_get.
21055         Reported by Rainer Tammer <tammer@tammer.net>.
21056
21057 2008-10-12  Bruno Haible  <bruno@clisp.org>
21058
21059         Use msvcrt aware primitives for creation/termination of Win32 threads.
21060         * lib/glthread/thread.c: Include <process.h>.
21061         (glthread_create_func): Use _beginthreadex instead of CreateThread.
21062         (wrapper_func): Update signature.
21063         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
21064
21065 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21066             Bruno Haible  <bruno@clisp.org>
21067
21068         Provide a Win32 implementation of the 'cond' module.
21069         * lib/glthread/cond.h [USE_WIN32]: New implementation.
21070         * lib/glthread/cond.c (glthread_cond_init_func,
21071         glthread_cond_wait_func, glthread_cond_timedwait_func,
21072         glthread_cond_signal_func, glthread_cond_broadcast_func,
21073         glthread_cond_destroy_func) [USE_WIN32]: New functions.
21074         * modules/cond (Dependencies): Add gettimeofday.
21075
21076 2008-10-11  Bruno Haible  <bruno@clisp.org>
21077
21078         Make sleep work on older versions of mingw.
21079         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
21080         only whether it exists.
21081         * doc/posix-functions/sleep.texi: Mention the problem with older
21082         versions of mingw.
21083
21084 2008-10-11  Bruno Haible  <bruno@clisp.org>
21085
21086         New module 'shutdown'.
21087         * modules/shutdown: New file.
21088         * lib/sys_socket.in.h (shutdown): New declaration.
21089         * lib/winsock.c (shutdown): New function.
21090         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21091         GNULIB_SHUTDOWN.
21092         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21093         * doc/posix-functions/shutdown.texi: Document the new module.
21094
21095 2008-10-11  Jim Meyering  <meyering@redhat.com>
21096
21097         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21098
21099 2008-10-11  Bruno Haible  <bruno@clisp.org>
21100
21101         New module 'fclose'.
21102         * modules/fclose: New file.
21103         * lib/stdio.in.h (fclose): New declaration.
21104         * lib/fclose.c: New file.
21105         * m4/fclose.m4: New file.
21106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21107         REPLACE_FCLOSE.
21108         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21109         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21110         REPLACE_FCLOSE.
21111         * modules/close (Depends-on): fclose.
21112         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21113
21114 2008-10-11  Bruno Haible  <bruno@clisp.org>
21115
21116         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21117         set errno and don't call _close.
21118
21119 2008-10-10  Bruno Haible  <bruno@clisp.org>
21120
21121         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21122         ACL, not afterwards. Fixes test failure on Cygwin.
21123
21124 2008-10-09  Ben Pfaff  <blp@gnu.org>
21125
21126         * build-aux/announce-gen: Fix gnulib version related part of usage
21127         message.  Die with a useful error message if no tarballs are
21128         found.
21129
21130 2008-10-10  Jim Meyering  <meyering@redhat.com>
21131
21132         bootstrap: use git's --depth=N option only if it's supported
21133         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21134         recognize the --depth option.  Reported by Pádraig Brady.
21135
21136 2008-10-09  Bruno Haible  <bruno@clisp.org>
21137
21138         New module 'ioctl'.
21139         * modules/ioctl: New file.
21140         * lib/sys_socket.in.h (ioctl): Remove declaration.
21141         * lib/winsock.c: Include <sys/ioctl.h>.
21142         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21143         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21144         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21145         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21146         * doc/posix-functions/ioctl.texi: Mention the new module.
21147
21148 2008-10-09  Bruno Haible  <bruno@clisp.org>
21149
21150         New module 'sys_ioctl'.
21151         * lib/sys_ioctl.in.h: New file.
21152         * m4/sys_ioctl_h.m4: New file.
21153         * modules/sys_ioctl: New file.
21154         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21155
21156 2008-10-09  Bruno Haible  <bruno@clisp.org>
21157
21158         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21159         * lib/winsock.c: Include <stdarg.h>.
21160         (rpl_ioctl): Change to second argument 'int' and then varargs.
21161
21162 2008-10-09  Bruno Haible  <bruno@clisp.org>
21163
21164         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21165         when the sys_socket module is present and the system has <winsock2.h>.
21166
21167 2008-10-09  Bruno Haible  <bruno@clisp.org>
21168
21169         * doc/posix-functions/close.texi: Mention module 'close' instead of
21170         module 'sys_socket'.
21171
21172 2008-10-09  Bruno Haible  <bruno@clisp.org>
21173
21174         * doc/glibc-headers/sys_ioctl.texi: New file.
21175         * doc/gnulib.texi: Include it.
21176
21177 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21178             Bruno Haible  <bruno@clisp.org>
21179
21180         Combine the two replacements of 'close'.
21181         * lib/sys_socket.in.h (close): Define to a reminder to include
21182         <unistd.h>.
21183         (_gl_close_fd_maybe_socket): New declaration.
21184         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21185         * lib/winsock.c (close): Remove undefinition.
21186         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21187         needed for the gnulib module 'close'.
21188         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21189         define to an error symbol or to a warning, if suitable.
21190         * lib/close.c: Include <sys/socket.h>.
21191         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21192         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21193         UNISTD_H_HAVE_WINSOCK2_H.
21194         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21196         UNISTD_H_HAVE_WINSOCK2_H.
21197         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21198         (configure.ac): Set a module indicator.
21199         (Makefile.am): Substitute GNULIB_CLOSE.
21200         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21201         * modules/poll-tests (Depends-on): Add close.
21202         * modules/select-tests (Depends-on): Likewise.
21203
21204 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21205             Bruno Haible  <bruno@clisp.org>
21206
21207         New module 'close'.
21208         * modules/close: New file.
21209         * lib/unistd.in.h (close): Move declaration out of the
21210         FCHDIR_REPLACEMENT scope.
21211         (_gl_unregister_fd): New declaration.
21212         * lib/close.c: New file.
21213         * lib/fchdir.c (rpl_close): Remove function.
21214         * m4/close.m4: New file.
21215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21216         close.
21217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21218         REPLACE_CLOSE.
21219         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21220         REPLACE_CLOSE.
21221         * modules/fchdir (Depends-on): Add close.
21222
21223 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21224             Bruno Haible  <bruno@clisp.org>
21225
21226         * lib/fcntl.in.h (open): Simplify conditionals.
21227         (_gl_register_fd): New declaration.
21228         * lib/fchdir.c (rpl_open): Remove function.
21229         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21230         also.
21231         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21233         open.
21234
21235 2008-10-09  Jim Meyering  <meyering@redhat.com>
21236
21237         GNUmakefile: use the more name-space-friendly "_version"
21238         * top/GNUmakefile (_dummy): Update.
21239         (_version): Rename from "version".
21240
21241 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21242             Bruno Haible  <bruno@clisp.org>
21243
21244         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21245         rpl_close.
21246         (_gl_register_fd): New function, extracted from rpl_open.
21247         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21248         (rpl_open, rpl_opendir): Use _gl_register_fd.
21249
21250 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21251
21252         Fix organization of 'open' replacement.
21253         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21254         (gl_FUNC_OPEN): Use it.
21255         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21256
21257 2008-10-08  Bruno Haible  <bruno@clisp.org>
21258
21259         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21260
21261 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21262
21263         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21264         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21265         listen).
21266
21267 2008-10-08  Eric Blake  <ebb9@byu.net>
21268
21269         GNUmakefile: add 'make version' target
21270         * top/GNUmakefile (_curr-ver): Split version update rules...
21271         (version): ...into a target.
21272
21273 2008-10-07  Bruno Haible  <bruno@clisp.org>
21274
21275         Use a more portable replacement expression for -0.0L.
21276         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21277         instead of -0.0L. Fix m4 quotation.
21278
21279         * tests/test-signbit.c: Include <float.h>.
21280         (minus_zero): New variable.
21281         (test_signbitl): Use minus_zero instead of -zero.
21282         * modules/signbit-tests (Depends-on): Add float.
21283
21284         * tests/test-ceill.c: Include <float.h>.
21285         (zero): Remove variable.
21286         (minus_zero): New variable.
21287         (main): Use minus_zero instead of -zero.
21288         * modules/ceill-tests (Depends-on): Add float.
21289
21290         * tests/test-floorl.c: Include <float.h>.
21291         (zero): Remove variable.
21292         (minus_zero): New variable.
21293         (main): Use minus_zero instead of -zero.
21294         * modules/floorl-tests (Depends-on): Add float.
21295
21296         * tests/test-roundl.c: Include <float.h>.
21297         (zero): Remove variable.
21298         (minus_zero): New variable.
21299         (main): Use minus_zero instead of -zero.
21300         * modules/roundl-tests (Depends-on): Add float.
21301
21302         * tests/test-truncl.c: Include <float.h>.
21303         (zero): Remove variable.
21304         (minus_zero): New variable.
21305         (main): Use minus_zero instead of -zero.
21306         * modules/truncl-tests (Depends-on): Add float.
21307
21308         * tests/test-frexpl.c (zero): Remove variable.
21309         (minus_zero): New variable.
21310         (main): Use minus_zero instead of -zero.
21311         * modules/frexpl-tests (Depends-on): Add float.
21312
21313         * tests/test-isnan.c (zerol): Remove variable.
21314         (minus_zerol): New variable.
21315         (test_long_double): Use minus_zerol instead of -zerol.
21316         * modules/isnan-tests (Depends-on): Add float.
21317
21318         * tests/test-isnanl.h (zero): Remove variable.
21319         (minus_zero): New variable.
21320         (main): Use minus_zero instead of -zero.
21321         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21322         * modules/isnanl-tests (Depends-on): Add float.
21323
21324         * tests/test-ldexpl.c (zero): Remove variable.
21325         (minus_zero): New variable.
21326         (main): Use minus_zero instead of -zero.
21327         * modules/ldexpl-tests (Depends-on): Add float.
21328
21329         * tests/test-snprintf-posix.h (zerol): Remove variable.
21330         (minus_zerol): New variable.
21331         (test_function): Use minus_zerol instead of -zerol.
21332         * modules/snprintf-posix-tests (Depends-on): Add float.
21333         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21334
21335         * tests/test-sprintf-posix.h (zerol): Remove variable.
21336         (minus_zerol): New variable.
21337         (test_function): Use minus_zerol instead of -zerol.
21338         * modules/sprintf-posix-tests (Depends-on): Add float.
21339         * modules/vsprintf-posix-tests (Depends-on): Add float.
21340
21341         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21342         (minus_zerol): New variable.
21343         (test_function): Use minus_zerol instead of -zerol.
21344         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21345
21346         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21347         (minus_zerol): New variable.
21348         (test_function): Use minus_zerol instead of -zerol.
21349         * modules/vasprintf-posix-tests (Depends-on): Add float.
21350
21351 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21352
21353         * MODULES.html.sh (Support for building documentation): Mention
21354         pmccabe2html.  Sort entries.
21355
21356         Add pmccabe2html module, from gnupdf.
21357         * build-aux/pmccabe.css: New file.
21358         * build-aux/pmccabe2html: New file.
21359         * m4/pmccabe2html.m4: New file.
21360         * modules/pmccabe2html: New file.
21361
21362 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21363
21364         flock: new module
21365         * MODULES.html.sh: Add to list of modules.
21366         * lib/flock.c: flock implementation for Windows and Unix systems
21367         which have fcntl.
21368         * doc/glibc-functions/flock.texi: Update documentation.
21369         * lib/sys_file.in.h: <sys/file.h> header file.
21370         * m4/flock.m4: M4 macros.
21371         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21372         * modules/flock: flock module.
21373         * modules/flock-tests: flock tests module.
21374         * modules/sys_file: sys/file.h module.
21375         * tests/test-flock.c: test suite for flock.
21376
21377 2008-10-06  Jim Meyering  <meyering@redhat.com>
21378
21379         bootstrap: check for LT_INIT more portably still ;-)
21380         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21381         Spotted by Bruno Haible.
21382
21383 2008-10-06  Eric Blake  <ebb9@byu.net>
21384
21385         test-signbit: avoid tripping Irix cc bug on -0.0L
21386         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21387         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21388         entire testsuite consistent and avoids an Irix 6.2 bug.
21389
21390 2008-10-05  Bruno Haible  <bruno@clisp.org>
21391             Jim Meyering  <jim@meyering.net>
21392
21393         Add an option for ignoring EPIPE during close_stdout.
21394         * lib/closeout.h: Include <stdbool.h>.
21395         (close_stdout_set_ignore_EPIPE): New declaration.
21396         * lib/closeout.c: Include <stdbool.h>.
21397         (ignore_EPIPE): New variable.
21398         (close_stdout_set_ignore_EPIPE): New function.
21399         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21400         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21401         failure.
21402         * modules/closeout (Depends-on): Add stdbool.
21403
21404 2008-10-05  Bruno Haible  <bruno@clisp.org>
21405
21406         * modules/accept: New file.
21407         * modules/bind: New file.
21408         * modules/connect: New file.
21409         * modules/getpeername: New file.
21410         * modules/getsockname: New file.
21411         * modules/getsockopt: New file.
21412         * modules/listen: New file.
21413         * modules/recv: New file.
21414         * modules/recvfrom: New file.
21415         * modules/send: New file.
21416         * modules/sendto: New file.
21417         * modules/setsockopt: New file.
21418         * modules/socket: New file.
21419         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21420         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21421         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21422         the particular module is requested. Add a link warning when the
21423         particular module is not requested.
21424         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21425         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21426         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21427         the particular module is requested.
21428         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21429         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21430         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21431         * modules/sys_socket (Depends-on): Add link-warning.
21432         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21433         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21434         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21435         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21436         GL_LINK_WARNING.
21437         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21438         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21439         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21440         * doc/posix-functions/getpeername.texi: Mention the new module
21441         'getpeername'.
21442         * doc/posix-functions/getsockname.texi: Mention the new module
21443         'getsockname'.
21444         * doc/posix-functions/getsockopt.texi: Mention the new module
21445         'getsockopt'.
21446         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21447         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21448         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21449         * doc/posix-functions/send.texi: Mention the new module 'send'.
21450         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21451         * doc/posix-functions/setsockopt.texi: Mention the new module
21452         'setsockopt'.
21453         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21454         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21455         listen, connect, accept.
21456         * modules/select-tests (Depends-on): Likewise.
21457
21458 2008-10-05  Bruno Haible  <bruno@clisp.org>
21459
21460         * lib/winsock.c (strerror): Remove unused #undef.
21461         (rpl_close): Remove unused local variable.
21462
21463         * modules/sys_socket (Depends-on); Add errno.
21464
21465 2008-10-05  Bruno Haible  <bruno@clisp.org>
21466
21467         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21468         (select): Add a link warning when the 'select' module is not used.
21469         * modules/sys_select (Depends-on): Add link-warning.
21470         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21471         Suggested by Paolo Bonzini.
21472
21473 2008-10-05  Jim Meyering  <meyering@redhat.com>
21474
21475         bootstrap: check for LT_INIT more portably
21476         * build-aux/bootstrap: Avoid using grep -E, since it's not
21477         portable enough.  Suggestion from Bruno Haible.
21478
21479 2008-10-05  Bruno Haible  <bruno@clisp.org>
21480
21481         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21482         as being fixed by gnulib.
21483
21484 2008-10-05  Bruno Haible  <bruno@clisp.org>
21485
21486         * modules/select-tests: New file, mostly copied from
21487         modules/sys_select-tests.
21488         * tests/test-select.c: New file, mostly copied from
21489         tests/test-sys_select.c.
21490         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21491         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21492         (Makefile.am): Remove test_sys_select_LDADD.
21493
21494         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21495         to an undefined symbol, for an error message.
21496         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21497         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21498         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21499         winsock-select.c here.
21500         * modules/sys_select (Files): Remove lib/winsock-select.c.
21501         (Depends-on): Remove alloca.
21502         (Makefile.am): Substitute GNULIB_SELECT.
21503         * modules/select: New file.
21504         * doc/posix-functions/select.texi: Update.
21505
21506 2008-10-05  Bruno Haible  <bruno@clisp.org>
21507
21508         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21509         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21510         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21511         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21512         getdtablesize.
21513         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21514         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21515
21516 2008-10-05  Bruno Haible  <bruno@clisp.org>
21517
21518         * modules/getdtablesize-tests: New file.
21519         * tests/test-getdtablesize.c: New file.
21520
21521         New module 'getdtablesize'.
21522         * lib/unistd.in.h (getdtablesize): New declaration.
21523         * lib/getdtablesize.c: New file.
21524         * m4/getdtablesize.m4: New file.
21525         * modules/getdtablesize: New file.
21526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21527         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21528         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21529         HAVE_GETDTABLESIZE.
21530         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21531
21532 2008-10-05  Bruno Haible  <bruno@clisp.org>
21533
21534         * modules/sched (Makefile.am): Fix typo.
21535         Reported by Simon Josefsson.
21536
21537 2008-10-05  Jim Meyering  <meyering@redhat.com>
21538
21539         bootstrap: check for LT_INIT, too
21540         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21541         are deprecated.  Suggestion from Ralf Wildenhues.
21542
21543 2008-10-05  Bruno Haible  <bruno@clisp.org>
21544
21545         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21546         overriding them by ours.
21547         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21548
21549 2008-10-05  Jim Meyering  <meyering@redhat.com>
21550
21551         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21552         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21553         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21554
21555 2008-10-04  Bruno Haible  <bruno@clisp.org>
21556
21557         * modules/dup2 (License): Change to LGPLv2+.
21558         * modules/sleep (License): Likewise.
21559         * modules/perror (License): Likewise.
21560         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21561         Blake.
21562         * modules/signal (License): Likewise.
21563         * modules/sigprocmask (License): Likewise.
21564         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21565         Meyering.
21566
21567 2008-10-04  Bruno Haible  <bruno@clisp.org>
21568
21569         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21570         Reported by Rainer Tammer <tammer@tammer.net>.
21571
21572 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21573             Bruno Haible  <bruno@clisp.org>
21574
21575         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21576         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21577         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21578
21579 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21580
21581         filevercmp: new module
21582         * lib/filevercmp.h: New function filevercmp comparing version strings.
21583         * lib/filevercmp.c: Implementation of filevercmp function.
21584         * modules/filevercmp: Module metadata.
21585         * tests/test-filevercmp.c: Unit test for new module.
21586         * modules/filevercmp-tests: Unit test metadata.
21587         * MODULES.html.sh: Add filevercmp module.
21588
21589 2008-10-03  Bruno Haible  <bruno@clisp.org>
21590
21591         * lib/c-ctype.h: Add comment.
21592         Reported by Jim Meyering.
21593
21594 2008-10-02  Bruno Haible  <bruno@clisp.org>
21595
21596         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21597
21598 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21599
21600         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21601         name of bootstrap.conf accordingly.
21602
21603 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21604
21605         * build-aux/bootstrap: Install git-merge-changelog configuration
21606         items into .gitconfig if needed.
21607
21608 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21609
21610         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21611         git repository, and initialize/update it accordingly.
21612
21613 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21614
21615         * modules/fsync-tests: New file.
21616         * tests/test-fsync.c: New file.
21617
21618         New module 'fsync'.
21619         * lib/fsync.c: New file.
21620         * m4/fsync.m4: New file.
21621         * modules/fsync: New file.
21622         * lib/unistd.in.h (fsync): New declaration.
21623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21624         GNULIB_FSYNC and HAVE_FSYNC.
21625         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21626         * MODULES.html.sh (posix_functions): Add fsync.
21627         * doc/posix-functions/fsync.texi: Mention the new module.
21628
21629 2008-10-02  Jim Meyering  <meyering@redhat.com>
21630
21631         fts.c: sync with similar code from coreutils' remove.c
21632         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21633         Guard also with "#if defined __linux__", since for now at least,
21634         this code is Linux-kernel-specific.
21635
21636 2008-10-02  Jim Meyering  <meyering@redhat.com>
21637
21638         fts: bug fixes
21639         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21640         Include <sys/vfs.h>, not <sys/statfs.h>.
21641
21642         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21643         Include <sys/vfs.h>, not <sys/statfs.h>.
21644
21645 2008-10-01  Bruno Haible  <bruno@clisp.org>
21646
21647         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21648         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21649         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21650         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21651         * doc/posix-functions/posix_spawnp.texi: Likewise.
21652         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21653         whether posix_spawn actually works.
21654         * m4/pipe.m4 (gl_PIPE): Likewise.
21655         * modules/execute (Files): Add m4/posix_spawn.m4.
21656         * modules/pipe (Files): Add m4/posix_spawn.m4.
21657         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21658
21659 2008-10-01  Jim Meyering  <meyering@redhat.com>
21660
21661         remove trailing spaces
21662         * NEWS: Likewise.
21663         * lib/poll.c (poll): Likewise.
21664         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21665         * lib/winsock.c (rpl_close): Likewise.
21666         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21667         * modules/yield: Likewise.
21668         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21669         * tests/test-sys_select.c (connect_to_socket): Likewise.
21670
21671         fts.c: adjust a new interface to be more generally useful
21672         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21673         (fts_build): Adjust caller.
21674
21675 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21676
21677         * modules/cond-tests: New file.
21678         * tests/test-cond.c: New file.
21679
21680 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21681             Bruno Haible  <bruno@clisp.org>
21682
21683         * modules/cond (Dependencies): Add errno, time.
21684         * lib/glthread/cond.h: Include <time.h>.
21685         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21686         across platforms.
21687
21688 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21689             Bruno Haible  <bruno@clisp.org>
21690
21691         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21692
21693 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21694             Bruno Haible  <bruno@clisp.org>
21695
21696         * modules/tls-tests (Depends-on): Add thread, yield.
21697         (configure.ac): Remove all checks.
21698         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21699         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21700         gl_thread_self): Remove definitions. Include glthread/thread.h and
21701         glthread/yield.h instead.
21702         (test_tls): Pass an additional NULL argument to gl_thread_join.
21703
21704 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21705             Bruno Haible  <bruno@clisp.org>
21706
21707         * modules/lock-tests (Depends-on): Add thread, yield.
21708         (configure.ac): Remove all checks.
21709         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21710         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21711         gl_thread_self): Remove definitions. Include glthread/thread.h and
21712         glthread/yield.h instead.
21713         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21714         additional NULL argument to gl_thread_join.
21715
21716 2008-09-30  Bruno Haible  <bruno@clisp.org>
21717
21718         Fix the Win32 implementation of the 'thread' module.
21719         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21720         pointer type.
21721         (gl_thread_self): Invoke gl_thread_self_func.
21722         (gl_thread_self_func): New declaration.
21723         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21724         (do_init_self_key, init_self_key): New functions.
21725         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21726         Remove some fields.
21727         (running_threads, running_lock): Remove variables.
21728         (get_current_thread_handle): New function.
21729         (gl_thread_self_func, wrapper_func, glthread_create_func,
21730         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21731         simplified.
21732
21733 2008-09-30  Bruno Haible  <bruno@clisp.org>
21734
21735         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21736         files.
21737
21738 2008-09-30  Jim Meyering  <meyering@redhat.com>
21739
21740         fts.m4: correct the test for statfs.f_type
21741         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21742         when checking for statfs.f_type.
21743
21744 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21745
21746         tests: avoid some compiler warnings
21747         * tests/test-memchr.c (main): Pass NULL indirectly.
21748         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21749
21750 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
21751
21752         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21753         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21754         exactly specified dayshifts.
21755         (dayshift): New rule.
21756         (rel): Add dayshift.
21757         (relative_time_table) [tomorrow, yesterday, today, now]:
21758         Use tDAY_SHIFT in place of tDAY_UNIT.
21759         * tests/test-getdate.c: Add tests for now-disallowed countable
21760         dayshifts, e.g., "4 yesterday ago".
21761
21762 2008-09-29  Bruno Haible  <bruno@clisp.org>
21763
21764         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21765         * tests/test-posix_spawn1.in.sh: Renamed from
21766         tests/test-posix_spawn.in.sh.
21767         * tests/test-posix_spawn2.c: New file.
21768         * tests/test-posix_spawn2.in.sh: New file.
21769         * modules/posix_spawnp-tests (Files): Update.
21770         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21771
21772 2008-09-29  Bruno Haible  <bruno@clisp.org>
21773
21774         Propagate effects of putenv/setenv/unsetenv to child processes.
21775         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21776         * lib/pipe.c (create_pipe): Likewise.
21777
21778 2008-09-29  Bruno Haible  <bruno@clisp.org>
21779
21780         Enable use of shell scripts as executables in mingw.
21781         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21782         run the program as a shell script.
21783         * lib/pipe.c (create_pipe): Likewise.
21784         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21785         resulting array.
21786
21787 2008-09-29  Eric Blake  <ebb9@byu.net>
21788
21789         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21790
21791 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21792
21793         * doc/posix-functions/accept.texi: Update mingw problems.
21794         * doc/posix-functions/bind.texi: Update mingw problems.
21795         * doc/posix-functions/close.texi: Update mingw problems.
21796         * doc/posix-functions/connect.texi: Update mingw problems.
21797         * doc/posix-functions/getpeername.texi: Update mingw problems.
21798         * doc/posix-functions/getsockname.texi: Update mingw problems.
21799         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21800         * doc/posix-functions/ioctl.texi: Update mingw problems.
21801         * doc/posix-functions/listen.texi: Update mingw problems.
21802         * doc/posix-functions/recv.texi: Update mingw problems.
21803         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21804         * doc/posix-functions/select.texi: Update mingw problems.
21805         * doc/posix-functions/send.texi: Update mingw problems.
21806         * doc/posix-functions/sendto.texi: Update mingw problems.
21807         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21808         * doc/posix-functions/socket.texi: Update mingw problems.
21809
21810 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21811             Bruno Haible  <bruno@clisp.org>
21812
21813         * lib/sys_select.in.h: Include sys/time.h.
21814         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21815         * modules/sys_select: Depend on sys_time.
21816         * tests/test-sys_select.c: Test that sys/select.h defines struct
21817         timeval fully.
21818
21819 2008-09-29  Bruno Haible  <bruno@clisp.org>
21820
21821         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21822         * lib/sys_select.in.h: Likewise.
21823
21824 2008-09-29  Bruno Haible  <bruno@clisp.org>
21825
21826         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21827
21828 2008-09-29  Bruno Haible  <bruno@clisp.org>
21829
21830         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21831         Set LIBSOCKET instead of augmenting LIBS.
21832         * modules/sockets (Link): New section.
21833         * modules/sockets-tests (test_sockets_LDADD): New variable.
21834         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21835         * modules/poll-tests (test_poll_LDADD): New variable.
21836         * NEWS: Document the change.
21837
21838 2008-09-29  Bruno Haible  <bruno@clisp.org>
21839
21840         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21841         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21842         ARPA_INET_H directly.
21843         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21844
21845 2008-09-28  Bruno Haible  <bruno@clisp.org>
21846
21847         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21848         from gl_HEADER_SYS_SOCKET.
21849         (gl_HEADER_SYS_SOCKET): Invoke it.
21850         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21851
21852 2008-09-28  Bruno Haible  <bruno@clisp.org>
21853
21854         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21855         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21856         Needed on OSF/1 4.0.
21857
21858 2008-09-28  Bruno Haible  <bruno@clisp.org>
21859
21860         Override open more carefully.
21861         * lib/open.c (orig_open): New function.
21862         (rpl_open): Use orig_open instead of open.
21863         * lib/fcntl.in.h: Add special invocation convention.
21864         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21865         (gl_FUNC_OPEN): Invoke it.
21866
21867         Override freopen more carefully.
21868         * lib/freopen.c (orig_freopen): New function.
21869         (rpl_freopen): Use orig_freopen instead of freopen.
21870         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21871         (gl_FUNC_FREOPEN): Invoke it.
21872
21873         Override fopen more carefully.
21874         * lib/fopen.c (orig_fopen): New function.
21875         (rpl_fopen): Use orig_fopen instead of fopen.
21876         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21877         (gl_FUNC_FOPEN): Invoke it.
21878         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21879
21880 2008-09-28  Bruno Haible  <bruno@clisp.org>
21881
21882         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21883         SIGPIPE.
21884
21885 2008-09-28  Bruno Haible  <bruno@clisp.org>
21886
21887         * tests/test-sigaction.c (handler, main): Disable the check whether
21888         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21889         glibc systems with LinuxThreads.
21890
21891 2008-09-28  Bruno Haible  <bruno@clisp.org>
21892
21893         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21894
21895         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21896         with AIX xlc.
21897         * lib/fcntl.in.h (open): Likewise.
21898         Reported by Rainer Tammer <tammer@tammer.net>.
21899
21900 2008-09-28  Bruno Haible  <bruno@clisp.org>
21901
21902         * modules/posix_spawnp-tests: New file.
21903         * tests/test-posix_spawn.c: New file.
21904         * tests/test-posix_spawn.in.sh: New file.
21905
21906         New module 'posix_spawnp'.
21907         * modules/posix_spawnp: New file.
21908         * lib/spawnp.c: New file, from GNU libc with modifications.
21909         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21910
21911         New module 'posix_spawn'.
21912         * modules/posix_spawn: New file.
21913         * lib/spawn.c: New file, from GNU libc with modifications.
21914         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21915
21916         New module 'posix_spawnattr_destroy'.
21917         * modules/posix_spawnattr_destroy: New file.
21918         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21919         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21920         module.
21921
21922         New module 'posix_spawnattr_setsigmask'.
21923         * modules/posix_spawnattr_setsigmask: New file.
21924         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21925         modifications.
21926         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21927         new module.
21928
21929         New module 'posix_spawnattr_getsigmask'.
21930         * modules/posix_spawnattr_getsigmask: New file.
21931         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21932         modifications.
21933         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21934         new module.
21935
21936         New module 'posix_spawnattr_setsigdefault'.
21937         * modules/posix_spawnattr_setsigdefault: New file.
21938         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21939         modifications.
21940         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21941         new module.
21942
21943         New module 'posix_spawnattr_getsigdefault'.
21944         * modules/posix_spawnattr_getsigdefault: New file.
21945         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21946         modifications.
21947         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21948         new module.
21949
21950         New module 'posix_spawnattr_setschedpolicy'.
21951         * modules/posix_spawnattr_setschedpolicy: New file.
21952         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21953         modifications.
21954         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21955         new module.
21956
21957         New module 'posix_spawnattr_getschedpolicy'.
21958         * modules/posix_spawnattr_getschedpolicy: New file.
21959         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21960         modifications.
21961         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21962         new module.
21963
21964         New module 'posix_spawnattr_setschedparam'.
21965         * modules/posix_spawnattr_setschedparam: New file.
21966         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21967         modifications.
21968         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21969         new module.
21970
21971         New module 'posix_spawnattr_getschedparam'.
21972         * modules/posix_spawnattr_getschedparam: New file.
21973         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21974         modifications.
21975         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21976         new module.
21977
21978         New module 'posix_spawnattr_setpgroup'.
21979         * modules/posix_spawnattr_setpgroup: New file.
21980         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21981         modifications.
21982         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21983         module.
21984
21985         New module 'posix_spawnattr_getpgroup'.
21986         * modules/posix_spawnattr_getpgroup: New file.
21987         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21988         modifications.
21989         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21990         module.
21991
21992         New module 'posix_spawnattr_setflags'.
21993         * modules/posix_spawnattr_setflags: New file.
21994         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21995         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21996         module.
21997
21998         New module 'posix_spawnattr_getflags'.
21999         * modules/posix_spawnattr_getflags: New file.
22000         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
22001         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
22002         module.
22003
22004         New module 'posix_spawnattr_init'.
22005         * modules/posix_spawnattr_init: New file.
22006         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
22007         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
22008         module.
22009
22010         New module 'posix_spawn_file_actions_destroy'.
22011         * modules/posix_spawn_file_actions_destroy: New file.
22012         * lib/spawn_faction_destroy.c: New file, from GNU libc with
22013         modifications.
22014         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
22015         the new module.
22016
22017         New module 'posix_spawn_file_actions_addopen'.
22018         * modules/posix_spawn_file_actions_addopen: New file.
22019         * lib/spawn_faction_addopen.c: New file, from GNU libc with
22020         modifications.
22021         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22022         the new module.
22023
22024         New module 'posix_spawn_file_actions_adddup2'.
22025         * modules/posix_spawn_file_actions_adddup2: New file.
22026         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
22027         modifications.
22028         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22029         the new module.
22030
22031         New module 'posix_spawn_file_actions_addclose'.
22032         * modules/posix_spawn_file_actions_addclose: New file.
22033         * lib/spawn_faction_addclose.c: New file, from GNU libc with
22034         modifications.
22035         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22036         the new module.
22037
22038         New module 'posix_spawn_file_actions_init'.
22039         * modules/posix_spawn_file_actions_init: New file.
22040         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
22041         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
22042         new module.
22043
22044         New module 'posix_spawn-internal'.
22045         * modules/posix_spawn-internal: New file.
22046         * lib/spawn_int.h: New file, from GNU libc with modifications.
22047         * lib/spawni.c: New file, from GNU libc with modifications.
22048         * m4/posix_spawn.m4: New file.
22049
22050         New module 'spawn'.
22051         * modules/spawn: New file.
22052         * lib/spawn.in.h: New file, from GNU libc with modifications.
22053         * m4/spawn_h.m4: New file.
22054         * doc/posix-headers/spawn.texi: Mention the new module.
22055
22056 2008-09-28  Bruno Haible  <bruno@clisp.org>
22057
22058         * modules/sched-tests: New file.
22059         * tests/test-sched.c: New file.
22060
22061         New module 'sched'.
22062         * modules/sched: New file.
22063         * lib/sched.in.h: New file.
22064         * m4/sched_h.m4: New file.
22065         * doc/posix-headers/sched.texi: Mention the new module.
22066
22067 2008-09-27  Eric Blake  <ebb9@byu.net>
22068
22069         Fix previous patch, and tweak references to $0.
22070         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
22071         (func_version, func_gnulib_dir): Don't call this program
22072         gnulib-tool.
22073         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
22074         with using $0 in function.
22075         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
22076         (func_fatal_error): Reuse the name the user invoked us with.
22077
22078 2008-09-27  Bruno Haible  <bruno@clisp.org>
22079
22080         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
22081         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
22082         (gl_ICONV_H): Not here.
22083         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22084         instead of assigning ICONV_H directly.
22085
22086         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
22087         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
22088         WCHAR_H directly.
22089
22090 2008-09-27  Bruno Haible  <bruno@clisp.org>
22091
22092         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22093         * modules/arpa_inet (Depends-on): Add link-warning.
22094         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22095         * modules/unistd (Makefile.am): Likewise.
22096
22097 2008-09-26  Bruno Haible  <bruno@clisp.org>
22098
22099         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22100         variables.
22101         (func_version): Essentially copied from gnulib-tool.
22102         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22103         func_readlink): Copied from gnulib-tool.
22104
22105 2008-09-26  Bruno Haible  <bruno@clisp.org>
22106
22107         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22108         invoking git-version-gen.
22109
22110 2008-09-26  Bruno Haible  <bruno@clisp.org>
22111
22112         * posix-modules: Update to directory names changed on 2008-01-19.
22113         Remove commas in output before splitting into words. No more need to
22114         avoid 'ftruncate' since 2007-02-19.
22115
22116 2008-09-26  Bruno Haible  <bruno@clisp.org>
22117
22118         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22119
22120 2008-09-26  Bruno Haible  <bruno@clisp.org>
22121
22122         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22123         * modules/fwriteerror (Depends-on): Add errno.
22124
22125 2008-09-26  Bruno Haible  <bruno@clisp.org>
22126
22127         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22128         * tests/test-vc-list-files-cvs.sh: Likewise.
22129
22130 2008-09-26  Bruno Haible  <bruno@clisp.org>
22131
22132         * doc/posix-headers/sys_resource.texi: Reorder items.
22133
22134 2008-09-26  Jim Meyering  <meyering@redhat.com>
22135
22136         fts: tweak inode comparison function
22137         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22138         inode numbers, as documented.
22139
22140         fts: sort dirent entries on inode number before traversing
22141         This avoids a quadratic, seek-related performance penalty when
22142         operating on a directory containing many entries (measurable at 10k;
22143         3.5 hours at 2 million entries with a cold cache) on certain types
22144         of file systems, including ext3 and ext4, but not tmpfs.
22145         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22146         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22147         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22148         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22149         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22150         (fts_build): Set the stat.st_ino member from D_INO.
22151         If it is likely to be useful, sort dirent entries on inode number.
22152
22153         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22154         and the struct statfs.f_type member.
22155         * modules/fts (Depends-on): Add d-ino.
22156
22157 2008-09-26  Bruno Haible  <bruno@clisp.org>
22158
22159         * modules/sigpipe-die (Depends-on): Add sigpipe.
22160
22161         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22162         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22163         and GNULIB_STDIO_H_SIGPIPE are set.
22164         * lib/stdio-write.c: New file.
22165         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22166         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22167         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22168         REPLACE_STDIO_WRITE_FUNCS.
22169         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22170         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22171         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22172         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22173         * modules/stdio (Files): Add lib/stdio-write.c.
22174         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22175         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22176         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22177         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22178         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22179         REPLACE_FPRINTF_POSIX.
22180         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22181         REPLACE_PRINTF_POSIX.
22182         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22183         REPLACE_VFPRINTF_POSIX.
22184         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22185         REPLACE_VPRINTF_POSIX.
22186         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22187         SIGPIPE issue.
22188         * doc/posix-functions/fputc.texi: Likewise.
22189         * doc/posix-functions/fputs.texi: Likewise.
22190         * doc/posix-functions/fwrite.texi: Likewise.
22191         * doc/posix-functions/printf.texi: Likewise.
22192         * doc/posix-functions/putc.texi: Likewise.
22193         * doc/posix-functions/putchar.texi: Likewise.
22194         * doc/posix-functions/puts.texi: Likewise.
22195         * doc/posix-functions/vfprintf.texi: Likewise.
22196         * doc/posix-functions/vprintf.texi: Likewise.
22197
22198         * modules/safe-write (Depends-on): Add write.
22199
22200         * modules/sigpipe-tests: New file.
22201         * tests/test-sigpipe.c: New file.
22202         * tests/test-sigpipe.sh: New file.
22203
22204         * modules/write: New file.
22205         * lib/unistd.in.h: Include <sys/types.h>.
22206         (write): New declaration.
22207         * lib/write.c: New file.
22208         * m4/write.m4: New file.
22209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22210         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22211         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22212         GNULIB_WRITE, REPLACE_WRITE.
22213         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22214         and the SIGPIPE issue.
22215
22216         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22217         (raise): New declaration.
22218         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22219         (ext_signal): New function.
22220         (rpl_raise): New function.
22221         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22222         GNULIB_SIGNAL_H_SIGPIPE.
22223         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22224         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22225
22226         * modules/sigpipe: New file.
22227         * m4/sigpipe.m4: New file.
22228
22229 2008-09-25  Derek Price  <derek@ximbiot.com>
22230             Bruno Haible  <bruno@clisp.org>
22231
22232         * gnulib-tool (func_import): Report all license incompatibilities, not
22233         just the first one.
22234
22235 2008-09-25  Bruno Haible  <bruno@clisp.org>
22236
22237         * gnulib-tool (func_import): When computing the edits, consider not
22238         only the Makefile.ams that exist but also those that will be generated.
22239
22240 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22241
22242         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22243         fixes gnulib-tool --test warning about duplicate dependency.
22244
22245 2008-09-25  Bruno Haible  <bruno@clisp.org>
22246
22247         * gnulib-tool: Don't ask the user to perform edits in the generated
22248         Makefile.ams.
22249         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22250         apply to the Makefile.am being generated.
22251         (func_emit_tests_Makefile_am): Execute edits that apply to the
22252         Makefile.am being generated.
22253         (func_import): Setup list of Makefile.am edits before emitting the
22254         Makefile.ams, not at the end.
22255         (func_create_testdir): Update.
22256         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22257
22258 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22259
22260         * gnulib-tool (func_import): Store the --tests-base option in the
22261         comment in gnulib-cache.m4.
22262
22263 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22264
22265         * NEWS: Document increased portability that sys_select now provides.
22266
22267         * lib/sys_select.in.h: Install select wrapper.
22268         * lib/sys_socket.in.h: Use more descriptive name when there is no
22269         select wrapper.
22270         * lib/winsock-select.c: New.
22271         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22272         Require gl_HEADER_SYS_SOCKET.
22273         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22274         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22275         * tests/test-sys_select.c: Add functional tests.
22276
22277 2008-09-24  Eric Blake  <ebb9@byu.net>
22278
22279         open, fopen: close fd leak in last patch
22280         * lib/open.c (rpl_open): Close fd before returning error.
22281         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22282         * doc/posix-functions/open.texi (open): Document that Irix also
22283         has the bug.
22284         * doc/posix-functions/fopen.texi (fopen): Likewise.
22285         Reported by Paolo Bonzini.
22286
22287 2008-09-24  Bruno Haible  <bruno@clisp.org>
22288
22289         Ensure that a filename ending in a slash cannot be used to access a
22290         non-directory.
22291         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22292         to check whether it's really a directory.
22293         * lib/fopen.c: Include fcntl.h, unistd.h.
22294         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22295         and fdopen().
22296         * modules/fopen (Depends-on): Add unistd.
22297         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22298         * tests/test-fopen.c (main): Likewise.
22299         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22300         * doc/posix-functions/fopen.texi: Likewise.
22301         Reported by Eric Blake.
22302
22303 2008-09-23  Eric Blake  <ebb9@byu.net>
22304
22305         c-stack: avoid compiler optimizations when provoking overflow
22306         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22307         recursion harder to optimize, to ensure a stack overflow occurs.
22308         * tests/test-c-stack.c (recurse): Likewise.
22309         Borrowed from libsigsegv.
22310
22311         c-stack: work around Irix sigaltstack bug
22312         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22313         whether sigaltstack uses wrong end of stack_t (copied in part from
22314         libsigsegv).
22315         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22316         Irix bug, without requiring an over-allocation.
22317         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22318         bug.
22319
22320         fopen: document mingw bug on directories
22321         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22322         not allowing a stream visiting a directory, even though reading
22323         from such a stream is not portable.
22324
22325 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22326
22327         * lib/poll.c: Rewrite.
22328         * modules/poll: Depend on alloca.
22329
22330 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22331
22332         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22333         instead define prototypes for a full set of wrappers.  Ensure
22334         that Cygwin does not use the compatibility code, which is only
22335         for MinGW.
22336         * lib/winsock.c: New.
22337         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22338         * modules/sys_socket: Add lib/winsock.c.
22339
22340         * modules/poll-tests: Add errno and perror.
22341         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22342
22343 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22344
22345         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22346
22347 2008-09-23  Bruno Haible  <bruno@clisp.org>
22348
22349         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22350         * doc/glibc-functions/*: Likewise.
22351
22352 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22353
22354         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22355         success.
22356
22357 2008-09-22  Eric Blake  <ebb9@byu.net>
22358             Bruno Haible  <bruno@clisp.org>
22359
22360         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22361         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22362         supply %A but mishandle pseudo-NaN.
22363         Reported by Simon Josefsson.
22364
22365 2008-09-21  Bruno Haible  <bruno@clisp.org>
22366
22367         * tests/test-lock.c (main): Tweak skip message.
22368         * tests/test-tls.c (main): Likewise.
22369
22370 2008-09-21  Bruno Haible  <bruno@clisp.org>
22371
22372         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22373         whether 'struct sigaction' has sa_sigaction here...
22374         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22375         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22376
22377 2008-09-21  Bruno Haible  <bruno@clisp.org>
22378
22379         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22380         section.
22381         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22382         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22383         the new section.
22384         (Support for obsolete systems lacking POSIX:2001): New section.
22385         (String handling <string.h>): Move strdup to the new section.
22386         Suggested by Simon Josefsson and Paolo Bonzini.
22387
22388 2008-09-21  Bruno Haible  <bruno@clisp.org>
22389
22390         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22391         exponents in %e and %g results on 'long double'. Needed for mingw's
22392         improved *printf functions.
22393         * tests/test-vasprintf-posix.c (test_function): Likewise.
22394         * tests/test-snprintf-posix.h (test_function): Likewise.
22395         * tests/test-sprintf-posix.h (test_function): Likewise.
22396         Reported by Eric Blake.
22397
22398 2008-09-21  Bruno Haible  <bruno@clisp.org>
22399
22400         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22401         * tests/test-sprintf-posix.h (test_function): Likewise.
22402
22403 2008-09-21  Bruno Haible  <bruno@clisp.org>
22404
22405         * modules/getpass (Depends-on): Add strdup-posix.
22406
22407         New module 'strdup-posix'.
22408         * modules/strdup-posix: New file.
22409         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22410         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22412         REPLACE_STRDUP.
22413         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22414         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22415         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22416         strdup-posix.
22417
22418         * modules/strdup (Depends-on): Remove malloc-posix.
22419
22420 2008-09-20  Bruno Haible  <bruno@clisp.org>
22421
22422         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22423         Wildenhues.
22424
22425 2008-09-20  Bruno Haible  <bruno@clisp.org>
22426
22427         Ensure that wint_t gets defined on IRIX 5.3.
22428         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22429         * lib/wctype.in.h (wint_t): Likewise.
22430         (__wctype_wint_t): Remove type.
22431         (isw*): Use wint_t instead of __wctype_wint_t.
22432         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22433         * modules/wchar (Files): Add m4/wint_t.m4.
22434         (Makefile.am): Substitute HAVE_WINT_T.
22435         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22436         * tests/test-wctype.c: Check that wint_t is defined.
22437         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22438         * doc/posix-headers/wctype.texi: Likewise.
22439         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22440
22441 2008-09-18  Bruno Haible  <bruno@clisp.org>
22442
22443         * gnulib-tool (func_exit): Update comment.
22444
22445 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22446
22447         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22448         assumes strdup exists and does not depend on strdup to return
22449         ENOMEM on out of memory conditions.
22450
22451 2008-09-18  Bruno Haible  <bruno@clisp.org>
22452
22453         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
22454         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22455         digits for the exponent.
22456
22457 2008-09-18  Jim Meyering  <meyering@redhat.com>
22458             Bruno Haible  <bruno@clisp.org>
22459
22460         * lib/vasnprintf.c (decimal_point_char): Define also if
22461         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22462
22463 2008-09-16  Bruno Haible  <bruno@clisp.org>
22464         and Eric Blake  <ebb9@byu.net>
22465
22466         vasnprintf: support Irix 5.3
22467         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22468         that mishandle long double infinity.
22469         Reported by Tom G. Christensen.
22470
22471 2008-09-16  Bruno Haible  <bruno@clisp.org>
22472
22473         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22474         Solaris 9.
22475         * doc/glibc-functions/alphasort.texi: Likewise.
22476         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22477
22478 2008-09-16  Jim Meyering  <meyering@redhat.com>
22479
22480         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22481         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22482         a umask modification leak out of a subshell.  Otherwise, the
22483         opensolaris /bin/sh would be accepted and thus cause unwarranted
22484         failures in the coreutils test suite.
22485
22486 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22487
22488         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22489         to succeed.
22490
22491 2008-09-16  Jim Meyering  <meyering@redhat.com>
22492
22493         avoid spurious test failure when library is built without ACL support
22494         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22495         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22496         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22497         * tests/test-copy-acl.sh: Likewise.
22498
22499 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22500
22501         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22502         based on character occurrence counts.
22503
22504 2008-09-15  Eric Blake  <ebb9@byu.net>
22505
22506         tests: avoid some compiler warnings
22507         * tests/test-memchr.c (main): Pass NULL indirectly.
22508         * tests/test-closein.c (main): Avoid unused variable.
22509
22510 2008-09-15  Bruno Haible  <bruno@clisp.org>
22511
22512         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22513         are missing on OpenBSD 4.0 individually.
22514         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22515
22516 2008-09-15  Bruno Haible  <bruno@clisp.org>
22517
22518         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22519         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22520         * doc/posix-functions/perror.texi: Likewise.
22521         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22522         is missing.
22523         Reported by Eric Blake.
22524
22525         * lib/errno.in.h: Use replacement values >= 2000.
22526         Reported by Eric Blake.
22527
22528 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22529
22530         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22531         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22532         limit.
22533         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22534         compareseq was aborted.
22535
22536 2008-09-14  Bruno Haible  <bruno@clisp.org>
22537
22538         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22539         yvec_edit_count.
22540         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22541         (fstrcmp_bounded): Simplify result computation accordingly.
22542
22543 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22544
22545         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22546         (fstrcmp): Define in terms of fstrcmp_bounded.
22547         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22548         lower_bound argument.
22549         Return quickly if the result is certainly < lower_bound.
22550         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22551
22552 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22553
22554         * lib/diffseq.h (EARLY_ABORT): New macro.
22555         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22556         evaluates to true.
22557
22558 2008-09-14  Bruno Haible  <bruno@clisp.org>
22559
22560         * modules/perror-tests: New file.
22561         * tests/test-perror.sh: New file.
22562         * tests/test-perror.c: New file.
22563
22564         New module 'perror'.
22565         * lib/stdio.in.h (perror): New declaration.
22566         * lib/perror.c: New file.
22567         * m4/perror.m4: New file.
22568         * modules/perror: New file.
22569         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22570         * doc/posix-functions/perror.texi: Mention the perror module.
22571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22572         REPLACE_PERROR.
22573         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22574         REPLACE_PERROR.
22575
22576 2008-09-14  Bruno Haible  <bruno@clisp.org>
22577
22578         * modules/stdio (Makefile.am): Reorder to match the order in
22579         lib/stdio.in.h.
22580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22581
22582 2008-09-13  Bruno Haible  <bruno@clisp.org>
22583
22584         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22585
22586 2008-09-13  Bruno Haible  <bruno@clisp.org>
22587
22588         Extend strerror to cover the added errno values.
22589         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22590         (rpl_strerror): Provide error messages for the added errno values and
22591         for the WSA* values.
22592         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22593         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22594         strerror.
22595         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22596         * modules/strerror (Depends-on): Add errno.
22597         * doc/posix-functions/strerror.texi: Document the change.
22598         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22599         and EOVERFLOW.
22600
22601 2008-09-13  Bruno Haible  <bruno@clisp.org>
22602
22603         * modules/EOVERFLOW: Remove file.
22604         * m4/eoverflow.m4: Remove file.
22605         * modules/EOVERFLOW-tests: Remove file.
22606         * tests/test-EOVERFLOW.c: Remove file.
22607         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22608         * modules/ftell (Depends-on): Likewise.
22609         * modules/getdelim (Depends-on): Likewise.
22610         * modules/getugroups (Depends-on): Likewise.
22611         * modules/poll (Depends-on): Likewise.
22612         * modules/snprintf (Depends-on): Likewise.
22613         * modules/sprintf-posix (Depends-on): Likewise.
22614         * modules/vasnprintf (Depends-on): Likewise.
22615         * modules/vasprintf (Depends-on): Likewise.
22616         * modules/vfprintf-posix (Depends-on): Likewise.
22617         * modules/vsnprintf (Depends-on): Likewise.
22618         * modules/vsprintf-posix (Depends-on): Likewise.
22619         * modules/xvasprintf (Depends-on): Likewise.
22620         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22621         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22622         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22623         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22624         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22625         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22626         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22627         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22628         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22629         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22630         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22631         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22632         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22633         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22634         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22635         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22636         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22637         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22638         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22639         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22640         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22641         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22642         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22643         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22644         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22645         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22646         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22647         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22648         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22649         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22650         * MODULES.html.sh: Remove EOVERFLOW.
22651         * NEWS: Mention the change.
22652
22653 2008-09-13  Bruno Haible  <bruno@clisp.org>
22654
22655         * modules/errno-tests: New file.
22656         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22657
22658         * lib/errno.in.h: New file.
22659         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22660         * modules/errno: New file.
22661         * doc/posix-headers/errno.texi: Update documentation.
22662         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22663
22664 2008-09-13  Bruno Haible  <bruno@clisp.org>
22665
22666         * tests/test-poll.c: Use #if for native Windows, rather than testing
22667         __MSVCRT__.
22668
22669 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22670             Bruno Haible  <bruno@clisp.org>
22671
22672         * lib/glob.c: Don't include <pwd.h> on native Windows.
22673         (WINDOWS32): New macro.
22674         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22675
22676 2008-09-13  Bruno Haible  <bruno@clisp.org>
22677
22678         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22679         (ETIMEDOUT): Remove macro.
22680         (glthread_cond_timedwait_multithreaded): New declaration.
22681         (glthread_cond_timedwait): Use it.
22682         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22683         (glthread_cond_timedwait_multithreaded): New function.
22684
22685 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22686
22687         * modules/poll-tests: Do not check for io.h.
22688         * tests/test-poll.c: Check for __MSVCRT__ instead.
22689
22690 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22691
22692         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22693         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22694         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22695
22696 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22697
22698         * modules/poll-tests: New.
22699         * tests/test-poll.c: New.
22700
22701 2008-09-12  Eric Blake  <ebb9@byu.net>
22702
22703         frexp: test for NetBSD failure on -0.0
22704         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22705         not all, bugs from NetBSD 3.0 have been fixed.
22706         * doc/posix-functions/frexp.texi (frexp): Document bug.
22707         Reported by Thomas Klausner.
22708
22709         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22710         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22711         literal -0.0.
22712         Reported by Jonathan C. Patschke <jp@centtech.com>.
22713
22714 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22715
22716         * lib/glthread/cond.h: Use dummy implementation also if
22717         USE_WIN32_THREADS.
22718
22719 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22720
22721         * modules/fnmatch-posix (License): Change to LGPLv2+.
22722         * modules/fnmatch-gnu (License): Likewise.
22723
22724 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22725
22726         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22727
22728 2008-09-11  Jim Meyering  <meyering@redhat.com>
22729
22730         * users.txt: Add gtk-vnc.
22731
22732 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22733
22734         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22735         rotate amounts.
22736
22737         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22738         required for 16-bit and 8-bit rotates.
22739         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22740         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22741         UINT8_MAX instead of hard-coded constants.
22742         Suggested by Paul Eggert.
22743
22744 2008-09-07  Bruno Haible  <bruno@clisp.org>
22745
22746         * tests/test-striconveh.c (main): Check behaviour when converting from
22747         UTF-7.
22748
22749         Make striconveh work better with stateful encodings.
22750         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22751         that iconv does not increment the inptr when returning -1/EINVAL.
22752
22753 2008-09-07  Bruno Haible  <bruno@clisp.org>
22754
22755         * build-aux/config.rpath: Update according to libtool-2.2.6.
22756         * build-aux/config.libpath: Likewise.
22757
22758 2008-09-06  Bruno Haible  <bruno@clisp.org>
22759
22760         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22761         * lib/freadptr.c (freadptr): Likewise.
22762         * lib/freadseek.c (freadptrinc): Likewise.
22763         Reported by Simon Josefsson.
22764
22765 2008-09-06  Bruno Haible  <bruno@clisp.org>
22766
22767         * modules/freadptr (License): Change to LGPLv2+.
22768         * modules/freadseek (License): Likewise.
22769         Suggested by Eric Blake.
22770
22771         * modules/memchr2 (License): Change to LGPLv2+.
22772         Approved by Eric Blake.
22773
22774 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22775             Bruno Haible  <bruno@clisp.org>
22776
22777         Make gnulib-tool work with native 'sed' on AIX.
22778         * gnulib-tool (sed_noop): New variable.
22779         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22780         func_add_or_update, func_create_testdir): Use it to initialize sed
22781         script variables.
22782         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22783
22784 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22785             Bruno Haible  <bruno@clisp.org>
22786
22787         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22788         also works after #include directives.
22789
22790 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
22791
22792         getdate.y: reject an out-of-range timezone value
22793         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22794         the range [-24...+24].  When specified with only one or two digits,
22795         * tests/test-getdate.c: Tests for the fix.
22796         * doc/getdate.texi: Document this change.
22797
22798 2008-09-03  Bruno Haible  <bruno@clisp.org>
22799
22800         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22801
22802 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22803
22804         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22805         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22806         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22807         Blake <ebb9@byu.net>.
22808
22809         * tests/test-bitrotate.c: Add more test vectors.
22810
22811 2008-09-02  Eric Blake  <ebb9@byu.net>
22812
22813         vasnprintf-posix: handle large precision via %.*d
22814         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22815         when handling it ourselves.
22816         * tests/test-vasnprintf-posix.c (test_function): Add test.
22817         * tests/test-snprintf-posix.h (test_function): Likewise.
22818         * tests/test-sprintf-posix.h (test_function): Likewise.
22819         * tests/test-vasprintf-posix.c (test_function): Likewise.
22820         Reported by Alain Guibert.
22821
22822 2008-09-01  Eric Blake  <ebb9@byu.net>
22823
22824         c-stack: make configure-time check more robust
22825         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22826         successful sigaction call.
22827         Reported by Tom G. Christensen.
22828
22829 2008-09-01  Bruno Haible  <bruno@clisp.org>
22830
22831         New module 'findprog-lgpl'.
22832         * modules/findprog-lgpl: New file.
22833         * lib/findprog-lgpl.c: New file.
22834         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22835         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22836         to decide whether to use strdup or xstrdup, concatenated_filename or
22837         xconcatenated_filename.
22838
22839 2008-09-01  Bruno Haible  <bruno@clisp.org>
22840
22841         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22842         'xconcat-filename' (GPL).
22843         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22844         (License): Change to LGPLv2+.
22845         * modules/xconcat-filename: New file.
22846         * lib/concat-filename.h (concatenated_filename): Change specification.
22847         (xconcatenated_filename): New declaration.
22848         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22849         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22850         memory situations.
22851         * lib/xconcat-filename.c: New file.
22852         * NEWS: Mention the change.
22853         * lib/findprog.c: Include concat-filename.h, not filename.h.
22854         (find_in_path): Use xconcatenated_filename instead of
22855         concatenated_filename.
22856         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22857         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22858         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22859         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22860         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22861         instead of concatenated_filename.
22862         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22863         (execute_java_class): Use xconcatenated_filename instead of
22864         concatenated_filename.
22865         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22866         * modules/javacomp (Depends-on): Likewise.
22867         * modules/javaexec (Depends-on): Likewise.
22868
22869 2008-09-01  Bruno Haible  <bruno@clisp.org>
22870
22871         Split module 'filename' into 'filename' and 'concat-filename'.
22872         * modules/filename: Keep only lib/filename.h.
22873         (License): Change to LGPLv2+.
22874         * modules/concat-filename: New file, extracted from modules/filename.
22875         * lib/filename.h (concatenated_filename): Remove declaration.
22876         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22877         * lib/concat-filename.c: Include concat-filename.h.
22878         * NEWS: Mention the change.
22879
22880 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22881
22882         * lib/bitrotate.h (rotl8, rotr8): Add.
22883
22884         * modules/bitrotate (configure.ac): Need
22885         AC_REQUIRE([AC_C_INLINE]).
22886         (Description): Mention stdint.h.  Reported by Bruno Haible
22887         <bruno@clisp.org>.
22888
22889         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22890         Paolo Bonzini <bonzini@gnu.org>.
22891
22892 2008-08-31  Bruno Haible  <bruno@clisp.org>
22893
22894         Assume Solaris specific bi-arch conventions on Solaris systems.
22895         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22896         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22897         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22898         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22899         like acl_libdirstem.
22900         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22901         acl_libdirstem.
22902         * NEWS: Mention the change.
22903         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22904
22905 2008-08-31  Jim Meyering  <meyering@redhat.com>
22906
22907         * lib/strftime.h: Add comments describing the two added arguments.
22908
22909         remove duplicate #include directives
22910         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22911         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22912
22913 2008-08-31  Bruno Haible  <bruno@clisp.org>
22914
22915         New module 'sigpipe-die'.
22916         * modules/sigpipe-die: New file.
22917         * lib/sigpipe-die.h: New file.
22918         * lib/sigpipe-die.c: New file.
22919         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22920
22921 2008-08-31  Bruno Haible  <bruno@clisp.org>
22922
22923         Don't override previously installed signal handlers.
22924         * lib/fatal-signal.c (saved_sigactions): New variable.
22925         (uninstall_handlers): Reset the signal to the saved handler, not
22926         to SIG_DFL (except when ignored).
22927         (install_handlers): Save the previous handlers.
22928
22929 2008-08-30  Bruno Haible  <bruno@clisp.org>
22930
22931         * gnulib-tool (func_reset_sigpipe): New function.
22932         (func_get_automake_snippet, func_modules_transitive_closure,
22933         func_import): Invoke it before a join command that reads from stdin,
22934         to avoid "echo: write error: Broken pipe" error messages on stderr.
22935         Reported by Sam Steingold <sds@gnu.org>.
22936
22937 2008-08-30  Bruno Haible  <bruno@clisp.org>
22938
22939         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22940         Code copied from m4/open.m4.
22941         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22942         access and the filename ends in a slash. Code copied from lib/open.c.
22943         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22944         * tests/test-fopen.c (main): Check against bug with trailing slash.
22945
22946 2008-08-29  Bruno Haible  <bruno@clisp.org>
22947
22948         Avoid some "gcc -pedantic" warnings.
22949         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22950         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22951         * lib/dirent.in.h: Likewise.
22952         * lib/fcntl.in.h: Likewise.
22953         * lib/float.in.h: Likewise.
22954         * lib/iconv.in.h: Likewise.
22955         * lib/inttypes.in.h: Likewise.
22956         * lib/locale.in.h: Likewise.
22957         * lib/math.in.h: Likewise.
22958         * lib/netinet_in.in.h: Likewise.
22959         * lib/search.in.h: Likewise.
22960         * lib/signal.in.h: Likewise.
22961         * lib/stdarg.in.h: Likewise.
22962         * lib/stdint.in.h: Likewise.
22963         * lib/stdio.in.h: Likewise.
22964         * lib/stdlib.in.h: Likewise.
22965         * lib/string.in.h: Likewise.
22966         * lib/strings.in.h: Likewise.
22967         * lib/sys_select.in.h: Likewise.
22968         * lib/sys_socket.in.h: Likewise.
22969         * lib/sys_stat.in.h: Likewise.
22970         * lib/sys_time.in.h: Likewise.
22971         * lib/sysexits.in.h: Likewise.
22972         * lib/time.in.h: Likewise.
22973         * lib/unistd.in.h: Likewise.
22974         * lib/wchar.in.h: Likewise.
22975         * lib/wctype.in.h: Likewise.
22976         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22977         * modules/fchdir (Makefile.am): Likewise.
22978         * modules/fcntl (Makefile.am): Likewise.
22979         * modules/float (Makefile.am): Likewise.
22980         * modules/iconv_open (Makefile.am): Likewise.
22981         * modules/inttypes (Makefile.am): Likewise.
22982         * modules/locale (Makefile.am): Likewise.
22983         * modules/math (Makefile.am): Likewise.
22984         * modules/netinet_in (Makefile.am): Likewise.
22985         * modules/search (Makefile.am): Likewise.
22986         * modules/signal (Makefile.am): Likewise.
22987         * modules/stdarg (Makefile.am): Likewise.
22988         * modules/stdint (Makefile.am): Likewise.
22989         * modules/stdio (Makefile.am): Likewise.
22990         * modules/stdlib (Makefile.am): Likewise.
22991         * modules/string (Makefile.am): Likewise.
22992         * modules/strings (Makefile.am): Likewise.
22993         * modules/sys_select (Makefile.am): Likewise.
22994         * modules/sys_socket (Makefile.am): Likewise.
22995         * modules/sys_stat (Makefile.am): Likewise.
22996         * modules/sys_time (Makefile.am): Likewise.
22997         * modules/sysexits (Makefile.am): Likewise.
22998         * modules/time (Makefile.am): Likewise.
22999         * modules/unistd (Makefile.am): Likewise.
23000         * modules/wchar (Makefile.am): Likewise.
23001         * modules/wctype (Makefile.am): Likewise.
23002         Reported by Reuben Thomas <rrt@sc3d.org>.
23003
23004 2008-08-29  Bruno Haible  <bruno@clisp.org>
23005
23006         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
23007         any more.
23008
23009 2008-08-29  Simon Josefsson  <simon@josefsson.org>
23010
23011         * MODULES.html.sh (Misc): Add bitrotate.
23012
23013         * modules/bitrotate: New file.
23014
23015         * lib/bitrotate.h: New file.
23016
23017         * modules/bitrotate-tests: New file.
23018
23019         * tests/test-bitrotate.c: New file.
23020
23021         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
23022         on the bitrotate module.
23023
23024         * lib/arctwo.c: Use new bitrotate module.
23025
23026 2008-08-29  Jim Meyering  <meyering@redhat.com>
23027
23028         bootstrap: merge changes from coreutils
23029         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
23030         of copied files.  Remove a kludge, now that this is fixed.
23031         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
23032         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
23033         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
23034
23035 2008-08-29  Bruno Haible  <bruno@clisp.org>
23036
23037         * MODULES.html.sh: Remove --cvs-urls option.
23038
23039 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
23040
23041         maint.mk: adjust to file name change
23042         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
23043
23044 2008-08-28  Jim Meyering  <meyering@redhat.com>
23045
23046         * modules/getndelim2 (License): Relicense to LGPLv2+.
23047         Approved by Richard Stallman for the version of 1995, and by
23048         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
23049
23050 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
23051
23052         * lib/getdelim.c (flockfile, funlockfile): Make all of them
23053         dummy if one is not available.  Do not touch them if
23054         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
23055         (getc_maybe_unlocked): New.
23056         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
23057
23058 2008-08-26  Eric Blake  <ebb9@byu.net>
23059
23060         doc/INSTALL: resync from autoconf
23061         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
23062         (INSTALL_PRELUDE): Delete; this is done more efficiently by
23063         moving...
23064         * install.texi [!autoconf]: ...here.  Resync from autoconf.
23065         * INSTALL: Regenerate.
23066         * INSTALL.ISO: New file.
23067         * INSTALL.UTF-8: Likewise.
23068
23069 2008-08-26  Jim Meyering  <meyering@redhat.com>
23070
23071         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
23072         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
23073         these definitions conditional, so that they may be overridden, too.
23074
23075 2008-08-26  Bruno Haible  <bruno@clisp.org>
23076
23077         Generate INSTALL file variants with prettier quotes.
23078         * doc/Makefile (INSTALL_PRELUDE): New macro.
23079         (INSTALL): Use it.
23080         (INSTALL.ISO, INSTALL.UTF-8): New rules.
23081
23082 2008-08-26  Bruno Haible  <bruno@clisp.org>
23083
23084         Run makeinfo in an English locale.
23085         * doc/Makefile (MAKEINFO): New variable.
23086
23087 2008-08-26  Bruno Haible  <bruno@clisp.org>
23088
23089         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
23090         Suggested by Eric Blake.
23091
23092 2008-08-25  Bruno Haible  <bruno@clisp.org>
23093
23094         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23095
23096 2008-08-25  Eric Blake  <ebb9@byu.net>
23097
23098         c-stack: test that stack overflow can be caught
23099         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23100         that platform allows handling stack overflow; at least OS/2 EMX
23101         has sigaltstack, but crashes before transferring control to
23102         handler on stack overflow.
23103         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23104         check for HAVE_STACK_OVERFLOW_HANDLING.
23105         Reported by Elbert Pol.
23106
23107 2008-08-25  Bruno Haible  <bruno@clisp.org>
23108
23109         * doc/posix-functions/strftime.texi: Fix description of strftime
23110         module.
23111
23112 2008-08-24  Bruno Haible  <bruno@clisp.org>
23113
23114         * tests/uniwidth/test-uc_width2.c: New file.
23115         * tests/uniwidth/test-uc_width2.sh: New file.
23116         * modules/uniwidth/width-tests (Files): Add the new files.
23117         (TESTS): Add uniwidth/test-uc_width2.sh.
23118         (TESTS_ENVIRONMENT): New variable.
23119         (check_PROGRAMS): Add test-uc_width2.
23120         (test_uc_width2_SOURCES): New variable.
23121
23122         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23123         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23124         not 0x00AB.
23125         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23126
23127 2008-08-22  Eric Blake  <ebb9@byu.net>
23128
23129         test-lock, test-tls: mention why a test is skipped
23130         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23131         skipped.
23132         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23133
23134         count-one-bits: relax license
23135         * modules/count-one-bits (License): Relicense to LGPLv2+.
23136         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23137
23138 2008-08-22  Andreas Schwab  <schwab@suse.de>
23139
23140         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23141         Remove spurious space in assignment.
23142
23143 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23144
23145         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23146         Paul Eggert <eggert@CS.UCLA.EDU>.
23147
23148 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23149
23150         * modules/gettext: Add m4/threadlib.m4.
23151
23152 2008-08-19  Eric Blake  <ebb9@byu.net>
23153
23154         test-c-stack: fix compilation failure on FreeBSD 5.0
23155         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23156         headers before <sys/resource.h>.
23157         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23158         the bug.
23159         Reported by Nelson H. F. Beebe.
23160
23161         strverscmp: migrate from "strverscmp.h" to <string.h>
23162         * modules/string (Makefile.am): Add new hooks.
23163         * modules/strverscmp (Files): Remove strverscmp.h.
23164         (Depends-on): Add string.
23165         (configure.ac): Add indicator.
23166         (Include): Mention new header.
23167         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23168         defaults.
23169         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23170         results.
23171         * lib/strverscmp.h: Delete.
23172         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23173         * tests/test-strverscmp.c (includes): Adjust client.
23174         * lib/check-version.c (includes): Likewise.
23175         * NEWS: Document the change.
23176
23177         strverscmp: add unit test
23178         * modules/strverscmp-tests: New file.
23179         * tests/test-strverscmp.c: Likewise.
23180
23181 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23182
23183         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23184         regarding Windows crypto stuff, from Mono.
23185
23186 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23187
23188         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23189         if present, for intel RND.  Return error on failures.
23190
23191 2008-08-18  Ben Pfaff  <blp@gnu.org>
23192
23193         gitlog-to-changelog: give better diagnostic for failed pipe-open
23194         * build-aux/gitlog-to-changelog: Improve error message: suggest
23195         that the version of Git may be too old.
23196
23197 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23198
23199         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23200         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23201
23202 2008-08-18  Bruno Haible  <bruno@clisp.org>
23203
23204         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23205         pthread_in_use().
23206
23207 2008-08-18  Bruno Haible  <bruno@clisp.org>
23208
23209         * lib/glthread/threadlib.c: Include <pthread.h>.
23210
23211 2008-08-18  Bruno Haible  <bruno@clisp.org>
23212
23213         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23214         glthread_recursive_lock_* macros.
23215         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23216         Fix syntax error.
23217
23218 2008-08-18  Bruno Haible  <bruno@clisp.org>
23219
23220         * lib/glthread/thread.c: Avoid forcing a context switch right after
23221         thread creation.
23222
23223 2008-08-17  Bruno Haible  <bruno@clisp.org>
23224
23225         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23226         * lib/glthread/thread.h: Provide Win32 specific implementation.
23227         * modules/thread (Files): Add lib/glthread/thread.c.
23228         (Depends-on): Add lock.
23229         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23230
23231 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23232
23233         New module 'yield'.
23234         * modules/yield: New file.
23235         * lib/glthread/yield.h: New file.
23236         * m4/yield.m4: New file.
23237         * MODULES.html.sh (Multithreading): Add yield.
23238
23239 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23240
23241         New module 'thread'.
23242         * modules/thread: New file.
23243         * lib/glthread/thread.h: New file.
23244         * m4/thread.m4: New file.
23245         * MODULES.html.sh (Multithreading): Add thread.
23246
23247 2008-08-17  Bruno Haible  <bruno@clisp.org>
23248
23249         * lib/glthread/lock.h: Include <stdlib.h> always.
23250         * lib/glthread/tls.h: Likewise.
23251         * lib/glthread/cond.h: Likewise.
23252
23253 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23254
23255         New module 'cond'.
23256         * modules/cond: New file.
23257         * lib/glthread/cond.h: New file.
23258         * lib/glthread/cond.c: New file.
23259         * m4/cond.m4: New file.
23260         * MODULES.html.sh (Multithreading): Add cond.
23261
23262 2008-08-16  Eric Blake  <ebb9@byu.net>
23263
23264         c-stack: fix regression on Irix 5.3 from 2008-06-21
23265         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23266         sa_sigaction...
23267         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23268         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23269         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23270         * modules/signal (Makefile.am): Use the value.
23271         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23272         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23273         * doc/posix-headers/signal.texi (signal.h): Document this
23274         portability issue.
23275         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23276         Reported by Tom G. Christensen.
23277
23278 2008-08-17  Bruno Haible  <bruno@clisp.org>
23279
23280         New module 'threadlib'.
23281         * modules/threadlib: New file.
23282         * lib/glthread/threadlib.c: New file, extracted from
23283         lib/glthread/lock.c.
23284         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23285         functions.
23286         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23287         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23288         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23289         macros.
23290         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23291         (gl_DISABLE_THREADS): Remove macro.
23292         * modules/lock (Files): Remove build-aux/config.rpath.
23293         (Depends-on): Remove havelib. Add threadlib.
23294         (configure.ac-early): Remove section.
23295         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23296         * modules/tls (Depends-on): Remove lock. Add threadlib.
23297         (Link): New section, copied from threadlib.
23298         * MODULES.html.sh (Multithreading): Add threadlib.
23299
23300 2008-08-14  Bruno Haible  <bruno@clisp.org>
23301
23302         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23303         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23304         glthread_rwlock_unlock, glthread_rwlock_destroy,
23305         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23306         glthread_recursive_lock_destroy): Define as macros always.
23307         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23308         glthread_lock_lock.
23309         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23310         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23311         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23312         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23313         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23314         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23315         (glthread_recursive_lock_lock_func): Renamed from
23316         glthread_recursive_lock_lock.
23317         (glthread_recursive_lock_unlock_func): Renamed from
23318         glthread_recursive_lock_unlock.
23319         (glthread_recursive_lock_destroy_func): Renamed from
23320         glthread_recursive_lock_destroy.
23321
23322 2008-08-14  Bruno Haible  <bruno@clisp.org>
23323
23324         * lib/glthread/lock.h: Renamed from lib/lock.h.
23325         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23326         * lib/glthread/tls.h: Renamed from lib/tls.h.
23327         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23328         * lib/fstrcmp.c: Update includes.
23329         * lib/strsignal.c: Update includes.
23330         * modules/lock (Files, Makefile.am): Update.
23331         (Include): Change to "glthread/lock.h".
23332         * modules/tls (Files, Makefile.am): Update.
23333         (Include): Change to "glthread/tls.h".
23334         * tests/test-lock.c: Update includes.
23335         * tests/test-tls.c: Update includes.
23336         * NEWS: Mention the renamed header files.
23337
23338 2008-08-11  Jim Meyering  <meyering@redhat.com>
23339
23340         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23341
23342 2008-08-11  Eric Blake  <ebb9@byu.net>
23343
23344         test-c-stack: avoid C99-ism
23345         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23346         before statement.
23347         Reported by Alain Guibert.
23348
23349 2008-08-10  Jim Meyering  <meyering@redhat.com>
23350
23351         ensure that return value of uinttostr et al are not ignored
23352         * lib/inttostr.h (__GNUC_PREREQ): Define.
23353         (__attribute_warn_unused_result__): Define.
23354         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23355
23356 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23357
23358         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23359         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23360
23361 2008-08-07  Jim Meyering  <meyering@redhat.com>
23362
23363         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23364
23365         * modules/mkstemp (License): Relicense under LGPLv2+.
23366         * modules/tempname (License): Likewise.
23367
23368 2008-08-06  Bruno Haible  <bruno@clisp.org>
23369
23370         * lib/poll.c (poll): Further micro-optimization.
23371
23372 2008-08-06  Jim Meyering  <meyering@redhat.com>
23373
23374         inet_pton.c: use locale-independent tolower
23375         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23376         (inet_pton6): Use c_tolower rather than tolower.
23377         * modules/inet_pton (Depends-on): Add c-ctype.
23378
23379 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23380
23381         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23382         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23383
23384 2008-08-06  Jim Meyering  <meyering@redhat.com>
23385
23386         * modules/inet_pton (License): Relicense under LGPLv2+.
23387
23388 2008-08-03  Bruno Haible  <bruno@clisp.org>
23389
23390         Additional non-aborting API for lock and tls.
23391         * lib/lock.h: Include <errno.h>.
23392         (glthread_lock_init): New macro/function.
23393         (gl_lock_init): Define as wrapper around glthread_lock_init.
23394         (glthread_lock_lock): New macro/function.
23395         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23396         (glthread_lock_unlock): New macro/function.
23397         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23398         (glthread_lock_destroy): New macro/function.
23399         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23400         (glthread_rwlock_init): New macro/function.
23401         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23402         (glthread_rwlock_rdlock): New macro/function.
23403         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23404         (glthread_rwlock_wrlock): New macro/function.
23405         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23406         (glthread_rwlock_unlock): New macro/function.
23407         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23408         (glthread_rwlock_destroy): New macro/function.
23409         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23410         (glthread_recursive_lock_init): New macro/function.
23411         (gl_recursive_lock_init): Define as wrapper around
23412         glthread_recursive_lock_init.
23413         (glthread_recursive_lock_lock): New macro/function.
23414         (gl_recursive_lock_lock): Define as wrapper around
23415         glthread_recursive_lock_lock.
23416         (glthread_recursive_lock_unlock): New macro/function.
23417         (gl_recursive_lock_unlock): Define as wrapper around
23418         glthread_recursive_lock_unlock.
23419         (glthread_recursive_lock_destroy): New macro/function.
23420         (gl_recursive_lock_destroy): Define as wrapper around
23421         glthread_recursive_lock_destroy.
23422         (glthread_once): New macro/function.
23423         (gl_once): Define as wrapper around glthread_once.
23424         Update function declarations.
23425         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23426         glthread_rwlock_init. Return error code.
23427         (glthread_rwlock_rdlock_multithreaded): Renamed from
23428         glthread_rwlock_rdlock. Return error code.
23429         (glthread_rwlock_wrlock_multithreaded): Renamed from
23430         glthread_rwlock_wrlock. Return error code.
23431         (glthread_rwlock_unlock_multithreaded): Renamed from
23432         glthread_rwlock_unlock. Return error code.
23433         (glthread_rwlock_destroy_multithreaded): Renamed from
23434         glthread_rwlock_destroy. Return error code.
23435         (glthread_recursive_lock_init_multithreaded): Renamed from
23436         glthread_recursive_lock_init. Return error code.
23437         (glthread_recursive_lock_lock_multithreaded): Renamed from
23438         glthread_recursive_lock_lock. Return error code.
23439         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23440         glthread_recursive_lock_unlock. Return error code.
23441         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23442         glthread_recursive_lock_destroy. Return error code.
23443         (glthread_once_call): Make static.
23444         (glthread_once_multithreaded): Renamed from glthread_once.
23445         * lib/tls.h: Include <errno.h>.
23446         (glthread_tls_key_init): New macro/function.
23447         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23448         (glthread_tls_set): New macro/function.
23449         (gl_tls_set): Define as wrapper around glthread_tls_set.
23450         (glthread_tls_key_destroy): New macro/function.
23451         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23452         Update function declarations.
23453         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23454         glthread_tls_get.
23455         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23456
23457 2008-08-04  Eric Blake  <ebb9@byu.net>
23458
23459         gnumakefile: use space, not TAB, outside of targets
23460         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23461
23462 2008-08-02  Jim Meyering  <meyering@redhat.com>
23463
23464         getdate.y: avoid locale-dependent date parsing failure
23465         In Turkish locales, getdate would fail to recognize keywords
23466         containing a lowercase "i".  The solution is not to rely on
23467         locale-sensitive case-conversion.
23468         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23469         (lookup_word): Use c_toupper in place of toupper.
23470         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23471         Reported by Vefa Bicakci <bicave@superonline.com> in
23472         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23473         * modules/getdate (Depends-on): Add c-ctype.
23474
23475 2008-08-02  Bruno Haible  <bruno@clisp.org>
23476
23477         * gnulib-tool (func_import): When updating or creating a .gitignore
23478         file, prepend each added line with a slash, and ignore leading slashes
23479         from the existing lines.
23480         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23481
23482 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23483
23484         Portability fix for GNU make 3.79.1.
23485         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23486         versions do not understand.
23487
23488 2008-08-01  Bruno Haible  <bruno@clisp.org>
23489
23490         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23491         * tests/test-isnanf.h (zero): New variable.
23492         (main): Avoid literal -0.0f.
23493         * tests/test-isnand.h (zero): New variable.
23494         (main): Avoid literal -0.0.
23495         * tests/test-isnanl.h (zero): New variable.
23496         (main): Avoid literal -0.0L.
23497         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23498         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23499         -0.0, -0.0L.
23500         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23501         (test_signbitd): Avoid literal -0.0.
23502         (test_signbitl): Avoid literal -0.0L.
23503         * tests/test-ceilf1.c (zero): New variable.
23504         (main): Avoid literal -0.0f.
23505         * tests/test-ceill.c (zero): New variable.
23506         (main): Avoid literal -0.0L.
23507         * tests/test-floorf1.c (zero): New variable.
23508         (main): Avoid literal -0.0f.
23509         * tests/test-floorl.c (zero): New variable.
23510         (main): Avoid literal -0.0L.
23511         * tests/test-roundf1.c (zero): New variable.
23512         (main): Avoid literal -0.0f.
23513         * tests/test-round1.c (zero): New variable.
23514         (main): Avoid literal -0.0.
23515         * tests/test-roundl.c (zero): New variable.
23516         (main): Avoid literal -0.0L.
23517         * tests/test-truncf1.c (zero): New variable.
23518         (main): Avoid literal -0.0f.
23519         * tests/test-trunc1.c (zero): New variable.
23520         (main): Avoid literal -0.0.
23521         * tests/test-truncl.c (zero): New variable.
23522         (main): Avoid literal -0.0L.
23523         * tests/test-frexp.c (zero): New variable.
23524         (main): Avoid literal -0.0.
23525         * tests/test-frexpl.c (zero): New variable.
23526         (main): Avoid literal -0.0L.
23527         * tests/test-ldexpl.c (zero): New variable.
23528         (main): Avoid literal -0.0L.
23529         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23530         (zerod, zerol): New variables.
23531         (test_function): Avoid literals -0.0, -0.0L.
23532         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23533         (zerod, zerol): New variables.
23534         (test_function): Avoid literals -0.0, -0.0L.
23535         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23536         (zerod, zerol): New variables.
23537         (test_function): Avoid literals -0.0, -0.0L.
23538         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23539         (zerod, zerol): New variables.
23540         (test_function): Avoid literals -0.0, -0.0L.
23541         * tests/test-strtod.c (zero): New variable.
23542         (main): Avoid literal -0.0.
23543         Reported by Jonathan C. Patschke <jp@centtech.com>.
23544
23545 2008-07-31  Jim Meyering  <meyering@redhat.com>
23546
23547         sha256.h: correct definition of SHA224_DIGEST_SIZE
23548         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23549         Reported by Paulie Pena IV <paulie4@gmail.com>.
23550         Define as 224 / 8, rather than as a literal.
23551         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23552         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23553         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23554
23555 2008-07-31  Bruno Haible  <bruno@clisp.org>
23556
23557         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23558         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23559         Reported by Jonathan Patschke <jp@centtech.com>.
23560
23561 2008-07-31  Bruno Haible  <bruno@clisp.org>
23562
23563         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23564         Reported by Paolo Bonzini <bonzini@gnu.org>.
23565
23566 2008-07-30  Eric Blake  <ebb9@byu.net>
23567
23568         test-strtod: allow compilation without -lm
23569         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23570         Reported by Dennis Clarke <blastwave@gmail.com>.
23571
23572 2008-07-28  Jim Meyering  <meyering@redhat.com>
23573
23574         bootstrap: work also when there are no .po files in po/
23575         * build-aux/bootstrap (update_po_files): Complete the change
23576         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23577
23578 2008-07-27  Jim Meyering  <meyering@redhat.com>
23579
23580         * users.txt: Add zile.
23581
23582 2008-07-26  Ben Pfaff  <blp@gnu.org>
23583
23584         Add missing dependencies on new m4/exponent[fdl].m4 files.
23585         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23586         * modules/isnand-nolibm: Add m4/exponentd.m4.
23587         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23588         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23589         m4/isnan[fdl].m4, because the macros actually used moved.
23590         Reported by Jim Meyering.
23591
23592 2008-07-14  Ben Pfaff  <blp@gnu.org>
23593
23594         Add isinf module.
23595         * lib/isinf.c: New file.
23596         * lib/math.in.h: Define isinf macro if we have decided to replace
23597         it.
23598         * m4/isinf.m4: New file.
23599         * m4/math_h.m4: Initialize and substitute variables for isinf
23600         module.
23601         * modules/isinf: New file.
23602         * modules/isinf-tests: New file.
23603         * modules/math: Add substitutions for new module.
23604         * tests/test-isinf.c: New file.
23605         * doc/posix-functions/isinf.texi: Mention new module.
23606         * MODULES.html.sh: Mention new module.
23607
23608 2008-07-14  Ben Pfaff  <blp@gnu.org>
23609
23610         Factor out some macros for use by additional modules.
23611         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23612         exponentf.m4.
23613         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23614         exponentd.m4.
23615         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23616         file exponentl.m4.
23617         * m4/exponentf.m4: New file.
23618         * m4/exponentd.m4: New file.
23619         * m4/exponentl.m4: New file.
23620         * modules/isnanf: Use new file m4/exponentf.m4.
23621         * modules/isnand: Use new file m4/exponentd.m4.
23622         * modules/isnanl: Use new file m4/exponentl.m4.
23623
23624 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23625
23626         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23627         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23628         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23629         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23630
23631         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23632         readlink on platforms without PATH_MAX.
23633
23634 2008-07-21  Eric Blake  <ebb9@byu.net>
23635
23636         Warn, not fail, on stale version.
23637         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23638
23639         Don't allow installation with stale devel version number.
23640         * top/GNUmakefile (_is-install-target): New macro.
23641         (_curr-ver): Forbid installation with stale version number.
23642
23643 2008-07-20  Bruno Haible  <bruno@clisp.org>
23644
23645         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23646         TESTS_ENVIRONMENT.
23647         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23648
23649 2008-07-20  Bruno Haible  <bruno@clisp.org>
23650
23651         * lib/c-stack.h (c_stack_action): Add documentation.
23652         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23653
23654 2008-07-20  Bruno Haible  <bruno@clisp.org>
23655
23656         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23657         * modules/readlink (License): Likewise.
23658
23659 2008-07-17  Eric Blake  <ebb9@byu.net>
23660
23661         * modules/c-stack (Link): Fix typo.
23662
23663         Make c-stack use libsigsegv, when available.
23664         * modules/c-stack (Depends-on): Add libsigsegv.
23665         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23666         needed.
23667         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23668         (segv_handler, overflow_handler, c_stack_action)
23669         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23670         implementation when libsigsegv is available, but only when using
23671         the library is necessary.
23672         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23673         comment, explaining why XSI check fails on Linux.
23674         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23675         * tests/test-c-stack2.sh: Tweak skip message.
23676         * NEWS: Document new link-time requirements.
23677
23678 2008-07-16  Eric Blake  <ebb9@byu.net>
23679
23680         c-stack: Expose false positives when not using libsigsegv.
23681         * modules/c-stack-tests (Files): Expand test.
23682         * tests/test-c-stack.c (main): Add means to conditionally trigger
23683         non-overflow SIGSEGV.
23684         * tests/test-c-stack2.sh: New file.
23685
23686 2008-07-14  Bruno Haible  <bruno@clisp.org>
23687
23688         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23689         Reported by Eric Blake.
23690
23691 2008-07-14  Sam Steingold  <sds@gnu.org>
23692             Bruno Haible  <bruno@clisp.org>
23693
23694         New module libsigsegv.
23695         * modules/libsigsegv: New file.
23696         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23697         modifications.
23698         * MODULES.html.sh (Signal handling): New section.
23699
23700 2008-07-14  Bruno Haible  <bruno@clisp.org>
23701
23702         * modules/unictype/ctype-* (Description): Add the word "function".
23703         Improves the resulting doc in MODULES.html.
23704
23705 2008-07-12  Ben Pfaff  <blp@gnu.org>
23706
23707         Add longlong module.
23708         * modules/longlong: New file.
23709
23710 2008-07-12  Bruno Haible  <bruno@clisp.org>
23711
23712         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23713         to empty.
23714
23715 2008-07-10  Ben Pfaff  <blp@gnu.org>
23716
23717         Add isnan module.
23718         * doc/posix-functions/isnan.texi: Mention new module.
23719         * lib/math.in.h: Define isnan macro if we have decided to replace
23720         it.
23721         * m4/isnan.m4: New file.
23722         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23723         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23724         also.
23725         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23726         redundancy.
23727         * m4/math_h.m4: Initialize and substitute variables for isnan
23728         module.
23729         * modules/isnan: New file.
23730         * modules/isnan-tests: New file.
23731         * modules/math: Add substitutions for new module.
23732         * tests/test-isnan.c: New file.
23733         * MODULES.html.sh: Mention new module.
23734
23735 2008-07-10  Ben Pfaff  <blp@gnu.org>
23736
23737         Add isnanf module.
23738         * lib/isnanf.m4: New file.
23739         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23740         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23741         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23742         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23743         * modules/isnanf: New file.
23744         * modules/isnanf-tests: New file.
23745         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23746         files.
23747         * tests/test-isnanf-nolibm.c: factored most of its contents into
23748         new file tests/test-isnanf.h.
23749         * tests/test-isnanf.h: New file.
23750         * tests/test-isnanf.c: New file.
23751         * MODULES.html.sh: Mention new module.
23752         * doc/glibc-functions/isnanf.texi: Mention new module.
23753
23754 2008-07-10  Ben Pfaff  <blp@gnu.org>
23755
23756         Add isnand module.
23757         * lib/isnand.h: New file.
23758         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23759         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23760         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23761         functionality also.
23762         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23763         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23764         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23765         * modules/isnand: New file.
23766         * modules/isnand-tests: New file.
23767         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23768         files.
23769         * tests/test-isnand-nolibm.c: factored most of its contents into
23770         new file tests/test-isnand.h.
23771         * tests/test-isnand.h: New file.
23772         * tests/test-isnand.c: New file.
23773         * MODULES.html.sh: Mention new module.
23774
23775 2008-07-10  Ben Pfaff  <blp@gnu.org>
23776
23777         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23778         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23779         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23780         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23781         * modules/isnanf-nolibm: Update references to renamed files.
23782         * modules/isnand-nolibm: Likewise.
23783         * modules/isnanf-nolibm-tests: Likewise.
23784         * modules/isnand-nolibm-tests: Likewise.
23785         * lib/frexp.c: Likewise.
23786         * lib/isfinite.c: Likewise.
23787         * lib/signbitd.c: Likewise.
23788         * lib/signbitf.c: Likewise.
23789         * lib/vasnprintf.c: Likewise.
23790         * tests/test-ceilf1.c: Likewise.
23791         * tests/test-ceilf2.c: Likewise.
23792         * tests/test-floorf1.c: Likewise.
23793         * tests/test-floorf2.c: Likewise.
23794         * tests/test-frexp.c: Likewise.
23795         * tests/test-round1.c: Likewise.
23796         * tests/test-round2.c: Likewise.
23797         * tests/test-roundf1.c: Likewise.
23798         * tests/test-strtod.c: Likewise.
23799         * tests/test-trunc1.c: Likewise.
23800         * tests/test-trunc2.c: Likewise.
23801         * tests/test-truncf1.c: Likewise.
23802         * tests/test-truncf2.c: Likewise.
23803         * NEWS: Mention the renamed header files.
23804
23805 2008-07-11  Jim Meyering  <meyering@redhat.com>
23806
23807         vc-list-files: make the last-resort awk code more portable
23808         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23809         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23810         does not support it.
23811
23812 2008-07-10  Eric Blake  <ebb9@byu.net>
23813
23814         Work with tar's bootstrap.
23815         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23816         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23817         an m4 comment.
23818
23819 2008-07-09  Jim Meyering  <meyering@redhat.com>
23820
23821         posix-shell.m4: fix typo that made this test malfunction
23822         * m4/posix-shell.m4: Remove capitalization in variable name.
23823
23824 2008-07-08  Bruno Haible  <bruno@clisp.org>
23825
23826         * m4/onceonly.m4: Update comments.
23827         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23828
23829 2008-07-04  Jim Meyering  <meyering@redhat.com>
23830
23831         * users.txt: Add vc-dwim.
23832         (bison, coreutils): Use the gitweb URL.
23833
23834 2008-07-03  Jim Meyering  <meyering@redhat.com>
23835
23836         * users.txt: Add libffcall.  From Sam Steingold.
23837
23838 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
23839
23840         getdate.y: do not ignore TZ with relative day, month or year offset
23841         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23842         relative-date-handling, since otherwise, the latter would clobber the
23843         sole output (an updated Start value) of the tz-handling block.
23844         * tests/test-getdate.c: Tests for the fix
23845
23846 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23847
23848         Recognize 'foo_LIBRARIES += libgnu.a'.
23849         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23850         makefile snippet has already specified an installation location,
23851         also using '+='.
23852
23853 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
23854
23855         getdate.y: factor out common actions
23856         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23857         Use them in place of open-coded actions.
23858
23859 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23860
23861         Add self-test for getdate module.
23862         * modules/getdate-tests: New file.
23863         * tests/test-getdate.c: New file.
23864
23865 2008-06-29  Bruno Haible  <bruno@clisp.org>
23866
23867         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23868         .gitignore.
23869         Reported by Sylvain Beucler <beuc@beuc.net>.
23870
23871 2008-06-29  Bruno Haible  <bruno@clisp.org>
23872
23873         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23874         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23875
23876 2008-06-29  Bruno Haible  <bruno@clisp.org>
23877
23878         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23879         EXTRA_DIST.
23880         Reported by Sylvain Beucler <beuc@beuc.net>.
23881
23882 2008-06-26  Jim Meyering  <meyering@redhat.com>
23883
23884         make several modules depend on the "open" module
23885         This provides slightly increased consistency when opening-for-write
23886         the name of a non-directory spelled with a trailing slash.
23887         * modules/chdir-safer: Likewise.
23888         * modules/chown: Likewise.
23889         * modules/clean-temp: Likewise.
23890         * modules/copy-file: Likewise.
23891         * modules/fchdir: Likewise.
23892         * modules/fcntl-safer: Likewise.
23893         * modules/pipe: Likewise.
23894         * modules/utime: Likewise.
23895         Prompted by Eric Blake and Bruno Haible.
23896
23897 2008-06-24  Andreas Schwab  <schwab@suse.de>
23898
23899         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23900         literals can be used as initializers for global variables.
23901
23902 2008-06-23  Eric Blake  <ebb9@byu.net>
23903
23904         Make gnulib-cache.m4 easier to diff.
23905         * gnulib-tool (func_import): Allow newlines when reading cached
23906         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23907
23908 2008-06-23  Bruno Haible  <bruno@clisp.org>
23909
23910         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23911         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23912         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23913         m4/signalblocking.m4.
23914         (gl_PREREQ_SIGACTION): Don't invoke it.
23915         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23916         gl_PREREQ_SIG_HANDLER_H.
23917         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23918         Don't check for sigaction here.
23919
23920 2008-06-23  Bruno Haible  <bruno@clisp.org>
23921
23922         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23923         (install_handlers): Don't set the SA_RESETHAND flag.
23924
23925 2008-06-23  Bruno Haible  <bruno@clisp.org>
23926
23927         * m4/sigaction.m4: Comment fixes.
23928         * lib/signal.in.h: Likewise.
23929
23930 2008-06-23  Eric Blake  <ebb9@byu.net>
23931
23932         Fix typo.
23933         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23934
23935         Avoid SA_ namespace.
23936         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23937         Reported by Ralf Wildenhues.
23938
23939         Avoid test failure due to SA_RESTORER.
23940         * tests/test-sigaction.c (SA_MASK): New macro.
23941         (main): Avoid failing due to extension flags being set.
23942         Reported by Jim Meyering.
23943
23944         Revert use of sig-handler.h in sigprocmask.c.
23945         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23946         it requires the existence of struct sigaction.
23947         * lib/sigprocmask.c (handler_t): Restore typedef.
23948         (rpl_signal, old_handlers): Use local type.
23949
23950 2008-06-22  Bruno Haible  <bruno@clisp.org>
23951
23952         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23953         conditionally.
23954         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23955
23956 2008-06-22  Bruno Haible  <bruno@clisp.org>
23957
23958         * doc/posix-functions/siginterrupt.texi: Move note.
23959
23960         * lib/signal.in.h (SA_RESTART): New macro.
23961         * lib/sigaction.c: Update comment.
23962
23963         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23964
23965         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23966         (gl_PREREQ_SIGPROCMASK): Invoke it.
23967         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23968
23969         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23970
23971         * lib/sigprocmask.c: Update a comment.
23972
23973 2008-06-21  Eric Blake  <ebb9@byu.net>
23974
23975         Use sigaction module rather than signal().
23976         * modules/c-stack (Depends-on): Add sigaction.
23977         * modules/fatal-signal (Depends-on): Likewise.
23978         * modules/nanosleep (Depends-on): Likewise.
23979         * modules/sigprocmask (Files): Add sig-handler.h.
23980         * modules/sigaction (Files): Likewise.
23981         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23982         Eggert.
23983         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23984         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23985         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23986         (init_fatal_signals): Likewise.
23987         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23988         (siginterrupt): Delete fallback.
23989         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23990         instead.
23991         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23992         siginterrupt.
23993
23994         New module sigaction, for mingw.
23995         * modules/sigaction: New module...
23996         * modules/sigaction-tests: ...and its test.
23997         * m4/sigaction.m4: New file.
23998         * lib/sigaction.c: Likewise.
23999         * tests/test-sigaction.c: Likewise.
24000         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
24001         * modules/signal (Makefile.am): Likewise.
24002         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
24003         needed.
24004         * doc/posix-headers/signal.texi (signal.h): Mention provided
24005         types.
24006         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
24007         that sigaction is preferable.
24008         * doc/posix-functions/sigaction.texi (sigaction): Mention new
24009         module.
24010         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24011         sigaction.
24012
24013         Improve robustness of sigprocmask by overriding signal.
24014         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
24015         is in use.
24016         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
24017         (SIGKILL, SIGSTOP): Provide fallbacks.
24018         (rpl_signal): Implement.
24019         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
24020         signal can be called inside handlers.
24021
24022         Fix nanosleep module on mingw.
24023         * modules/nanosleep (Depends-on): Add sys_select.
24024         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
24025
24026         Fix licensing of sigprocmask.
24027         * modules/raise (License): Relicense as LGPL.
24028
24029 2008-06-21  Bruno Haible  <bruno@clisp.org>
24030
24031         * lib/propername.c (proper_name_utf8): Don't use the transliterated
24032         result if it contains question marks.
24033         Reported by Michael Geng <linux@michaelgeng.de>.
24034
24035 2008-06-19  Bruno Haible  <bruno@clisp.org>
24036
24037         Fix CVS-ism.
24038         * doc/gnulib.texi: Include updated-stamp.texi.
24039         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
24040         (updated-stamp.texi): New rule.
24041         (gnulib.info): Depend on it.
24042         * doc/.gitignore: Add updated-stamp.texi.
24043         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
24044
24045 2008-06-19  Bruno Haible  <bruno@clisp.org>
24046
24047         * doc/Makefile (gnulib.info): Update and simplify dependencies.
24048         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24049
24050 2008-06-19  Eric Blake  <ebb9@byu.net>
24051
24052         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
24053         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
24054         Reported by Stepan Kasal.
24055
24056 2008-06-18  Bruno Haible  <bruno@clisp.org>
24057
24058         * lib/fatal-signal.c (init_fatal_signals): Add comment.
24059         Reported by Eric Blake.
24060
24061 2008-06-18  Eric Blake  <ebb9@byu.net>
24062
24063         Work around cygwin 1.5.25 strsignal bug.
24064         * tests/test-strsignal.c: Allow for const char *.
24065         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
24066
24067 2008-06-18  Simon Josefsson  <simon@josefsson.org>
24068
24069         * users.txt: Update URL to article and add author/date
24070         information.
24071
24072 2008-06-17  Bruno Haible  <bruno@clisp.org>
24073
24074         New macro gl_DISABLE_THREADS.
24075         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
24076         if the user did not pass --enable-threads or --disable-threads option.
24077         (gl_DISABLE_THREADS): New macro.
24078         Reported by Eric Blake <ebb9@byu.net>.
24079
24080 2008-06-17  Bruno Haible  <bruno@clisp.org>
24081
24082         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
24083         when the macro ignores it.
24084         Based on a patch by Eric Blake <ebb9@byu.net>.
24085
24086 2008-06-17  Bruno Haible  <bruno@clisp.org>
24087
24088         * modules/tls (License): Change to LGPLv2+.
24089         Reported by Eric Blake.
24090
24091 2008-06-17  Eric Blake  <ebb9@byu.net>
24092
24093         Simplify c-stack prerequisites.
24094         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24095         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24096         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24097         check.
24098         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24099         <sys/resource.h>.
24100
24101         Move c-stack test into testsuite.
24102         * modules/c-stack-tests: New file.
24103         * lib/c-stack.c [DEBUG]: Move test program...
24104         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24105         fail test if sigaltstack is lacking.
24106         * tests/test-c-stack.sh: New driver file.
24107
24108 2008-06-16  Eric Blake  <ebb9@byu.net>
24109
24110         Use raise module consistently.
24111         * modules/fatal-signal (Depends-on): Add raise.
24112         * modules/sigprocmask (Depends-on): Likewise.
24113         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24114         * lib/sigprocmask.c (sigprocmask): Likewise.
24115         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24116         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24117
24118         Fix compliance bug in sigpending.
24119         * lib/sigprocmask.c (sigpending): Return pending array via
24120         parameter, not return value.
24121
24122 2008-06-14  Eric Blake  <ebb9@byu.net>
24123
24124         Improve obstack-printf test code.
24125         * tests/test-obstack-printf.c (test_function): Fix comment, and
24126         simplify usage of obstack_* in macros.  Add a test for coverage.
24127         Reported by Bruno Haible.
24128
24129 2008-06-14  Bruno Haible  <bruno@clisp.org>
24130
24131         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24132         array size as a constant, not as a const variable.
24133         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24134         AC_USE_SYSTEM_EXTENSIONS.
24135         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24136         Test whether the obstack_printf function actually exists.
24137         * modules/obstack-printf (Depends-on): Add extensions.
24138         (Include): Remove obstack.h.
24139         * modules/obstack-printf-posix (Depends-on): Add extensions.
24140         (Include): Remove obstack.h.
24141
24142 2008-06-13  Eric Blake  <ebb9@byu.net>
24143
24144         Add obstack-printf and obstack-printf-posix modules.
24145         * modules/obstack-printf: New file.
24146         * modules/obstack-printf-posix: Likewise.
24147         * MODULES.html.sh (Misc): Mention them.
24148         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24149         Likewise.
24150         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24151         Likewise.
24152         * modules/stdio (Makefile.am): Accomodate new modules.
24153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24154         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24155         Declare.
24156         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24157         functions.
24158         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24159         (gl_REPLACE_OBSTACK_PRINTF): New macros
24160         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24161         * tests/test-obstack-printf.c: New file.
24162         * modules/obstack-printf-tests: Likewise.
24163         * modules/obstack-printf-posix-tests: Likewise.
24164
24165 2008-06-11  Bruno Haible  <bruno@clisp.org>
24166
24167         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24168         * lib/open.c: Include errno.h.
24169         (open): Fail when attempting to write to a file that has a trailing
24170         slash.
24171         * tests/test-open.c (main): Test against trailing slash bug.
24172         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24173
24174 2008-06-10  Bruno Haible  <bruno@clisp.org>
24175
24176         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24177         for $? to work inside the trap command, with various /bin/sh-s.
24178         * tests/test-vc-list-files-cvs.sh: Likewise.
24179
24180 2008-06-10  Bruno Haible  <bruno@clisp.org>
24181
24182         * lib/acl-internal.h: Don't include gettext.h here.
24183         * lib/set-mode-acl.c: Include gettext.h here.
24184         * lib/copy-acl.c: Likewise.
24185
24186 2008-06-10  Bruno Haible  <bruno@clisp.org>
24187
24188         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24189         * lib/wait-process.c (wait_subprocess): Likewise.
24190         * lib/execute.h (execute): Add termsigp argument.
24191         * lib/execute.c (execute): Likewise.
24192         * lib/csharpcomp.c (compile_csharp_using_pnet,
24193         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24194         * lib/csharpexec.c (execute_csharp_using_pnet,
24195         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24196         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24197         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24198         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24199         is_jikes_present): Update.
24200         * lib/javaexec.c (execute_java_class): Update.
24201         * lib/javaversion.c (execute_and_read_line): Update.
24202         * NEWS: Document the changes.
24203         Reported by Eric Blake.
24204
24205 2008-06-10  Eric Blake  <ebb9@byu.net>
24206
24207         Add missing include.
24208         * tests/test-strstr.c (includes): Add <signal.h>.
24209         * tests/test-strcasestr.c (includes): Likewise.
24210         * tests/test-memmem.c (includes): Likewise.
24211
24212 2008-06-10  Bruno Haible  <bruno@clisp.org>
24213
24214         * lib/wait-process.c (wait_subprocess): Add an assertion.
24215
24216 2008-06-10  Bruno Haible  <bruno@clisp.org>
24217
24218         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24219
24220 2008-06-10  Bruno Haible  <bruno@clisp.org>
24221
24222         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24223         using alarm().
24224         * tests/test-strcasestr.c (main): Likewise.
24225         * tests/test-strstr.c (main): Likewise.
24226
24227 2008-06-09  Bruno Haible  <bruno@clisp.org>
24228
24229         Work around the Solaris 10 ACE ACLs ABI change.
24230         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24231         declare if ACL_NO_TRIVIAL is present.
24232         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24233         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24234         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24235         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24236         define if ACL_NO_TRIVIAL is present.
24237         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24238         and use the current ABI.
24239         (file_has_acl): Use same #if condition as elsewhere.
24240         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24241         in use, and use the current ABI.
24242         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24243         Reported by Jim Meyering.
24244
24245 2008-06-09  Eric Blake  <ebb9@byu.net>
24246
24247         Work around environments that (stupidly) ignore SIGALRM.
24248         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24249         before using alarm().
24250         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24251         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24252         Reported by Ian Beckwith <ianb@erislabs.net>.
24253
24254         Produce autobuild blurb earlier in log.
24255         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24256
24257 2008-06-09  Jim Meyering  <meyering@redhat.com>
24258         and OndÅ™ej Vašík  <ovasik@redhat.com>
24259
24260         utimens.c: correct kernel bug work-around
24261         OndÅ™ej Vašík found that the invalid return value of 280 indicates
24262         failure, not success, and the kernel bug we're trying to work
24263         around affects not just the utimensat call, but also the fallback
24264         futimens call.
24265         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24266         not success.
24267         [HAVE_FUTIMENS]: Use the same work-around, here.
24268
24269 2008-06-09  Jim Meyering  <meyering@redhat.com>
24270
24271         add more guards around definition of ACE_-related code
24272         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24273         ALLOW and ACE_OWNER are also defined.
24274
24275 2008-06-08  Bruno Haible  <bruno@clisp.org>
24276
24277         * lib/acl-internal.h: Add me as co-author.
24278         * lib/file-has-acl.c: Likewise.
24279         * lib/set-mode-acl.c: Likewise.
24280         * lib/copy-acl.c: Likewise.
24281
24282 2008-06-08  Bruno Haible  <bruno@clisp.org>
24283
24284         Add support for AIX ACLs.
24285         * lib/acl-internal.h (acl_nontrivial): New declaration.
24286         * lib/file-has-acl.c (acl_nontrivial): New function.
24287         (file_has_acl): Add implementation using AIX 4 ACL API.
24288         * lib/set-mode-acl.c (qset_acl): Likewise.
24289         * lib/copy-acl.c (qcopy_acl): Likewise.
24290
24291 2008-06-08  Bruno Haible  <bruno@clisp.org>
24292
24293         Add support for HP-UX ACLs.
24294         * lib/acl-internal.h (acl_nontrivial): New declaration.
24295         * lib/file-has-acl.c (acl_nontrivial): New function.
24296         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24297         * lib/set-mode-acl.c (qset_acl): Likewise.
24298         * lib/copy-acl.c (qcopy_acl): Likewise.
24299
24300 2008-06-08  Bruno Haible  <bruno@clisp.org>
24301
24302         Add support for Cygwin ACLs.
24303         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24304         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24305         the chmod_or_fchmod call.
24306         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24307
24308 2008-06-08  Bruno Haible  <bruno@clisp.org>
24309
24310         Fix bug with setuid modes in Solaris 10+ code.
24311         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24312         succeeded, when the mode contains some special bits.
24313
24314 2008-06-08  Bruno Haible  <bruno@clisp.org>
24315
24316         Add support for Solaris 7..10 ACLs.
24317         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24318         declarations.
24319         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24320         functions.
24321         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24322         * lib/set-mode-acl.c (qset_acl): Likewise.
24323         * lib/copy-acl.c (qcopy_acl): Likewise.
24324
24325 2008-06-08  Bruno Haible  <bruno@clisp.org>
24326
24327         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24328         declaration.
24329         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24330         (acl_access_nontrivial): Remove MacOS X case.
24331         (file_has_acl): Use acl_extended_nontrivial.
24332         * lib/copy-acl.c (qcopy_acl): Likewise.
24333
24334 2008-06-08  Bruno Haible  <bruno@clisp.org>
24335
24336         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24337
24338 2008-06-08  Jim Meyering  <meyering@redhat.com>
24339
24340         * modules/acl (Maintainer): Add Bruno Haible.
24341
24342 2008-06-07  Bruno Haible  <bruno@clisp.org>
24343
24344         Improve support for Tru64 ACLs.
24345         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24346         ACL on OSF/1.
24347
24348 2008-06-07  Bruno Haible  <bruno@clisp.org>
24349
24350         Add support for MacOS X ACLs.
24351         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24352         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24353         * lib/set-mode-acl.c (qset_acl): Likewise.
24354         * lib/copy-acl.c (qcopy_acl): Likewise.
24355
24356 2008-06-07  Bruno Haible  <bruno@clisp.org>
24357
24358         Fix memory leak introduced on 2008-05-22.
24359         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24360         use.
24361
24362 2008-06-07  Bruno Haible  <bruno@clisp.org>
24363
24364         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24365         to construct an empty ACL.
24366
24367 2008-06-07  Bruno Haible  <bruno@clisp.org>
24368
24369         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24370         precisely.
24371         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24372
24373 2008-06-07  Bruno Haible  <bruno@clisp.org>
24374
24375         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24376         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24377
24378 2008-06-07  Bruno Haible  <bruno@clisp.org>
24379
24380         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24381         regardless of POSIX.
24382         * doc/posix-functions/_longjmp.texi: Likewise.
24383         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24384         SystemV platform in this case.
24385
24386 2008-06-06  Eric Blake  <ebb9@byu.net>
24387
24388         Document abort() bugs.
24389         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24390
24391         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24392         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24393         sigsetjmp.
24394         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24395         siglongjmp, but only as a macro.
24396         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24397         is obsolete.
24398         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24399
24400         Tweak documentation to cover cygwin argz bugs.
24401         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24402         argz bug fix; no code change needed since no cygwin releases
24403         occurred between the last fix and the bug being tested.
24404         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24405         module and recently fixed cygwin bugs.
24406         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24407         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24408         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24409         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24410         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24411         Likewise.
24412         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24413         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24414         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24415         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24416         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24417         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24418         Likewise.
24419
24420         Avoid gcc warning on cygwin.
24421         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24422         !ACL_NO_TRIVIAL]: Avoid unused variable.
24423
24424 2008-06-05  Eric Blake  <ebb9@byu.net>
24425
24426         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24427         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24428         git-version-gen fails to come up with a version.
24429         Reported by Simon Josefsson.
24430
24431 2008-06-05  Jim Meyering  <meyering@redhat.com>
24432             Paul Eggert  <eggert@cs.ucla.edu>
24433
24434         utimens.c: work around a probable Linux kernel bug
24435         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24436         appears to be a kernel bug that causes utimensat to return 280
24437         instead of 0, indicating success.
24438
24439 2008-06-04  Bruno Haible  <bruno@clisp.org>
24440
24441         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24442         2008-06-01 commit.
24443
24444 2008-06-04  Bruno Haible  <bruno@clisp.org>
24445
24446         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24447         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24448         (file_has_acl): Use it. Save errno afterwards.
24449         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24450
24451 2008-06-03  Bruno Haible  <bruno@clisp.org>
24452
24453         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24454         draft code. Simplify #ifs.
24455         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24456         Put Solaris code after POSIX-draft code. Fix comments regarding
24457         Solaris 10, HP-UX. Mention Cygwin.
24458         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24459
24460 2008-06-03  Eric Blake  <ebb9@byu.net>
24461
24462         Provide fallback for older kernels.
24463         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24464         Provide runtime fallback if kernel lacks support.
24465         Reported by Mike Frysinger.
24466
24467 2008-06-02  Bruno Haible  <bruno@clisp.org>
24468
24469         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24470         it exists.
24471
24472 2008-06-02  Bruno Haible  <bruno@clisp.org>
24473
24474         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24475         * lib/copy-acl.c (qcopy_acl): Update comment.
24476
24477 2008-06-02  Bruno Haible  <bruno@clisp.org>
24478
24479         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24480         like ACL APIs.
24481
24482 2008-06-02  Bruno Haible  <bruno@clisp.org>
24483
24484         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24485         * tests/test-set-mode-acl.sh: Likewise.
24486         * tests/test-copy-acl.sh: Likewise.
24487         * tests/test-copy-file.sh: Likewise.
24488
24489 2008-06-02  Bruno Haible  <bruno@clisp.org>
24490
24491         * tests/test-file-has-acl.sh: Remove unused code.
24492
24493 2008-06-01  Bruno Haible  <bruno@clisp.org>
24494
24495         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24496         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24497         messages.
24498         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24499
24500 2008-06-01  Bruno Haible  <bruno@clisp.org>
24501
24502         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24503         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24504         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24505         APIs.
24506         * modules/acl-tests (configure.ac): Remove tests now contained in
24507         m4/acl.m4.
24508
24509 2008-06-02  Jim Meyering  <meyering@redhat.com>
24510
24511         announce-gen: use a better key-server host name
24512         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24513         it may be more consistently reliable.  Suggested by Werner Koch
24514         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24515
24516 2008-06-01  Bruno Haible  <bruno@clisp.org>
24517
24518         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24519         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24520
24521 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24522
24523         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24524
24525 2008-06-01  Bruno Haible  <bruno@clisp.org>
24526
24527         New ACL tests.
24528         * tests/test-file-has-acl.sh: New file.
24529         * tests/test-file-has-acl.c: New file.
24530         * tests/test-set-mode-acl.sh: New file.
24531         * tests/test-set-mode-acl.c: New file.
24532         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24533         * tests/test-copy-acl.c: New file.
24534         * modules/acl-tests: New file, based on modules/copy-file-tests.
24535         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24536         (Depends-on): Add acl-tests.
24537         (configure.ac): Remove checks.
24538         (Makefile.am): Don't create test-sameacls program here any more.
24539
24540 2008-06-01  Bruno Haible  <bruno@clisp.org>
24541
24542         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24543         * tests/test-sameacls.c: Include progname.h.
24544         (main): Invoke set_program_name. Portability fixes for MacOS X,
24545         Solaris, HP-UX.
24546
24547 2008-06-01  Bruno Haible  <bruno@clisp.org>
24548
24549         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24550         function.
24551         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24552
24553 2008-06-01  Bruno Haible  <bruno@clisp.org>
24554
24555         * modules/rpmatch (Depends-on): Add strdup.
24556
24557 2008-06-01  Bruno Haible  <bruno@clisp.org>
24558
24559         * lib/pipe.c: Include unistd-safer.h.
24560         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24561         * modules/pipe (Depends-on): Add unistd-safer.
24562
24563 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24564
24565         * modules/autobuild (configure.ac): Call AB_INIT.
24566
24567 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24568
24569         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24570         Suggested by Bruno Haible <bruno@clisp.org>.
24571
24572 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24573
24574         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24575         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24576         <bruno@clisp.org>.
24577
24578 2008-05-29  Eric Blake  <ebb9@byu.net>
24579
24580         Prefer new POSIX 200x interfaces over futimesat.
24581         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24582         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24583         when available.
24584         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24585
24586 2008-05-28  Bruno Haible  <bruno@clisp.org>
24587
24588         * modules/stpcpy (License): Change to LGPLv2+.
24589         Requested by David Lutterkort <dlutter@redhat.com>.
24590
24591 2008-05-27  Bruno Haible  <bruno@clisp.org>
24592
24593         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24594         current mingw.
24595         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24596
24597 2008-05-27  Bruno Haible  <bruno@clisp.org>
24598
24599         * modules/iconv_open (Link): New section, from module 'iconv'.
24600         * modules/striconv (Link): Likewise.
24601         * modules/striconveh (Link): Likewise.
24602         * modules/xstriconv (Link): Likewise.
24603         * modules/unicodeio (Link): Likewise.
24604         * modules/propername (Link): Likewise.
24605         Reported by Jim Meyering.
24606
24607 2008-05-26  Jim Meyering  <meyering@redhat.com>
24608
24609         sha256: do not artificially restrict buffer length to be < 2^32
24610         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24611         uint32_t to size_t.
24612         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24613         to match.
24614
24615         avoid unaligned access errors, e.g., on sparc
24616         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24617         direct access through a possibly-unaligned uint64* pointer.
24618         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24619         direct access through a possibly-unaligned uint32* pointer.
24620         Prompted by this patch from Tom "spot" Callaway:
24621         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24622
24623         sha512.c: fix typo in comment
24624         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24625
24626 2008-05-25  Bruno Haible  <bruno@clisp.org>
24627
24628         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24629         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24630         (Makefile.am): Update lib_SOURCES.
24631
24632 2008-05-25  Bruno Haible  <bruno@clisp.org>
24633
24634         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24635
24636 2008-05-25  Jim Meyering  <meyering@redhat.com>
24637
24638         useless-if-before-free: freed expr may have white-space differences
24639         * build-aux/useless-if-before-free: Recognize cases in which the
24640         freed expression differs from the tested one in embedded white
24641         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24642         $1 was used, so we can't make any regexp shy.  Improved tests now
24643         detect this.
24644
24645         useless-if-before-free: accept white space in the expression.
24646         * build-aux/useless-if-before-free: For now, any white space
24647         in the expression must be identical in the free argument.
24648
24649         useless-if-before-free: efficiency tweak
24650         * build-aux/useless-if-before-free: Make the expression-matching
24651         regexp "shy".
24652         Make the *outer* regexp shy, not the expr-matching one.
24653
24654         update code-in-comment to accept cast of free arg
24655         * build-aux/useless-if-before-free: Update regexp.
24656
24657 2008-05-25  Bruno Haible  <bruno@clisp.org>
24658
24659         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24660         * modules/copy-file-tests (Files, Makefile.am): Update.
24661         * tests/test-copy-file.c (func_test_copy): Update.
24662
24663 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24664
24665         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24666
24667 2008-05-23  Bruno Haible  <bruno@clisp.org>
24668
24669         Improve support for ACLs on OSF/1.
24670         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24671         Remove fallback for unknown flavors of ACLs.
24672
24673 2008-05-22  Bruno Haible  <bruno@clisp.org>
24674
24675         Add support for ACLs on OSF/1.
24676         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24677         replacements.
24678         (acl_free_text): New macro fallback.
24679         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24680         acl_free.
24681         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24682         acl_free_text function. Require AC_C_INLINE.
24683
24684 2008-05-22  Bruno Haible  <bruno@clisp.org>
24685
24686         Make copy_acl work on MacOS X 10.5.
24687         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24688         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24689         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24690         If MODE_INSIDE_ACL, don't assume that every system has the same text
24691         representation for ACLs as FreeBSD.
24692         * lib/copy-acl.c (copy_acl): Add support for platforms with
24693         !MODE_INSIDE_ACL.
24694         * lib/file-has-acl.c (file_has_acl): Likewise.
24695         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24696         FreeBSD, MacOS X, or IRIX, respectively.
24697
24698 2008-05-22  Bruno Haible  <bruno@clisp.org>
24699
24700         * lib/acl.h: Don't include <sys/acl.h>.
24701         (GETACLCNT): Move fallback to lib/acl-internal.h.
24702         * lib/acl-internal.h: Include <sys/acl.h> here.
24703         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24704
24705 2008-05-22  Bruno Haible  <bruno@clisp.org>
24706
24707         Split off copy_acl function to separate file.
24708         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24709         * lib/acl.c (copy_acl): Moved function to separate file.
24710         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24711         * modules/acl (Files): Add lib/copy-acl.c.
24712         (Makefiles.am): Augment lib_SOURCES.
24713
24714 2008-05-22  Bruno Haible  <bruno@clisp.org>
24715
24716         * modules/copy-file-tests: New file.
24717         * tests/test-copy-file.sh: New file.
24718         * tests/test-copy-file.c: New file.
24719         * tests/test-copy-file-sameacls.c: New file.
24720
24721 2008-05-22  Eric Blake  <ebb9@byu.net>
24722
24723         Avoid gcc warning.
24724         * tests/test-memcmp.c (main): Pass NULL indirectly.
24725
24726 2008-05-21  Bruno Haible  <bruno@clisp.org>
24727
24728         Add reference doc about ACLs.
24729         * doc/acl-resources.txt: New file.
24730         * doc/acl-cygwin.txt: New file.
24731
24732 2008-05-21  Bruno Haible  <bruno@clisp.org>
24733
24734         Avoid one more warning from gcc.
24735         * lib/vasnprintf.c (IF_LINT): Update comments.
24736         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24737
24738 2008-05-21  Jim Meyering  <meyering@redhat.com>
24739
24740         avoid a warning from gcc
24741         * lib/vasnprintf.c (IF_LINT): Define.
24742         (scale10_round_decimal_long_double):
24743         Use it to avoid a "may be used uninitialized" warning.
24744         (scale10_round_decimal_double): Likewise.
24745
24746 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24747
24748         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24749         declared.
24750
24751 2008-05-20  Bruno Haible  <bruno@clisp.org>
24752
24753         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24754         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24755
24756 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24757
24758         * modules/memcmp-tests: New file.
24759         * tests/test-memcmp.c: New file.
24760
24761 2008-05-19  Bruno Haible  <bruno@clisp.org>
24762
24763         * modules/propername (Notice, configure.ac): Put quoted "..." into
24764         --keyword option.
24765         * lib/propername.h: Update comments accordingly.
24766         Reported by Eric Blake.
24767
24768 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24769
24770         * modules/getpass-gnu (Depends-on): Add fseeko.
24771
24772 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24773
24774         * modules/base64-tests: New file.
24775
24776 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24777
24778         * lib/base64.c (base64_decode_ctx): If a decode context structure
24779         was passed in use it to ignore newlines.  If a context structure
24780         was _not_ passed in, continue to treat newlines as garbage (this
24781         is the historical behavior).  Formerly base64_decode.
24782         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24783         takes a decode context structure.
24784         * lib/base64.h (base64_decode): Macro for four-argument calls.
24785         (base64_decode_alloc): Likewise.
24786         * lib/base64.c (base64_decode_ctx): If a decode context structure
24787         was passed in use it to ignore newlines.  If a context structure
24788         was _not_ passed in, continue to treat newlines as garbage (this
24789         is the historical behavior).  Formerly base64_decode.
24790         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24791         takes a decode context structure.
24792         * lib/base64.h (base64_decode): Macro for four-argument calls.
24793         (base64_decode_alloc): Likewise.
24794
24795 2008-05-19  Jim Meyering  <meyering@redhat.com>
24796
24797         avoid a warning from gcc
24798         * lib/trim.c (IF_LINT): Define.
24799         (trim2): Use it to avoid a "may be used uninitialized" warning.
24800
24801         Fix doc typo.
24802         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24803
24804 2008-05-19  Bruno Haible  <bruno@clisp.org>
24805
24806         * doc/glibc-functions/getpass.texi: Document limits of other
24807         implementations.
24808
24809 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24810             Bruno Haible <bruno@clisp.org>
24811
24812         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24813
24814 2008-05-18  Bruno Haible  <bruno@clisp.org>
24815
24816         * modules/propername: New file, from GNU gettext.
24817         * lib/propername.h: New file, from GNU gettext.
24818         * lib/propername.c: New file, from GNU gettext.
24819         * MODULES.html.sh (Internationalization functions): Add propername.
24820
24821 2008-05-16  Jim Meyering  <meyering@redhat.com>
24822             Bruno Haible  <bruno@clisp.org>
24823
24824         Avoid some warnings from "gcc -Wshadow".
24825         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24826
24827 2008-05-15  Eric Blake  <ebb9@byu.net>
24828
24829         Extend previous patch to cygwin 1.7.0.
24830         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24831         fast implementation in cygwin >= 1.7.0.
24832         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24833         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24834
24835 2008-05-15  Bruno Haible  <bruno@clisp.org>
24836
24837         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24838         implementation in glibc >= 2.9.
24839         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24840         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24841
24842 2008-05-15  Bruno Haible  <bruno@clisp.org>
24843
24844         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24845         (Unicode string functions): Add unilbrk/*.
24846         Reported by Karl Berry.
24847
24848 2008-05-15  Eric Blake  <ebb9@byu.net>
24849
24850         Fix violation of <stdbool.h> replacement in regex.
24851         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24852         * lib/regexec.c (re_search_internal): Likewise.
24853         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24854
24855 2008-05-15  Jim Meyering  <meyering@redhat.com>
24856
24857         avoid distracting test output when git or cvs is not found
24858         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24859         * tests/test-vc-list-files-git.sh: Likewise.
24860
24861 2008-05-15  Eric Blake  <ebb9@byu.net>
24862
24863         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24864         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24865         glibc version.
24866         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24867         * doc/posix-functions/strstr.texi (strstr): Likewise.
24868         * lib/str-two-way.h (MAX): Sychronize with glibc.
24869
24870 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24871
24872         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24873         opr.ctx_type.
24874         (calc_first): Initialize constraint field.
24875         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24876         Fix grammar.
24877         (duplicate_node): Merge constraint field for all node types.
24878         (calc_eclosure_iter): Look at constraint field for all node types.
24879         * lib/regex_internal.c (create_cd_newstate): Don't look at
24880         opr.ctx_type.
24881
24882 2008-05-14  Bruno Haible  <bruno@clisp.org>
24883
24884         Help GCC to do better code generation.
24885         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24886         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24887         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24888         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24889         Declare with attribute 'malloc' if supported.
24890
24891 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24892
24893         use "echo STR|wc -c" rather than unportable "expr length STR"
24894         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24895         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24896
24897 2008-05-14  Jim Meyering  <meyering@redhat.com>
24898
24899         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24900         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24901         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24902         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24903         via Collin Lasse.
24904
24905 2008-05-14  Eric Blake  <ebb9@byu.net>
24906
24907         Avoid quadratic growth in gl_LIBSOURCES.
24908         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24909         Suggested by Bruno Haible.
24910
24911         Test xmemdup0.
24912         * modules/xmemdup0-tests: New file.
24913         * tests/test-xmemdup0.c: Likewise.
24914
24915 2008-05-13  Eric Blake  <ebb9@byu.net>
24916
24917         Split xmemdup0 into its own module.
24918         * modules/xmemdup0: New file.
24919         * lib/xmemdup0.h: Likewise.
24920         * lib/xmemdup0.c: Likewise.
24921         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24922         * lib/xalloc.h (xmemdup0): Remove.
24923         * lib/xmalloc.c (xmemdup0): Likewise.
24924
24925 2008-05-13  Eric Blake  <ebb9@byu.net>
24926             Bruno Haible  <bruno@clisp.org>
24927
24928         Reduce number of forks required during autoconf.
24929         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24930         and gl_LIBSOURCES_DIR.
24931         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24932         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24933         m4_syscmd per file.
24934         <m4_foreach_w>: Move...
24935         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24936
24937 2008-05-13  Eric Blake  <ebb9@byu.net>
24938
24939         * gnulib-tool: Fix various comment typos.
24940
24941 2008-05-12  Bruno Haible  <bruno@clisp.org>
24942
24943         Tailor the linebreaking algorithm.
24944         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24945
24946 2008-05-12  Bruno Haible  <bruno@clisp.org>
24947
24948         Update to Unicode 5.0.0.
24949         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24950         LBP_JV, LBP_JT. Redistribute values.
24951         (unilbrk_table): Change size.
24952         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24953         Unicode TR#14 rev. 22.
24954         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24955         LBP_JV, LBP_JT. Redistribute values.
24956         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24957         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24958         Update.
24959         * lib/unilbrk/lbrkprop1.h: Regenerated.
24960         * lib/unilbrk/lbrkprop2.h: Regenerated.
24961         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24962         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24963         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24964         Likewise.
24965         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24966         Likewise.
24967         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24968         result.
24969         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24970         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24971         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24972         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24973         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24974         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24975
24976 2008-05-11  Bruno Haible  <bruno@clisp.org>
24977
24978         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24979
24980 2008-05-11  Bruno Haible  <bruno@clisp.org>
24981
24982         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24983         * modules/unilbrk/gen-lbrk: New file.
24984
24985 2008-05-11  Bruno Haible  <bruno@clisp.org>
24986
24987         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24988         * m4/sha512.m4 (gl_SHA512): Likewise.
24989
24990 2008-05-11  Jim Meyering  <meyering@redhat.com>
24991
24992         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24993         * modules/crypto/sha256: New file.
24994         * modules/crypto/sha512: Likewise.
24995         * lib/sha256.c: Likewise.
24996         * lib/sha256.h: Likewise.
24997         * lib/sha512.c: Likewise.
24998         * lib/sha512.h: Likewise.
24999         * lib/u64.h: Likewise.
25000         * m4/sha256.m4: Likewise.
25001         * m4/sha512.m4: Likewise.
25002         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
25003
25004 2008-05-10  Bruno Haible  <bruno@clisp.org>
25005
25006         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
25007         (Input/Output <stdio.h>): Add xprintf.
25008         (Signal handling <signal.h>): Add strsignal.
25009         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
25010         (Core language properties): Add func.
25011         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
25012         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
25013         strings.
25014         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
25015         (Input/output): New section.
25016         (File system functions): Add openat-die, stat-macros.
25017         (Networking functions): Add sockets.
25018         (Unicode string functions): Add unictype/*.
25019         (Support for building libraries and executables): Add gperf.
25020         (Support for building documentation): Add agpl-3.0.
25021         (Misc): Add nocrash.
25022
25023 2008-05-10  Bruno Haible  <bruno@clisp.org>
25024
25025         * modules/unictype/gen-ctype: New file.
25026
25027 2008-05-10  Jim Meyering  <meyering@redhat.com>
25028
25029         Make chdir-safer.c more efficient on a system with no symlinks.
25030         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
25031         also if ELOOP is zero.  Suggested by Bruno Haible.
25032
25033         Make chdir-safer.c slightly safer.
25034         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
25035         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
25036
25037         Avoid compile failure on systems without ELOOP (like mingw).
25038         * lib/chdir-safer.c (ELOOP): Define if not already defined.
25039         Reported by Bruno Haible.
25040
25041 2008-05-10  Bruno Haible  <bruno@clisp.org>
25042
25043         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
25044         (is_utf8_encoding): Use a case-insensitive comparison.
25045         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
25046         streq.
25047
25048 2008-05-10  Bruno Haible  <bruno@clisp.org>
25049
25050         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
25051         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
25052         * lib/unilbrk/ulc-common.h (iconv_string_length,
25053         iconv_string_keeping_offsets): Remove declarations.
25054         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
25055         Don't include <iconv.h>, streq.h, xsize.h.
25056         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
25057         conversion.
25058         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
25059         <iconv.h>, streq.h, xsize.h.
25060         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
25061         conversion.
25062         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
25063         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
25064         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
25065         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
25066
25067 2008-05-10  Bruno Haible  <bruno@clisp.org>
25068
25069         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
25070         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
25071
25072         * modules/unilbrk/u32-width-linebreaks-tests: New file.
25073         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
25074
25075         * modules/unilbrk/u16-width-linebreaks-tests: New file.
25076         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
25077
25078         * modules/unilbrk/u8-width-linebreaks-tests: New file.
25079         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
25080
25081         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
25082         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
25083
25084         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
25085         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
25086
25087         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
25088         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
25089
25090         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25091         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25092
25093 2008-05-10  Bruno Haible  <bruno@clisp.org>
25094
25095         Split up 'linebreak' module.
25096         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25097         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25098         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25099         modifications.
25100         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25101         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25102         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25103         lib/linebreak.c.
25104         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25105         lib/linebreak.c.
25106         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25107         lib/linebreak.c.
25108         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25109         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25110         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25111         lib/linebreak.c.
25112         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25113         lib/linebreak.c.
25114         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25115         lib/linebreak.c.
25116         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25117         lib/linebreak.c.
25118         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25119         lib/linebreak.c.
25120         * modules/unilbrk/base: New file.
25121         * modules/unilbrk/tables: New file.
25122         * modules/unilbrk/u8-possible-linebreaks: New file.
25123         * modules/unilbrk/u16-possible-linebreaks: New file.
25124         * modules/unilbrk/u32-possible-linebreaks: New file.
25125         * modules/unilbrk/ulc-common: New file.
25126         * modules/unilbrk/ulc-possible-linebreaks: New file.
25127         * modules/unilbrk/u8-width-linebreaks: New file.
25128         * modules/unilbrk/u16-width-linebreaks: New file.
25129         * modules/unilbrk/u32-width-linebreaks: New file.
25130         * modules/unilbrk/ulc-width-linebreaks: New file.
25131         * lib/linebreak.h: Remove file.
25132         * lib/linebreak.c: Remove file.
25133         * m4/linebreak.m4: Remove file.
25134         * modules/linebreak: Remove file.
25135         * NEWS: Mention the changes.
25136
25137 2008-05-09  Eric Blake  <ebb9@byu.net>
25138
25139         Add xmemdup0.
25140         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25141         implementation.
25142         * lib/xmalloc.c (xmemdup0): New C implementation.
25143
25144 2008-05-08  Bruno Haible  <bruno@clisp.org>
25145
25146         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25147
25148 2008-05-07  Eric Blake  <ebb9@byu.net>
25149
25150         Support cross-compilation of <wctype.h>.
25151         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25152         AC_CACHE_CHECK.
25153
25154 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25155
25156         * build-aux/vc-list-files: Add support for bzr.
25157
25158 2008-05-03  Jim Meyering  <meyering@redhat.com>
25159
25160         avoid failed assertion with tight malloc
25161         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25162
25163 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25164
25165         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25166         are needed from arpa/inet.h.
25167         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25168         Reported by Bruno Haible.
25169
25170 2008-05-02  Jim Meyering  <meyering@redhat.com>
25171
25172         avoid compilation error on FreeBSD 6
25173         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25174
25175 2008-05-01  Jim Meyering  <meyering@redhat.com>
25176
25177         useless-if-before-free: correct --help's exit status description
25178         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25179         for one or more matches, etc.  Reported by Bruno Haible.
25180
25181         vc-list-files: make the stand-alone gnulib test work
25182         * modules/vc-list-files-tests (configure.ac):
25183         Define and AC_SUBST abs_aux_dir.
25184         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25185         $(abs_top_srcdir) to each script and having each of them
25186         duplicate the work of setting PATH, set PATH here, using
25187         the new variable, abs_aux_dir instead.
25188         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25189         * tests/test-vc-list-files-git.sh: Likewise.
25190         Reported by Bruno Haible.
25191
25192 2008-05-01  Bruno Haible  <bruno@clisp.org>
25193
25194         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25195         reallocation. Rename 'done' to 'found_delimiter'.
25196
25197 2008-05-01  Jim Meyering  <meyering@redhat.com>
25198
25199         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25200         * build-aux/vc-list-files: Use `...`, not $(...).
25201
25202 2008-04-30  Jim Meyering  <meyering@redhat.com>
25203
25204         add tests for vc-list-files
25205         * modules/vc-list-files-tests: New module.
25206         * tests/test-vc-list-files-cvs.sh: New file.
25207         * tests/test-vc-list-files-git.sh: New file.
25208
25209         avoid a warning from gcc
25210         * lib/getndelim2.c (IF_LINT): Define.
25211         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25212
25213         vc-list-files: work properly with build-aux/cvsu, too
25214         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25215         to all cvs-based clauses.
25216
25217         vc-list-files: work properly in the CVS+awk case, too
25218         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25219
25220         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25221         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25222         take more than one file argument, so .  Add quotes, just in case $dir
25223         ever contains a shell meta-character.  Prompted by Soren Hansen in
25224         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25225
25226 2008-04-29  Eric Blake  <ebb9@byu.net>
25227
25228         Optimize getndelim2 to use block operations when possible.
25229         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25230         freadseek, and memchr2.
25231         * lib/getndelim2.c (getndelim2): Use them for block reads.
25232
25233 2008-04-29  Bruno Haible  <bruno@clisp.org>
25234
25235         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25236         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25237         * modules/inet_ntop (Depends-on): Add extensions.
25238         * modules/inet_pton (Depends-on): Likewise.
25239         Reported by Simon Josefsson.
25240
25241 2008-04-29  Jim Meyering  <meyering@redhat.com>
25242
25243         When the is more than one match in a block, match all of them.
25244         * build-aux/useless-if-before-free: Iterate through each block
25245         until there are no more matches.
25246
25247         Fix broken useless-if-before-free script.
25248         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25249         the expression to match cast of argument to free-like function.
25250
25251 2008-04-29  Eric Blake  <ebb9@byu.net>
25252
25253         Use new header.
25254         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25255
25256 2008-04-29  Jim Meyering  <meyering@redhat.com>
25257
25258         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25259         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25260         by gnulib to exist and to declare e.g., inet_ntop.
25261         Don't include "inet_ntop.h", now removed.
25262
25263         * m4/arpa_inet_h.m4: Remove trailing blanks.
25264
25265 2008-04-29  Eric Blake  <ebb9@byu.net>
25266
25267         Silence valgrind on safe reads beyond potential array bounds.
25268         * lib/rawmemchr.valgrind: New file.
25269         * lib/strchrnul.valgrind: Likewise.
25270         * modules/rawmemchr (Files): Distribute new file.
25271         * modules/strchrnul (Files): Likewise.
25272         Suggested by Bruno Haible.
25273
25274 2008-04-29  Bruno Haible  <bruno@clisp.org>
25275
25276         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25277         (inet_ntop, inet_pton): Change portability warning's wording.
25278         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25279         Invoke gl_CHECK_NEXT_HEADERS.
25280         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25281         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25282         set ARPA_INET_H.
25283         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25284         * modules/arpa_inet (Description): No longer only for systems that
25285         lack it.
25286         (Depends-on): Add include_next.
25287         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25288         HAVE_ARPA_INET_H.
25289
25290 2008-04-29  Jim Meyering  <meyering@redhat.com>
25291
25292         * modules/mkdir (License): Re-license as LGPLv2+.
25293
25294 2008-04-29  Bruno Haible  <bruno@clisp.org>
25295
25296         * modules/rawmemchr (Maintainer): Set to Eric.
25297         * modules/strchrnul (Maintainer): Likewise.
25298
25299 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25300
25301         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25302         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25303
25304         * modules/arpa_inet (arpa/inet.h): Use them.
25305
25306 2008-04-28  Eric Blake  <ebb9@byu.net>
25307
25308         Test getndelim2.
25309         * modules/getndelim2-tests: New file.
25310         * tests/test-getndelim2.c: Likewise.
25311         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25312         stream.
25313         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25314
25315         * MODULES.html.sh: Document new module.
25316
25317 2008-04-20  Bruno Haible  <bruno@clisp.org>
25318
25319         * lib/c-stack.c (die): Use raise.
25320         * modules/c-stack (Depends-on): Add raise.
25321
25322 2008-04-28  Bruno Haible  <bruno@clisp.org>
25323
25324         Expect rpmatch to be declared.
25325         * lib/yesno.c (rpmatch): Remove declaration.
25326
25327         Declare rpmatch.
25328         * lib/stdlib.in.h (rpmatch): New declaration.
25329         * lib/rpmatch.c: Include <stdlib.h> first.
25330         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25331         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25333         HAVE_RPMATCH.
25334         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25335         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25336         (Include): Set to <stdlib.h>.
25337         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25338         HAVE_RPMATCH.
25339         * NEWS: Document the change.
25340
25341 2008-04-28  Bruno Haible  <bruno@clisp.org>
25342
25343         Change rpmatch to use nl_langinfo when appropriate.
25344         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25345         (N_): New macro.
25346         (localized_pattern): New function/macro.
25347         (try): Remove match, nomatch arguments. Copy the pattern into safe
25348         memory before caching it.
25349         (rpmatch): Use localized_pattern. Add translator comments.
25350         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25351         Suggested by Eric Blake.
25352         * modules/rpmatch (Depends-on): Add stdbool.
25353
25354 2008-04-28  Eric Blake  <ebb9@byu.net>
25355
25356         Add rawmemchr module, matching glibc.
25357         * modules/string (Makefile.am): New indicator.
25358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25359         * lib/string.in.h (rawmemchr): Declare when appropriate.
25360         * modules/rawmemchr: New file.
25361         * m4/rawmemchr.m4: Likewise.
25362         * lib/rawmemchr.c: Likewise.
25363         * modules/rawmemchr-tests: Likewise.
25364         * tests/test-rawmemchr.c: Likewise.
25365         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25366         module.
25367         * modules/strchrnul (Depends-on): Add rawmemchr.
25368         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25369
25370         Whitespace cleanup.
25371         * tests/test-strchrnul.c: Reindent.
25372         * lib/strchrnul.c: Likewise.
25373
25374         Optimize and test strchrnul.
25375         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25376         * modules/strchrnul-tests: New file.
25377         * tests/test-strchrnul.c: Likewise.
25378
25379         Remove intprops dependency.
25380         * modules/memchr (Depends-on): Remove intprops.
25381         * modules/memrchr (Depends-on): Likewise.
25382         * modules/memchr2 (Depends-on): Likewise.
25383         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25384         * lib/memrchr.c (__memrchr): Likewise.
25385         * lib/memrchr2.c (memchr2): Likewise.
25386         Reported by Simon Josefsson.
25387
25388 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25389
25390         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25391         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25392
25393 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25394
25395         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25396
25397         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25398
25399         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25400
25401         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25402         declarations.
25403         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25404
25405         * m4/inet_pton.m4: Don't check for header files.
25406
25407         * m4/inet_ntop.m4: Don't check for header files.
25408
25409 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25410
25411         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25412         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25413         trigger for cygwin).
25414         Reported by Bruno Haible  <bruno@clisp.org>.
25415
25416 2008-04-28  Bruno Haible  <bruno@clisp.org>
25417
25418         * doc/posix-functions/strdup.texi: Mention mingw problem.
25419
25420 2008-04-27  Bruno Haible  <bruno@clisp.org>
25421
25422         * modules/stat-time-tests (Depends-on): Add sleep.
25423         * tests/test-stat-time.c (force_unlink): New function.
25424         (cleanup): Use it.
25425         (test_mtime): Remove the ctime related tests.
25426         (test_ctime): New function, containing the ctime related tests.
25427         (main): Call test_ctime, except on native Windows platforms.
25428
25429 2008-04-27  Bruno Haible  <bruno@clisp.org>
25430
25431         * lib/rpmatch.c (rpmatch): Add some comments.
25432         Reported by James Youngman <jay@gnu.org>.
25433
25434 2008-04-27  Bruno Haible  <bruno@clisp.org>
25435
25436         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25437         quiet NaNs.
25438
25439 2008-04-27  Bruno Haible  <bruno@clisp.org>
25440
25441         Make test-yesno.sh work on mingw.
25442         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25443         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25444         (main): Set stdin to binary mode.
25445         * modules/yesno-tests (Depends-on): Add binary-io.
25446
25447 2008-04-27  Bruno Haible  <bruno@clisp.org>
25448
25449         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25450         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25451         argument that lie outside the IEEE 854 domain.
25452         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25453         (gl_ISFINITE): Use it.
25454         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25455
25456 2008-04-27  Bruno Haible  <bruno@clisp.org>
25457
25458         Allow local renaming in config.h.
25459         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25460
25461 2008-04-27  Bruno Haible  <bruno@clisp.org>
25462
25463         * lib/memchr.c (__memchr): Change type of 'i'.
25464         * lib/memchr2.c (memchr2): Likewise.
25465
25466 2008-04-26  Eric Blake  <ebb9@byu.net>
25467         and Bruno Haible  <bruno@clisp.org>
25468
25469         Optimize and test memrchr.
25470         * modules/memrchr (Depends-on): Add intprops.
25471         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25472         * modules/memrchr-tests: New file.
25473         * tests/test-memrchr.c: New file.
25474
25475 2008-04-26  Bruno Haible  <bruno@clisp.org>
25476
25477         Add tentative support for DragonFly BSD.
25478         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25479         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25480         fp.
25481         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25482         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25483         * lib/fpurge.c (fpurge): Likewise.
25484         * lib/freadable.c (freaadable): Likewise.
25485         * lib/freadahead.c (freadahead): Likewise.
25486         * lib/freading.c (freading): Likewise.
25487         * lib/freadptr.c (freadptr): Likewise.
25488         * lib/freadseek.c (freadptrinc): Likewise.
25489         * lib/fseeko.c (fseeko): Likewise.
25490         * lib/fseterr.c (fseterr): Likewise.
25491         * lib/fwritable.c (fwritable): Likewise.
25492         * lib/fwriting.c (fwriting): Likewise.
25493
25494 2008-04-26  Bruno Haible  <bruno@clisp.org>
25495
25496         * lib/stdio-impl.h: New file.
25497         * lib/fbufmode.c: Include stdio-impl.h.
25498         (fbufmode): Use fp_, remove redundant #defines.
25499         * lib/fflush.c: Include stdio-impl.h.
25500         (clear_ungetc_buffer): Remove redundant #defines.
25501         * lib/fpurge.c: Include stdio-impl.h.
25502         (fpurge): Remove redundant #defines.
25503         * lib/freadable.c: Include stdio-impl.h.
25504         (freadable): Remove redundant #defines.
25505         * lib/freadahead.c: Include stdio-impl.h.
25506         (freadahead): Remove redundant #defines.
25507         * lib/freading.c: Include stdio-impl.h.
25508         (freading): Remove redundant #defines.
25509         * lib/freadptr.c: Include stdio-impl.h.
25510         (freadptr): Remove redundant #defines.
25511         * lib/freadseek.c: Include stdio-impl.h.
25512         (freadptrinc): Remove redundant #defines.
25513         * lib/fseeko.c: Include stdio-impl.h.
25514         (rpl_fseeko): Remove redundant #defines.
25515         * lib/fseterr.c: Include stdio-impl.h.
25516         (fseterr): Remove redundant #defines.
25517         * lib/fwritable.c: Include stdio-impl.h.
25518         (fwritable: Remove redundant #defines.
25519         * lib/fwriting.c: Include stdio-impl.h.
25520         (fwriting): Remove redundant #defines.
25521         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25522         * modules/fflush (Files): Likewise.
25523         * modules/fpurge (Files): Likewise.
25524         * modules/freadable (Files): Likewise.
25525         * modules/freadahead (Files): Likewise.
25526         * modules/freading (Files): Likewise.
25527         * modules/freadptr (Files): Likewise.
25528         * modules/freadseek (Files): Likewise.
25529         * modules/fseeko (Files): Likewise.
25530         * modules/fseterr (Files): Likewise.
25531         * modules/fwritable (Files): Likewise.
25532         * modules/fwriting (Files): Likewise.
25533
25534 2008-04-26  Bruno Haible  <bruno@clisp.org>
25535
25536         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25537         restore_seek_optimization, update_fpos_cache): New functions, extracted
25538         from rpl_fflush.
25539         (rpl_fflush): Use them.
25540         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25541         (gl_REPLACE_FFLUSH): Use it.
25542
25543 2008-04-26  Bruno Haible  <bruno@clisp.org>
25544
25545         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25546         on Solaris.
25547         * tests/test-xstrtoimax.sh: Likewise.
25548         * tests/test-xstrtoumax.sh: Likewise.
25549         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25550
25551 2008-04-26  Bruno Haible  <bruno@clisp.org>
25552
25553         * modules/memchr-tests: New file.
25554         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25555
25556 2008-04-26  Eric Blake  <ebb9@byu.net>
25557             Bruno Haible  <bruno@clisp.org>
25558
25559         * lib/memchr.c: Include intprops.h.
25560         (__memchr): Optimize parallel detection of matching bytes. Rename local
25561         variables. Add explanatory comments.
25562
25563 2008-04-26  Bruno Haible  <bruno@clisp.org>
25564
25565         Fix module 'memchr', broken since 2000-10-28.
25566         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25567
25568 2008-04-26  Bruno Haible  <bruno@clisp.org>
25569
25570         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25571         comments.
25572
25573 2008-04-25  Eric Blake  <ebb9@byu.net>
25574
25575         Use native fstatat on cygwin 1.7.0.
25576         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25577         first.
25578
25579 2008-04-23  Eric Blake  <ebb9@byu.net>
25580
25581         Improve memchr2 performance.
25582         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25583         NUL bytes.
25584         * modules/memchr2 (Depends-on): Use intprops.h.
25585
25586 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25587
25588         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25589         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25590         <blp@cs.stanford.edu>.
25591
25592 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25593
25594         * lib/arpa_inet.in.h: New file.
25595
25596         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25597         (Makefile.am): Sed in substitute header file.
25598
25599         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25600         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25601
25602         * modules/inet_ntop (configure.ac): Use
25603         gl_ARPA_INET_MODULE_INDICATOR.
25604
25605         * modules/inet_pton (configure.ac): Use
25606         gl_ARPA_INET_MODULE_INDICATOR.
25607
25608 2008-04-22  Jim Meyering  <meyering@redhat.com>
25609
25610         * modules/verify (License): Re-license as LGPLv2+.
25611
25612 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25613
25614         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25615         parameter to void* as per POSIX standard (MinGW uses char*).
25616
25617 2008-04-21  Bruno Haible  <bruno@clisp.org>
25618
25619         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25620         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25621         Define to replacements if REPLACE_ISWCNTRL is 1.
25622         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25623         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25624         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25625         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25626         what it fixes.
25627         * doc/posix-functions/iswalpha.texi: Likewise.
25628         * doc/posix-functions/iswblank.texi: Likewise.
25629         * doc/posix-functions/iswcntrl.texi: Likewise.
25630         * doc/posix-functions/iswdigit.texi: Likewise.
25631         * doc/posix-functions/iswgraph.texi: Likewise.
25632         * doc/posix-functions/iswlower.texi: Likewise.
25633         * doc/posix-functions/iswprint.texi: Likewise.
25634         * doc/posix-functions/iswpunct.texi: Likewise.
25635         * doc/posix-functions/iswspace.texi: Likewise.
25636         * doc/posix-functions/iswupper.texi: Likewise.
25637         * doc/posix-functions/iswxdigit.texi: Likewise.
25638         Reported by Alain Guibert.
25639
25640 2008-04-21  Bruno Haible  <bruno@clisp.org>
25641
25642         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25643         Patch by Alain Guibert.
25644
25645 2008-04-21  Bruno Haible  <bruno@clisp.org>
25646
25647         Fix test failures on mingw.
25648         * tests/test-xstrtol.c (print_no_progname): New function.
25649         (main): Install it in error_print_progname hook.
25650         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25651         * tests/test-xstrtoimax.sh: Likewise.
25652         * tests/test-xstrtoumax.sh: Likewise.
25653
25654 2008-04-21  Bruno Haible  <bruno@clisp.org>
25655
25656         Fix test failure on mingw.
25657         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25658
25659 2008-04-21  Bruno Haible  <bruno@clisp.org>
25660
25661         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25662         Actually assign a value.
25663
25664 2008-04-20  Bruno Haible  <bruno@clisp.org>
25665
25666         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25667         take 2.
25668         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25669         'canonicalize-lgpl' module is also used.
25670         * lib/canonicalize-lgpl.c: Undo last change.
25671         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25672
25673 2008-04-20  Bruno Haible  <bruno@clisp.org>
25674
25675         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25676         config.h. Provide _mkdir based fallback for mingw.
25677         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25678         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25679         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25680         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25681         rather than defining mkdir in config.h.
25682         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25683         (gl_SYS_STAT_H_DEFAULTS): New macro.
25684         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25685         HAVE_IO_H any more.
25686         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25687         HAVE_DECL_MKDIR and HAVE_IO_H.
25688
25689 2008-04-20  Bruno Haible  <bruno@clisp.org>
25690
25691         * lib/isapipe.c: Port to native Windows platforms.
25692
25693 2008-04-20  Bruno Haible  <bruno@clisp.org>
25694
25695         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25696
25697 2008-04-21  Eric Blake  <ebb9@byu.net>
25698
25699         Work around preprocessors that don't handle UINTMAX_MAX.
25700         * lib/memchr2.c (memchr2): Avoid embedded #if.
25701         Reported by Alain Guibert, fix suggested by Bruno Haible.
25702
25703 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25704
25705         * doc/posix-functions/strftime.texi (strftime): Explain better
25706         Windows incompatibility.  Suggested by Micah Cowan
25707         <micah@cowan.name>.
25708
25709 2008-04-20  Bruno Haible  <bruno@clisp.org>
25710
25711         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25712         unistr/u8-mblen.
25713
25714 2008-04-20  Bruno Haible  <bruno@clisp.org>
25715
25716         Fix test failure on platforms with non-GNU iconv.
25717         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25718         (U_TO_U8): Use it, rather than u16_to_u8.
25719         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25720         units at the end of the input string.
25721         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25722
25723 2008-04-20  Bruno Haible  <bruno@clisp.org>
25724
25725         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25726         when the resulting length is 0.
25727         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25728
25729 2008-04-20  Bruno Haible  <bruno@clisp.org>
25730
25731         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25732         works.
25733         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25734
25735 2008-04-20  Bruno Haible  <bruno@clisp.org>
25736
25737         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25738         * modules/tsearch-tests (configure.ac): Test for initstate function.
25739
25740 2008-04-20  Bruno Haible  <bruno@clisp.org>
25741
25742         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25743         for nlink_t if missing.
25744         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25745
25746 2008-04-19  Bruno Haible  <bruno@clisp.org>
25747
25748         Work around snprintf bug on Linux libc5.
25749         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25750         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25751         gl_SNPRINTF_SIZE1.
25752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25753         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25754         that test failed.
25755         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25756         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25757         * modules/snprintf (Files): Add m4/printf.m4.
25758         * modules/vsnprintf (Files): Likewise.
25759         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25760         * doc/posix-functions/vsnprintf.texi: Likewise.
25761
25762 2008-04-19  Bruno Haible  <bruno@clisp.org>
25763
25764         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25765         from 0.0058 to less than 10^-7.
25766
25767 2008-04-19  Bruno Haible  <bruno@clisp.org>
25768
25769         Fix rounding when a precision is given.
25770         * lib/vasnprintf.c (is_borderline): New function.
25771         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25772         9...9x.
25773         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25774         %e, %g.
25775         * tests/test-vasprintf-posix.c (test_function): Likewise.
25776         * tests/test-snprintf-posix.h (test_function): Likewise.
25777         * tests/test-sprintf-posix.h (test_function): Likewise.
25778         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25779         * tests/test-printf-posix.h (test_function): Likewise.
25780         * tests/test-printf-posix.output: Update.
25781         Reported by John Darrington <john@darrington.wattle.id.au> via
25782         Ben Pfaff <blp@cs.stanford.edu>.
25783
25784 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25785
25786         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25787         Suggested by Bruno Haible <bruno@clisp.org>.
25788
25789 2008-04-17  Bruno Haible  <bruno@clisp.org>
25790
25791         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25792         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25793         implementation.
25794         Patch by Bruce Merry <bmerry@gmail.com>.
25795
25796 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25797
25798         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25799         doesn't work under Windows.
25800
25801 2008-04-16  Bruno Haible  <bruno@clisp.org>
25802
25803         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25804         New macros.
25805         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25806         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25807         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25808         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25809         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25810         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25811         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25812         macros.
25813         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25814         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25815         Northern Sotho, Uighur.
25816
25817 2008-04-16  Bruno Haible  <bruno@clisp.org>
25818
25819         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25820         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25821         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25822         Reported by Daniel Bergström <daniel@octocode.com>.
25823
25824 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25825             Bruno Haible  <bruno@clisp.org>
25826
25827         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25828         function.
25829         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25830         New functions, mostly extracted from gl_locale_name_default.
25831         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25832
25833 2008-04-16  Eric Blake  <ebb9@byu.net>
25834
25835         Adjust strtod detection to catch glibc 2.7 bug.
25836         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25837         Reported by John Gatewood Ham.
25838
25839 2008-04-16  Bruno Haible  <bruno@clisp.org>
25840
25841         Add tentative support for Linux libc5.
25842         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25843         * lib/fpurge.c (fpurge): Likewise.
25844         * lib/freadable.c (freadable): Likewise.
25845         * lib/freadahead.c (freadahead): Likewise.
25846         * lib/freading.c (freading): Likewise.
25847         * lib/freadptr.c (freadptr): Likewise.
25848         * lib/freadseek.c (freadptrinc): Likewise.
25849         * lib/fseeko.c (rpl_fseeko): Likewise.
25850         * lib/fseterr.c (fseterr): Likewise.
25851         * lib/fwritable.c (fwritable): Likewise.
25852         * lib/fwriting.c (fwriting): Likewise.
25853         Reported by Alain Guibert <alguibert+bts@free.fr>.
25854
25855 2008-04-15  Bruno Haible  <bruno@clisp.org>
25856
25857         * modules/mathl (configure.ac): Define module indicator.
25858
25859 2008-04-15  Bruno Haible  <bruno@clisp.org>
25860
25861         * lib/logl.c (logl): Remove unused variables.
25862
25863 2008-04-15  Bruno Haible  <bruno@clisp.org>
25864
25865         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25866         fails.
25867
25868 2008-04-15  Bruno Haible  <bruno@clisp.org>
25869
25870         * lib/trim.c (trim2): Fix argument of isspace() macro.
25871
25872 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25873
25874         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25875         to 0.
25876         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25877
25878 2008-04-14  Bruno Haible  <bruno@clisp.org>
25879
25880         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25881         AC_LANG_PROGRAM argument.
25882         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25883         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25884         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25885         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25886         * m4/math_h.m4 (gl_MATH_H): Likewise.
25887         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25888         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25889         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25890         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25891         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25892         * m4/regex.m4 (gl_REGEX): Likewise.
25893         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25894         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25895         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25896         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25897         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25898         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25899         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25900         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25901
25902 2008-04-14  Jim Meyering  <meyering@redhat.com>
25903
25904         test-strtod: fix typos: s/abs/fabs/
25905         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25906
25907 2008-04-13  Bruno Haible  <bruno@clisp.org>
25908
25909         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25910         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25911         module is also used and while not building the reloc-wrapper.
25912
25913 2008-04-13  Bruno Haible  <bruno@clisp.org>
25914
25915         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25916
25917 2008-04-13  Bruno Haible  <bruno@clisp.org>
25918
25919         Fix AIX compilation failure introduced on 2008-04-02.
25920         * tests/test-frexp.c (exp): Undefine before redefining.
25921         * tests/test-frexpl.c (exp): Likewise.
25922
25923 2008-04-13  Bruno Haible  <bruno@clisp.org>
25924
25925         Work around a HP-UX stdio bug.
25926         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25927         * tests/test-ftello.c (main): Likewise.
25928         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25929         * doc/posix-functions/ftello.texi: Likewise.
25930
25931 2008-04-13  Bruno Haible  <bruno@clisp.org>
25932
25933         Make test-signbit pass on HP-UX/hppa.
25934         * tests/test-signbit.c (minus_zerol): New variable.
25935         (test_signbitl): Use it.
25936
25937 2008-04-13  Bruno Haible  <bruno@clisp.org>
25938
25939         Make truncl work on OSF/1 4.0.
25940         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25941         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25942         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25944         HAVE_DECL_TRUNCL.
25945         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25946         HAVE_DECL_TRUNCL.
25947         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25948
25949 2008-04-13  Bruno Haible  <bruno@clisp.org>
25950
25951         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25952
25953 2008-04-13  Bruno Haible  <bruno@clisp.org>
25954
25955         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25956         expression, so as to avoid HP-UX 11 cc compiler bug.
25957
25958 2008-04-13  Bruno Haible  <bruno@clisp.org>
25959
25960         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25961
25962 2008-04-13  Bruno Haible  <bruno@clisp.org>
25963
25964         * lib/git-merge-changelog.c: Remove empty declaration outside of
25965         functions.
25966
25967 2008-04-13  Bruno Haible  <bruno@clisp.org>
25968
25969         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25970
25971 2008-04-13  Bruno Haible  <bruno@clisp.org>
25972
25973         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25974         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25975         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25976         also if it exists but lacks definitions of the SHUT_* macros.
25977         * modules/sys_socket (Description): Update.
25978         Reported by Elbert Pol <e.pol@chello.nl>.
25979
25980 2008-04-13  Bruno Haible  <bruno@clisp.org>
25981
25982         * lib/localcharset.c (OS2): Don't redefine if already defined.
25983         Reported by Elbert Pol <e.pol@chello.nl>.
25984
25985 2008-04-13  Bruno Haible  <bruno@clisp.org>
25986
25987         * lib/binary-io.h [__EMX__]: Include <io.h>.
25988         Reported by Elbert Pol <e.pol@chello.nl>.
25989
25990 2008-04-12  Bruno Haible  <bruno@clisp.org>
25991
25992         * lib/fpucw.h: Enable the definitions also for x86_64.
25993         Needed for NetBSD/x86_64.
25994         Reported by Thomas Klausner <tk@giga.or.at>.
25995
25996 2008-04-12  Bruno Haible  <bruno@clisp.org>
25997
25998         * tests/test-strtod.c: Include isnand.h.
25999         (main): Use isnand instead of isnan.
26000         Reported by Jim Meyering.
26001
26002 2008-04-12  Bruno Haible  <bruno@clisp.org>
26003
26004         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
26005         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26006
26007 2008-04-12  Jim Meyering  <meyering@redhat.com>
26008
26009         * m4/math_h.m4 (gl_MATH_H): Fix typos.
26010
26011 2008-04-12  Bruno Haible  <bruno@clisp.org>
26012
26013         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
26014         Reported by Elbert Pol <e.pol@chello.nl>.
26015
26016 2008-04-12  Eric Blake  <ebb9@byu.net>
26017
26018         Work around Solaris 10 math.h bug.
26019         * m4/math_h.m4 (gl_MATH_H): Check for bug.
26020         (gl_MATH_H_DEFAULTS): Set up default.
26021         * modules/math (Makefile.am): Replace new indicators.
26022         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
26023         * tests/test-math.c (main): Test this.
26024         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
26025         * doc/posix-headers/math.texi (math.h): Mention bug.
26026         Reported by Nelson H. F. Beebe and Jim Meyering.
26027
26028 2008-04-11  Bruno Haible  <bruno@clisp.org>
26029
26030         Adapt to future versions of Apple GCC.
26031         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
26032         Reported by Peter O'Gorman <peter@pogma.com>.
26033
26034 2008-04-11  Bruno Haible  <bruno@clisp.org>
26035
26036         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
26037
26038 2008-04-11  Bruno Haible  <bruno@clisp.org>
26039
26040         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
26041
26042         * modules/getaddrinfo-tests (Makefile.am): Define
26043         test_getaddrinfo_LDADD.
26044
26045 2008-04-11  Bruno Haible  <bruno@clisp.org>
26046
26047         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
26048         (init): Fix syntax error.
26049         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
26050         is declared.
26051
26052 2008-04-11  Bruno Haible  <bruno@clisp.org>
26053
26054         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
26055         * modules/glob (Depends-on): Add stdbool.
26056
26057 2008-04-11  Bruno Haible  <bruno@clisp.org>
26058
26059         * lib/trim.c: Include <string.h>.
26060
26061 2008-04-11  Eric Blake  <ebb9@byu.net>
26062
26063         Avoid compile failure on OS/2.
26064         * lib/regex_internal.h (internal_function): Disable optimization
26065         on OS/2 (__EMX__), where it caused compiler error.
26066         Reported by Elbert Pol.
26067
26068 2008-04-11  Bruno Haible  <bruno@clisp.org>
26069
26070         Flush the standard error stream before aborting. Needed on mingw.
26071         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
26072         * tests/test-array_list.c (ASSERT): Likewise.
26073         * tests/test-array_oset.c (ASSERT): Likewise.
26074         * tests/test-avltree_list.c (ASSERT): Likewise.
26075         * tests/test-avltree_oset.c (ASSERT): Likewise.
26076         * tests/test-avltreehash_list.c (ASSERT): Likewise.
26077         * tests/test-binary-io.c (ASSERT): Likewise.
26078         * tests/test-byteswap.c (ASSERT): Likewise.
26079         * tests/test-c-ctype.c (ASSERT): Likewise.
26080         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
26081         * tests/test-c-strcasestr.c (ASSERT): Likewise.
26082         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
26083         * tests/test-c-strstr.c (ASSERT): Likewise.
26084         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
26085         * tests/test-canonicalize.c (ASSERT): Likewise.
26086         * tests/test-carray_list.c (ASSERT): Likewise.
26087         * tests/test-ceilf1.c (ASSERT): Likewise.
26088         * tests/test-ceilf2.c (ASSERT): Likewise.
26089         * tests/test-ceill.c (ASSERT): Likewise.
26090         * tests/test-count-one-bits.c (ASSERT): Likewise.
26091         * tests/test-fbufmode.c (ASSERT): Likewise.
26092         * tests/test-fflush2.c (ASSERT): Likewise.
26093         * tests/test-floorf1.c (ASSERT): Likewise.
26094         * tests/test-floorf2.c (ASSERT): Likewise.
26095         * tests/test-floorl.c (ASSERT): Likewise.
26096         * tests/test-fopen.c (ASSERT): Likewise.
26097         * tests/test-fpending.c (ASSERT): Likewise.
26098         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26099         * tests/test-fpurge.c (ASSERT): Likewise.
26100         * tests/test-freadable.c (ASSERT): Likewise.
26101         * tests/test-freadahead.c (ASSERT): Likewise.
26102         * tests/test-freading.c (ASSERT): Likewise.
26103         * tests/test-freadptr.c (ASSERT): Likewise.
26104         * tests/test-freadptr2.c (ASSERT): Likewise.
26105         * tests/test-freadseek.c (ASSERT): Likewise.
26106         * tests/test-freopen.c (ASSERT): Likewise.
26107         * tests/test-frexp.c (ASSERT): Likewise.
26108         * tests/test-frexpl.c (ASSERT): Likewise.
26109         * tests/test-fseek.c (ASSERT): Likewise.
26110         * tests/test-fseeko.c (ASSERT): Likewise.
26111         * tests/test-fstrcmp.c (ASSERT): Likewise.
26112         * tests/test-ftell.c (ASSERT): Likewise.
26113         * tests/test-ftello.c (ASSERT): Likewise.
26114         * tests/test-func.c (ASSERT): Likewise.
26115         * tests/test-fwritable.c (ASSERT): Likewise.
26116         * tests/test-fwriting.c (ASSERT): Likewise.
26117         * tests/test-getdelim.c (ASSERT): Likewise.
26118         * tests/test-getline.c (ASSERT): Likewise.
26119         * tests/test-i-ring.c (ASSERT): Likewise.
26120         * tests/test-iconv-utf.c (ASSERT): Likewise.
26121         * tests/test-iconv.c (ASSERT): Likewise.
26122         * tests/test-isfinite.c (ASSERT): Likewise.
26123         * tests/test-isnand.c (ASSERT): Likewise.
26124         * tests/test-isnanf.c (ASSERT): Likewise.
26125         * tests/test-isnanl.h (ASSERT): Likewise.
26126         * tests/test-ldexpl.c (ASSERT): Likewise.
26127         * tests/test-linked_list.c (ASSERT): Likewise.
26128         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26129         * tests/test-localename.c (ASSERT): Likewise.
26130         * tests/test-lseek.c (ASSERT): Likewise.
26131         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26132         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26133         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26134         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26135         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26136         * tests/test-mbschr.c (ASSERT): Likewise.
26137         * tests/test-mbscspn.c (ASSERT): Likewise.
26138         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26139         * tests/test-mbspbrk.c (ASSERT): Likewise.
26140         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26141         * tests/test-mbsrchr.c (ASSERT): Likewise.
26142         * tests/test-mbsspn.c (ASSERT): Likewise.
26143         * tests/test-mbsstr1.c (ASSERT): Likewise.
26144         * tests/test-mbsstr2.c (ASSERT): Likewise.
26145         * tests/test-mbsstr3.c (ASSERT): Likewise.
26146         * tests/test-memchr2.c (ASSERT): Likewise.
26147         * tests/test-memmem.c (ASSERT): Likewise.
26148         * tests/test-open.c (ASSERT): Likewise.
26149         * tests/test-printf-frexp.c (ASSERT): Likewise.
26150         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26151         * tests/test-printf-posix.c (ASSERT): Likewise.
26152         * tests/test-quotearg.c (ASSERT): Likewise.
26153         * tests/test-rbtree_list.c (ASSERT): Likewise.
26154         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26155         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26156         * tests/test-round1.c (ASSERT): Likewise.
26157         * tests/test-roundf1.c (ASSERT): Likewise.
26158         * tests/test-roundl.c (ASSERT): Likewise.
26159         * tests/test-signbit.c (ASSERT): Likewise.
26160         * tests/test-sleep.c (ASSERT): Likewise.
26161         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26162         * tests/test-snprintf.c (ASSERT): Likewise.
26163         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26164         * tests/test-stat-time.c (ASSERT): Likewise.
26165         * tests/test-strcasestr.c (ASSERT): Likewise.
26166         * tests/test-strerror.c (ASSERT): Likewise.
26167         * tests/test-striconv.c (ASSERT): Likewise.
26168         * tests/test-striconveh.c (ASSERT): Likewise.
26169         * tests/test-striconveha.c (ASSERT): Likewise.
26170         * tests/test-strsignal.c (ASSERT): Likewise.
26171         * tests/test-strstr.c (ASSERT): Likewise.
26172         * tests/test-strtod.c (ASSERT): Likewise.
26173         * tests/test-trunc1.c (ASSERT): Likewise.
26174         * tests/test-trunc2.c (ASSERT): Likewise.
26175         * tests/test-truncf1.c (ASSERT): Likewise.
26176         * tests/test-truncf2.c (ASSERT): Likewise.
26177         * tests/test-truncl.c (ASSERT): Likewise.
26178         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26179         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26180         * tests/test-vasnprintf.c (ASSERT): Likewise.
26181         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26182         * tests/test-vasprintf.c (ASSERT): Likewise.
26183         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26184         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26185         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26186         * tests/test-vsnprintf.c (ASSERT): Likewise.
26187         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26188         * tests/test-wcwidth.c (ASSERT): Likewise.
26189         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26190         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26191         * tests/test-xvasprintf.c (ASSERT): Likewise.
26192         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26193         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26194         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26195         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26196         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26197         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26198         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26199         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26200         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26201         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26202         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26203         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26204         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26205         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26206         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26207         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26208         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26209         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26210         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26211         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26212         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26213         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26214         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26215         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26216         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26217         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26218         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26219         * tests/unictype/test-combining.c (ASSERT): Likewise.
26220         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26221         * tests/unictype/test-digit.c (ASSERT): Likewise.
26222         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26223         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26224         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26225         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26226         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26227         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26228         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26229         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26230         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26231         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26232         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26233         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26234         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26235         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26236         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26237         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26238         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26239         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26240         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26241         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26242         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26243         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26244         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26245         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26246         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26247         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26248         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26249         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26250         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26251         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26252         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26253         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26254         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26255         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26256         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26257         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26258         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26259         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26260         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26261         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26262         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26263         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26264         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26265         Reported by Eric Blake.
26266
26267 2008-04-11  Bruno Haible  <bruno@clisp.org>
26268
26269         * lib/wchar.in.h: Tweak comment.
26270
26271 2008-04-11  Bruno Haible  <bruno@clisp.org>
26272
26273         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26274         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26275         gl_COMMON.
26276         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26277
26278 2008-04-11  Bruno Haible  <bruno@clisp.org>
26279
26280         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26281
26282 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26283
26284         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26285         of attempting to use non-existing /dev/*random.  Based on patch
26286         from Adam Strzelecki <ono@java.pl> in
26287         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26288
26289 2008-04-08  Bruno Haible  <bruno@clisp.org>
26290
26291         Add tentative support for emx+gcc.
26292         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26293         * lib/fpurge.c (fpurge): Likewise.
26294         * lib/freadable.c (freadable): Likewise.
26295         * lib/freadahead.c (freadahead): Likewise.
26296         * lib/freading.c (freading): Likewise.
26297         * lib/freadptr.c (freadptr): Likewise.
26298         * lib/freadseek.c (freadptrinc): Likewise.
26299         * lib/fseeko.c (rpl_fseeko): Likewise.
26300         * lib/fseterr.c (fseterr): Likewise.
26301         * lib/fwritable.c (fwritable): Likewise.
26302         * lib/fwriting.c (fwriting): Likewise.
26303         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26304
26305 2008-04-09  Eric Blake  <ebb9@byu.net>
26306
26307         Avoid some autoconf warnings.
26308         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26309         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26310         * m4/afs.m4 (gl_AFS): Likewise.
26311         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26312         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26313         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26314         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26315         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26316         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26317         (AC_CHECK_DECLS_ONCE): Likewise.
26318         Rename file...
26319         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26320         gnulib-tool requires autoconf 2.59 or better.
26321         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26322
26323 2008-04-08  Eric Blake  <ebb9@byu.net>
26324
26325         Use 'git describe --match' if present (added in git 1.5.5).
26326         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26327         if possible.
26328
26329 2008-04-08  Bruno Haible  <bruno@clisp.org>
26330
26331         Add tentative support for OpenServer.
26332         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26333         _ptr, _cnt.
26334         * lib/fpurge.c (fpurge): Likewise.
26335         * lib/freadable.c (freadable): Likewise.
26336         * lib/freadahead.c (freadahead): Likewise.
26337         * lib/freading.c (freading): Likewise.
26338         * lib/freadptr.c (freadptr): Likewise.
26339         * lib/freadseek.c (freadptrinc): Likewise.
26340         * lib/fseeko.c (rpl_fseeko): Likewise.
26341         * lib/fseterr.c (fseterr): Likewise.
26342         * lib/fwritable.c (fwritable): Likewise.
26343         * lib/fwriting.c (fwriting): Likewise.
26344         Reported by Roger Cornelius <rac@tenzing.org> and
26345         Brian K. White <brian@aljex.com>.
26346
26347 2008-04-06  Jim Meyering  <meyering@redhat.com>
26348
26349         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26350
26351 2008-04-06  Bruno Haible  <bruno@clisp.org>
26352
26353         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26354         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26355         * tests/test-printf-posix.sh: Likewise.
26356         * tests/test-vfprintf-posix.sh: Likewise.
26357         * tests/test-vprintf-posix.sh: Likewise.
26358         * tests/test-xprintf-posix.sh: Likewise.
26359
26360 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26361
26362         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26363         hide error from 'ls', needed on OS/2.
26364         Report by Elbert Pol <elbert.pol@gmail.com>.
26365
26366 2008-04-04  Eric Blake  <ebb9@byu.net>
26367
26368         Make test-fseeko.c failures meaningful.
26369         * tests/test-fseeko.c: Print line number on failure.
26370         * tests/test-fseek.c: Likewise.
26371         Reported by Nelson H. F. Beebe.
26372
26373         Improve strtod bug detection check.
26374         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26375         required for Solaris 10.
26376         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26377
26378 2008-04-04  Bruno Haible  <bruno@clisp.org>
26379
26380         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26381         by m4/setenv.m4.
26382
26383 2008-04-03  Eric Blake  <ebb9@byu.net>
26384
26385         Ensure sane .version contents.
26386         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26387         version string.
26388         * build-aux/git-version-gen: Improve documentation.
26389
26390         Make GNU make output nicer.
26391         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26392         MAKECMDGOALS to enforce message for all command line targets.  Set
26393         srcdir for use in maint.mk.
26394
26395         Another maintainer tweak.
26396         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26397         a target that regenerates version.
26398
26399 2008-04-03  Jim Meyering  <meyering@redhat.com>
26400
26401         vc-list-files: don't cause coreutils "make po-check" failure
26402         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26403
26404 2008-04-03  Eric Blake  <ebb9@byu.net>
26405
26406         Allow VPATH usage of vc-list-files.
26407         * build-aux/vc-list-files (scriptversion): Add timestamp.
26408         (options): Add --help, --version, -C.
26409         (CVS): Support installed cvsu.
26410
26411 2008-04-02  Bruno Haible  <bruno@clisp.org>
26412
26413         Avoid some "statement with no effect" warnings from gcc.
26414         * tests/test-wctype.c (main): Explicitly ignore unused values.
26415         Reported by Jim Meyering.
26416
26417 2008-04-02  Jim Meyering  <meyering@redhat.com>
26418
26419         Avoid some warnings from "gcc -Wshadow".
26420         * tests/test-frexp.c (exp): Define to a different identifier.
26421         * tests/test-frexpl.c (exp): Likewise.
26422
26423 2008-04-03  Jim Meyering  <meyering@redhat.com>
26424
26425         bootstrap: remove dangling *.[ch] symlinks from lib
26426         * build-aux/bootstrap [dangling symlink removal]: Move find's
26427         -depth option to precede all others, to avoid a warning.
26428         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26429
26430 2008-04-02  Bruno Haible  <bruno@clisp.org>
26431
26432         Avoid some warnings from "gcc -Wshadow".
26433         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26434         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26435         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26436         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26437         Reported by Jim Meyering.
26438
26439 2008-04-01  Bruno Haible  <bruno@clisp.org>
26440
26441         Fix test to work on IRIX 6.5 with cc.
26442         * tests/test-math.c (numeric_equal): New function.
26443         (main): Use it.
26444
26445 2008-04-01  Bruno Haible  <bruno@clisp.org>
26446
26447         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26448
26449 2008-04-01  Bruno Haible  <bruno@clisp.org>
26450
26451         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26452         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26453         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26454         (Depends-on): Remove math.
26455
26456         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26457         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26458         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26459         (Depends-on): Remove math.
26460
26461         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26462         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26463         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26464         (Depends-on): Remove math.
26465         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26466         (Depends-on): Remove math.
26467
26468         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26469         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26470         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26471         (Depends-on): Remove math.
26472         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26473         (Depends-on): Remove math.
26474
26475         * tests/test-round1.c: Include nan.h.
26476         (main): Use NaNd instead of NAN.
26477         * modules/round-tests (Files): Add tests/nan.h.
26478
26479         * tests/test-trunc1.c: Include nan.h.
26480         (main): Use NaNd instead of NAN.
26481         * modules/trunc-tests (Files): Add tests/nan.h.
26482
26483         * tests/test-roundf1.c: Include nan.h.
26484         (main): Use NaNf instead of NAN.
26485         * modules/roundf-tests (Files): Add tests/nan.h.
26486
26487         * tests/test-truncf1.c: Include nan.h.
26488         (main): Use NaNf instead of NAN.
26489         * modules/truncf-tests (Files): Add tests/nan.h.
26490
26491         * tests/test-ceilf1.c: Include nan.h.
26492         (main): Use NaNf instead of NAN.
26493         * modules/ceilf-tests (Files): Add tests/nan.h.
26494
26495         * tests/test-floorf1.c: Include nan.h.
26496         (main): Use NaNf instead of NAN.
26497         * modules/floorf-tests (Files): Add tests/nan.h.
26498
26499         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26500         (main): Use NaNf instead of NAN.
26501         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26502
26503         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26504         (main): Use NaNd instead of NAN.
26505         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26506
26507         * tests/test-frexp.c: Include nan.h.
26508         (main): Use NaNd instead of NAN.
26509         * modules/frexp-tests (Files): Add tests/nan.h.
26510
26511         * lib/isnan.c: Don't include <math.h>.
26512         (FUNC): Don't use NAN macro.
26513         * modules/isnand-nolibm (Depends-on): Remove math.
26514         * modules/isnanf-nolibm (Depends-on): Remove math.
26515         * modules/isnanl (Depends-on): Remove math.
26516         * modules/isnanl-nolibm (Depends-on): Remove math.
26517
26518         * tests/nan.h: New file.
26519
26520 2008-04-01  Eric Blake  <ebb9@byu.net>
26521
26522         Fix typos.
26523         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26524         values to be the right type.
26525
26526         For now, cater to gnulib strtod inaccuracies.
26527         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26528         fractional results.  While not as nice from a QoI perspective, it
26529         is a quicker patch than correctly implementing decimal to binary
26530         rounding.
26531
26532 2008-03-31  Eric Blake  <ebb9@byu.net>
26533
26534         Guarantee a definition of NAN.
26535         * lib/math.in.h (NAN): Define if missing.
26536         * tests/test-math.c (main): Test it.
26537         * doc/posix-headers/math.texi (math.h): Document this.
26538         * lib/isnan.c (rpl_isnand): Use it.
26539         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26540         * tests/test-floorf1.c (NaN): Likewise.
26541         * tests/test-frexp.c (NaN): Likewise.
26542         * tests/test-isnand.c (NaN): Likewise.
26543         * tests/test-isnanf.c (NaN): Likewise.
26544         * tests/test-round1.c (NaN): Likewise.
26545         * tests/test-roundf1.c (NaN): Likewise.
26546         * tests/test-snprintf-posix.h (NaN): Likewise.
26547         * tests/test-sprintf-posix.h (NaN): Likewise.
26548         * tests/test-trunc1.c (NaN): Likewise.
26549         * tests/test-truncf1.c (NaN): Likewise.
26550         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26551         * tests/test-vasprintf-posix.c (NaN): Likewise.
26552         * modules/isnand-nolibm (Depends-on): Add math.
26553         * modules/isnanf-nolibm (Depends-on): Likewise.
26554         * modules/isnanl (Depends-on): Likewise.
26555         * modules/isnanl-nolibm (Depends-on): Likewise.
26556         * modules/snprintf-posix-tests (Depends-on): Likewise.
26557         * modules/sprintf-posix-tests (Depends-on): Likewise.
26558         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26559         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26560         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26561         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26562
26563 2008-03-31  Bruno Haible  <bruno@clisp.org>
26564
26565         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26566         * doc/posix-functions/strtod.texi: Likewise.
26567
26568 2008-03-31  Bruno Haible  <bruno@clisp.org>
26569
26570         * tests/test-strtod.c (main): Don't use C99 syntax.
26571
26572 2008-03-31  Bruno Haible  <bruno@clisp.org>
26573
26574         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26575         Reported by Eric Blake.
26576
26577 2008-03-31  Jim Meyering  <meyering@redhat.com>
26578
26579         Don't compare actual signbit return values.
26580         * tests/test-strtod.c (main): Rather, compare only their
26581         zero/non-zero nature.
26582
26583 2008-03-31  Eric Blake  <ebb9@byu.net>
26584
26585         More strtod documentation.
26586         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26587         failures as distinct bugs.
26588
26589 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26590
26591         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26592         Problem reported by Erik Benada in
26593         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26594
26595 2008-03-30  Bruno Haible  <bruno@clisp.org>
26596
26597         * tests/test-strtod.c: Add comments about which assertion fails on which
26598         platform.
26599         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26600
26601 2008-03-30  Eric Blake  <ebb9@byu.net>
26602
26603         Test signbit behavior on zeros.
26604         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26605         (test_signbitd, test_signbitl): Likewise.
26606
26607         More strtod touchups.
26608         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26609         sign of negative underflow, for now.  Use .5, not .1.
26610         * doc/posix-functions/strtod.texi (strtod): Mention these
26611         limitations.
26612         Reported by Jim Meyering.
26613
26614 2008-03-30  Bruno Haible  <bruno@clisp.org>
26615
26616         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26617         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26618
26619 2008-03-30  Bruno Haible  <bruno@clisp.org>
26620
26621         Avoid failure when attempting to return empty iconv results on some
26622         platforms.
26623         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26624         allocation, don't report ENOMEM when the resulting string is empty.
26625
26626 2008-03-30  Bruno Haible  <bruno@clisp.org>
26627
26628         Fix buffer overrun.
26629         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26630         Don't consider the width for tmp_length. Check count against tmp_length
26631         before doing the padding. Ensure enough allocation during padding.
26632
26633 2008-03-30  Eric Blake  <ebb9@byu.net>
26634
26635         strtod touchups.
26636         * lib/strtod.c (strtod): Avoid compiler warnings.
26637         Reported by Jim Meyering.
26638
26639 2008-03-30  Bruno Haible  <bruno@clisp.org>
26640
26641         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26642         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26643         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26644         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26645         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26646         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26647         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26648         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26649
26650         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26651         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26652         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26653         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26654         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26655         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26656         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26657         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26658
26659         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26660         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26661         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26662         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26663         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26664         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26665         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26666         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26667
26668         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26669         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26670
26671         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26672         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26673
26674         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26675         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26676
26677         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26678         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26679         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26680
26681         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26682         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26683         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26684
26685         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26686         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26687         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26688
26689         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26690         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26691         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26692
26693         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26694         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26695         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26696         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26697         (Depends-on): Add EOVERFLOW.
26698         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26699         (Depends-on): Add EOVERFLOW.
26700         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26701         (Depends-on): Add EOVERFLOW.
26702         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26703         (Depends-on): Add EOVERFLOW.
26704         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26705         (Depends-on): Add EOVERFLOW.
26706         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26707         (Depends-on): Add EOVERFLOW.
26708         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26709         (Depends-on): Add EOVERFLOW.
26710         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26711         (Depends-on): Add EOVERFLOW.
26712
26713         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26714         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26715         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26716
26717         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26718         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26719         * modules/snprintf (Depends-on): Add EOVERFLOW.
26720
26721         * lib/poll.c (EOVERFLOW): Remove fallback.
26722         * modules/poll (Depends-on): Add EOVERFLOW.
26723
26724         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26725         * modules/getugroups (Depends-on): Add EOVERFLOW.
26726
26727         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26728         * modules/getdelim (Depends-on): Add EOVERFLOW.
26729
26730         * lib/ftell.c (EOVERFLOW): Remove fallback.
26731         * modules/ftell (Depends-on): Add EOVERFLOW.
26732
26733         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26734         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26735         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26736
26737         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26738
26739         * modules/EOVERFLOW-tests: New file.
26740         * tests/test-EOVERFLOW.c: New file.
26741
26742         * modules/EOVERFLOW: New file.
26743         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26744
26745 2008-03-30  Bruno Haible  <bruno@clisp.org>
26746
26747         Fix bug introduced on 2007-06-10.
26748         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26749         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26750
26751 2008-03-30  Bruno Haible  <bruno@clisp.org>
26752
26753         Improve freadseek's efficiency after ungetc.
26754         * lib/freadseek.c: Include freadahead.h.
26755         (freadptrinc): New function, extracted from freadseek.
26756         (freadseek): Use it in a loop. Use freadahead to determine the number
26757         of loop iterations.
26758         * modules/freadseek (Depends-on): Add freadahead.
26759         (configure.ac): Require AC_C_INLINE.
26760
26761 2008-03-30  Bruno Haible  <bruno@clisp.org>
26762
26763         * lib/freadseek.c (freadseek): Don't ignore the return value of
26764         freadptr.
26765
26766 2008-03-29  Eric Blake  <ebb9@byu.net>
26767
26768         Add hex float support.
26769         * modules/strtod (Depends-on): Add c-ctype.
26770         (Link): Mention POW_LIB.
26771         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26772         whitespace between 'e' and exponent.
26773         * tests/test-strtod.c (main): Enable hex float tests.
26774         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26775         now provides.
26776
26777         Document various strtod bugs, with some fixes.
26778         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26779         "-0x", "inf", "nan", and hex constants.
26780         * doc/posix-functions/atof.texi (atof): Likewise.
26781         * modules/stdlib (Makefile.am): Support strtod.
26782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26783         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26784         detect additional strtod bugs.
26785         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26786         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26787         bool where appropriate.  Parse 'inf' and 'nan'.
26788         * tests/test-strtod.c: New file.
26789         * modules/strtod (Depends-on): Add stdbool, stdlib.
26790         (configure.ac): Turn on module indicator.
26791         * modules/strtod-tests: New module.
26792
26793 2008-03-29  Eric Blake  <ebb9@byu.net>
26794
26795         Fix ftell on mingw.
26796         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26797         * modules/ftell-tests (Depends-on): Add binary-io.
26798         * modules/ftello-tests (Depends-on): Likewise.
26799         * tests/test-ftell.c (main): Enhance test to cover behavior after
26800         ungetc.  Enforce binary mode.
26801         * tests/test-ftello.c (main): Likewise.
26802
26803         Pass test-freadseek on cygwin.
26804         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26805         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26806         ungetc buffer.
26807
26808         * tests/test-fflush2.c (main): Fix typo.
26809
26810 2008-03-29  Bruno Haible  <bruno@clisp.org>
26811
26812         * tests/test-fflush2.c (main): Temporarily disable the contents of
26813         this test.
26814         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26815         Reported by Eric Blake.
26816
26817 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26818
26819         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26820         (GC_SHA224_DIGEST_SIZE): Add.
26821
26822         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26823         (gc_hash_digest_length): Likewise.
26824         (gc_hash_buffer): Likewise.
26825
26826 2008-03-25  Bruno Haible  <bruno@clisp.org>
26827
26828         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26829         detail which gettext release to use.
26830         Reported by Simon Josefsson.
26831
26832 2008-03-26  Jim Meyering  <meyering@redhat.com>
26833
26834         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26835         * modules/gnumakefile (clean-GNUmakefile): Also, use
26836         test ... && ... || : syntax rather than if-then ... fi.
26837
26838         gnumakefile: Don't double-quote-expand $(VPATH) value.
26839         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26840
26841 2008-03-24  Eric Blake  <ebb9@byu.net>
26842
26843         Alter GNUmakefile to install into top directory.
26844         * modules/maintainer-makefile: Split, and add dependency...
26845         * modules/gnumakefile: to this new module.
26846         * build-aux/GNUmakefile: Move...
26847         * top/GNUmakefile: ...here.
26848         * build-aux/maint.mk: Move...
26849         * top/maint.mk: ...here.
26850         * MODULES.html.sh (Support for maintaining...): Document new
26851         module.
26852
26853 2008-03-23  Bruno Haible  <bruno@clisp.org>
26854
26855         * gnulib-tool: New options --vc-files, --no-vc-files.
26856         (func_usage): Document them.
26857         (vc_files): New variable.
26858         (func_import): Consider vc_files.
26859         (func_create_testdir): Set vc_files to empty.
26860         Suggested by Jim Meyering and Karl Berry.
26861
26862 2008-03-23  Bruno Haible  <bruno@clisp.org>
26863
26864         Fix regex compilation error on HP-UX 11.
26865         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26866         * modules/regex (Files): Add m4/mbstate_t.m4.
26867         Reported by Ton Voon <ton.voon@altinity.com>.
26868
26869 2008-03-23  Bruno Haible  <bruno@clisp.org>
26870
26871         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26872
26873 2008-03-23  Eric Blake  <ebb9@byu.net>
26874             Bruno Haible  <bruno@clisp.org>
26875
26876         Install files from top/ in the destination directory.
26877         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26878         augmentation also for the files from top/.
26879         (func_import, func_create_testdir): Rewrite file names:
26880         top/filename -> filename.
26881
26882 2008-03-23  Bruno Haible  <bruno@clisp.org>
26883
26884         Tweak "gnulib --version" output.
26885         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26886
26887 2008-03-23  Bruno Haible  <bruno@clisp.org>
26888
26889         Tweak "gnulib --version" output.
26890         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26891         rather than contents of ChangeLog, when possible.
26892
26893 2008-03-21  Eric Blake  <ebb9@byu.net>
26894
26895         More --version tweaks.
26896         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26897         date of last ChangeLog entry.
26898
26899 2008-03-21  Jim Meyering  <meyering@redhat.com>
26900
26901         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26902
26903 2008-03-20  Eric Blake  <ebb9@byu.net>
26904
26905         VPATH fix.
26906         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26907
26908 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26909
26910         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26911         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26912
26913 2008-03-20  Eric Blake  <ebb9@byu.net>
26914
26915         Sync GNUmakefile with coreutils.
26916         * build-aux/GNUmakefile (have-Makefile): Rename...
26917         (_have-Makefile): ...to this, for namespace consideration.
26918         (GNUmakefile.cfg): Include, if present.
26919         (_autoreconf): Define a default.
26920         (_is-dist-target): New rule for rebuilds to pick up intra-release
26921         version.
26922         (maint-cfg.mk): Rename...
26923         (cfg.mk): ...to this.
26924
26925 2008-03-18  Jim Meyering  <meyering@redhat.com>
26926
26927         New script and module: mktempd
26928         * MODULES.html.sh (maint+release support): Add mktempd.
26929         * build-aux/mktempd: New file.
26930         * modules/mktempd: New file.
26931
26932 2008-03-15  Jim Meyering  <meyering@redhat.com>
26933
26934         Undo last change.
26935         * lib/sha1.c, lib/md5.c: 63 != ~63.
26936         Reported by Andreas Schwab.
26937
26938         sha1.c, md5.c: Hoist a redundant expression.
26939         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26940         "ctx->buflen" only once, before calling *_process_block.
26941         * lib/md5.c (md5_process_bytes): Likewise.
26942
26943 2008-03-14  Eric Blake  <ebb9@byu.net>
26944
26945         Bump copyright year in files generated by gnulib-tool.
26946         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26947         gnulib-tool, rather than hard-coding it.
26948
26949         Fix 'gnulib-tool --version' output to work with git.
26950         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26951         (startup): ...here.
26952         (func_version): Use it to invoke git-version-gen, rather than
26953         relying on CVS keyword expansion.  Modernize wording.
26954         (cvsdatestamp, last_checkin_date, version): Kill unused
26955         variables.
26956
26957 2008-03-12  Jim Meyering  <meyering@redhat.com>
26958
26959         Recognize optional cast of the argument to free.
26960         * build-aux/useless-if-before-free: Update regexps.
26961
26962         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26963
26964 2008-03-11  Bruno Haible  <bruno@clisp.org>
26965
26966         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26967         by a single package.
26968         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26969         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26970         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26971         Reported by Sam Steingold <sds@gnu.org>.
26972
26973 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26974
26975         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26976         repositories.
26977
26978 2008-03-11  Bruno Haible  <bruno@clisp.org>
26979
26980         Avoid conflicts between local macro definitions.
26981         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26982         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26983
26984 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26985             Bruno Haible  <bruno@clisp.org>
26986
26987         Make va_copy work with some version of xlc on AIX 5.1.
26988         * lib/stdarg.in.h: New file.
26989         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26990         On AIX, use a <stdarg.h> file substitute.
26991         * modules/stdarg (Files): Add lib/stdarg.in.h.
26992         (Depends-on): Add include_next.
26993         (Makefile.am): Build a stdarg.h substitute if requested.
26994         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26995
26996 2008-03-10  Bruno Haible  <bruno@clisp.org>
26997
26998         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26999         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27000         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27001
27002 2008-03-10  Bruno Haible  <bruno@clisp.org>
27003
27004         * modules/stdlib (Depends-on): Add include_next, remove
27005         absolute-header.
27006
27007 2008-03-09  Bruno Haible  <bruno@clisp.org>
27008
27009         * lib/freadahead.h (freadahead): Document more precisely.
27010         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
27011         the sum of both buffer sizes.
27012         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
27013         * NEWS: Document the change.
27014
27015 2008-03-09  Bruno Haible  <bruno@clisp.org>
27016
27017         Extend freadptr to return also the buffer size.
27018         * lib/freadptr.h (freadptr): Add sizep argument.
27019         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
27020         (freadptr): Add sizep argument. Determine buffer size like freadahead
27021         does.
27022         * tests/test-freadptr.c: Don't include freadahead.h.
27023         (main): Adapt for new calling convention of freadptr.
27024         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
27025         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
27026         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
27027         tests/test-freadptr2.sh.
27028         (Depends): Remove freadahead.
27029         (TESTS): Add test-freadptr2.sh.
27030         (check_PROGRAMS): Add test-freadptr2.
27031
27032 2008-03-09  Bruno Haible  <bruno@clisp.org>
27033
27034         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
27035         Report and solution by Simon Josefsson.
27036
27037 2008-03-06  Bruno Haible  <bruno@clisp.org>
27038
27039         Make fflush after ungetc work on BSD platforms.
27040         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
27041         * tests/test-fflush2.c: New file.
27042         * tests/test-fflush2.sh: New file.
27043         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
27044         tests/test-fflush2.c.
27045         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
27046         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
27047
27048 2008-03-06  Eric Blake  <ebb9@byu.net>
27049
27050         Likewise for ftello.
27051         * modules/ftello (Dependencies): Add extensions.
27052         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
27053
27054 2008-03-06  Bruno Haible  <bruno@clisp.org>
27055
27056         * modules/fseeko (Dependencies): Add extensions.
27057         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
27058         Needed on glibc systems.
27059
27060 2008-03-06  Bruno Haible  <bruno@clisp.org>
27061
27062         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
27063         email address.
27064         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27065
27066 2008-03-06  Bruno Haible  <bruno@clisp.org>
27067
27068         * users.txt: Add libgnupdf.
27069
27070 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27071
27072         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
27073         (Header File Substitutes, Function Substitutes,
27074         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
27075         (Build robot for gnulib): Fix typo.
27076
27077 2008-03-06  Bruno Haible  <bruno@clisp.org>
27078
27079         * doc/gnulib-tool.texi (VCS Issues): Small updates.
27080         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27081
27082 2008-03-06  Bruno Haible  <bruno@clisp.org>
27083
27084         * doc/func.texi: New file, extracted from doc/gnulib.texi.
27085         * doc/gnulib.texi: Include it.
27086
27087 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27088
27089         * modules/func (License): Change license to unlimited; there was
27090         no LGPL parts in the module anyway.
27091
27092 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27093
27094         * modules/__func__: Renamed to modules/func.
27095         * modules/__func__-tests: Renamed to modules/func-tests.
27096         * tests/test-__func__.c: Renamed to tests/test-func.c.
27097         * m4/__func__.m4: Renamed to m4/func.m4.
27098         * doc/gnulib.texi (__func__): Section renamed to func.
27099         Suggested by Eric Blake <ebb9@byu.net>.
27100
27101 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27102
27103         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27104         about __func__.  Make example self-contained.  Suggested by Eric
27105         Blake <ebb9@byu.net>.
27106
27107         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27108         Suggested by Eric Blake <ebb9@byu.net>.
27109
27110 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27111
27112         * modules/__func__: New file.
27113         * modules/__func__-tests: New file.
27114         * tests/test-__func__.c: New file.
27115         * m4/__func__.m4: New file.
27116         * doc/gnulib.texi (__func__): Document __func__ module.
27117
27118 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27119
27120         * modules/byteswap (License): Re-license as LGPLv2+.
27121
27122 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27123
27124         * doc/Makefile: Add pdf target.
27125
27126 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27127
27128         * modules/inline (License): Use 'unlimited', since there are only
27129         *.m4 files in this module.
27130
27131 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27132             Bruno Haible  <bruno@clisp.org>
27133
27134         Add support for HP C 7.1 on OpenVMS 8.3.
27135         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27136
27137 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27138
27139         Update VMS specifics.
27140         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27141
27142 2008-03-02  Jim Meyering  <meyering@redhat.com>
27143
27144         Remove the last dependency on the "free" module.
27145         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27146         Reported by Bob Proulx.
27147
27148         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27149
27150         Remove useless "if" tests before free.  Deprecate "free" module.
27151         * doc/posix-functions/free.texi: Mention that this
27152         module is no longer useful.
27153         * modules/free (Notice): Say this module is obsolete.
27154         * modules/readutmp (Depends-on): Remove free.
27155         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27156         * lib/putenv.c (putenv): Likewise.
27157         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27158         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27159         * tests/test-c-strcasestr.c (main): Likewise.
27160         * tests/test-c-strstr.c (main): Likewise.
27161         * tests/test-mbscasestr1.c (main): Likewise.
27162         * tests/test-mbscasestr2.c (main): Likewise.
27163         * tests/test-mbsstr1.c (main): Likewise.
27164         * tests/test-mbsstr2.c (main): Likewise.
27165         * tests/test-memmem.c (main): Likewise.
27166         * tests/test-strcasestr.c (main): Likewise.
27167         * tests/test-striconv.c (main): Likewise.
27168         * tests/test-striconveh.c (main): Likewise.
27169         * tests/test-striconveha.c (main): Likewise.
27170         * tests/test-strstr.c (main): Likewise.
27171
27172         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27173
27174         bootstrap: sync from coreutils again
27175         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27176
27177 2008-03-01  Jim Meyering  <meyering@redhat.com>
27178
27179         bootstrap: sync from coreutils
27180         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27181         also when the target doesn't exist.
27182
27183 2008-03-01  Eric Blake  <ebb9@byu.net>
27184
27185         Fix bugs in last patch.
27186         * lib/memchr2.c (memchr2): Fix typo.
27187         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27188         extension.
27189         Reported by Bruce Korb.
27190
27191         New module 'memchr2'.
27192         * modules/memchr2: New file.
27193         * modules/memchr2-tests: Likewise.
27194         * lib/memchr2.h: Likewise.
27195         * lib/memchr2.c: Likewise, based on memchr.c.
27196         * tests/test-memchr2.c: New test.
27197         * MODULES.html.sh (String handling): Add memchr2.
27198
27199 2008-02-29  Bruno Haible  <bruno@clisp.org>
27200
27201         * modules/freadseek-tests: New file.
27202         * tests/test-freadseek.sh: New file.
27203         * tests/test-freadseek.c: New file.
27204
27205         New module 'freadseek'.
27206         * modules/freadseek: New file.
27207         * lib/freadseek.h: New file.
27208         * lib/freadseek.c: New file.
27209         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27210
27211 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27212
27213         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27214         wydawca.
27215
27216         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27217         program_invocation_name and program_invocation_short_name are
27218         present.
27219
27220 2008-02-28  Bruno Haible  <bruno@clisp.org>
27221
27222         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27223         * tests/test-freadptr.sh: Also test non-seekable stdin.
27224
27225 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27226
27227         * build-aux/bootstrap (source_base, m4_base)
27228         (doc_base, tests_base): New variables.
27229         (gnulib_tool_options): Do not hardcode base directories, use
27230         the above variables instead.
27231
27232 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27233
27234         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27235
27236 2008-02-28  Bruno Haible  <bruno@clisp.org>
27237
27238         * modules/freadptr-tests: New file.
27239         * tests/test-freadptr.sh: New file.
27240         * tests/test-freadptr.c: New file.
27241
27242         New module 'freadptr'.
27243         * modules/freadptr: New file.
27244         * lib/freadptr.h: New file.
27245         * lib/freadptr.c: New file.
27246         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27247
27248 2008-02-26  Karl Berry  <karl@freefriends.org>
27249
27250         Sync from Libtool:
27251         * libltdl/argz.c (argz_add, argz_count): New functions.
27252         * libltdl/argz.in.h: Declare them.
27253         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27254
27255 2008-02-22  Bruno Haible  <bruno@clisp.org>
27256
27257         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27258         is a pointer type.  Needed for HP-UX 10.
27259         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27260         * doc/posix-functions/gmtime_r.texi: Likewise.
27261         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27262
27263 2008-02-24  Bruno Haible  <bruno@clisp.org>
27264
27265         * modules/environ-tests: New file.
27266         * tests/test-environ.c: New file.
27267
27268         New module 'environ'.
27269         * modules/environ: New file.
27270         * lib/unistd.in.h (environ): New declaration.
27271         * m4/environ.m4: New file.
27272         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27273         after use.
27274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27275         HAVE_DECL_ENVIRON.
27276         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27277         HAVE_DECL_ENVIRON.
27278         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27279         wrong claim that 'environ' is missing on some systems.
27280         * modules/execute (Depends-on): Add environ.
27281         * lib/execute.c (environ): Remove fallback declaration.
27282         * modules/pipe (Depends-on): Add environ.
27283         * lib/pipe.c (environ): Remove fallback declaration.
27284         * modules/setenv (Depends-on): Add environ.
27285         * lib/setenv.c (environ): Remove fallback declaration.
27286         * modules/unsetenv (Depends-on): Add environ.
27287         * lib/unsetenv.c (environ): Remove fallback declaration.
27288         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27289         m4/environ.m4.
27290         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27291         (gl_PREREQ_UNSETENV): Likewise.
27292
27293 2008-02-24  Bruno Haible  <bruno@clisp.org>
27294
27295         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27296
27297 2008-02-20  Bob Proulx  <bob@proulx.com>
27298
27299         Enable use of older two part flavor 'git describe'.
27300         * build-aux/git-version-gen: If using the older two part flavor of
27301         git version then recreate the third part now present in the
27302         newer three part flavor of git describe.
27303
27304 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27305
27306         * lib/fts.c (fts_build): Typo correction to comment.
27307
27308 2008-02-17  Bruno Haible  <bruno@clisp.org>
27309
27310         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27311         generating no-op conflicts.
27312
27313 2008-02-17  Bruno Haible  <bruno@clisp.org>
27314
27315         Speed up by 10%.
27316         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27317         result_entries, rather than an index-based loop.
27318
27319 2008-02-17  Bruno Haible  <bruno@clisp.org>
27320
27321         Speed up by 25%.
27322         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27323         'hashcode_cached'.
27324         (entry_create): New function.
27325         (entry_hashcode): Use the cached hashcode if possible.
27326         (read_changelog_file, try_split_merged_entry): Use entry_create.
27327
27328 2008-02-17  Bruno Haible  <bruno@clisp.org>
27329
27330         Speed up from O(n^2) to O(n) for long ChangeLog files.
27331         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27332         (read_changelog_file): Change implementation of entries_reversed list
27333         to rbtreehash.
27334         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27335
27336 2008-02-17  Bruno Haible  <bruno@clisp.org>
27337
27338         New option --split-merged-entry.
27339         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27340         (find_paragraph_end, try_split_merged_entry): New functions.
27341         (long_options): Add option --split-merged-entry.
27342         (usage): Document option --split-merged-entry.
27343         (main): Implement option --split-merged-entry.
27344         Reported by Eric Blake.
27345
27346 2008-02-17  Bruno Haible  <bruno@clisp.org>
27347
27348         * lib/git-merge-changelog.c: Include c-strstr.h.
27349         (main): Support the "git pull --rebase" situation.
27350         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27351         Reported by Eric Blake.
27352
27353 2008-02-16  Eric Blake  <ebb9@byu.net>
27354
27355         Avoid doubling \ in common case of "c-maybe" quoting style.
27356         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27357         eliding outer quotes.
27358         * lib/quotearg.h: Document this.
27359         * tests/test-quotearg.c (result_strings, inputs, results_g)
27360         (flag_results, locale_results): Test it by adding a new string to
27361         each test group.
27362         (compare_strings): Test new string.
27363
27364 2008-02-13  Eric Blake  <ebb9@byu.net>
27365
27366         Avoid trigraph quoting in default output.
27367         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27368         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27369         unless explicitly requested.
27370         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27371
27372 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27373
27374         Don't rely on signed integer overflowing to negative value.
27375         * lib/getugroups.c (getugroups): Include <limits.h>.
27376         Instead, compare against INT_MAX, and increment only if the test passes.
27377
27378 2008-02-13  Jim Meyering  <meyering@redhat.com>
27379         and Eric Blake  <ebb9@byu.net>
27380
27381         Avoid shadowing warning and compile errors on Linux.
27382         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27383         forwarding macros on Linux.
27384         (dcgettext): Define a stub, for Linux.
27385         (results_g, main): Avoid warnings.
27386
27387 2008-02-12  Eric Blake  <ebb9@byu.net>
27388
27389         Silence warning in last patch.
27390         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27391
27392         Quotearg part 4: add tests, fix c-maybe colon quoting.
27393         * lib/quotearg.h: Improve documentation.
27394         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27395         escapes when adding outer quotes.  When quoting trigraphs, use
27396         valid C notation.  When quoting NUL, omit extra characters if next
27397         character is not digit.  Alter prototype.
27398         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27399         callers.
27400         * modules/quotearg-tests: New module.
27401         * tests/test-quotearg.c: New test.
27402
27403 2008-02-07  Eric Blake  <ebb9@byu.net>
27404
27405         Quotearg part 3: add flag to control outer quote elision.
27406         * lib/quotearg.h (c_maybe_quoting_style): New style.
27407         (enum quoting_flags): Better documentation of flags.
27408         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27409         c-maybe style.
27410         (quotearg_buffer_restyled): Handle new flag to elide outer
27411         quotes.
27412
27413         Quotearg part 2: add flag that can control NUL elision.
27414         * lib/quotearg.h (set_quoting_flags): New prototype.
27415         * lib/quotearg.c (struct quoting_options): Add flag field.
27416         (set_quoting_flags): New function.
27417         (quotearg_buffer_restyled): Add flags parameter.
27418         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27419         (quotearg_n_options): Set the flag, since length cannot be
27420         returned.
27421         (quoting_options_from_style): Default flags correctly.
27422
27423         Quotearg part 1: more wrappers, restore quotearg_char state.
27424         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27425         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27426         (quotearg_colon_mem): New wrappers.
27427         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27428         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27429         functions.
27430         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27431         (quotearg_colon_mem): New functions.
27432
27433 2008-02-11  Bruno Haible  <bruno@clisp.org>
27434
27435         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27436         library in the current directory: it does not work with parallel make.
27437         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27438
27439 2008-02-11  Bruno Haible  <bruno@clisp.org>
27440
27441         * .gitattributes: New file.
27442
27443 2008-02-11  Jim Meyering  <meyering@redhat.com>
27444
27445         useless-if-before-free: Fix reversed exit values.
27446         * build-aux/useless-if-before-free: Use correct values
27447         for EXIT_MATCH and EXIT_NO_MATCH.
27448
27449         * build-aux/useless-if-before-free: Close stdout carefully.
27450
27451 2008-02-10  Bruno Haible  <bruno@clisp.org>
27452
27453         New module 'git-merge-changelog'.
27454         * modules/git-merge-changelog: New file.
27455         * lib/git-merge-changelog.c: New file.
27456
27457 2008-02-10  Jim Meyering  <meyering@redhat.com>
27458
27459         useless-if-before-free: New option: --list (-l).
27460
27461         useless-if-before-free: Don't exit immediately upon open failure.
27462         * build-aux/useless-if-before-free: Exit 2 for errors.
27463         Upon failure to open a file, don't exit immediately.
27464         Rather, just warn and continue with any remaining files.
27465
27466 2008-02-10  Bruno Haible  <bruno@clisp.org>
27467
27468         New abstract list operation 'node_set_value'.
27469         * lib/gl_list.h (gl_list_node_set_value): New function.
27470         (struct gl_list_implementation): New field node_set_value.
27471         * lib/gl_list.c (gl_list_node_set_value): New function.
27472         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27473         (gl_array_list_implementation): Update.
27474         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27475         (gl_carray_list_implementation): Update.
27476         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27477         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27478         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27479         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27480         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27481         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27482         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27483         Update.
27484         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27485         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27486         (gl_sublist_list_implementation): Update.
27487
27488 2008-02-10  Bruno Haible  <bruno@clisp.org>
27489
27490         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27491         Needed when ELEMENT is #defined to 'some_type *'.
27492
27493 2008-02-10  Jim Meyering  <meyering@redhat.com>
27494
27495         New script and module: useless-if-before-free
27496         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27497         * build-aux/useless-if-before-free: New file.
27498         * modules/useless-if-before-free: New file.
27499
27500         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27501
27502         xstrtol_error: Fix typo.
27503         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27504         s/exit_failure/exit_status/.
27505
27506 2008-02-09  Jim Meyering  <meyering@redhat.com>
27507
27508         New script and module: gitlog-to-changelog
27509         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27510         * modules/gitlog-to-changelog: New file.
27511         * build-aux/gitlog-to-changelog: New file.
27512
27513 2008-02-08  Jim Meyering  <meyering@redhat.com>
27514
27515         Avoid two "parameter unused" warnings.
27516         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27517         Mark "st" as used.
27518
27519         Use "git COMMAND", not "git-COMMAND".
27520         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27521         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27522         * build-aux/git-version-gen: Use "git status", not "git-status".
27523
27524 2008-02-07  Bruno Haible  <bruno@clisp.org>
27525
27526         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27527         Avoids a crash on Windows Vista.
27528         Reported by Adam Strzelecki <ono@java.pl> via
27529         Simon Josefsson <simon@josefsson.org>.
27530
27531 2008-02-06  Bruno Haible  <bruno@clisp.org>
27532
27533         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27534         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27535         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27536         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27537         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27538         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27539         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27540         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27541         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27542         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27543         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27544         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27545         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27546         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27547         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27548         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27549         left-adjust flag.
27550         * tests/test-snprintf-posix.h (test_function): Likewise.
27551         * tests/test-sprintf-posix.h (test_function): Likewise.
27552         * tests/test-vasprintf-posix.c (test_function): Likewise.
27553         * doc/posix-functions/fprintf.texi: Update.
27554         * doc/posix-functions/printf.texi: Update.
27555         * doc/posix-functions/snprintf.texi: Update.
27556         * doc/posix-functions/sprintf.texi: Update.
27557         * doc/posix-functions/vfprintf.texi: Update.
27558         * doc/posix-functions/vprintf.texi: Update.
27559         * doc/posix-functions/vsnprintf.texi: Update.
27560         * doc/posix-functions/vsprintf.texi: Update.
27561         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27562
27563 2008-02-06  Bruno Haible  <bruno@clisp.org>
27564
27565         Fix bug introduced on 2008-01-26.
27566         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27567
27568 2008-02-06  Bruno Haible  <bruno@clisp.org>
27569
27570         Fix bug introduced on 2007-06-10.
27571         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27572         !NEED_PRINTF_FLAG_ZERO.
27573
27574 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27575
27576         getloadavg: use libperfstat on AIX5
27577         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27578
27579 2008-02-03  Bruno Haible  <bruno@clisp.org>
27580
27581         * lib/diffseq.h: Add comments about required #includes.
27582         Reported by Michael Biggs <gnulib@doubleplum.net>.
27583
27584 2008-02-01  Bruno Haible  <bruno@clisp.org>
27585
27586         * users.txt: Add gnuit.
27587
27588 2008-01-31  Bruno Haible  <bruno@clisp.org>
27589
27590         * lib/md4.c (set_uint32): Mark as inline.
27591         * lib/md5.c (set_uint32): Likewise.
27592         * lib/sha1.c (set_uint32): Likewise.
27593         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27594         * m4/md5.m4 (gl_MD5): Likewise.
27595         * m4/sha1.m4 (gl_SHA1): Likewise.
27596
27597 2008-01-31  Jim Meyering  <meyering@redhat.com>
27598
27599         Use "sizeof VAR", rather than a literal "4".
27600         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27601         * lib/md4.c (md4_read_ctx): Likewise.
27602         * lib/sha1.c (sha1_read_ctx): Likewise.
27603
27604 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27605
27606         * tests/test-sha1.c: New file, based on test-md5.c.
27607
27608         * modules/crypto/sha1-tests: New file.
27609
27610 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27611
27612         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27613
27614 2008-01-31  Jim Meyering  <meyering@redhat.com>
27615
27616         Prefer "sizeof v" over the equivalent "4".
27617         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27618         * lib/md5.c (set_uint32): Likewise.
27619         * lib/sha1.c (set_uint32): Likewise.
27620
27621 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27622
27623         * lib/sha1.c (set_uint32): Mark function as static.
27624
27625 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27626
27627         md2: clarify comments to say that alignment is not required.
27628         * lib/md2.h: Remove warning about alignment in comment.
27629         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27630         never been required.
27631
27632 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27633
27634         md4: adapt alignment constraint fix from sha1.
27635         * lib/md4.c (set_uint32): New function, from sha1.c
27636         (md4_read_ctx): Use it.
27637         (md4_finish_ctx): Doc fix.
27638         * lib/md4.h: Doc fix.
27639
27640 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27641
27642         md5: adapt alignment constraint fix from sha1.
27643         * lib/md5.c (set_uint32): New function, from sha1.c
27644         (md5_read_ctx): Use it.
27645         (md5_finish_ctx): Doc fix.
27646         * lib/md5.h: Doc fix.
27647
27648 2008-01-30  Peter Palfrader  <weasel@debian.org>
27649
27650         sha1: remove the result buffer alignment constraint
27651         * lib/sha1.c (set_uint32): New function.
27652         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27653         constraint.
27654         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27655         * lib/sha1.h: Likewise.
27656
27657 2008-01-30  Andreas Schwab  <schwab@suse.de>
27658             Bruno Haible  <bruno@clisp.org>
27659
27660         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27661         correct definition of LDBL_MIN_EXP.
27662
27663 2008-01-30  Karl Berry  <karl@gnu.org>
27664
27665         * config/srclist-update: try to preserve x bit on updates.
27666         * config/srclistvars.sh: update for karl.
27667
27668 2008-01-29  Jim Meyering  <meyering@redhat.com>
27669
27670         vasnprintf.c: Avoid warning about unused label
27671         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27672         "overflow" label definition and associated code with the
27673         same cpp condition that guards the sole use of that label.
27674
27675 2008-01-26  Bruno Haible  <bruno@clisp.org>
27676
27677         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27678         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27679         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27680         * lib/isnanl-nolibm.h (isnanl): Likewise.
27681         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27682
27683 2008-01-26  Bruno Haible  <bruno@clisp.org>
27684
27685         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27686         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27687
27688 2008-01-26  Bruno Haible  <bruno@clisp.org>
27689
27690         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27691         GCC >= 4.0 built-in.
27692         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27693
27694 2008-01-26  Bruno Haible  <bruno@clisp.org>
27695
27696         Rename isnan, applicable to 'double' only, to isnand.
27697         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27698         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27699         (configure.ac): Update.
27700         (Include): Replace "isnan.h" with "isnand.h".
27701         * m4/isnand.m4: Renamed from m4/isnan.m4.
27702         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27703         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27704         instead of isnan.c.
27705         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27706         instead of HAVE_ISNAN_IN_LIBC.
27707         (isnand): Renamed from isnan.
27708         * lib/isnand.c: New file.
27709         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27710         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27711         (Makefile.am): Update.
27712         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27713         Include isnand.h instead of isnan.h.
27714         (main): Test isnand instead of isnan.
27715         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27716         isnan-nolibm.
27717         * modules/frexp (Depends-on): Likewise.
27718         * modules/frexp-tests (Depends-on): Likewise.
27719         * modules/frexp-nolibm (Depends-on): Likewise.
27720         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27721         * modules/isfinite (Depends-on): Likewise.
27722         * modules/round-tests (Depends-on): Likewise.
27723         * modules/signbit (Depends-on): Likewise.
27724         * modules/signbit-tests (Depends-on): Likewise.
27725         * modules/snprintf-posix (Depends-on): Likewise.
27726         * modules/sprintf-posix (Depends-on): Likewise.
27727         * modules/trunc-tests (Depends-on): Likewise.
27728         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27729         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27730         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27731         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27732         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27733         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27734         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27735         * modules/vasnprintf-posix (Depends-on): Likewise.
27736         * modules/vasprintf-posix (Depends-on): Likewise.
27737         * modules/vfprintf-posix (Depends-on): Likewise.
27738         * modules/vsnprintf-posix (Depends-on): Likewise.
27739         * modules/vsprintf-posix (Depends-on): Likewise.
27740         * lib/frexp.c: Include isnand.h instead of isnan.h.
27741         (ISNAN): Set to isnand instead of isnan.
27742         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27743         (gl_isfinited): Use isnand instead of isnan.
27744         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27745         (gl_signbitd): Use isnand instead of isnan.
27746         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27747         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27748         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27749         (main): Use isnand instead of isnan.
27750         * tests/test-round1.c: Include isnand.h.
27751         (main): Use isnand instead of isnan.
27752         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27753         (ISNAN): Set to isnand instead of isnan.
27754         * tests/test-trunc1.c: Include isnand.h.
27755         (main): Use isnand instead of isnan.
27756         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27757         (equal): Use isnand instead of isnan.
27758         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27759         isnand-nolibm.
27760         * NEWS: Mention the change.
27761
27762 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27763             Bruno Haible  <bruno@clisp.org>
27764
27765         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27766         the GCC builtins for signbits are present and set
27767         REPLACE_SIGNBIT_USING_GCC if so.
27768         * lib/math.in.h (signbit): Define using GCC builtins if
27769         REPLACE_SIGNBIT_USING_GCC is set.
27770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27771         REPLACE_SIGNBIT_USING_GCC.
27772         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27773
27774 2008-01-25  Jim Meyering  <meyering@redhat.com>
27775
27776         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27777         * lib/poll.c: Include <config.h>, not "config.h".
27778         * tests/test-getaddrinfo.c: Likewise.
27779
27780 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27781
27782         * modules/sockets-tests: New file.
27783
27784 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27785
27786         * modules/sockets: New module, can be used to call WSA_Startup and
27787         WSA_Cleanup when needed.
27788
27789         * lib/sockets.h, lib/sockets.c: New files.
27790
27791         * m4/sockets.m4: New file.
27792
27793         * tests/test-sockets.c: New file.
27794
27795 2008-01-19  Bruno Haible  <bruno@clisp.org>
27796
27797         * doc/posix-headers: Renamed from doc/headers.
27798         * doc/posix-functions: Renamed from doc/functions.
27799         * doc/gnulib.texi: Update.
27800
27801 2008-01-19  Bruno Haible  <bruno@clisp.org>
27802
27803         * doc/glibc-functions/strcasestr.texi: Include contents of
27804         doc/functions/strcasestr.texi, fixing the list of platforms.
27805         * doc/functions/strcasestr.texi: Remove file.
27806
27807 2008-01-19  Bruno Haible  <bruno@clisp.org>
27808
27809         * doc/glibc-functions/memmem.texi: Include contents of
27810         doc/functions/memmem.texi.
27811         * doc/functions/memmem.texi: Remove file.
27812
27813 2008-01-18  Bruno Haible  <bruno@clisp.org>
27814
27815         * doc/glibc-functions/*.texi: New files.
27816         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27817         to use the new files.
27818
27819 2008-01-17  Bruno Haible  <bruno@clisp.org>
27820
27821         * tests/test-gethostname.c (main): Fix printf statement.
27822
27823 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27824
27825         * modules/gethostname-tests: New file.
27826
27827         * tests/test-gethostname.c: New file.
27828
27829 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27830
27831         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27832         used by the UNAME case.  Reported by Bruno Haible
27833         <bruno@clisp.org>.
27834
27835 2008-01-17  Eric Blake  <ebb9@byu.net>
27836
27837         Convert c-strcasestr to be more efficient.
27838         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27839         (Depends-on): Add c-strcase, remove malloca, strnlen.
27840         * tests/test-c-strcasestr.c (main): Enhance test.
27841         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27842
27843 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27844
27845         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27846         Use it in creating po/Makevars.
27847
27848 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27849
27850         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27851         Applications that requires it should initialize libgcrypt
27852         manually.
27853
27854 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27855
27856         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27857
27858 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27859
27860         Fix problem with getdate on mingw32 reported by Simon Josefsson
27861         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27862         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27863         tzname", when deciding whether to declare tzname.
27864         * lib/strftime.c (tzname): Likewise.
27865
27866 2008-01-15  Bruno Haible  <bruno@clisp.org>
27867
27868         Work around a MacOS X 10.5 bug in frexpl().
27869         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27870         * doc/functions/frexpl.texi: Document the bug.
27871         Reported by Elias Pipping <pipping@gentoo.org>.
27872
27873 2008-01-14  Eric Blake  <ebb9@byu.net>
27874
27875         Touch up previous patch.
27876         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27877         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27878
27879         Convert strcasestr module to use Two-Way algorithm.
27880         * modules/strcasestr-simple: New module, based on the old
27881         strcasestr, but with Two-Way rather than KMP.
27882         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27883         * lib/string.in.h (rpl_strcasestr): Declare.
27884         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27885         performance.
27886         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27887         * modules/string (Makefile.am): Support strcasestr.
27888         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27889         * modules/strcasestr-tests (Depends-on): Check for alarm.
27890         * tests/test-strcasestr.c: Augment test.
27891         * lib/str-two-way.h: Clean up stray macro.
27892         * NEWS: Document new module.
27893         * MODULES.html.sh (string handling): Likewise.
27894         * doc/functions/strcasestr.texi: New file.
27895         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27896         here, since it is not a POSIX function.
27897
27898 2008-01-14  Colin Watson  <cjwatson@debian.org>
27899             Bruno Haible  <bruno@clisp.org>
27900
27901         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27902         works fine; if not, set REPLACE_STRSIGNAL.
27903         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27905         REPLACE_STRSIGNAL.
27906         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27907         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27908         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27909
27910 2008-01-14  Bruno Haible  <bruno@clisp.org>
27911
27912         * modules/strsignal (Include): Change to <string.h>.
27913
27914 2008-01-14  Colin Watson  <cjwatson@debian.org>
27915
27916         * modules/argp (Notice): Add a notice recommending to change
27917         XGETTEXT_OPTIONS.
27918         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27919
27920 2008-01-13  Colin Watson  <cjwatson@debian.org>
27921
27922         * modules/strsignal-tests: New file.
27923         * tests/test-strsignal.c: New file.
27924
27925         * lib/strsignal.c: New file, from glibc with modifications.
27926         * lib/siglist.h: New file, from glibc with modifications.
27927         * lib/string.in.h (strsignal): New declaration.
27928         * m4/strsignal.m4: New file.
27929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27930         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27931         * modules/strsignal: New file.
27932         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27933         HAVE_DECL_STRSIGNAL.
27934
27935 2008-01-13  Bruno Haible  <bruno@clisp.org>
27936
27937         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27938         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27939         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27940         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27941
27942 2008-01-13  Bruno Haible  <bruno@clisp.org>
27943
27944         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27945         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27946         * lib/argp.h (__attribute__): Likewise.
27947         * lib/c-stack.c (__attribute__): Likewise.
27948         * lib/error.h (__attribute__): Likewise.
27949         * lib/fts.c (__attribute__): Likewise.
27950         * lib/openat.h (__attribute__): Likewise.
27951         * lib/stdio.in.h (__attribute__): Likewise.
27952         * lib/string.in.h (__attribute__): Likewise.
27953         * lib/utimens.c (__attribute__): Likewise.
27954         * lib/vasnprintf.h (__attribute__): Likewise.
27955         * lib/xalloc.h (__attribute__): Likewise.
27956         * lib/xprintf.h (__attribute__): Likewise.
27957         * lib/xstrtol.h (__attribute__): Likewise.
27958         * lib/xvasprintf.h (__attribute__): Likewise.
27959
27960 2008-01-12  Bruno Haible  <bruno@clisp.org>
27961
27962         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27963         * doc/glibc-headers/a.out.texi: New file.
27964         * doc/glibc-headers/aliases.texi: New file.
27965         * doc/glibc-headers/alloca.texi: New file.
27966         * doc/glibc-headers/ar.texi: New file.
27967         * doc/glibc-headers/argp.texi: New file.
27968         * doc/glibc-headers/argz.texi: New file.
27969         * doc/glibc-headers/byteswap.texi: New file.
27970         * doc/glibc-headers/crypt.texi: New file.
27971         * doc/glibc-headers/endian.texi: New file.
27972         * doc/glibc-headers/envz.texi: New file.
27973         * doc/glibc-headers/err.texi: New file.
27974         * doc/glibc-headers/error.texi: New file.
27975         * doc/glibc-headers/execinfo.texi: New file.
27976         * doc/glibc-headers/fpu_control.texi: New file.
27977         * doc/glibc-headers/fstab.texi: New file.
27978         * doc/glibc-headers/fts.texi: New file.
27979         * doc/glibc-headers/getopt.texi: New file.
27980         * doc/glibc-headers/ieee754.texi: New file.
27981         * doc/glibc-headers/ifaddrs.texi: New file.
27982         * doc/glibc-headers/libintl.texi: New file.
27983         * doc/glibc-headers/mcheck.texi: New file.
27984         * doc/glibc-headers/mntent.texi: New file.
27985         * doc/glibc-headers/obstack.texi: New file.
27986         * doc/glibc-headers/paths.texi: New file.
27987         * doc/glibc-headers/printf.texi: New file.
27988         * doc/glibc-headers/pty.texi: New file.
27989         * doc/glibc-headers/resolv.texi: New file.
27990         * doc/glibc-headers/shadow.texi: New file.
27991         * doc/glibc-headers/sysexits.texi: New file.
27992         * doc/glibc-headers/ttyent.texi: New file.
27993
27994 2008-01-12  Jim Meyering  <meyering@redhat.com>
27995
27996         announce-gen: emit Gnulib's git-based version string.
27997         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27998         New option --gnulib-version=V, where V is expected to be
27999         the output of running git describe in the gnulib directory.
28000         (get_tool_versions): Request feedback on xdelta.  I suspect it's
28001         not useful, and plan to stop publishing an xdelta file with each
28002         coreutils release.
28003
28004         * build-aux/announce-gen: Also check for lzma-compressed files.
28005
28006 2008-01-11  Bruno Haible  <bruno@clisp.org>
28007
28008         * tests/test-memmem.c (main): Increase maximum allowed time.
28009         * tests/test-strstr.c (main): Likewise.
28010
28011 2008-01-11  Bruno Haible  <bruno@clisp.org>
28012
28013         * doc/functions/memmem.texi: Add more precisions about platforms.
28014         * doc/functions/strstr.texi: Likewise.
28015
28016 2008-01-10  Eric Blake  <ebb9@byu.net>
28017
28018         * m4/strstr.m4: Delete cruft from copy-n-paste.
28019         Reported by Bruno Haible.
28020
28021 2008-01-10  Bruno Haible  <bruno@clisp.org>
28022
28023         Make c-strstr rely on strstr.
28024         * lib/c-strstr.c: Don't include str-kmp.h.
28025         (c_strstr): Define in terms of strstr.
28026         * modules/c-strstr (Files): Remove lib/str-kmp.h.
28027         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
28028
28029 2008-01-10  Bruno Haible  <bruno@clisp.org>
28030
28031         * doc/gnulib.texi (String Functions in C Locale): New section.
28032         * doc/c-ctype.texi: New file.
28033         * doc/c-strcase.texi: New file.
28034         * doc/c-strcaseeq.texi: New file.
28035         * doc/c-strcasestr.texi: New file.
28036         * doc/c-strstr.texi: New file.
28037         * doc/c-strtod.texi: New file.
28038         * doc/c-strtold.texi: New file.
28039
28040 2008-01-10  Eric Blake  <ebb9@byu.net>
28041
28042         * lib/relocatable.h: Fix a comment.
28043
28044 2008-01-10  Eric Blake  <ebb9@byu.net>
28045
28046         Share two-way algorithm.
28047         * lib/str-two-way.h: New file, merged from...
28048         * lib/memmem.c: ...here...
28049         * lib/strstr.c: ...and here.
28050         * modules/memmem (Files): Use it.
28051         * modules/strstr (Files): Likewise.
28052
28053         Avoid quadratic strstr implementations.
28054         * lib/strstr.c: New file.
28055         * m4/strstr.m4: Likewise.
28056         * modules/strstr: Likewise.
28057         * modules/strstr-tests: Likewise.
28058         * tests/test-strstr.c: Likewise.
28059         * lib/string.in.h (rpl_strstr): Declare.
28060         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
28061         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
28062         * modules/string (Makefile.am): Likewise.
28063         * MODULES.html.sh (string handling): Mention new module.
28064         * doc/functions/strstr.texi (strstr): Document the bug.
28065
28066 2008-01-10  Bruno Haible  <bruno@clisp.org>
28067
28068         * lib/relocatable.h (relocate): State whether result is freshly
28069         allocated or not.
28070         * lib/relocatable.c (relocate): Return a freshly allocated string
28071         instead of a pointer to a privately held string.
28072         Reported by Sylvain Beucler <beuc@gnu.org>.
28073
28074 2008-01-10  Colin Watson  <cjwatson@debian.org>
28075
28076         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
28077         s/S_ISNLK/S_ISLNK/.
28078
28079 2008-01-09  Bruno Haible  <bruno@clisp.org>
28080
28081         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
28082         and other files.
28083         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
28084         if it's only a guess.
28085         * modules/memmem: Simplify by depending on memmem-simple.
28086
28087 2008-01-09  Bruno Haible  <bruno@clisp.org>
28088
28089         Work around OpenBSD 4.0 tdelete() bug.
28090         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28091         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28092         macros and don't redefine the enum values.
28093         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28094         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28095         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28096
28097 2008-01-09  Bruno Haible  <bruno@clisp.org>
28098
28099         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28100         (main): Don't perform the tests if setlocale did not install a UTF-8
28101         locale. Needed on OpenBSD 4.0.
28102         * modules/wcwidth-tests (Depends-on): Add localcharset.
28103
28104 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28105
28106         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28107         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28108         * NEWS: announce this.
28109         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28110
28111 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28112         and Eric Blake  <ebb9@byu.net>
28113
28114         Add memmem-simple module.
28115         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28116         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28117         * modules/memmem-simple: New file.
28118         * modules/memmem (Description): Tweak.
28119         * MODULES.html.sh (string handling): Mention new module.
28120         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28121         addressed by memmem-simple.
28122         * NEWS: Document the difference.
28123
28124 2008-01-09  Eric Blake  <ebb9@byu.net>
28125
28126         Give gcc some memmem optimization hints.
28127         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28128         (strcasestr): Declare as pure.
28129         * modules/memmem (Maintainer): Claim my implementation.
28130
28131 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28132
28133         Support AIX 6.1 and higher.
28134         * build-aux/config.libpath: Likewise.
28135         * build-aux/config.rpath: Likewise.
28136
28137 2008-01-08  Jim Meyering  <meyering@redhat.com>
28138             Bruno Haible  <bruno@clisp.org>
28139
28140         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28141         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28142         Reported by Peter Fales in
28143         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28144
28145 2008-01-08  Bruno Haible  <bruno@clisp.org>
28146
28147         * modules/unictype/category-of (Depends-on): Add
28148         unictype/category-none.
28149         * modules/unictype/category-and-tests (Depends-on): Add
28150         unictype/category-{L,N,Lu,Nd}.
28151         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28152         * modules/unictype/category-or-tests (Depends-on): Add
28153         unictype/category-{L,N}.
28154         * modules/unictype/category-name-tests (Depends-on): Add
28155         unictype/category-{Z,Nl}.
28156         Reported by Simon Josefsson.
28157
28158 2008-01-08  Bruno Haible  <bruno@clisp.org>
28159
28160         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28161         convention better.
28162         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28163         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28164         Reported by Peter Miller <millerp@canb.auug.org.au>.
28165
28166 2008-01-08  Eric Blake  <ebb9@byu.net>
28167
28168         Rewrite memmem to guarantee linear complexity without malloc.
28169         * lib/memmem.c (memmem): Use Two-Way rather than
28170         Knuth-Morris-Pratt, to allow O(1) space usage.
28171         (critical_factorization, two_way_short_needle)
28172         (two_way_long_needle): New functions.
28173         (knuth_morris_pratt): Delete.
28174         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28175         Add stdint.
28176         * tests/test-memmem.c (main): Add tests for periodic needle and
28177         sublinear performance.
28178         * doc/functions/memmem.texi (memmem): Document other deficiencies
28179         in cygwin and older glibc.
28180
28181 2008-01-08  Bruno Haible  <bruno@clisp.org>
28182
28183         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28184         augmentation.
28185
28186 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28187
28188         Add a configure time option: --disable-acl.
28189         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28190         AC_ARG_ENABLE(acl).
28191
28192 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28193
28194         * tests/test-localename.c: Don't include obsolete "setenv.h".
28195
28196         * modules/localename-tests (Depends-on): Need unsetenv.
28197
28198 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28199
28200         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28201
28202 2008-01-06  Colin Watson  <cjwatson@debian.org>
28203
28204         * users.txt: Add man-db.
28205
28206 2008-01-07  Bruno Haible  <bruno@clisp.org>
28207
28208         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28209         previous section name.
28210
28211 2008-01-07  Bruno Haible  <bruno@clisp.org>
28212
28213         * lib/progname.c (set_program_name): Don't strip off a leading
28214         "lt-" prefix outside a .libs directory.
28215         Suggested by Paul Eggert.
28216
28217 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28218             Bruno Haible  <bruno@clisp.org>
28219
28220         Improve memory cleanup in 'relocatable' module.
28221         * lib/relocatable.h (compute_curr_prefix): Change return type to
28222         'char *'.
28223         * lib/relocatable.c (compute_curr_prefix): Change return type to
28224         'char *'. Free curr_installdir after use.
28225         (relocate): Free curr_prefix_better after use.
28226         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28227
28228 2008-01-01  Bruno Haible  <bruno@clisp.org>
28229
28230         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28231         failure on older glibc systems.
28232         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28233
28234 2008-01-05  Eric Blake  <ebb9@byu.net>
28235
28236         Avoid quadratic system memmem.
28237         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28238         Reported by Ralf Wildenhues.
28239
28240         Fix memmem test for mingw.
28241         * modules/memmem-tests (configure.ac): Check for alarm.
28242         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28243         it.
28244         * doc/functions/memmem.texi: New file.
28245         * doc/gnulib.texi (Function Substitutes): Add memmem.
28246         Reported by Bruno Haible.
28247
28248 2008-01-04  Bruno Haible  <bruno@clisp.org>
28249
28250         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28251         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28252         gl_HEADER_STRING_H_DEFAULTS.
28253
28254 2008-01-04  Eric Blake  <ebb9@byu.net>
28255
28256         Shorten duration of memmem test.
28257         * tests/test-memmem.c (main): Use alarm to declare failure if test
28258         is taking too long.
28259         Reported by Ralf Wildenhues.
28260
28261 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28262
28263         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28264         string, needed by strerror.
28265
28266 2008-01-03  Colin Watson  <cjwatson@debian.org>
28267             Bruno Haible  <bruno@clisp.org>
28268
28269         * doc/gnulib-tool.texi (Localization): New section.
28270
28271 2008-01-02  Bruno Haible  <bruno@clisp.org>
28272
28273         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28274         variables to 'unsigned char *' type.
28275         Reported by Paul Eggert.
28276
28277 2008-01-02  Jim Meyering  <jim@meyering.net>
28278
28279         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28280
28281 2007-12-31  Jim Meyering  <jim@meyering.net>
28282
28283         Avoid use of private FTS type name.
28284         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28285
28286 2007-12-30  Karl Berry  <karl@gnu.org>
28287
28288         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28289         work around defect in Texinfo and/or the standalone Info browser.
28290
28291 2007-12-30  Bruno Haible  <bruno@clisp.org>
28292
28293         Unify 5 copies of the KMP code.
28294         * lib/str-kmp.h: New file.
28295         * lib/c-strcasestr.c: Include str-kmp.h.
28296         (knuth_morris_pratt): Remove function.
28297         (c_strcasestr): Update.
28298         * lib/c-strstr.c: Include str-kmp.h.
28299         (knuth_morris_pratt): Remove function.
28300         (c_strcasestr): Update.
28301         * lib/mbscasestr.c: Include str-kmp.h.
28302         (knuth_morris_pratt_unibyte): Remove function.
28303         * lib/mbsstr.c: Include str-kmp.h.
28304         (knuth_morris_pratt_unibyte): Remove function.
28305         * lib/strcasestr.c: Include str-kmp.h.
28306         (knuth_morris_pratt): Remove function.
28307         (strcasestr): Update.
28308         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28309         * modules/c-strstr (Files): Likewise.
28310         * modules/mbscasestr (Files): Likewise.
28311         * modules/mbsstr (Files): Likewise.
28312         * modules/strcasestr (Files): Likewise.
28313         Suggested by Paul Eggert.
28314
28315 2007-12-30  Bruno Haible  <bruno@clisp.org>
28316
28317         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28318         defined.
28319
28320 2007-12-30  Bruno Haible  <bruno@clisp.org>
28321
28322         * lib/xmalloca.h: Include xalloc.h.
28323         (xnmalloca): New macro.
28324
28325 2007-12-30  Bruno Haible  <bruno@clisp.org>
28326
28327         * lib/malloca.h (nmalloca): New macro.
28328         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28329         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28330         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28331         knuth_morris_pratt_multibyte): Likewise.
28332         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28333         knuth_morris_pratt_multibyte): Likewise.
28334         * lib/memmem.c (knuth_morris_pratt): Likewise.
28335         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28336
28337 2007-12-25  Bruno Haible  <bruno@clisp.org>
28338
28339         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28340         * lib/glob.c: Don't include openat.h.
28341         (link_exists2_p): Add back the code that deals with the
28342         !GLOB_ALTDIRFUNC case.
28343         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28344         let it do the filename concatenation.
28345         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28346         * modules/glob (Depends-on): Remove openat.
28347
28348 2007-12-31  Bruno Haible  <bruno@clisp.org>
28349
28350         * modules/dirfd (License): Change to LGPLv2+.
28351         Approved by Jim Meyering.
28352
28353 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28354
28355         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28356         when multiplying M by sizeof (size_t).
28357
28358 2007-12-10  Martin Lambers  <marlam@marlam.de>
28359
28360         Override getpagesize on mingw.
28361         * lib/getpagesize.c: New file.
28362         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28363         * modules/getpagesize (Files): Add lib/getpagesize.c.
28364         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28366         REPLACE_GETPAGESIZE.
28367         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28368
28369 2007-12-25  Bruno Haible  <bruno@clisp.org>
28370
28371         * modules/localcharset (Notice): New field.
28372         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28373         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28374
28375 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28376             Bruno Haible  <bruno@clisp.org>
28377
28378         Avoid using the syntax symbol() in formatted documentation.
28379         * MODULES.html.sh (func_module): When replacing symbol() with a
28380         hyperlink, remove the parentheses. Show an error if some remain.
28381         Recognize and render the '...' syntax.
28382         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28383         Rework. Add paragraph about GCC's inlining.
28384         * doc/alloca.texi: Likewise.
28385         * doc/error.texi: Remove parentheses from symbol reference.
28386         * doc/gnulib-intro.texi: Likewise.
28387         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28388         * modules/fnmatch (Description): Reword to say "the ... function".
28389         * modules/full-read (Description): Likewise.
28390         * modules/full-write (Description): Likewise.
28391         * modules/safe-read (Description): Likewise.
28392         * modules/safe-write (Description): Likewise.
28393         * modules/strchrnul (Description): Likewise.
28394         * modules/trim (Description): Likewise.
28395         * modules/error (Description): Remove parentheses from symbol
28396         references.
28397         * modules/verror (Description): Likewise.
28398         Reported by Karl Berry.
28399
28400 2007-12-25  Bruno Haible  <bruno@clisp.org>
28401
28402         Fixup after 2007-10-16 commit.
28403         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28404
28405 2007-12-24  Bruno Haible  <bruno@clisp.org>
28406
28407         Make --enable-relocatable work with DESTDIR.
28408         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28409         to compute installdir from destprog.
28410         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28411         also set the RELOC_DESTDIR variable.
28412         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28413
28414 2007-12-24  Bruno Haible  <bruno@clisp.org>
28415
28416         Fix link error due to xalloc_die().
28417         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28418         of xreadlink.
28419         * lib/relocwrapper.c: Update comments.
28420         * build-aux/install-reloc: Remove xreadlink.c from file list.
28421         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28422         xreadlink.c.
28423         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28424
28425 2007-12-24  Bruno Haible  <bruno@clisp.org>
28426
28427         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28428         * lib/setenv.h: Remove file.
28429         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28430         lib/setenv.h.
28431         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28432         (Depends-on): Add stdlib.
28433         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28434         gl_FUNC_UNSETENV.
28435         (Include): Replace setenv.h with <stdlib.h>.
28436         * modules/unsetenv: New file.
28437         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28438         * lib/unsetenv.c: Include <stdlib.h> first.
28439         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28440         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28441         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28442         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28443         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28444         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28446         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28447         * doc/functions/unsetenv.texi: Update.
28448         * modules/xsetenv (Depends-on): Add unsetenv.
28449         * modules/getdate (Depends-on): Likewise.
28450         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28451         * lib/xsetenv.c: Don't include setenv.h.
28452         * lib/getdate.y: Likewise.
28453         * lib/relocwrapper.c: Likewise.
28454         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28455         (Depends-on): Add stdlib.
28456         * NEWS: Mention the changes.
28457         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28458
28459 2007-12-23  Bruno Haible  <bruno@clisp.org>
28460
28461         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28462         indentation.
28463
28464 2007-12-23  Bruno Haible  <bruno@clisp.org>
28465
28466         * lib/c-strcasestr.c: Add more comments.
28467         * lib/c-strstr.c: Likewise.
28468         * lib/mbscasestr.c: Likewise.
28469         * lib/mbsstr.c: Likewise.
28470         * lib/strcasestr.c: Likewise.
28471         * lib/memmem.c: Likewise.
28472
28473 2007-12-23  Bruno Haible  <bruno@clisp.org>
28474
28475         * tests/test-memmem.c: Include <string.h> first.
28476
28477 2007-12-22  Bruno Haible  <bruno@clisp.org>
28478
28479         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28480         the contents of $testsbase.
28481         Reported by Ralf Wildenhues.
28482
28483 2007-12-22  Bruno Haible  <bruno@clisp.org>
28484
28485         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28486         two variables local_ldadd_before, local_ldadd_last.
28487
28488 2007-12-20  Eric Blake  <ebb9@byu.net>
28489
28490         Work around circular library issue when cross-compiling.
28491         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28492         that progname.o does not need to pull in rpl_memcmp.
28493
28494 2007-12-19  Eric Blake  <ebb9@byu.net>
28495
28496         Fix memmem to avoid O(n^2) worst-case complexity.
28497         * lib/memmem.c (knuth_morris_pratt): New function.
28498         (memmem): Use it if first few naive iterations fail.
28499         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28500         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28501         * modules/memchr (License): Likewise.
28502         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28503         malloca.
28504         * tests/test-memmem.c: Rewrite, borrowing ideas from
28505         test-mbsstr1.c; the old version wouldn't even compile!
28506         * modules/memmem-tests: New file.
28507         * lib/string.in.h (rpl_memmem): Add declaration.
28508         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28509         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28510         REPLACE_MEMMEM.
28511
28512 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28513
28514         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28515         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28516         before any system include files, and undef after them all.  This
28517         should fix a problem on VMS reported by John E. Malmberg in
28518         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28519
28520 2007-12-17  Eric Blake  <ebb9@byu.net>
28521
28522         Revert addition of verify, for BSD/OS.
28523         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28524         can't handle large files, for the sake of obsolete platforms.
28525         * modules/fseeko (Depends-on): Remove verify.
28526         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28527         * doc/functions/ftello.texi (ftello): Likewise.
28528         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28529         Reported by Larry Jones.
28530
28531 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28532
28533         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28534         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28535
28536 2007-12-17  Jim Meyering  <meyering@redhat.com>
28537
28538         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28539         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28540         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28541         * modules/getcwd (Depends-on): Add openat.
28542         Reported by Petr Salinger.
28543
28544 2007-12-17  Bruno Haible  <bruno@clisp.org>
28545
28546         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28547         avoid a segmentation fault of the configure test on x86_64 systems.
28548
28549 2007-12-15  Jim Meyering  <meyering@redhat.com>
28550
28551         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28552
28553 2007-12-13  Eric Blake  <ebb9@byu.net>
28554
28555         Another fseek test.
28556         * tests/test-fseek.c (main): Also test ungetc handling.
28557         * tests/test-fseeko.c (main): Likewise.
28558         * modules/fseeko (Depends-on): Add verify.
28559         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28560         large.
28561         Reported by Larry Jones.
28562
28563         Fix fseeko on mingw.
28564         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28565         seek.
28566
28567         Beef up fseek tests.
28568         * tests/test-fseek.c (main): Also test eof handling.
28569         * tests/test-fseeko.c (main): Likewise.
28570         Reported by Larry Jones.
28571
28572 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28573
28574         Fix fseeko on BSD-based platforms.
28575         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28576         successful seek.
28577
28578 2007-12-12  Eric Blake  <ebb9@byu.net>
28579
28580         Allow circular dependency of separate libtests.a
28581         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28582         when use_libtests.
28583
28584 2007-12-11  Eric Blake  <ebb9@byu.net>
28585
28586         Fix bug with -0.0L in previous patch.
28587         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28588         * tests/test-isnan.c (main): Also test on zeroes.
28589         * tests/test-isnanf.c (main): Likewise.
28590         * tests/test-isnanl.h (main): Likewise.
28591
28592         Detect pseudo-denormals on x86 even when cross-compiling.
28593         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28594         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28595         invalid bit patterns that happen to satisfy ==.
28596
28597         Avoid link failures with separate libtests.a.
28598         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28599         last, to satisfy circular dependencies.
28600
28601 2007-12-11  Eric Blake  <ebb9@byu.net>
28602         and Bruno Haible  <bruno@clisp.org>
28603
28604         Fix OpenBSD 4.0 <float.h> handling of long double.
28605         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28606         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28607         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28608
28609 2007-12-11  Jim Meyering  <meyering@redhat.com>
28610
28611         * users.txt: Add libvirt.
28612
28613         Support versions of autoconf prior to 2.59c.
28614         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28615         if it is not already defined.
28616
28617 2007-12-09  Bruno Haible  <bruno@clisp.org>
28618
28619         Let 'gnulib-tool --import' collect sources needed for the tests in
28620         tests/ rather than in lib/.
28621         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28622         argument. If true, add rules to generate libtests.a, and put libtests.a
28623         into $(LDADD). Consider source files in subdirectories and set
28624         uses_subdirs.
28625         (func_emit_initmacro_start, func_emit_initmacro_end,
28626         func_emit_initmacro_done): Pass all arguments explicitly.
28627         (func_import): Determine two module lists main_modules,
28628         testsrelated_modules. Determine use_libtests. Determine two variables
28629         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28630         instead of just sed_transform_lib_file. Determine two variables
28631         main_files and testsrelated_files. Compute 'files' as the union of
28632         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28633         func_add_or_update. In the generated gnulib-comp.m4, collect the
28634         object files for tests/ in different variables than those for lib/.
28635         Substitute LIBTESTS_LIBDEPS.
28636         (func_create_testdir): Combine the uses_subdirs results from
28637         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28638
28639 2007-12-09  Bruno Haible  <bruno@clisp.org>
28640
28641         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28642         the build-aux directory.
28643
28644 2007-12-09  Bruno Haible  <bruno@clisp.org>
28645
28646         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28647         introduced on 2006-09-09.
28648
28649 2007-12-07  Jim Meyering  <meyering@redhat.com>
28650
28651         Let these macros work also with autoconf-2.59.
28652         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28653         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28654         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28655
28656 2007-12-06  Jim Meyering  <meyering@redhat.com>
28657
28658         Avoid a configure-time syntax error in gl_FUNC_ACL.
28659         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28660         function in each branch, before testing the cache variable.
28661
28662 2007-12-04  Eric Blake  <ebb9@byu.net>
28663
28664         Make scripts executable.
28665         * build-aux/config.guess: Add execute permissions.
28666         * build-aux/config.sub: Likewise.
28667         * build-aux/gendocs.sh: Likewise.
28668
28669         Fix frexp on mingw.
28670         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28671         cross-compiling.
28672         * doc/functions/frexp.texi (frexp): Document the bug.
28673
28674         Make cygwin fseeko check more reliable.
28675         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28676         version numbers, rather than unrelated feature check.
28677         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28678         * doc/functions/ftello.texi (ftello): Likewise.
28679         Reported by Bruno Haible.
28680
28681         * m4/strerror.m4: Bump version number.
28682
28683 2007-12-03  Bruno Haible  <bruno@clisp.org>
28684
28685         * doc/functions/mprotect.texi: Mention the mingw problem.
28686
28687 2007-12-03  Eric Blake  <ebb9@byu.net>
28688
28689         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28690         REPLACE_STRERROR is initialized before this macro.
28691
28692 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28693
28694         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28695         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28696         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28697         put -lsec in even for programs other than 'ls'.  This fixes a problem
28698         for gettext reported by Bruno Haible in
28699         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28700         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28701         Add support for Solaris 10.  This isn't efficient, but should get the
28702         job done for now.
28703
28704 2007-12-03  James Youngman  <jay@gnu.org>
28705
28706         * doc/regexprops-generic.texi: change "an close-group" to "a
28707         close-group" and "illegal" to "not allowed".
28708
28709 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28710
28711         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28712         pr_byname.h. Needed for the rare case when the maintainer has done
28713         "make maintainer-clean" in the source directory and then attempts a
28714         build outside the source directory.
28715         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28716         scripts_byname.h.
28717
28718 2007-12-02  Martin Lambers <marlam@marlam.de>
28719             Bruno Haible  <bruno@clisp.org>
28720
28721         * lib/getpagesize.h: Remove file.
28722         * lib/unistd.in.h: Include declaration of getpagesize here.
28723         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28724         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28725         HAVE_SYS_PARAM_H.
28726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28727         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28728         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28729         (Depends-on): Add unistd.
28730         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28731         (Include): Use <unistd.h> instead of getpagesize.h.
28732         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28733         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28734         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28735         gl_GETPAGESIZE invocation, already handled by module dependency.
28736         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28737
28738 2007-12-02  Bruno Haible  <bruno@clisp.org>
28739
28740         * modules/strings-tests: New file.
28741         * tests/test-strings.c: New file.
28742
28743         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28744         * lib/strings.in.h: New file.
28745         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28746         * m4/strings_h.m4: New file.
28747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28748         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28749         * modules/strings: New file.
28750         * modules/string (Makefile.am): Update.
28751         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28752         Reported by Karl Berry.
28753
28754 2007-12-01  Eric Blake  <ebb9@byu.net>
28755
28756         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28757         accomodate fix in cygwin 1.5.25.
28758
28759 2007-12-01  Jim Meyering  <meyering@redhat.com>
28760
28761         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28762         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28763         that would inhibit utf8-optimization of a regexp containing line-
28764         or buffer-anchors, e.g., `^', `$'.
28765
28766 2007-11-30  Bruno Haible  <bruno@clisp.org>
28767
28768         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28769         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28770         glthread_recursive_lock_init.
28771         * lib/lock.c (glthread_recursive_lock_init)
28772         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28773         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28774
28775 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28776
28777         New function qset_acl, like set_acl but with syscall semantics.
28778         * lib/acl.h (qset_acl): New decl.
28779         * lib/acl.c (qset_acl): New function.
28780         (set_acl): Use new function.  Use more-consistent diagnostics.
28781
28782 2007-11-28  Jim Meyering  <meyering@redhat.com>
28783
28784         * modules/physmem (License): Change from GPL to LGPLv2+.
28785
28786 2007-11-26  Bruno Haible  <bruno@clisp.org>
28787
28788         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28789         'long double' type has excess precision.
28790         Reported by Jim Meyering in
28791         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28792
28793 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28794
28795         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28796         Sync from <http://gnu.org/licenses>.
28797         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28798         with license text from same location.
28799         * doc/maintain.texi, doc/standards.texi:  Sync from
28800         <http://savannah.gnu.org/projects/gnustandards>.
28801
28802 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
28803         and Jim Meyering  <meyering@redhat.com>
28804
28805         Adjust getdate' grammar to accept a slightly more regular language.
28806         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28807         Before, the former was rejected.
28808         * lib/getdate.y (digits_to_date_time): New function, factored
28809         out of ...
28810         (number): ...here.  Just call digits_to_date_time.
28811         (hybrid): New non-terminal to handle an <unsigned number,
28812         signed relative offset> sequence consistently.
28813
28814 2007-11-18  Jim Meyering  <meyering@redhat.com>
28815
28816         Pull my changes from coreutils:
28817         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28818         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28819         use of $gnulib_tool_option_extras, so that it's separated from the
28820         preceding argument.
28821
28822         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28823         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28824         parent destination directories before copying a file into place.
28825
28826 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28827
28828         bootstrap: work also with 4-argument variant of AC_INIT
28829         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28830
28831 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28832
28833         Port test-getaddrinfo to Solaris.
28834         Problem reported by Bruno Haible in
28835         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28836         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28837         explanation of setting 'hints'.
28838         Don't reject an implementation merely because it returns EAI_SERVICE.
28839         (EAI_SERVICE): Define to 0 if not defined.
28840
28841 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28842
28843         The license of gnu-make and posix-shell is now "GPLed build tool".
28844         * modules/gnu-make (License): Likewise.
28845         * modules/posix-shell (License): Likewise.
28846
28847         New module posix-shell, for determining a POSIX shell
28848         or perhaps something that is close enough to a POSIX shell.
28849         * m4/posix-shell.m4: New file.
28850         * modules/posix-shell: New file.
28851
28852         * MODULES.html.sh: Mention new module.
28853
28854         New module gnu-make, for determining whether we're using GNU Make.
28855         * m4/gnu-make.m4: New file.
28856         * modules/gnu-make: New file.
28857         * MODULES.html.sh: Mention new module.
28858
28859 2007-11-14  Jim Meyering  <meyering@redhat.com>
28860
28861         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28862         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28863         use this macro to create a function _definition_.
28864         Remove useless "#undef ARGMATCH_DIE".
28865
28866 2007-11-14  Bruno Haible  <bruno@clisp.org>
28867
28868         * lib/config.charset: Update for OpenBSD 4.1.
28869         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28870
28871 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28872
28873         Document 64-bit #if problems in stdint.texi.
28874         * doc/headers/stdint.texi (stdint.h): Mention problems with
28875         64-bit-#if, and how to work around them.
28876
28877         Don't insist on 'long long int' support in the preprocessor.  It
28878         breaks too many things.  For example, PRIdMAX still uses a 'long
28879         long int' format with the latest Sun compiler, even though
28880         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28881         preprocessor problem.  This causes the latest coreutils to dump
28882         core on Solaris 10 sparc with the Sun C compiler.
28883         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28884         the troublesome expressions at configure-time, not at #if-time.
28885         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28886         preprocessor.
28887         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28888         compile-time C checks, done at 'configure'-time.
28889         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28890         * modules/inttypes (Makefile): Substitute the new symbols that
28891         gl_INTTYPES_H now generates.
28892         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28893
28894 2007-11-12  Bruno Haible  <bruno@clisp.org>
28895
28896         Tests for Unicode character classification functions.
28897
28898         * modules/unictype/bidicategory-byname-tests: New file.
28899         * modules/unictype/bidicategory-name-tests: New file.
28900         * modules/unictype/bidicategory-of-tests: New file.
28901         * modules/unictype/bidicategory-test-tests: New file.
28902         * modules/unictype/block-list-tests: New file.
28903         * modules/unictype/block-of-tests: New file.
28904         * modules/unictype/block-test-tests: New file.
28905         * modules/unictype/category-C-tests: New file.
28906         * modules/unictype/category-Cc-tests: New file.
28907         * modules/unictype/category-Cf-tests: New file.
28908         * modules/unictype/category-Cn-tests: New file.
28909         * modules/unictype/category-Co-tests: New file.
28910         * modules/unictype/category-Cs-tests: New file.
28911         * modules/unictype/category-L-tests: New file.
28912         * modules/unictype/category-Ll-tests: New file.
28913         * modules/unictype/category-Lm-tests: New file.
28914         * modules/unictype/category-Lo-tests: New file.
28915         * modules/unictype/category-Lt-tests: New file.
28916         * modules/unictype/category-Lu-tests: New file.
28917         * modules/unictype/category-M-tests: New file.
28918         * modules/unictype/category-Mc-tests: New file.
28919         * modules/unictype/category-Me-tests: New file.
28920         * modules/unictype/category-Mn-tests: New file.
28921         * modules/unictype/category-N-tests: New file.
28922         * modules/unictype/category-Nd-tests: New file.
28923         * modules/unictype/category-Nl-tests: New file.
28924         * modules/unictype/category-No-tests: New file.
28925         * modules/unictype/category-P-tests: New file.
28926         * modules/unictype/category-Pc-tests: New file.
28927         * modules/unictype/category-Pd-tests: New file.
28928         * modules/unictype/category-Pe-tests: New file.
28929         * modules/unictype/category-Pf-tests: New file.
28930         * modules/unictype/category-Pi-tests: New file.
28931         * modules/unictype/category-Po-tests: New file.
28932         * modules/unictype/category-Ps-tests: New file.
28933         * modules/unictype/category-S-tests: New file.
28934         * modules/unictype/category-Sc-tests: New file.
28935         * modules/unictype/category-Sk-tests: New file.
28936         * modules/unictype/category-Sm-tests: New file.
28937         * modules/unictype/category-So-tests: New file.
28938         * modules/unictype/category-Z-tests: New file.
28939         * modules/unictype/category-Zl-tests: New file.
28940         * modules/unictype/category-Zp-tests: New file.
28941         * modules/unictype/category-Zs-tests: New file.
28942         * modules/unictype/category-and-not-tests: New file.
28943         * modules/unictype/category-and-tests: New file.
28944         * modules/unictype/category-byname-tests: New file.
28945         * modules/unictype/category-name-tests: New file.
28946         * modules/unictype/category-none-tests: New file.
28947         * modules/unictype/category-of-tests: New file.
28948         * modules/unictype/category-or-tests: New file.
28949         * modules/unictype/category-test-withtable-tests: New file.
28950         * modules/unictype/combining-class-tests: New file.
28951         * modules/unictype/ctype-alnum-tests: New file.
28952         * modules/unictype/ctype-alpha-tests: New file.
28953         * modules/unictype/ctype-blank-tests: New file.
28954         * modules/unictype/ctype-cntrl-tests: New file.
28955         * modules/unictype/ctype-digit-tests: New file.
28956         * modules/unictype/ctype-graph-tests: New file.
28957         * modules/unictype/ctype-lower-tests: New file.
28958         * modules/unictype/ctype-print-tests: New file.
28959         * modules/unictype/ctype-punct-tests: New file.
28960         * modules/unictype/ctype-space-tests: New file.
28961         * modules/unictype/ctype-upper-tests: New file.
28962         * modules/unictype/ctype-xdigit-tests: New file.
28963         * modules/unictype/decimal-digit-tests: New file.
28964         * modules/unictype/digit-tests: New file.
28965         * modules/unictype/mirror-tests: New file.
28966         * modules/unictype/numeric-tests: New file.
28967         * modules/unictype/property-alphabetic-tests: New file.
28968         * modules/unictype/property-ascii-hex-digit-tests: New file.
28969         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28970         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28971         * modules/unictype/property-bidi-block-separator-tests: New file.
28972         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28973         * modules/unictype/property-bidi-common-separator-tests: New file.
28974         * modules/unictype/property-bidi-control-tests: New file.
28975         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28976         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28977         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28978         * modules/unictype/property-bidi-european-digit-tests: New file.
28979         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28980         * modules/unictype/property-bidi-left-to-right-tests: New file.
28981         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28982         * modules/unictype/property-bidi-other-neutral-tests: New file.
28983         * modules/unictype/property-bidi-pdf-tests: New file.
28984         * modules/unictype/property-bidi-segment-separator-tests: New file.
28985         * modules/unictype/property-bidi-whitespace-tests: New file.
28986         * modules/unictype/property-byname-tests: New file.
28987         * modules/unictype/property-combining-tests: New file.
28988         * modules/unictype/property-composite-tests: New file.
28989         * modules/unictype/property-currency-symbol-tests: New file.
28990         * modules/unictype/property-dash-tests: New file.
28991         * modules/unictype/property-decimal-digit-tests: New file.
28992         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28993         * modules/unictype/property-deprecated-tests: New file.
28994         * modules/unictype/property-diacritic-tests: New file.
28995         * modules/unictype/property-extender-tests: New file.
28996         * modules/unictype/property-format-control-tests: New file.
28997         * modules/unictype/property-grapheme-base-tests: New file.
28998         * modules/unictype/property-grapheme-extend-tests: New file.
28999         * modules/unictype/property-grapheme-link-tests: New file.
29000         * modules/unictype/property-hex-digit-tests: New file.
29001         * modules/unictype/property-hyphen-tests: New file.
29002         * modules/unictype/property-id-continue-tests: New file.
29003         * modules/unictype/property-id-start-tests: New file.
29004         * modules/unictype/property-ideographic-tests: New file.
29005         * modules/unictype/property-ids-binary-operator-tests: New file.
29006         * modules/unictype/property-ids-trinary-operator-tests: New file.
29007         * modules/unictype/property-ignorable-control-tests: New file.
29008         * modules/unictype/property-iso-control-tests: New file.
29009         * modules/unictype/property-join-control-tests: New file.
29010         * modules/unictype/property-left-of-pair-tests: New file.
29011         * modules/unictype/property-line-separator-tests: New file.
29012         * modules/unictype/property-logical-order-exception-tests: New file.
29013         * modules/unictype/property-lowercase-tests: New file.
29014         * modules/unictype/property-math-tests: New file.
29015         * modules/unictype/property-non-break-tests: New file.
29016         * modules/unictype/property-not-a-character-tests: New file.
29017         * modules/unictype/property-numeric-tests: New file.
29018         * modules/unictype/property-other-alphabetic-tests: New file.
29019         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
29020         * modules/unictype/property-other-grapheme-extend-tests: New file.
29021         * modules/unictype/property-other-id-continue-tests: New file.
29022         * modules/unictype/property-other-id-start-tests: New file.
29023         * modules/unictype/property-other-lowercase-tests: New file.
29024         * modules/unictype/property-other-math-tests: New file.
29025         * modules/unictype/property-other-uppercase-tests: New file.
29026         * modules/unictype/property-paired-punctuation-tests: New file.
29027         * modules/unictype/property-paragraph-separator-tests: New file.
29028         * modules/unictype/property-pattern-syntax-tests: New file.
29029         * modules/unictype/property-pattern-white-space-tests: New file.
29030         * modules/unictype/property-private-use-tests: New file.
29031         * modules/unictype/property-punctuation-tests: New file.
29032         * modules/unictype/property-quotation-mark-tests: New file.
29033         * modules/unictype/property-radical-tests: New file.
29034         * modules/unictype/property-sentence-terminal-tests: New file.
29035         * modules/unictype/property-soft-dotted-tests: New file.
29036         * modules/unictype/property-space-tests: New file.
29037         * modules/unictype/property-terminal-punctuation-tests: New file.
29038         * modules/unictype/property-test-tests: New file.
29039         * modules/unictype/property-titlecase-tests: New file.
29040         * modules/unictype/property-unassigned-code-value-tests: New file.
29041         * modules/unictype/property-unified-ideograph-tests: New file.
29042         * modules/unictype/property-uppercase-tests: New file.
29043         * modules/unictype/property-variation-selector-tests: New file.
29044         * modules/unictype/property-white-space-tests: New file.
29045         * modules/unictype/property-xid-continue-tests: New file.
29046         * modules/unictype/property-xid-start-tests: New file.
29047         * modules/unictype/property-zero-width-tests: New file.
29048         * modules/unictype/scripts-tests: New file.
29049         * modules/unictype/syntax-c-ident-tests: New file.
29050         * modules/unictype/syntax-c-whitespace-tests: New file.
29051         * modules/unictype/syntax-java-ident-tests: New file.
29052         * modules/unictype/syntax-java-whitespace-tests: New file.
29053         * tests/unictype/test-bidi_byname.c: New file.
29054         * tests/unictype/test-bidi_name.c: New file.
29055         * tests/unictype/test-bidi_of.c: New file.
29056         * tests/unictype/test-bidi_test.c: New file.
29057         * tests/unictype/test-block_list.c: New file.
29058         * tests/unictype/test-block_of.c: New file.
29059         * tests/unictype/test-block_test.c: New file.
29060         * tests/unictype/test-categ_and.c: New file.
29061         * tests/unictype/test-categ_and_not.c: New file.
29062         * tests/unictype/test-categ_byname.c: New file.
29063         * tests/unictype/test-categ_name.c: New file.
29064         * tests/unictype/test-categ_none.c: New file.
29065         * tests/unictype/test-categ_of.c: New file.
29066         * tests/unictype/test-categ_or.c: New file.
29067         * tests/unictype/test-categ_test_withtable.c: New file.
29068         * tests/unictype/test-combining.c: New file.
29069         * tests/unictype/test-decdigit.c: New file.
29070         * tests/unictype/test-digit.c: New file.
29071         * tests/unictype/test-mirror.c: New file.
29072         * tests/unictype/test-numeric.c: New file.
29073         * tests/unictype/test-pr_byname.c: New file.
29074         * tests/unictype/test-pr_test.c: New file.
29075         * tests/unictype/test-predicate-part1.h: New file.
29076         * tests/unictype/test-predicate-part2.h: New file.
29077         * tests/unictype/test-scripts.c: New file.
29078         * tests/unictype/test-sy_c_ident.c: New file.
29079         * tests/unictype/test-sy_java_ident.c: New file.
29080
29081         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
29082         for Unicode 5.0.0.
29083         * tests/unictype/test-categ_Cc.c: Likewise.
29084         * tests/unictype/test-categ_Cf.c: Likewise.
29085         * tests/unictype/test-categ_Cn.c: Likewise.
29086         * tests/unictype/test-categ_Co.c: Likewise.
29087         * tests/unictype/test-categ_Cs.c: Likewise.
29088         * tests/unictype/test-categ_L.c: Likewise.
29089         * tests/unictype/test-categ_Ll.c: Likewise.
29090         * tests/unictype/test-categ_Lm.c: Likewise.
29091         * tests/unictype/test-categ_Lo.c: Likewise.
29092         * tests/unictype/test-categ_Lt.c: Likewise.
29093         * tests/unictype/test-categ_Lu.c: Likewise.
29094         * tests/unictype/test-categ_M.c: Likewise.
29095         * tests/unictype/test-categ_Mc.c: Likewise.
29096         * tests/unictype/test-categ_Me.c: Likewise.
29097         * tests/unictype/test-categ_Mn.c: Likewise.
29098         * tests/unictype/test-categ_N.c: Likewise.
29099         * tests/unictype/test-categ_Nd.c: Likewise.
29100         * tests/unictype/test-categ_Nl.c: Likewise.
29101         * tests/unictype/test-categ_No.c: Likewise.
29102         * tests/unictype/test-categ_P.c: Likewise.
29103         * tests/unictype/test-categ_Pc.c: Likewise.
29104         * tests/unictype/test-categ_Pd.c: Likewise.
29105         * tests/unictype/test-categ_Pe.c: Likewise.
29106         * tests/unictype/test-categ_Pf.c: Likewise.
29107         * tests/unictype/test-categ_Pi.c: Likewise.
29108         * tests/unictype/test-categ_Po.c: Likewise.
29109         * tests/unictype/test-categ_Ps.c: Likewise.
29110         * tests/unictype/test-categ_S.c: Likewise.
29111         * tests/unictype/test-categ_Sc.c: Likewise.
29112         * tests/unictype/test-categ_Sk.c: Likewise.
29113         * tests/unictype/test-categ_Sm.c: Likewise.
29114         * tests/unictype/test-categ_So.c: Likewise.
29115         * tests/unictype/test-categ_Z.c: Likewise.
29116         * tests/unictype/test-categ_Zl.c: Likewise.
29117         * tests/unictype/test-categ_Zp.c: Likewise.
29118         * tests/unictype/test-categ_Zs.c: Likewise.
29119         * tests/unictype/test-ctype_alnum.c: Likewise.
29120         * tests/unictype/test-ctype_alpha.c: Likewise.
29121         * tests/unictype/test-ctype_blank.c: Likewise.
29122         * tests/unictype/test-ctype_cntrl.c: Likewise.
29123         * tests/unictype/test-ctype_digit.c: Likewise.
29124         * tests/unictype/test-ctype_graph.c: Likewise.
29125         * tests/unictype/test-ctype_lower.c: Likewise.
29126         * tests/unictype/test-ctype_print.c: Likewise.
29127         * tests/unictype/test-ctype_punct.c: Likewise.
29128         * tests/unictype/test-ctype_space.c: Likewise.
29129         * tests/unictype/test-ctype_upper.c: Likewise.
29130         * tests/unictype/test-ctype_xdigit.c: Likewise.
29131         * tests/unictype/test-decdigit.h: Likewise.
29132         * tests/unictype/test-digit.h: Likewise.
29133         * tests/unictype/test-numeric.h: Likewise.
29134         * tests/unictype/test-pr_alphabetic.c: Likewise.
29135         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29136         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29137         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29138         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29139         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29140         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29141         * tests/unictype/test-pr_bidi_control.c: Likewise.
29142         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29143         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29144         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29145         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29146         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29147         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29148         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29149         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29150         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29151         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29152         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29153         * tests/unictype/test-pr_combining.c: Likewise.
29154         * tests/unictype/test-pr_composite.c: Likewise.
29155         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29156         * tests/unictype/test-pr_dash.c: Likewise.
29157         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29158         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29159         * tests/unictype/test-pr_deprecated.c: Likewise.
29160         * tests/unictype/test-pr_diacritic.c: Likewise.
29161         * tests/unictype/test-pr_extender.c: Likewise.
29162         * tests/unictype/test-pr_format_control.c: Likewise.
29163         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29164         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29165         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29166         * tests/unictype/test-pr_hex_digit.c: Likewise.
29167         * tests/unictype/test-pr_hyphen.c: Likewise.
29168         * tests/unictype/test-pr_id_continue.c: Likewise.
29169         * tests/unictype/test-pr_id_start.c: Likewise.
29170         * tests/unictype/test-pr_ideographic.c: Likewise.
29171         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29172         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29173         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29174         * tests/unictype/test-pr_iso_control.c: Likewise.
29175         * tests/unictype/test-pr_join_control.c: Likewise.
29176         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29177         * tests/unictype/test-pr_line_separator.c: Likewise.
29178         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29179         * tests/unictype/test-pr_lowercase.c: Likewise.
29180         * tests/unictype/test-pr_math.c: Likewise.
29181         * tests/unictype/test-pr_non_break.c: Likewise.
29182         * tests/unictype/test-pr_not_a_character.c: Likewise.
29183         * tests/unictype/test-pr_numeric.c: Likewise.
29184         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29185         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29186         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29187         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29188         * tests/unictype/test-pr_other_id_start.c: Likewise.
29189         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29190         * tests/unictype/test-pr_other_math.c: Likewise.
29191         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29192         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29193         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29194         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29195         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29196         * tests/unictype/test-pr_private_use.c: Likewise.
29197         * tests/unictype/test-pr_punctuation.c: Likewise.
29198         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29199         * tests/unictype/test-pr_radical.c: Likewise.
29200         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29201         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29202         * tests/unictype/test-pr_space.c: Likewise.
29203         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29204         * tests/unictype/test-pr_titlecase.c: Likewise.
29205         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29206         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29207         * tests/unictype/test-pr_uppercase.c: Likewise.
29208         * tests/unictype/test-pr_variation_selector.c: Likewise.
29209         * tests/unictype/test-pr_white_space.c: Likewise.
29210         * tests/unictype/test-pr_xid_continue.c: Likewise.
29211         * tests/unictype/test-pr_xid_start.c: Likewise.
29212         * tests/unictype/test-pr_zero_width.c: Likewise.
29213         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29214         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29215
29216 2007-11-12  Bruno Haible  <bruno@clisp.org>
29217
29218         Unicode character classification functions.
29219         * lib/unictype.h: New file.
29220         * modules/unictype/base: New file.
29221         * modules/unictype/category-L: New file.
29222         * modules/unictype/category-Lu: New file.
29223         * modules/unictype/category-Ll: New file.
29224         * modules/unictype/category-Lt: New file.
29225         * modules/unictype/category-Lm: New file.
29226         * modules/unictype/category-Lo: New file.
29227         * modules/unictype/category-M: New file.
29228         * modules/unictype/category-Mn: New file.
29229         * modules/unictype/category-Mc: New file.
29230         * modules/unictype/category-Me: New file.
29231         * modules/unictype/category-N: New file.
29232         * modules/unictype/category-Nd: New file.
29233         * modules/unictype/category-Nl: New file.
29234         * modules/unictype/category-No: New file.
29235         * modules/unictype/category-P: New file.
29236         * modules/unictype/category-Pc: New file.
29237         * modules/unictype/category-Pd: New file.
29238         * modules/unictype/category-Ps: New file.
29239         * modules/unictype/category-Pe: New file.
29240         * modules/unictype/category-Pi: New file.
29241         * modules/unictype/category-Pf: New file.
29242         * modules/unictype/category-Po: New file.
29243         * modules/unictype/category-S: New file.
29244         * modules/unictype/category-Sm: New file.
29245         * modules/unictype/category-Sc: New file.
29246         * modules/unictype/category-Sk: New file.
29247         * modules/unictype/category-So: New file.
29248         * modules/unictype/category-Z: New file.
29249         * modules/unictype/category-Zs: New file.
29250         * modules/unictype/category-Zl: New file.
29251         * modules/unictype/category-Zp: New file.
29252         * modules/unictype/category-C: New file.
29253         * modules/unictype/category-Cc: New file.
29254         * modules/unictype/category-Cf: New file.
29255         * modules/unictype/category-Cs: New file.
29256         * modules/unictype/category-Co: New file.
29257         * modules/unictype/category-Cn: New file.
29258         * modules/unictype/category-or: New file.
29259         * modules/unictype/category-of: New file.
29260         * modules/unictype/category-test: New file.
29261         * modules/unictype/category-test-withtable: New file.
29262         * modules/unictype/category-byname: New file.
29263         * modules/unictype/category-none: New file.
29264         * modules/unictype/category-and: New file.
29265         * modules/unictype/category-and-not: New file.
29266         * modules/unictype/category-name: New file.
29267         * modules/unictype/combining-class: New file.
29268         * modules/unictype/category-all: New file.
29269         * modules/unictype/bidicategory-all: New file.
29270         * modules/unictype/bidicategory-byname: New file.
29271         * modules/unictype/bidicategory-name: New file.
29272         * modules/unictype/bidicategory-of: New file.
29273         * modules/unictype/bidicategory-test: New file.
29274         * modules/unictype/decimal-digit: New file.
29275         * modules/unictype/digit: New file.
29276         * modules/unictype/numeric: New file.
29277         * modules/unictype/mirror: New file.
29278         * modules/unictype/property-white-space: New file.
29279         * modules/unictype/property-alphabetic: New file.
29280         * modules/unictype/property-other-alphabetic: New file.
29281         * modules/unictype/property-not-a-character: New file.
29282         * modules/unictype/property-default-ignorable-code-point: New file.
29283         * modules/unictype/property-other-default-ignorable-code-point: New
29284         file.
29285         * modules/unictype/property-deprecated: New file.
29286         * modules/unictype/property-logical-order-exception: New file.
29287         * modules/unictype/property-variation-selector: New file.
29288         * modules/unictype/property-private-use: New file.
29289         * modules/unictype/property-unassigned-code-value: New file.
29290         * modules/unictype/property-uppercase: New file.
29291         * modules/unictype/property-other-uppercase: New file.
29292         * modules/unictype/property-lowercase: New file.
29293         * modules/unictype/property-other-lowercase: New file.
29294         * modules/unictype/property-titlecase: New file.
29295         * modules/unictype/property-soft-dotted: New file.
29296         * modules/unictype/property-id-start: New file.
29297         * modules/unictype/property-other-id-start: New file.
29298         * modules/unictype/property-id-continue: New file.
29299         * modules/unictype/property-other-id-continue: New file.
29300         * modules/unictype/property-xid-start: New file.
29301         * modules/unictype/property-xid-continue: New file.
29302         * modules/unictype/property-pattern-white-space: New file.
29303         * modules/unictype/property-pattern-syntax: New file.
29304         * modules/unictype/property-join-control: New file.
29305         * modules/unictype/property-grapheme-base: New file.
29306         * modules/unictype/property-grapheme-extend: New file.
29307         * modules/unictype/property-other-grapheme-extend: New file.
29308         * modules/unictype/property-grapheme-link: New file.
29309         * modules/unictype/property-bidi-control: New file.
29310         * modules/unictype/property-bidi-left-to-right: New file.
29311         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29312         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29313         * modules/unictype/property-bidi-european-digit: New file.
29314         * modules/unictype/property-bidi-eur-num-separator: New file.
29315         * modules/unictype/property-bidi-eur-num-terminator: New file.
29316         * modules/unictype/property-bidi-arabic-digit: New file.
29317         * modules/unictype/property-bidi-common-separator: New file.
29318         * modules/unictype/property-bidi-block-separator: New file.
29319         * modules/unictype/property-bidi-segment-separator: New file.
29320         * modules/unictype/property-bidi-whitespace: New file.
29321         * modules/unictype/property-bidi-non-spacing-mark: New file.
29322         * modules/unictype/property-bidi-boundary-neutral: New file.
29323         * modules/unictype/property-bidi-pdf: New file.
29324         * modules/unictype/property-bidi-embedding-or-override: New file.
29325         * modules/unictype/property-bidi-other-neutral: New file.
29326         * modules/unictype/property-hex-digit: New file.
29327         * modules/unictype/property-ascii-hex-digit: New file.
29328         * modules/unictype/property-ideographic: New file.
29329         * modules/unictype/property-unified-ideograph: New file.
29330         * modules/unictype/property-radical: New file.
29331         * modules/unictype/property-ids-binary-operator: New file.
29332         * modules/unictype/property-ids-trinary-operator: New file.
29333         * modules/unictype/property-zero-width: New file.
29334         * modules/unictype/property-space: New file.
29335         * modules/unictype/property-non-break: New file.
29336         * modules/unictype/property-iso-control: New file.
29337         * modules/unictype/property-format-control: New file.
29338         * modules/unictype/property-dash: New file.
29339         * modules/unictype/property-hyphen: New file.
29340         * modules/unictype/property-punctuation: New file.
29341         * modules/unictype/property-line-separator: New file.
29342         * modules/unictype/property-paragraph-separator: New file.
29343         * modules/unictype/property-quotation-mark: New file.
29344         * modules/unictype/property-sentence-terminal: New file.
29345         * modules/unictype/property-terminal-punctuation: New file.
29346         * modules/unictype/property-currency-symbol: New file.
29347         * modules/unictype/property-math: New file.
29348         * modules/unictype/property-other-math: New file.
29349         * modules/unictype/property-paired-punctuation: New file.
29350         * modules/unictype/property-left-of-pair: New file.
29351         * modules/unictype/property-combining: New file.
29352         * modules/unictype/property-composite: New file.
29353         * modules/unictype/property-decimal-digit: New file.
29354         * modules/unictype/property-numeric: New file.
29355         * modules/unictype/property-diacritic: New file.
29356         * modules/unictype/property-extender: New file.
29357         * modules/unictype/property-ignorable-control: New file.
29358         * modules/unictype/property-test: New file.
29359         * modules/unictype/property-byname: New file.
29360         * modules/unictype/property-all: New file.
29361         * modules/unictype/scripts: New file.
29362         * modules/unictype/scripts-all: New file.
29363         * modules/unictype/block-of: New file.
29364         * modules/unictype/block-test: New file.
29365         * modules/unictype/block-list: New file.
29366         * modules/unictype/block-all: New file.
29367         * modules/unictype/syntax-c-whitespace: New file.
29368         * modules/unictype/syntax-java-whitespace: New file.
29369         * modules/unictype/syntax-c-ident: New file.
29370         * modules/unictype/syntax-java-ident: New file.
29371         * modules/unictype/ctype-alnum: New file.
29372         * modules/unictype/ctype-alpha: New file.
29373         * modules/unictype/ctype-cntrl: New file.
29374         * modules/unictype/ctype-digit: New file.
29375         * modules/unictype/ctype-graph: New file.
29376         * modules/unictype/ctype-lower: New file.
29377         * modules/unictype/ctype-print: New file.
29378         * modules/unictype/ctype-punct: New file.
29379         * modules/unictype/ctype-space: New file.
29380         * modules/unictype/ctype-upper: New file.
29381         * modules/unictype/ctype-xdigit: New file.
29382         * modules/unictype/ctype-blank: New file.
29383         * lib/unictype/bidi_byname.c: New file.
29384         * lib/unictype/bidi_name.c: New file.
29385         * lib/unictype/bidi_of.c: New file.
29386         * lib/unictype/bidi_test.c: New file.
29387         * lib/unictype/bitmap.h: New file.
29388         * lib/unictype/block_test.c: New file.
29389         * lib/unictype/blocks.c: New file.
29390         * lib/unictype/categ_C.c: New file.
29391         * lib/unictype/categ_Cc.c: New file.
29392         * lib/unictype/categ_Cf.c: New file.
29393         * lib/unictype/categ_Cn.c: New file.
29394         * lib/unictype/categ_Co.c: New file.
29395         * lib/unictype/categ_Cs.c: New file.
29396         * lib/unictype/categ_L.c: New file.
29397         * lib/unictype/categ_Ll.c: New file.
29398         * lib/unictype/categ_Lm.c: New file.
29399         * lib/unictype/categ_Lo.c: New file.
29400         * lib/unictype/categ_Lt.c: New file.
29401         * lib/unictype/categ_Lu.c: New file.
29402         * lib/unictype/categ_M.c: New file.
29403         * lib/unictype/categ_Mc.c: New file.
29404         * lib/unictype/categ_Me.c: New file.
29405         * lib/unictype/categ_Mn.c: New file.
29406         * lib/unictype/categ_N.c: New file.
29407         * lib/unictype/categ_Nd.c: New file.
29408         * lib/unictype/categ_Nl.c: New file.
29409         * lib/unictype/categ_No.c: New file.
29410         * lib/unictype/categ_P.c: New file.
29411         * lib/unictype/categ_Pc.c: New file.
29412         * lib/unictype/categ_Pd.c: New file.
29413         * lib/unictype/categ_Pe.c: New file.
29414         * lib/unictype/categ_Pf.c: New file.
29415         * lib/unictype/categ_Pi.c: New file.
29416         * lib/unictype/categ_Po.c: New file.
29417         * lib/unictype/categ_Ps.c: New file.
29418         * lib/unictype/categ_S.c: New file.
29419         * lib/unictype/categ_Sc.c: New file.
29420         * lib/unictype/categ_Sk.c: New file.
29421         * lib/unictype/categ_Sm.c: New file.
29422         * lib/unictype/categ_So.c: New file.
29423         * lib/unictype/categ_Z.c: New file.
29424         * lib/unictype/categ_Zl.c: New file.
29425         * lib/unictype/categ_Zp.c: New file.
29426         * lib/unictype/categ_Zs.c: New file.
29427         * lib/unictype/categ_and.c: New file.
29428         * lib/unictype/categ_and_not.c: New file.
29429         * lib/unictype/categ_byname.c: New file.
29430         * lib/unictype/categ_name.c: New file.
29431         * lib/unictype/categ_none.c: New file.
29432         * lib/unictype/categ_of.c: New file.
29433         * lib/unictype/categ_or.c: New file.
29434         * lib/unictype/categ_test.c: New file.
29435         * lib/unictype/combining.c: New file.
29436         * lib/unictype/ctype_alnum.c: New file.
29437         * lib/unictype/ctype_alpha.c: New file.
29438         * lib/unictype/ctype_blank.c: New file.
29439         * lib/unictype/ctype_cntrl.c: New file.
29440         * lib/unictype/ctype_digit.c: New file.
29441         * lib/unictype/ctype_graph.c: New file.
29442         * lib/unictype/ctype_lower.c: New file.
29443         * lib/unictype/ctype_print.c: New file.
29444         * lib/unictype/ctype_punct.c: New file.
29445         * lib/unictype/ctype_space.c: New file.
29446         * lib/unictype/ctype_upper.c: New file.
29447         * lib/unictype/ctype_xdigit.c: New file.
29448         * lib/unictype/decdigit.c: New file.
29449         * lib/unictype/digit.c: New file.
29450         * lib/unictype/identsyntaxmap.h: New file.
29451         * lib/unictype/mirror.c: New file.
29452         * lib/unictype/numeric.c: New file.
29453         * lib/unictype/pr_alphabetic.c: New file.
29454         * lib/unictype/pr_ascii_hex_digit.c: New file.
29455         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29456         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29457         * lib/unictype/pr_bidi_block_separator.c: New file.
29458         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29459         * lib/unictype/pr_bidi_common_separator.c: New file.
29460         * lib/unictype/pr_bidi_control.c: New file.
29461         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29462         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29463         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29464         * lib/unictype/pr_bidi_european_digit.c: New file.
29465         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29466         * lib/unictype/pr_bidi_left_to_right.c: New file.
29467         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29468         * lib/unictype/pr_bidi_other_neutral.c: New file.
29469         * lib/unictype/pr_bidi_pdf.c: New file.
29470         * lib/unictype/pr_bidi_segment_separator.c: New file.
29471         * lib/unictype/pr_bidi_whitespace.c: New file.
29472         * lib/unictype/pr_byname.c: New file.
29473         * lib/unictype/pr_byname.gperf: New file.
29474         * lib/unictype/pr_combining.c: New file.
29475         * lib/unictype/pr_composite.c: New file.
29476         * lib/unictype/pr_currency_symbol.c: New file.
29477         * lib/unictype/pr_dash.c: New file.
29478         * lib/unictype/pr_decimal_digit.c: New file.
29479         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29480         * lib/unictype/pr_deprecated.c: New file.
29481         * lib/unictype/pr_diacritic.c: New file.
29482         * lib/unictype/pr_extender.c: New file.
29483         * lib/unictype/pr_format_control.c: New file.
29484         * lib/unictype/pr_grapheme_base.c: New file.
29485         * lib/unictype/pr_grapheme_extend.c: New file.
29486         * lib/unictype/pr_grapheme_link.c: New file.
29487         * lib/unictype/pr_hex_digit.c: New file.
29488         * lib/unictype/pr_hyphen.c: New file.
29489         * lib/unictype/pr_id_continue.c: New file.
29490         * lib/unictype/pr_id_start.c: New file.
29491         * lib/unictype/pr_ideographic.c: New file.
29492         * lib/unictype/pr_ids_binary_operator.c: New file.
29493         * lib/unictype/pr_ids_trinary_operator.c: New file.
29494         * lib/unictype/pr_ignorable_control.c: New file.
29495         * lib/unictype/pr_iso_control.c: New file.
29496         * lib/unictype/pr_join_control.c: New file.
29497         * lib/unictype/pr_left_of_pair.c: New file.
29498         * lib/unictype/pr_line_separator.c: New file.
29499         * lib/unictype/pr_logical_order_exception.c: New file.
29500         * lib/unictype/pr_lowercase.c: New file.
29501         * lib/unictype/pr_math.c: New file.
29502         * lib/unictype/pr_non_break.c: New file.
29503         * lib/unictype/pr_not_a_character.c: New file.
29504         * lib/unictype/pr_numeric.c: New file.
29505         * lib/unictype/pr_other_alphabetic.c: New file.
29506         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29507         * lib/unictype/pr_other_grapheme_extend.c: New file.
29508         * lib/unictype/pr_other_id_continue.c: New file.
29509         * lib/unictype/pr_other_id_start.c: New file.
29510         * lib/unictype/pr_other_lowercase.c: New file.
29511         * lib/unictype/pr_other_math.c: New file.
29512         * lib/unictype/pr_other_uppercase.c: New file.
29513         * lib/unictype/pr_paired_punctuation.c: New file.
29514         * lib/unictype/pr_paragraph_separator.c: New file.
29515         * lib/unictype/pr_pattern_syntax.c: New file.
29516         * lib/unictype/pr_pattern_white_space.c: New file.
29517         * lib/unictype/pr_private_use.c: New file.
29518         * lib/unictype/pr_punctuation.c: New file.
29519         * lib/unictype/pr_quotation_mark.c: New file.
29520         * lib/unictype/pr_radical.c: New file.
29521         * lib/unictype/pr_sentence_terminal.c: New file.
29522         * lib/unictype/pr_soft_dotted.c: New file.
29523         * lib/unictype/pr_space.c: New file.
29524         * lib/unictype/pr_terminal_punctuation.c: New file.
29525         * lib/unictype/pr_test.c: New file.
29526         * lib/unictype/pr_titlecase.c: New file.
29527         * lib/unictype/pr_unassigned_code_value.c: New file.
29528         * lib/unictype/pr_unified_ideograph.c: New file.
29529         * lib/unictype/pr_uppercase.c: New file.
29530         * lib/unictype/pr_variation_selector.c: New file.
29531         * lib/unictype/pr_white_space.c: New file.
29532         * lib/unictype/pr_xid_continue.c: New file.
29533         * lib/unictype/pr_xid_start.c: New file.
29534         * lib/unictype/pr_zero_width.c: New file.
29535         * lib/unictype/scripts.c: New file.
29536         * lib/unictype/sy_c_ident.c: New file.
29537         * lib/unictype/sy_c_whitespace.c: New file.
29538         * lib/unictype/sy_java_ident.c: New file.
29539         * lib/unictype/sy_java_whitespace.c: New file.
29540
29541         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29542         Unicode 5.0.0.
29543         * lib/unictype/blocks.h: Likewise.
29544         * lib/unictype/categ_C.h: Likewise.
29545         * lib/unictype/categ_Cc.h: Likewise.
29546         * lib/unictype/categ_Cf.h: Likewise.
29547         * lib/unictype/categ_Cn.h: Likewise.
29548         * lib/unictype/categ_Co.h: Likewise.
29549         * lib/unictype/categ_Cs.h: Likewise.
29550         * lib/unictype/categ_L.h: Likewise.
29551         * lib/unictype/categ_Ll.h: Likewise.
29552         * lib/unictype/categ_Lm.h: Likewise.
29553         * lib/unictype/categ_Lo.h: Likewise.
29554         * lib/unictype/categ_Lt.h: Likewise.
29555         * lib/unictype/categ_Lu.h: Likewise.
29556         * lib/unictype/categ_M.h: Likewise.
29557         * lib/unictype/categ_Mc.h: Likewise.
29558         * lib/unictype/categ_Me.h: Likewise.
29559         * lib/unictype/categ_Mn.h: Likewise.
29560         * lib/unictype/categ_N.h: Likewise.
29561         * lib/unictype/categ_Nd.h: Likewise.
29562         * lib/unictype/categ_Nl.h: Likewise.
29563         * lib/unictype/categ_No.h: Likewise.
29564         * lib/unictype/categ_P.h: Likewise.
29565         * lib/unictype/categ_Pc.h: Likewise.
29566         * lib/unictype/categ_Pd.h: Likewise.
29567         * lib/unictype/categ_Pe.h: Likewise.
29568         * lib/unictype/categ_Pf.h: Likewise.
29569         * lib/unictype/categ_Pi.h: Likewise.
29570         * lib/unictype/categ_Po.h: Likewise.
29571         * lib/unictype/categ_Ps.h: Likewise.
29572         * lib/unictype/categ_S.h: Likewise.
29573         * lib/unictype/categ_Sc.h: Likewise.
29574         * lib/unictype/categ_Sk.h: Likewise.
29575         * lib/unictype/categ_Sm.h: Likewise.
29576         * lib/unictype/categ_So.h: Likewise.
29577         * lib/unictype/categ_Z.h: Likewise.
29578         * lib/unictype/categ_Zl.h: Likewise.
29579         * lib/unictype/categ_Zp.h: Likewise.
29580         * lib/unictype/categ_Zs.h: Likewise.
29581         * lib/unictype/categ_of.h: Likewise.
29582         * lib/unictype/combining.h: Likewise.
29583         * lib/unictype/ctype_alnum.h: Likewise.
29584         * lib/unictype/ctype_alpha.h: Likewise.
29585         * lib/unictype/ctype_blank.h: Likewise.
29586         * lib/unictype/ctype_cntrl.h: Likewise.
29587         * lib/unictype/ctype_digit.h: Likewise.
29588         * lib/unictype/ctype_graph.h: Likewise.
29589         * lib/unictype/ctype_lower.h: Likewise.
29590         * lib/unictype/ctype_print.h: Likewise.
29591         * lib/unictype/ctype_punct.h: Likewise.
29592         * lib/unictype/ctype_space.h: Likewise.
29593         * lib/unictype/ctype_upper.h: Likewise.
29594         * lib/unictype/ctype_xdigit.h: Likewise.
29595         * lib/unictype/decdigit.h: Likewise.
29596         * lib/unictype/digit.h: Likewise.
29597         * lib/unictype/mirror.h: Likewise.
29598         * lib/unictype/numeric.h: Likewise.
29599         * lib/unictype/pr_alphabetic.h: Likewise.
29600         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29601         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29602         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29603         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29604         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29605         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29606         * lib/unictype/pr_bidi_control.h: Likewise.
29607         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29608         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29609         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29610         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29611         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29612         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29613         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29614         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29615         * lib/unictype/pr_bidi_pdf.h: Likewise.
29616         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29617         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29618         * lib/unictype/pr_combining.h: Likewise.
29619         * lib/unictype/pr_composite.h: Likewise.
29620         * lib/unictype/pr_currency_symbol.h: Likewise.
29621         * lib/unictype/pr_dash.h: Likewise.
29622         * lib/unictype/pr_decimal_digit.h: Likewise.
29623         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29624         * lib/unictype/pr_deprecated.h: Likewise.
29625         * lib/unictype/pr_diacritic.h: Likewise.
29626         * lib/unictype/pr_extender.h: Likewise.
29627         * lib/unictype/pr_format_control.h: Likewise.
29628         * lib/unictype/pr_grapheme_base.h: Likewise.
29629         * lib/unictype/pr_grapheme_extend.h: Likewise.
29630         * lib/unictype/pr_grapheme_link.h: Likewise.
29631         * lib/unictype/pr_hex_digit.h: Likewise.
29632         * lib/unictype/pr_hyphen.h: Likewise.
29633         * lib/unictype/pr_id_continue.h: Likewise.
29634         * lib/unictype/pr_id_start.h: Likewise.
29635         * lib/unictype/pr_ideographic.h: Likewise.
29636         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29637         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29638         * lib/unictype/pr_ignorable_control.h: Likewise.
29639         * lib/unictype/pr_iso_control.h: Likewise.
29640         * lib/unictype/pr_join_control.h: Likewise.
29641         * lib/unictype/pr_left_of_pair.h: Likewise.
29642         * lib/unictype/pr_line_separator.h: Likewise.
29643         * lib/unictype/pr_logical_order_exception.h: Likewise.
29644         * lib/unictype/pr_lowercase.h: Likewise.
29645         * lib/unictype/pr_math.h: Likewise.
29646         * lib/unictype/pr_non_break.h: Likewise.
29647         * lib/unictype/pr_not_a_character.h: Likewise.
29648         * lib/unictype/pr_numeric.h: Likewise.
29649         * lib/unictype/pr_other_alphabetic.h: Likewise.
29650         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29651         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29652         * lib/unictype/pr_other_id_continue.h: Likewise.
29653         * lib/unictype/pr_other_id_start.h: Likewise.
29654         * lib/unictype/pr_other_lowercase.h: Likewise.
29655         * lib/unictype/pr_other_math.h: Likewise.
29656         * lib/unictype/pr_other_uppercase.h: Likewise.
29657         * lib/unictype/pr_paired_punctuation.h: Likewise.
29658         * lib/unictype/pr_paragraph_separator.h: Likewise.
29659         * lib/unictype/pr_pattern_syntax.h: Likewise.
29660         * lib/unictype/pr_pattern_white_space.h: Likewise.
29661         * lib/unictype/pr_private_use.h: Likewise.
29662         * lib/unictype/pr_punctuation.h: Likewise.
29663         * lib/unictype/pr_quotation_mark.h: Likewise.
29664         * lib/unictype/pr_radical.h: Likewise.
29665         * lib/unictype/pr_sentence_terminal.h: Likewise.
29666         * lib/unictype/pr_soft_dotted.h: Likewise.
29667         * lib/unictype/pr_space.h: Likewise.
29668         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29669         * lib/unictype/pr_titlecase.h: Likewise.
29670         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29671         * lib/unictype/pr_unified_ideograph.h: Likewise.
29672         * lib/unictype/pr_uppercase.h: Likewise.
29673         * lib/unictype/pr_variation_selector.h: Likewise.
29674         * lib/unictype/pr_white_space.h: Likewise.
29675         * lib/unictype/pr_xid_continue.h: Likewise.
29676         * lib/unictype/pr_xid_start.h: Likewise.
29677         * lib/unictype/pr_zero_width.h: Likewise.
29678         * lib/unictype/scripts.h: Likewise.
29679         * lib/unictype/scripts_byname.gperf: Likewise.
29680         * lib/unictype/sy_c_ident.h: Likewise.
29681         * lib/unictype/sy_c_whitespace.h: Likewise.
29682         * lib/unictype/sy_java_ident.h: Likewise.
29683         * lib/unictype/sy_java_whitespace.h: Likewise.
29684
29685         * lib/unictype/Makefile: New file.
29686         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29687         glibc.
29688         * lib/unictype/3level.h: New file, copied from glibc.
29689         * lib/unictype/3levelbit.h: New file.
29690
29691 2007-11-11  Bruno Haible  <bruno@clisp.org>
29692
29693         * modules/gperf: New file.
29694         * modules/iconv_open (Depends-on): Add it.
29695         (Makefile.am): Remove the GPERF definition.
29696
29697 2007-11-11  Bruno Haible  <bruno@clisp.org>
29698
29699         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29700         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29701
29702 2007-11-11  Bruno Haible  <bruno@clisp.org>
29703
29704         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29705         (usage): Remove function.
29706
29707 2007-11-11  Bruno Haible  <bruno@clisp.org>
29708
29709         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29710         gl_FUNC_CEILF_LIBS.
29711         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29712         gl_FUNC_CEIL_LIBS.
29713         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29714         gl_FUNC_CEILL_LIBS.
29715         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29716         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29717         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29718
29719 2007-11-11  Bruno Haible  <bruno@clisp.org>
29720
29721         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29722         roundf were declared but do not exist on functions.
29723         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29724         roundl were declared but do not exist on functions.
29725         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29726         HAVE_FLOORL_AND_CEILL, respectively.
29727         Needed for Sun C on Solaris 10.
29728
29729 2007-11-11  Bruno Haible  <bruno@clisp.org>
29730
29731         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29732         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29733         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29734         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29735         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29736         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29737         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29738         HAVE_DECL_ROUNDF.
29739         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29740         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29742         of HAVE_DECL_ROUND*.
29743         * modules/math (Makefile.am): Update.
29744
29745 2007-11-10  Bruno Haible  <bruno@clisp.org>
29746
29747         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29748         ptrdiff_t as m4/intl.m4.
29749
29750 2007-11-10  Jim Meyering  <meyering@redhat.com>
29751
29752         Avoid link failure for the argmatch test.
29753         * tests/test-argmatch.c (usage): Define function to avoid a link
29754         failure: argmatch_die requires a usage function.
29755
29756 2007-11-09  Bruno Haible  <bruno@clisp.org>
29757
29758         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29759         * doc/functions/vsnprintf.texi: Likewise.
29760         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29761         with a size argument < 2.
29762
29763 2007-11-09  Bruno Haible  <bruno@clisp.org>
29764
29765         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29766         buffer. Fixes an inefficiency introduced on 2007-11-03.
29767
29768 2007-11-09  Bruno Haible  <bruno@clisp.org>
29769
29770         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29771         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29772
29773 2007-11-08  Jim Meyering  <meyering@redhat.com>
29774
29775         Change cache variable name prefix "jm_" to "gl_" everywhere.
29776         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29777         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29778         * m4/uptime.m4: s/gl_/jm_/
29779
29780 2007-11-07  Bruno Haible  <bruno@clisp.org>
29781
29782         Update to GNU gettext 0.17.
29783         * m4/intl.m4: Update to GNU gettext 0.17.
29784         * m4/po.m4: Likewise.
29785         * modules/gettext (Files): Remove m4/ulonglong.m4.
29786         (configure.ac): Require gettext infrastructure from version 0.17.
29787
29788 2007-11-06  Bruno Haible  <bruno@clisp.org>
29789
29790         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29791         symbolic values are not defined in a public header.
29792         * lib/freadable.c (freadable) [QNX]: Likewise.
29793         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29794         * lib/freading.c (freading) [QNX]: Likewise.
29795         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29796         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29797         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29798         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29799         Reported by Alain Magloire.
29800
29801         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29802
29803 2007-11-05  Bruno Haible  <bruno@clisp.org>
29804
29805         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29806         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29807         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29808         Reported by Eric Blake.
29809
29810 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29811             Bruno Haible  <bruno@clisp.org>
29812
29813         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29814         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29815         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29816         (malloc): Undefine also before including <stdlib.h>.
29817         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29818         Needed on OSF/1 4.0.
29819
29820 2007-11-05  Jim Meyering  <meyering@redhat.com>
29821
29822         git-version-gen: sync from coreutils.
29823         * build-aux/git-version-gen: Add comments.
29824         Change the first '-' to '.' in the snapshot version string,
29825         e.g., 6.9-377-08144 -> 6.9.377-08144
29826         Remove first parameter.
29827         Don't declare a version "-dirty" merely because a time
29828         stamp has changed.
29829
29830 2007-11-04  Bruno Haible  <bruno@clisp.org>
29831
29832         * lib/lock.h: Protect all macro definitions containing an 'if'
29833         statement through a "do { ... } while (0)".
29834         * lib/tls.h: Likewise.
29835
29836 2007-11-04  Bruno Haible  <bruno@clisp.org>
29837
29838         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29839
29840 2007-11-04  Bruno Haible  <bruno@clisp.org>
29841
29842         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29843         * modules/fprintf-posix (Depends-on): Add nocrash.
29844         * modules/snprintf-posix (Depends-on): Likewise.
29845         * modules/sprintf-posix (Depends-on): Likewise.
29846         * modules/vasnprintf-posix (Depends-on): Likewise.
29847         * modules/vasprintf-posix (Depends-on): Likewise.
29848         * modules/vfprintf-posix (Depends-on): Likewise.
29849         * modules/vsnprintf-posix (Depends-on): Likewise.
29850         * modules/vsprintf-posix (Depends-on): Likewise.
29851         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29852         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29853         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29854         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29855         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29856         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29857         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29858
29859 2007-11-04  Bruno Haible  <bruno@clisp.org>
29860
29861         * modules/nocrash: New file.
29862         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29863         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29864
29865 2007-11-04  Bruno Haible  <bruno@clisp.org>
29866
29867         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29868         precision handling.
29869         * tests/test-vasprintf-posix.c (test_function): Likewise.
29870         * tests/test-snprintf-posix.h (test_function): Likewise.
29871         * tests/test-sprintf-posix.h (test_function): Likewise.
29872
29873         Fix *printf behaviour for large precisions on mingw and BeOS.
29874         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29875         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29876         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29877         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29878         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29879         gl_PRINTF_PRECISION and test its result. Invoke
29880         gl_PREREQ_VASNPRINTF_PRECISION.
29881         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29882         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29883         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29884         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29885         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29886         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29887         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29888         * doc/functions/fprintf.texi: Update.
29889         * doc/functions/printf.texi: Update.
29890         * doc/functions/snprintf.texi: Update.
29891         * doc/functions/sprintf.texi: Update.
29892         * doc/functions/vfprintf.texi: Update.
29893         * doc/functions/vprintf.texi: Update.
29894         * doc/functions/vsnprintf.texi: Update.
29895         * doc/functions/vsprintf.texi: Update.
29896
29897 2007-11-04  Bruno Haible  <bruno@clisp.org>
29898
29899         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29900
29901 2007-11-04  Bruno Haible  <bruno@clisp.org>
29902
29903         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29904         Reported by Sylvain Beucler <beuc@gnu.org>.
29905
29906 2007-11-03  Bruno Haible  <bruno@clisp.org>
29907
29908         * tests/test-fprintf-posix2.sh: New file.
29909         * tests/test-fprintf-posix2.c: New file.
29910         * modules/fprintf-posix-tests (Files): Add them.
29911         (TESTS): Add test-fprintf-posix2.sh.
29912         (configure.ac): Check for getrlimit and setrlimit.
29913         (check_PROGRAMS): Add test-fprintf-posix2.
29914
29915         * tests/test-printf-posix2.sh: New file.
29916         * tests/test-printf-posix2.c: New file.
29917         * modules/printf-posix-tests (Files): Add them.
29918         (TESTS): Add test-printf-posix2.sh.
29919         (configure.ac): Check for getrlimit and setrlimit.
29920         (check_PROGRAMS): Add test-printf-posix2.
29921
29922         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29923         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29924         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29925         (decode_double): New function, copied from decode_long_double.
29926         (scale10_round_decimal_decoded): New function, extracted from
29927         scale10_round_decimal_long_double.
29928         (scale10_round_decimal_long_double): Use it.
29929         (scale10_round_decimal_double): New function.
29930         (floorlog10): New function.
29931         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29932         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29933         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29934         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29935         gl_PRINTF_ENOMEM and test its result. Invoke
29936         gl_PREREQ_VASNPRINTF_ENOMEM.
29937         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29938         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29939         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29940         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29941         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29942         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29943         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29944         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29945         * modules/snprintf-posix (Depends-on): Likewise.
29946         * modules/sprintf-posix (Depends-on): Likewise.
29947         * modules/vasnprintf-posix (Depends-on): Likewise.
29948         * modules/vasprintf-posix (Depends-on): Likewise.
29949         * modules/vfprintf-posix (Depends-on): Likewise.
29950         * modules/vsnprintf-posix (Depends-on): Likewise.
29951         * modules/vsprintf-posix (Depends-on): Likewise.
29952         * doc/functions/fprintf.texi: Update.
29953         * doc/functions/printf.texi: Update.
29954         * doc/functions/snprintf.texi: Update.
29955         * doc/functions/sprintf.texi: Update.
29956         * doc/functions/vfprintf.texi: Update.
29957         * doc/functions/vprintf.texi: Update.
29958         * doc/functions/vsnprintf.texi: Update.
29959         * doc/functions/vsprintf.texi: Update.
29960
29961 2007-11-03  Bruno Haible  <bruno@clisp.org>
29962
29963         * modules/frexp-nolibm-tests: New file.
29964
29965         * modules/frexp-nolibm: New file.
29966         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29967
29968 2007-11-03  Bruno Haible  <bruno@clisp.org>
29969
29970         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29971         value is C99 compliant.
29972         Needed for OSF/1 5.1.
29973
29974 2007-11-03  Bruno Haible  <bruno@clisp.org>
29975
29976         Fix out-of-memory handling of vasnprintf.
29977         * lib/printf-parse.c: Include <errno.h>.
29978         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29979         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29980         is already set.
29981
29982 2007-11-02  Eric Blake  <ebb9@byu.net>
29983
29984         Fix tests on cygwin.
29985         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29986
29987 2007-11-01  Bruno Haible  <bruno@clisp.org>
29988
29989         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29990         warning.
29991         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29992         needed for POSIX compatibility.
29993
29994 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29995
29996         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29997         for compatibility with GNU.
29998
29999 2007-11-01  Bruno Haible  <bruno@clisp.org>
30000
30001         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
30002         (putenv): Renamed from rpl_putenv. Change argument type from
30003         'const char *' to 'char *'.
30004         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
30005         of defining putenv in config.h, just set REPLACE_PUTENV.
30006         * modules/putenv (Depends-on): Add stdlib.
30007         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30008         (Include): Use <stdlib.h>.
30009         * lib/stdlib.in.h (putenv): New declaration.
30010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
30011         REPLACE_PUTENV.
30012         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
30013         REPLACE_PUTENV.
30014         Needed for MacOS X 10.5.0.
30015         Reported by Peter O'Gorman <peter@pogma.com>.
30016
30017 2007-11-01  Jim Meyering  <meyering@redhat.com>
30018
30019         Treat an empty date string exactly like "0".
30020         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
30021         if the remaining date string (to be parsed) is empty, use "0".
30022         Reported by Mischa Molhoek and discussed in this thread:
30023         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
30024
30025 2007-10-31  Bruno Haible  <bruno@clisp.org>
30026
30027         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
30028         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
30029         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
30030         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
30031         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
30032         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
30033
30034 2007-10-31  Bruno Haible  <bruno@clisp.org>
30035
30036         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
30037         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
30038         (AC_TYPE_LONG_LONG_INT): Use it.
30039         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
30040         it as well.
30041         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
30042         to m4/longlong.m4.
30043         * modules/stdint (Files): Remove m4/ulonglong.m4.
30044         * modules/strtoull (Files): Use m4/longlong.m4 instead of
30045         m4/ulonglong.m4.
30046         * modules/strtoumax (Files): Likewise.
30047
30048 2007-10-30  Bruno Haible  <bruno@clisp.org>
30049
30050         * modules/xvasprintf-posix: New file.
30051         Suggested by Eric Blake.
30052
30053 2007-10-30  Bruno Haible  <bruno@clisp.org>
30054
30055         * modules/xprintf-posix-tests: New file.
30056         * tests/test-xprintf-posix.sh: New file.
30057         * tests/test-xprintf-posix.c: New file.
30058         * tests/test-xfprintf-posix.c: New file.
30059
30060         * modules/xprintf-posix: New file.
30061
30062 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30063
30064         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
30065         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
30066         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
30067
30068 2007-10-29  Bruno Haible  <bruno@clisp.org>
30069
30070         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
30071         contain the special marker '_cv_'.
30072         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30073         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30074         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30075         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30076         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30077         Reported by Ralf Wildenhues.
30078
30079 2007-10-29  Bruno Haible  <bruno@clisp.org>
30080
30081         * gnulib-tool (func_import): When --lgpl is not specified, set
30082         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
30083         GPLv3.
30084         Reported by Simon Josefsson.
30085
30086 2007-10-28  Bruno Haible  <bruno@clisp.org>
30087
30088         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
30089         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
30090         HAVE_DECL_ISFINITE.
30091         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30092         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30093         HAVE_DECL_ISFINITE.
30094
30095 2007-10-28  Bruno Haible  <bruno@clisp.org>
30096
30097         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30098         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30099
30100 2007-10-28  Bruno Haible  <bruno@clisp.org>
30101
30102         Fix link errors with Sun C 5.0 on Solaris 10.
30103         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30104         function is declared but not present in the compiler's libm.
30105         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30106         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30107         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30108         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30109         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30110         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30111         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30113         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30114         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30115         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30116         HAVE_DECL_FLOORL.
30117
30118 2007-10-28  Bruno Haible  <bruno@clisp.org>
30119
30120         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30121         gl_FUNC_FLOORL. Cache the result.
30122         (gl_FUNC_FLOORL): Use it.
30123         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30124         gl_FUNC_CEILL. Cache the result.
30125         (gl_FUNC_CEILL): Use it.
30126
30127         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30128         gl_FUNC_FLOOR. Cache the result.
30129         (gl_FUNC_FLOOR): Use it.
30130         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30131         gl_FUNC_CEIL. Cache the result.
30132         (gl_FUNC_CEIL): Use it.
30133
30134         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30135         gl_FUNC_FLOORF. Cache the result.
30136         (gl_FUNC_FLOORF): Use it.
30137         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30138         gl_FUNC_CEILF. Cache the result.
30139         (gl_FUNC_CEILF): Use it.
30140
30141 2007-10-28  Bruno Haible  <bruno@clisp.org>
30142
30143         * gnulib-tool: Allow specifying the LGPL version number through
30144         --lgpl=2 or --lgpl=3.
30145         (func_usage): Document --lgpl with argument.
30146         Handle --lgpl=... arguments.
30147         (func_import): Recognize also gl_LGPL calls with an argument. When
30148         --lgpl=2 is used and the module's license is just LGPL, report an
30149         error. Set sed_transform_lib_file according to the lgpl variable. In
30150         the generated files, use --lgpl or gl_LGPL invocations with argument,
30151         if necessary.
30152         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30153         an LGPv2+ license.
30154         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30155         gl_LGPL macro.
30156
30157 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30158             Bruno Haible  <bruno@clisp.org>
30159
30160         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30161         (u16_uctomb_aux): Likewise.
30162         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30163         !HAVE_INLINE.
30164         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30165
30166 2007-10-28  Bruno Haible  <bruno@clisp.org>
30167
30168         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30169         Invoke AM_GETTEXT_OPTION if it exists.
30170         * modules/vasprintf: Likewise.
30171         * modules/verror: Likewise.
30172         * modules/xprintf: Likewise.
30173         * modules/xvasprintf: Likewise.
30174
30175 2007-10-27  Ben Pfaff  <blp@gnu.org>
30176
30177         * lib/math.in.h: Define isfinite macro and prototypes for
30178         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30179         implementations.
30180         * m4/math_h.m4: New substitutions for isfinite module.
30181         * lib/isfinite.c: New file.
30182         * m4/isfinite.m4: New file.
30183         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30184         * modules/isfinite: New file.
30185         * modules/isfinite-tests: New file.
30186         * tests/tests-isfinite.c: New file.
30187         * doc/functions/isfinite.texi: Mention isfinite module.
30188         * MODULES.html.sh: Mention new module.
30189
30190 2007-10-27  Ben Pfaff  <blp@gnu.org>
30191
30192         Ralf Wildenhues reported that Tru64 4.0D declares the round
30193         functions but does not have definitions.
30194         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30195         cannot be found in any library, set the output variable to
30196         "missing" instead of "".
30197         * m4/round.m4: Also use our substitute if we cannot find round in
30198         any library, even if it is declared.
30199         * m4/roundf.m4: Likewise for roundf.
30200         * m4/roundl.m4: Likewise for roundl.
30201         * lib/math.in.h: Undefine roundf, round, roundl before defining
30202         their replacements, to allow for hypothetical systems where these
30203         may be defined as macros but not available in libraries.
30204
30205 2007-10-27  Bruno Haible  <bruno@clisp.org>
30206
30207         * doc/gnulib.texi: Invoke @firstparagraphindent.
30208         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30209         changes in gnulib.
30210         (Source changes): New section.
30211
30212 2007-10-26  Bruno Haible  <bruno@clisp.org>
30213
30214         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30215         borrowed from autoconf.
30216
30217 2007-10-26  Bruno Haible  <bruno@clisp.org>
30218
30219         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30220         strerror returned the empty string. Needed on HP-UX 11.00.
30221
30222 2007-10-24  Micah Cowan  <micah@cowan.name>
30223
30224         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30225         * build-aux/bootstrap: Remove support for now-unnecessary option,
30226         --cvs-user, and envvars CVS_USER, CVS_RSH.
30227
30228 2007-10-24  Jim Meyering  <meyering@redhat.com>
30229
30230         Avoid diagnostics from sha1sum when there is no cached checksum.
30231         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30232         if the po.s1 file hasn't been created yet.
30233
30234         * build-aux/bootstrap: Sync from coreutils:
30235         2007-10-24  Jim Meyering  <meyering@redhat.com>
30236         Get gnulib from the git repository, not from an obsolete cvs one.
30237         * build-aux/bootstrap: Suggestion from Micah Cowan.
30238         2007-10-04  Jim Meyering  <jim@meyering.net>
30239         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30240         (update_po_files): Work also when there are no .po files in po/.
30241
30242 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30243
30244         * README: Append ".git" to git and cg examples.
30245         Problem reported by Benoit Sigoure.
30246
30247 2007-10-23  Micah Cowan  <micah@cowan.name>
30248
30249         * users.txt: Add wget.
30250
30251 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30252
30253         Fix linking of some unistdio tests on FreeBSD.
30254         * modules/unistdio/u16-vsnprintf-tests
30255         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30256         * modules/unistdio/u16-vsprintf-tests
30257         (test_u16_vsnprintf1_LDADD): Likewise.
30258         * modules/unistdio/u32-vsnprintf-tests
30259         (test_u32_vsnprintf1_LDADD): Likewise.
30260         * modules/unistdio/u32-vsprintf-tests
30261         (test_u32_vsprintf1_LDADD): Likewise.
30262         * modules/unistdio/u8-vsnprintf-tests
30263         (test_u8_vsnprintf1_LDADD): Likewise.
30264         * modules/unistdio/u8-vsprintf-tests
30265         (test_u8_vsprintf1_LDADD): Likewise.
30266         * modules/unistdio/ulc-vsnprintf-tests
30267         (test_ulc_vsnprintf1_LDADD): Likewise.
30268         * modules/unistdio/ulc-vsprintf-tests
30269         (test_ulc_vsprintf1_LDADD): Likewise.
30270
30271         Fix linking of some uniconv tests on FreeBSD.
30272         * modules/uniconv/u16-conv-from-enc-tests
30273         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30274         * modules/uniconv/u16-conv-to-enc-tests
30275         (test_u16_conv_to_enc_LDADD): Likewise.
30276         * modules/uniconv/u16-strconv-from-enc-tests
30277         (test_u16_strconv_from_enc_LDADD): Likewise.
30278         * modules/uniconv/u16-strconv-to-enc-tests
30279         (test_u16_strconv_to_enc_LDADD): Likewise.
30280         * modules/uniconv/u32-conv-from-enc-tests
30281         (test_u32_conv_from_enc_LDADD): Likewise.
30282         * modules/uniconv/u32-conv-to-enc-tests
30283         (test_u32_conv_to_enc_LDADD): Likewise.
30284         * modules/uniconv/u32-strconv-from-enc-tests
30285         (test_u32_strconv_from_enc_LDADD): Likewise.
30286         * modules/uniconv/u32-strconv-to-enc-tests
30287         (test_u32_strconv_to_enc_LDADD): Likewise.
30288         * modules/uniconv/u8-conv-from-enc-tests
30289         (test_u8_conv_from_enc_LDADD): Likewise.
30290         * modules/uniconv/u8-conv-to-enc-tests
30291         (test_u8_conv_to_enc_LDADD): Likewise.
30292         * modules/uniconv/u8-strconv-from-enc-tests
30293         (test_u8_strconv_from_enc_LDADD): Likewise.
30294         * modules/uniconv/u8-strconv-to-enc-tests
30295         (test_u8_strconv_to_enc_LDADD): Likewise.
30296
30297 2007-10-22  Bruno Haible  <bruno@clisp.org>
30298
30299         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30300         size.
30301
30302 2007-10-22  Eric Blake  <ebb9@byu.net>
30303
30304         Tweak x*printf documentation.
30305         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30306         variable name and comments.
30307         Suggested by Bruno Haible.
30308
30309 2007-10-22  Bruno Haible  <bruno@clisp.org>
30310
30311         * lib/acl.c (copy_acl): Fix file name in comment.
30312
30313 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30314
30315         Fix Tru64 problem with stdbool.h.
30316         * lib/stdbool.in.h (false, true):
30317         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30318         Don't declare as an enum in this situation; it runs afoul of Tru64.
30319         Problem reported by Steven M. Schweda in
30320         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30321
30322 2007-10-22  Eric Blake  <ebb9@byu.net>
30323
30324         Also wrap vf?printf.
30325         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30326         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30327         (xvprintf, xvfprintf): New functions.
30328
30329 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30330
30331         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30332         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30333
30334         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30335         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30336
30337 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30338
30339         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30340         by Bruno Haible.
30341
30342 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30343
30344         * lib/getloadavg.c
30345         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30346         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30347
30348         * tests/test-i-ring.c: Work for C89.
30349
30350 2007-10-22  Bruno Haible  <bruno@clisp.org>
30351
30352         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30353         -1u, in preprocessor expression, so that we don't test for the bug
30354         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30355         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30356
30357 2007-10-22  Eric Blake  <ebb9@byu.net>
30358
30359         * tests/test-yesno.sh: Silence stderr during test.
30360
30361 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30362
30363         * modules/crypto/gc-camellia: New file.
30364
30365         * m4/gc-camellia.m4: New file.
30366
30367         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30368
30369         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30370
30371 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30372
30373         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30374         --help to stdout.  Reported by sms@antinode.org (Steven
30375         M. Schweda).
30376
30377 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30378
30379         * users.txt: Fix link to libksba.
30380
30381 2007-10-21  Ben Pfaff  <blp@gnu.org>
30382
30383         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30384         round.c roundf implementation that depends on floorf and ceilf to
30385         be tested unconditionally.
30386
30387 2007-10-21  Ben Pfaff  <blp@gnu.org>
30388
30389         * m4/check-libm-func.m4: Removed.
30390         * m4/check-math-lib.m4: New file.
30391         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30392         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30393         definition and lack of AC_LIBOBJ([roundf]).
30394         * m4/roundl.m4: Ditto, and similarly for roundl.
30395         * modules/round: Reference new m4 file.
30396         * modules/roundf: Ditto.
30397         * modules/roundl: Ditto.
30398         * tests/test-round2.c (main): Use ROUND instead of round.
30399         Bug report from Bruno Haible.
30400
30401 2007-10-21  Bruno Haible  <bruno@clisp.org>
30402
30403         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30404         context.
30405
30406 2007-10-21  Bruno Haible  <bruno@clisp.org>
30407
30408         * tests/test-wcwidth.c (main): Allow negative result for some control
30409         characters.
30410
30411         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30412         Needed on OSF/1 5.1.
30413
30414 2007-10-21  Bruno Haible  <bruno@clisp.org>
30415
30416         * tests/test-floorf1.c: Include isnanf.h.
30417         (main): Use isnanf() instead of isnan().
30418         * tests/test-ceilf1.c: Include isnanf.h.
30419         (main): Use isnanf() instead of isnan().
30420         * tests/test-truncf1.c: Include isnanf.h.
30421         (main): Use isnanf() instead of isnan().
30422         * tests/test-roundf1.c: Include isnanf.h.
30423         (main): Use isnanf() instead of isnan().
30424
30425 2007-10-21  Eric Blake  <ebb9@byu.net>
30426
30427         * users.txt: Update URL for m4.
30428
30429 2007-10-21  Bruno Haible  <bruno@clisp.org>
30430
30431         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30432
30433 2007-10-21  Bruno Haible  <bruno@clisp.org>
30434
30435         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30436         Git's management files if the CVS files are not present.
30437
30438 2007-10-20  Bruno Haible  <bruno@clisp.org>
30439
30440         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30441         gcc-3.4.x.
30442
30443 2007-10-20  Ben Pfaff  <blp@gnu.org>
30444
30445         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30446         implementations.
30447         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30448         * lib/round.c: New file.
30449         * lib/roundf.c: New file.
30450         * lib/roundl.c: New file.
30451         * m4/round.m4: New file.
30452         * m4/roundf.m4: New file.
30453         * m4/roundl.m4: New file.
30454         * m4/check-libm-func-m4: New file.
30455         * modules/math: Replace round, roundf, roundl related @VARS@ in
30456         math.in.h.
30457         * modules/round: New file.
30458         * modules/round-tests: New file.
30459         * modules/roundf: New file.
30460         * modules/roundf-tests: New file.
30461         * modules/roundl: New file.
30462         * modules/roundl-tests: New file.
30463         * tests/test-round1.c: New file.
30464         * tests/test-round2.c: New file.
30465         * tests/test-roundf1.c: New file.
30466         * tests/test-roundf2.c: New file.
30467         * tests/test-roundl.c: New file.
30468         * doc/functions/round.texi: Mention round module.
30469         * doc/functions/roundf.texi: Mention roundf module.
30470         * doc/functions/roundl.texi: Mention roundl module.
30471         * MODULES.html.sh: Mention new modules.
30472         Thanks to Bruno Haible for suggestions.
30473
30474 2007-10-20  Jim Meyering  <meyering@redhat.com>
30475
30476         * lib/xprintf.c: Include <config.h> unconditionally.
30477
30478         Change xprintf's license to GPL.
30479         * modules/xprintf (License): s/LGPL/GPL/, since this module
30480         depends on modules (exit and exitfail) which are GPL.
30481         Suggestion from Bruno Haible.
30482
30483         xprintf fixes.
30484         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30485         Use a clearer diagnostic.
30486         Patch from Bruno Haible.
30487
30488 2007-10-20  Bruno Haible  <bruno@clisp.org>
30489
30490         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30491         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30492         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30493
30494 2007-10-20  Bruno Haible  <bruno@clisp.org>
30495
30496         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30497         precision in the comparison result > x - 1 or similar.
30498         * tests/test-ceilf2.c (correct_result_p): Likewise.
30499         * tests/test-truncf2.c (correct_result_p): Likewise.
30500         * tests/test-trunc2.c (correct_result_p): Likewise.
30501         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30502
30503 2007-10-20  Bruno Haible  <bruno@clisp.org>
30504
30505         * modules/ceil: New file.
30506         * m4/ceil.m4: New file.
30507         * doc/functions/ceil.texi: Mention the 'ceil' module.
30508
30509 2007-10-20  Bruno Haible  <bruno@clisp.org>
30510
30511         * modules/floor: New file.
30512         * m4/floor.m4: New file.
30513         * doc/functions/floor.texi: Mention the 'floor' module.
30514
30515 2007-10-20  Bruno Haible  <bruno@clisp.org>
30516
30517         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30518         of %a.
30519         * modules/floorf-tests (Depends-on): Likewise.
30520         * modules/truncf-tests (Depends-on): Likewise.
30521         * modules/trunc-tests (Depends-on): Likewise.
30522         Reported by Ben Pfaff.
30523
30524 2007-10-19  Jim Meyering  <meyering@redhat.com>
30525
30526         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30527         Don't bother testing specific errno values.  Just test ferror.
30528
30529         New module: xprintf
30530         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30531
30532 2007-10-19  Bruno Haible  <bruno@clisp.org>
30533
30534         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30535         syntax.
30536         * modules/javaexec (Makefile.am): Likewise.
30537         * modules/relocatable-prog (Makefile.am): Likewise.
30538         Suggested by Jim Meyering.
30539
30540 2007-10-18  Bruno Haible  <bruno@clisp.org>
30541
30542         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30543         Reported by Jim Meyering.
30544
30545 2007-10-18  Eric Blake  <ebb9@byu.net>
30546
30547         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30548
30549 2007-10-18  Bruno Haible  <bruno@clisp.org>
30550
30551         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30552         the format string into writable memory. Needed in Fortify conditions.
30553
30554 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30555             Bruno Haible  <bruno@clisp.org>
30556
30557         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30558         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30559         * modules/trim (Depends-on): Add mbchar.
30560         (configure.ac): Add gl_FUNC_MBRTOWC.
30561         (Makefile.am): Augment lib_SOURCES.
30562
30563 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30564
30565         Modify glob.c to use fstatat and dirfd, to simplify it.
30566         Suggested by Eric Blake.
30567         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30568         Don't include <stdbool.h>; not used.
30569         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30570         (link_exists_p): Simplify implementation, since we can now assume
30571         dirfd and fstatat.
30572         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30573
30574 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30575
30576         * gnulib-tool (func_get_dependencies): Fix sed script to
30577         match only tests.
30578
30579 2007-10-17  Bruno Haible  <bruno@clisp.org>
30580
30581         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30582         allow locale names without encoding suffix.
30583         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30584         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30585
30586 2007-10-16  Bruno Haible  <bruno@clisp.org>
30587
30588         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30589         * lib/getgroups.c (getgroups): Likewise.
30590         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30591
30592 2007-10-16  Bruno Haible  <bruno@clisp.org>
30593
30594         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30595         * modules/malloc-posix (License): Likewise.
30596         * modules/realloc-posix (License): Likewise.
30597         * modules/calloc-posix (License): Likewise.
30598         * modules/intprops (License): Change from GPL to LGPL, with
30599         Paul Eggert's approval.
30600
30601 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30602
30603         Merge glibc changes into lib/glob.c.
30604
30605         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30606         2007-10-15 04:59:03 UTC.  Here are the changes:
30607
30608         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30609
30610         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30611
30612         * lib/glob.c: Add some branch prediction throughout.
30613
30614         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30615
30616         [BZ #5103]
30617         * lib/glob.c (glob): Recognize patterns starting \/.
30618
30619         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30620
30621         [BZ #3996]
30622         * lib/glob.c (attribute_hidden): Define if not defined.
30623         (glob): Unescape dirname, filename or username when needed and not
30624         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30625         is NULL.  Handle unescaped [ in pattern without closing ].
30626         Don't pass GLOB_CHECK down to recursive glob for directories.
30627         (__glob_pattern_type): New function.
30628         (__glob_pattern_p): Implement using __glob_pattern_type.
30629         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30630         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30631         Remove unreachable code.
30632
30633         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30634
30635         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30636         explain why there are no leaks.
30637
30638         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30639
30640         [BZ #3253]
30641         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30642         time, rather allocate increasingly bigger arrays of pointers, if
30643         possible with alloca, if too large with malloc.
30644
30645 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30646
30647         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30648         Problem reported by H.Merijn Brand in
30649         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30650         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30651         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30652
30653 2007-10-15  Bruno Haible  <bruno@clisp.org>
30654
30655         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30656         with explicit rpl_ prefix.
30657         * lib/fopen.c (fopen): Likewise.
30658         * lib/freopen.c (freopen): Likewise.
30659         * lib/iconv.c (iconv): Likewise.
30660         * lib/iconv_close.c (iconv_close): Likewise.
30661
30662 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30663
30664         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30665
30666 2007-10-15  Bruno Haible  <bruno@clisp.org>
30667
30668         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30669         <stddef.h> instead of <stdlib.h> since we only need NULL.
30670         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30671
30672 2007-10-15  Bruno Haible  <bruno@clisp.org>
30673
30674         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30675         Replace paragraph talking about LIBOBJS.
30676         Reported by Colin Watson <cjwatson@debian.org>.
30677
30678 2007-10-15  Bruno Haible  <bruno@clisp.org>
30679
30680         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30681         <stdlib.h> before using NULL.
30682
30683 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30684
30685         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30686         Reported by Albert Chin <china@thewrittenword.com>.
30687
30688 2007-10-14  Bruno Haible  <bruno@clisp.org>
30689
30690         * modules/iconv_open-utf-tests: New file.
30691         * tests/test-iconv-utf.c: New file.
30692
30693         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30694         * modules/iconv_open-utf: New file.
30695         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30696         (iconv, iconv_close): New declarations.
30697         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30698         be defined.
30699         (iconv_open): Add special handling of conversion between UTF-8 and
30700         UTF-{16,32}{BE,LE}.
30701         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30702         * lib/iconv_close.c: New file.
30703         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30704         gl_FUNC_ICONV_OPEN.
30705         (gl_FUNC_ICONV_OPEN): Use it.
30706         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30707         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30708         and REPLACE_ICONV_UTF.
30709         * modules/iconv_open (Depends-on): Add c-strcase.
30710         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30711         ICONV_CONST.
30712         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30713
30714 2007-10-13  Albert Chin  <china@thewrittenword.com>
30715             Bruno Haible  <bruno@clisp.org>
30716
30717         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30718         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30719
30720 2007-10-13  Bruno Haible  <bruno@clisp.org>
30721
30722         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30723         defined, use the ISO C99 inline semantics.
30724         * lib/argp.h (ARGP_EI): Likewise.
30725
30726 2007-10-13  Bruno Haible  <bruno@clisp.org>
30727
30728         Handle 'inline' change in gcc 4.3.0.
30729         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30730         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30731         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30732         argp_fmtstream_point): Disable 'extern' declaration if the function
30733         definition is going to be provided inline.
30734         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30735         semantics, not the ISO C99 inline semantics.
30736         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30737         'extern' declaration if the function definition is going to be provided
30738         inline.
30739         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30740         the GNU C inline semantics, not the ISO C99 inline semantics. With
30741         GCC 4.2, avoid a warning.
30742
30743 2007-10-13  Bruno Haible  <bruno@clisp.org>
30744
30745         * lib/freading.h (freading): Enable the use of __freading for
30746         glibc >= 2.7.
30747         * lib/freading.c (freading): Likewise.
30748
30749 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30750
30751         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30752         "warning: C99 inline functions are not supported; using GNU89".
30753
30754 2007-10-12  Bruno Haible  <bruno@clisp.org>
30755
30756         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30757         of 2.
30758         * tests/test-ceilf2.c: New file.
30759         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30760
30761         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30762         * modules/ceilf-tests: Update.
30763
30764 2007-10-12  Bruno Haible  <bruno@clisp.org>
30765
30766         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30767         of 2.
30768         * tests/test-floorf2.c: New file.
30769         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30770
30771         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30772         * modules/floorf-tests: Update.
30773
30774 2007-10-12  Bruno Haible  <bruno@clisp.org>
30775
30776         * tests/test-trunc2.c: New file.
30777         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30778
30779         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30780         * modules/trunc-tests: Update.
30781
30782 2007-10-12  Bruno Haible  <bruno@clisp.org>
30783
30784         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30785         of 2.
30786         * tests/test-truncf2.c: New file.
30787         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30788
30789         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30790         * modules/truncf-tests: Update.
30791
30792 2007-10-11  Eric Blake  <ebb9@byu.net>
30793
30794         Don't claim strerror is broken on Interix.
30795         * doc/functions/strerror.texi (strerror): Known broken systems are
30796         now Solaris 8, and not Interix.
30797         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30798         Interix on cross-compile.
30799         Reported by Martin Koeppe in
30800         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30801
30802 2007-10-11  Bruno Haible  <bruno@clisp.org>
30803
30804         * modules/i-ring-tests: New file.
30805         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30806         instead of assert.
30807
30808 2007-10-11  Bruno Haible  <bruno@clisp.org>
30809
30810         * modules/filenamecat-tests: New file.
30811         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30812         * lib/filenamecat.c: Remove test code.
30813
30814 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30815
30816         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30817
30818         * lib/strerror.c: Include <string.h> always, to test interface,
30819         and to remove the need for the dummy.
30820         Include intprops.h to compute width instead of doing it ourselves
30821         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30822         (strerror): Define it to return NULL if there's no system strerror.
30823         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30824         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30825         ancient pre-strerror Unix systems well any more.  Saying "unknown
30826         system error" is enough.
30827         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30828         simpler strerror.c implementation.
30829         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30830         Simplify the tests to reflect the simpler strerror implementation.
30831         * modules/strerror (Depends-on): Add intprops.
30832
30833 2007-10-09  Eric Blake  <ebb9@byu.net>
30834
30835         Silence test-fpending.
30836         * modules/fpending-tests (Files): Add wrapper script.
30837         * tests/test-fpending.sh: New file.
30838
30839 2007-10-09  Bruno Haible  <bruno@clisp.org>
30840
30841         * MODULES.html.sh (func_module): Don't create a hyperlink for
30842         function names like 'printf_frexp'.
30843         (Misc): Add crc, memxor.
30844         (Characteristics of floating types): New section.
30845         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30846         isnanf-nolibm, signbit, trunc, truncf, truncl.
30847         (Enhancements for ISO C 99 functions): New subsection Input/output.
30848         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30849         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30850         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30851         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30852         (Enhancements for POSIX:2001 functions): Add chdir-long.
30853         (File system functions): Add areadlink, chdir-safer, read-file.
30854         Remove cycle-check.
30855         (File system as inode set): New section.
30856         (Date and time): Add gethrxtime.
30857         (Multithreading): Add openmp.
30858         (Internationalization functions): Add localename.
30859         (Unicode string functions): Add unistr/u*-mbsnlen.
30860         (Support for maintaining and releasing projects): Add git-version-gen.
30861         (Lone files): Remove directories.
30862
30863 2007-10-08  Ben Pfaff  <blp@gnu.org>
30864
30865         * lib/xmalloca.h: Fix typo in comment.
30866
30867 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30868
30869         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30870         when avoiding problems with integer overflow.  Use a portable test
30871         instead.
30872
30873 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30874
30875         * modules/dummy (License): Change to LGPLv2+.
30876         * modules/float (License): Likewise
30877         * modules/realloc (License): Likewise
30878         * modules/stdlib (License): Likewise
30879
30880 2007-10-07  Bruno Haible  <bruno@clisp.org>
30881
30882         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30883         * floor.c (TWO_MANT_DIG): Likewise.
30884         * ceil.c (TWO_MANT_DIG): Likewise.
30885         Reported by Ben Pfaff.
30886
30887 2007-10-07  Bruno Haible  <bruno@clisp.org>
30888
30889         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30890         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30891         * lib/frexp.c (FUNC): Likewise.
30892         * lib/printf-frexp.h (printf_frexp): Likewise.
30893         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30894         * lib/printf-frexp.c (FUNC): Likewise.
30895         Suggested by Jim Meyering.
30896
30897 2007-10-07  Jim Meyering  <meyering@redhat.com>
30898
30899         Make xnanosleep's integer overflow test more robust.
30900         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30901         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30902
30903 2007-10-07  Bruno Haible  <bruno@clisp.org>
30904
30905         * NEWS: Mention the license change.
30906
30907         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30908         abbreviations in the modules files.
30909
30910         Change copyright notice from GPLv2+ to GPLv3+.
30911         * README: Change copyright notice.
30912         * MODULES.html.sh: Likewise.
30913         * build-aux/bootstrap.conf: Likewise.
30914         * build-aux/config.libpath: Likewise.
30915         * build-aux/csharpcomp.sh.in: Likewise.
30916         * build-aux/csharpexec.sh.in: Likewise.
30917         * build-aux/install-reloc: Likewise.
30918         * build-aux/javacomp.sh.in: Likewise.
30919         * build-aux/javaexec.sh.in: Likewise.
30920         * build-aux/ldd.sh.in: Likewise.
30921         * build-aux/reloc-ldflags: Likewise.
30922         * build-aux/relocatable.sh.in: Likewise.
30923         * build-aux/x-to-1.in: Likewise.
30924         * check-module: Likewise.
30925         * config/srclistvars.sh: Likewise.
30926         * gnulib-tool: Likewise.
30927         * lib/acl-internal.h: Likewise.
30928         * lib/acl.c: Likewise.
30929         * lib/acl.h: Likewise.
30930         * lib/acl_entries.c: Likewise.
30931         * lib/areadlink-with-size.c: Likewise.
30932         * lib/areadlink.c: Likewise.
30933         * lib/areadlink.h: Likewise.
30934         * lib/argmatch.c: Likewise.
30935         * lib/argmatch.h: Likewise.
30936         * lib/argp-ba.c: Likewise.
30937         * lib/argp-eexst.c: Likewise.
30938         * lib/argp-fmtstream.c: Likewise.
30939         * lib/argp-fmtstream.h: Likewise.
30940         * lib/argp-fs-xinl.c: Likewise.
30941         * lib/argp-help.c: Likewise.
30942         * lib/argp-namefrob.h: Likewise.
30943         * lib/argp-parse.c: Likewise.
30944         * lib/argp-pin.c: Likewise.
30945         * lib/argp-pv.c: Likewise.
30946         * lib/argp-pvh.c: Likewise.
30947         * lib/argp-xinl.c: Likewise.
30948         * lib/argp.h: Likewise.
30949         * lib/at-func.c: Likewise.
30950         * lib/atanl.c: Likewise.
30951         * lib/backupfile.c: Likewise.
30952         * lib/backupfile.h: Likewise.
30953         * lib/basename.c: Likewise.
30954         * lib/binary-io.h: Likewise.
30955         * lib/byteswap.in.h: Likewise.
30956         * lib/c-stack.c: Likewise.
30957         * lib/c-stack.h: Likewise.
30958         * lib/c-strcasestr.c: Likewise.
30959         * lib/c-strcasestr.h: Likewise.
30960         * lib/c-strstr.c: Likewise.
30961         * lib/c-strstr.h: Likewise.
30962         * lib/c-strtod.c: Likewise.
30963         * lib/calloc.c: Likewise.
30964         * lib/canon-host.c: Likewise.
30965         * lib/canon-host.h: Likewise.
30966         * lib/canonicalize-lgpl.c: Likewise.
30967         * lib/canonicalize.c: Likewise.
30968         * lib/canonicalize.h: Likewise.
30969         * lib/ceil.c: Likewise.
30970         * lib/ceilf.c: Likewise.
30971         * lib/ceill.c: Likewise.
30972         * lib/chdir-long.c: Likewise.
30973         * lib/chdir-long.h: Likewise.
30974         * lib/chdir-safer.c: Likewise.
30975         * lib/chdir-safer.h: Likewise.
30976         * lib/chown.c: Likewise.
30977         * lib/classpath.c: Likewise.
30978         * lib/classpath.h: Likewise.
30979         * lib/clean-temp.c: Likewise.
30980         * lib/clean-temp.h: Likewise.
30981         * lib/cloexec.c: Likewise.
30982         * lib/close-stream.c: Likewise.
30983         * lib/closein.c: Likewise.
30984         * lib/closein.h: Likewise.
30985         * lib/closeout.c: Likewise.
30986         * lib/closeout.h: Likewise.
30987         * lib/concat-filename.c: Likewise.
30988         * lib/copy-file.c: Likewise.
30989         * lib/copy-file.h: Likewise.
30990         * lib/count-one-bits.h: Likewise.
30991         * lib/crc.c: Likewise.
30992         * lib/crc.h: Likewise.
30993         * lib/creat-safer.c: Likewise.
30994         * lib/csharpcomp.c: Likewise.
30995         * lib/csharpcomp.h: Likewise.
30996         * lib/csharpexec.c: Likewise.
30997         * lib/csharpexec.h: Likewise.
30998         * lib/cycle-check.c: Likewise.
30999         * lib/cycle-check.h: Likewise.
31000         * lib/diacrit.c: Likewise.
31001         * lib/diacrit.h: Likewise.
31002         * lib/diffseq.h: Likewise.
31003         * lib/dirchownmod.c: Likewise.
31004         * lib/dirent.in.h: Likewise.
31005         * lib/dirfd.c: Likewise.
31006         * lib/dirfd.h: Likewise.
31007         * lib/dirname.c: Likewise.
31008         * lib/dirname.h: Likewise.
31009         * lib/dummy.c: Likewise.
31010         * lib/dup-safer.c: Likewise.
31011         * lib/dup2.c: Likewise.
31012         * lib/eealloc.h: Likewise.
31013         * lib/error.c: Likewise.
31014         * lib/error.h: Likewise.
31015         * lib/euidaccess.c: Likewise.
31016         * lib/exclude.c: Likewise.
31017         * lib/exclude.h: Likewise.
31018         * lib/execute.c: Likewise.
31019         * lib/execute.h: Likewise.
31020         * lib/exitfail.c: Likewise.
31021         * lib/exitfail.h: Likewise.
31022         * lib/expl.c: Likewise.
31023         * lib/fatal-signal.c: Likewise.
31024         * lib/fatal-signal.h: Likewise.
31025         * lib/fbufmode.c: Likewise.
31026         * lib/fbufmode.h: Likewise.
31027         * lib/fchdir.c: Likewise.
31028         * lib/fchmodat.c: Likewise.
31029         * lib/fchownat.c: Likewise.
31030         * lib/fcntl--.h: Likewise.
31031         * lib/fcntl-safer.h: Likewise.
31032         * lib/fcntl.in.h: Likewise.
31033         * lib/fd-safer.c: Likewise.
31034         * lib/fflush.c: Likewise.
31035         * lib/file-has-acl.c: Likewise.
31036         * lib/file-set.c: Likewise.
31037         * lib/file-type.c: Likewise.
31038         * lib/file-type.h: Likewise.
31039         * lib/fileblocks.c: Likewise.
31040         * lib/filemode.c: Likewise.
31041         * lib/filemode.h: Likewise.
31042         * lib/filename.h: Likewise.
31043         * lib/filenamecat.c: Likewise.
31044         * lib/filenamecat.h: Likewise.
31045         * lib/findprog.c: Likewise.
31046         * lib/findprog.h: Likewise.
31047         * lib/float.in.h: Likewise.
31048         * lib/floor.c: Likewise.
31049         * lib/floorf.c: Likewise.
31050         * lib/floorl.c: Likewise.
31051         * lib/fopen-safer.c: Likewise.
31052         * lib/fopen.c: Likewise.
31053         * lib/fpending.c: Likewise.
31054         * lib/fpending.h: Likewise.
31055         * lib/fprintf.c: Likewise.
31056         * lib/fprintftime.h: Likewise.
31057         * lib/fpucw.h: Likewise.
31058         * lib/fpurge.c: Likewise.
31059         * lib/fpurge.h: Likewise.
31060         * lib/freadable.c: Likewise.
31061         * lib/freadable.h: Likewise.
31062         * lib/freadahead.c: Likewise.
31063         * lib/freadahead.h: Likewise.
31064         * lib/freading.c: Likewise.
31065         * lib/freading.h: Likewise.
31066         * lib/free.c: Likewise.
31067         * lib/freopen.c: Likewise.
31068         * lib/frexp.c: Likewise.
31069         * lib/frexpl.c: Likewise.
31070         * lib/fseek.c: Likewise.
31071         * lib/fseterr.c: Likewise.
31072         * lib/fseterr.h: Likewise.
31073         * lib/fstatat.c: Likewise.
31074         * lib/fstrcmp.c: Likewise.
31075         * lib/fstrcmp.h: Likewise.
31076         * lib/fsusage.c: Likewise.
31077         * lib/fsusage.h: Likewise.
31078         * lib/ftell.c: Likewise.
31079         * lib/ftello.c: Likewise.
31080         * lib/fts-cycle.c: Likewise.
31081         * lib/fts.c: Likewise.
31082         * lib/fts_.h: Likewise.
31083         * lib/full-read.c: Likewise.
31084         * lib/full-read.h: Likewise.
31085         * lib/full-write.c: Likewise.
31086         * lib/full-write.h: Likewise.
31087         * lib/fwritable.c: Likewise.
31088         * lib/fwritable.h: Likewise.
31089         * lib/fwriteerror.c: Likewise.
31090         * lib/fwriteerror.h: Likewise.
31091         * lib/fwriting.c: Likewise.
31092         * lib/fwriting.h: Likewise.
31093         * lib/gcd.c: Likewise.
31094         * lib/gcd.h: Likewise.
31095         * lib/getcwd.c: Likewise.
31096         * lib/getdate.h: Likewise.
31097         * lib/getdate.y: Likewise.
31098         * lib/getdomainname.c: Likewise.
31099         * lib/getdomainname.h: Likewise.
31100         * lib/getgroups.c: Likewise.
31101         * lib/gethostname.c: Likewise.
31102         * lib/gethrxtime.c: Likewise.
31103         * lib/gethrxtime.h: Likewise.
31104         * lib/getloadavg.c: Likewise.
31105         * lib/getndelim2.c: Likewise.
31106         * lib/getndelim2.h: Likewise.
31107         * lib/getnline.c: Likewise.
31108         * lib/getnline.h: Likewise.
31109         * lib/getopt.c: Likewise.
31110         * lib/getopt.in.h: Likewise.
31111         * lib/getopt1.c: Likewise.
31112         * lib/getopt_int.h: Likewise.
31113         * lib/getpagesize.h: Likewise.
31114         * lib/getsubopt.c: Likewise.
31115         * lib/gettime.c: Likewise.
31116         * lib/getugroups.c: Likewise.
31117         * lib/getugroups.h: Likewise.
31118         * lib/getusershell.c: Likewise.
31119         * lib/gl_anyavltree_list1.h: Likewise.
31120         * lib/gl_anyavltree_list2.h: Likewise.
31121         * lib/gl_anyhash_list1.h: Likewise.
31122         * lib/gl_anyhash_list2.h: Likewise.
31123         * lib/gl_anylinked_list1.h: Likewise.
31124         * lib/gl_anylinked_list2.h: Likewise.
31125         * lib/gl_anyrbtree_list1.h: Likewise.
31126         * lib/gl_anyrbtree_list2.h: Likewise.
31127         * lib/gl_anytree_list1.h: Likewise.
31128         * lib/gl_anytree_list2.h: Likewise.
31129         * lib/gl_anytree_oset.h: Likewise.
31130         * lib/gl_anytreehash_list1.h: Likewise.
31131         * lib/gl_anytreehash_list2.h: Likewise.
31132         * lib/gl_array_list.c: Likewise.
31133         * lib/gl_array_list.h: Likewise.
31134         * lib/gl_array_oset.c: Likewise.
31135         * lib/gl_array_oset.h: Likewise.
31136         * lib/gl_avltree_list.c: Likewise.
31137         * lib/gl_avltree_list.h: Likewise.
31138         * lib/gl_avltree_oset.c: Likewise.
31139         * lib/gl_avltree_oset.h: Likewise.
31140         * lib/gl_avltreehash_list.c: Likewise.
31141         * lib/gl_avltreehash_list.h: Likewise.
31142         * lib/gl_carray_list.c: Likewise.
31143         * lib/gl_carray_list.h: Likewise.
31144         * lib/gl_linked_list.c: Likewise.
31145         * lib/gl_linked_list.h: Likewise.
31146         * lib/gl_linkedhash_list.c: Likewise.
31147         * lib/gl_linkedhash_list.h: Likewise.
31148         * lib/gl_list.c: Likewise.
31149         * lib/gl_list.h: Likewise.
31150         * lib/gl_oset.c: Likewise.
31151         * lib/gl_oset.h: Likewise.
31152         * lib/gl_rbtree_list.c: Likewise.
31153         * lib/gl_rbtree_list.h: Likewise.
31154         * lib/gl_rbtree_oset.c: Likewise.
31155         * lib/gl_rbtree_oset.h: Likewise.
31156         * lib/gl_rbtreehash_list.c: Likewise.
31157         * lib/gl_rbtreehash_list.h: Likewise.
31158         * lib/gl_sublist.c: Likewise.
31159         * lib/gl_sublist.h: Likewise.
31160         * lib/group-member.c: Likewise.
31161         * lib/group-member.h: Likewise.
31162         * lib/hard-locale.c: Likewise.
31163         * lib/hard-locale.h: Likewise.
31164         * lib/hash-pjw.c: Likewise.
31165         * lib/hash-pjw.h: Likewise.
31166         * lib/hash-triple.c: Likewise.
31167         * lib/hash.c: Likewise.
31168         * lib/hash.h: Likewise.
31169         * lib/human.c: Likewise.
31170         * lib/human.h: Likewise.
31171         * lib/i-ring.c: Likewise.
31172         * lib/i-ring.h: Likewise.
31173         * lib/idcache.c: Likewise.
31174         * lib/imaxabs.c: Likewise.
31175         * lib/imaxdiv.c: Likewise.
31176         * lib/inet_pton.c: Likewise.
31177         * lib/inet_pton.h: Likewise.
31178         * lib/intprops.h: Likewise.
31179         * lib/inttostr.c: Likewise.
31180         * lib/inttostr.h: Likewise.
31181         * lib/inttypes.in.h: Likewise.
31182         * lib/isapipe.c: Likewise.
31183         * lib/isdir.c: Likewise.
31184         * lib/isnan.c: Likewise.
31185         * lib/isnan.h: Likewise.
31186         * lib/isnanf.c: Likewise.
31187         * lib/isnanf.h: Likewise.
31188         * lib/isnanl-nolibm.h: Likewise.
31189         * lib/isnanl.c: Likewise.
31190         * lib/isnanl.h: Likewise.
31191         * lib/javacomp.c: Likewise.
31192         * lib/javacomp.h: Likewise.
31193         * lib/javaexec.c: Likewise.
31194         * lib/javaexec.h: Likewise.
31195         * lib/javaversion.c: Likewise.
31196         * lib/javaversion.h: Likewise.
31197         * lib/javaversion.java: Likewise.
31198         * lib/lbrkprop.h: Likewise.
31199         * lib/lchmod.h: Likewise.
31200         * lib/lchown.c: Likewise.
31201         * lib/ldexpl.c: Likewise.
31202         * lib/linebreak.c: Likewise.
31203         * lib/linebreak.h: Likewise.
31204         * lib/linebuffer.c: Likewise.
31205         * lib/linebuffer.h: Likewise.
31206         * lib/locale.in.h: Likewise.
31207         * lib/logl.c: Likewise.
31208         * lib/long-options.c: Likewise.
31209         * lib/long-options.h: Likewise.
31210         * lib/lstat.c: Likewise.
31211         * lib/lstat.h: Likewise.
31212         * lib/math.in.h: Likewise.
31213         * lib/mbchar.c: Likewise.
31214         * lib/mbchar.h: Likewise.
31215         * lib/mbfile.h: Likewise.
31216         * lib/mbiter.h: Likewise.
31217         * lib/mbscasecmp.c: Likewise.
31218         * lib/mbscasestr.c: Likewise.
31219         * lib/mbschr.c: Likewise.
31220         * lib/mbscspn.c: Likewise.
31221         * lib/mbslen.c: Likewise.
31222         * lib/mbsncasecmp.c: Likewise.
31223         * lib/mbsnlen.c: Likewise.
31224         * lib/mbspbrk.c: Likewise.
31225         * lib/mbspcasecmp.c: Likewise.
31226         * lib/mbsrchr.c: Likewise.
31227         * lib/mbssep.c: Likewise.
31228         * lib/mbsspn.c: Likewise.
31229         * lib/mbsstr.c: Likewise.
31230         * lib/mbstok_r.c: Likewise.
31231         * lib/mbswidth.c: Likewise.
31232         * lib/mbswidth.h: Likewise.
31233         * lib/mbuiter.h: Likewise.
31234         * lib/memcasecmp.c: Likewise.
31235         * lib/memcasecmp.h: Likewise.
31236         * lib/memchr.c: Likewise.
31237         * lib/memcmp.c: Likewise.
31238         * lib/memcoll.c: Likewise.
31239         * lib/memcoll.h: Likewise.
31240         * lib/memcpy.c: Likewise.
31241         * lib/memrchr.c: Likewise.
31242         * lib/mkancesdirs.c: Likewise.
31243         * lib/mkdir-p.c: Likewise.
31244         * lib/mkdir-p.h: Likewise.
31245         * lib/mkdir.c: Likewise.
31246         * lib/mkdirat.c: Likewise.
31247         * lib/mkdtemp.c: Likewise.
31248         * lib/mkstemp-safer.c: Likewise.
31249         * lib/mkstemp.c: Likewise.
31250         * lib/modechange.c: Likewise.
31251         * lib/modechange.h: Likewise.
31252         * lib/mountlist.c: Likewise.
31253         * lib/mountlist.h: Likewise.
31254         * lib/mpsort.c: Likewise.
31255         * lib/nanosleep.c: Likewise.
31256         * lib/obstack.c: Likewise.
31257         * lib/obstack.h: Likewise.
31258         * lib/open-safer.c: Likewise.
31259         * lib/open.c: Likewise.
31260         * lib/openat-die.c: Likewise.
31261         * lib/openat-priv.h: Likewise.
31262         * lib/openat-proc.c: Likewise.
31263         * lib/openat.c: Likewise.
31264         * lib/openat.h: Likewise.
31265         * lib/pagealign_alloc.c: Likewise.
31266         * lib/pagealign_alloc.h: Likewise.
31267         * lib/physmem.c: Likewise.
31268         * lib/physmem.h: Likewise.
31269         * lib/pipe-safer.c: Likewise.
31270         * lib/pipe.c: Likewise.
31271         * lib/pipe.h: Likewise.
31272         * lib/posixtm.c: Likewise.
31273         * lib/posixtm.h: Likewise.
31274         * lib/posixver.c: Likewise.
31275         * lib/printf-frexp.c: Likewise.
31276         * lib/printf-frexp.h: Likewise.
31277         * lib/printf-frexpl.c: Likewise.
31278         * lib/printf-frexpl.h: Likewise.
31279         * lib/printf.c: Likewise.
31280         * lib/progname.c: Likewise.
31281         * lib/progname.h: Likewise.
31282         * lib/progreloc.c: Likewise.
31283         * lib/putenv.c: Likewise.
31284         * lib/quote.c: Likewise.
31285         * lib/quote.h: Likewise.
31286         * lib/quotearg.c: Likewise.
31287         * lib/quotearg.h: Likewise.
31288         * lib/raise.c: Likewise.
31289         * lib/readline.c: Likewise.
31290         * lib/readline.h: Likewise.
31291         * lib/readlink.c: Likewise.
31292         * lib/readtokens.c: Likewise.
31293         * lib/readtokens.h: Likewise.
31294         * lib/readtokens0.c: Likewise.
31295         * lib/readtokens0.h: Likewise.
31296         * lib/readutmp.c: Likewise.
31297         * lib/readutmp.h: Likewise.
31298         * lib/realloc.c: Likewise.
31299         * lib/relocwrapper.c: Likewise.
31300         * lib/rename-dest-slash.c: Likewise.
31301         * lib/rename.c: Likewise.
31302         * lib/rmdir.c: Likewise.
31303         * lib/rpmatch.c: Likewise.
31304         * lib/safe-read.c: Likewise.
31305         * lib/safe-read.h: Likewise.
31306         * lib/safe-write.c: Likewise.
31307         * lib/safe-write.h: Likewise.
31308         * lib/same-inode.h: Likewise.
31309         * lib/same.c: Likewise.
31310         * lib/same.h: Likewise.
31311         * lib/save-cwd.c: Likewise.
31312         * lib/save-cwd.h: Likewise.
31313         * lib/savedir.c: Likewise.
31314         * lib/savedir.h: Likewise.
31315         * lib/savewd.c: Likewise.
31316         * lib/savewd.h: Likewise.
31317         * lib/search.in.h: Likewise.
31318         * lib/setenv.c: Likewise.
31319         * lib/setenv.h: Likewise.
31320         * lib/settime.c: Likewise.
31321         * lib/sh-quote.c: Likewise.
31322         * lib/sh-quote.h: Likewise.
31323         * lib/sig2str.c: Likewise.
31324         * lib/sig2str.h: Likewise.
31325         * lib/signal.in.h: Likewise.
31326         * lib/signbitd.c: Likewise.
31327         * lib/signbitf.c: Likewise.
31328         * lib/signbitl.c: Likewise.
31329         * lib/sigprocmask.c: Likewise.
31330         * lib/sincosl.c: Likewise.
31331         * lib/sleep.c: Likewise.
31332         * lib/sprintf.c: Likewise.
31333         * lib/sqrtl.c: Likewise.
31334         * lib/stat-time.h: Likewise.
31335         * lib/stdio--.h: Likewise.
31336         * lib/stdio-safer.h: Likewise.
31337         * lib/stdlib--.h: Likewise.
31338         * lib/stdlib-safer.h: Likewise.
31339         * lib/stdlib.in.h: Likewise.
31340         * lib/stpcpy.c: Likewise.
31341         * lib/stpncpy.c: Likewise.
31342         * lib/strchrnul.c: Likewise.
31343         * lib/strcspn.c: Likewise.
31344         * lib/strerror.c: Likewise.
31345         * lib/strftime.c: Likewise.
31346         * lib/strftime.h: Likewise.
31347         * lib/striconveh.c: Likewise.
31348         * lib/striconveh.h: Likewise.
31349         * lib/striconveha.c: Likewise.
31350         * lib/striconveha.h: Likewise.
31351         * lib/stripslash.c: Likewise.
31352         * lib/strnlen1.c: Likewise.
31353         * lib/strnlen1.h: Likewise.
31354         * lib/strtod.c: Likewise.
31355         * lib/strtoimax.c: Likewise.
31356         * lib/strtok_r.c: Likewise.
31357         * lib/strtol.c: Likewise.
31358         * lib/strtoll.c: Likewise.
31359         * lib/strtoul.c: Likewise.
31360         * lib/strtoull.c: Likewise.
31361         * lib/sysexits.in.h: Likewise.
31362         * lib/tempname.c: Likewise.
31363         * lib/tempname.h: Likewise.
31364         * lib/timespec.h: Likewise.
31365         * lib/tls.c: Likewise.
31366         * lib/tls.h: Likewise.
31367         * lib/tmpdir.c: Likewise.
31368         * lib/tmpdir.h: Likewise.
31369         * lib/tmpfile-safer.c: Likewise.
31370         * lib/tmpfile.c: Likewise.
31371         * lib/trigl.c: Likewise.
31372         * lib/trigl.h: Likewise.
31373         * lib/trim.c: Likewise.
31374         * lib/trim.h: Likewise.
31375         * lib/trunc.c: Likewise.
31376         * lib/truncf.c: Likewise.
31377         * lib/truncl.c: Likewise.
31378         * lib/tsearch.c: Likewise.
31379         * lib/unicodeio.c: Likewise.
31380         * lib/unicodeio.h: Likewise.
31381         * lib/unistd--.h: Likewise.
31382         * lib/unistd-safer.h: Likewise.
31383         * lib/unistdio/ulc-fprintf.c: Likewise.
31384         * lib/unistdio/ulc-vfprintf.c: Likewise.
31385         * lib/unlinkdir.c: Likewise.
31386         * lib/unlinkdir.h: Likewise.
31387         * lib/unlocked-io.h: Likewise.
31388         * lib/unsetenv.c: Likewise.
31389         * lib/userspec.c: Likewise.
31390         * lib/utime.c: Likewise.
31391         * lib/utimecmp.c: Likewise.
31392         * lib/utimecmp.h: Likewise.
31393         * lib/utimens.c: Likewise.
31394         * lib/verify.h: Likewise.
31395         * lib/verror.c: Likewise.
31396         * lib/verror.h: Likewise.
31397         * lib/version-etc-fsf.c: Likewise.
31398         * lib/version-etc.c: Likewise.
31399         * lib/version-etc.h: Likewise.
31400         * lib/vfprintf.c: Likewise.
31401         * lib/vprintf.c: Likewise.
31402         * lib/vsprintf.c: Likewise.
31403         * lib/w32spawn.h: Likewise.
31404         * lib/wait-process.c: Likewise.
31405         * lib/wait-process.h: Likewise.
31406         * lib/wcwidth.c: Likewise.
31407         * lib/write-any-file.c: Likewise.
31408         * lib/xalloc-die.c: Likewise.
31409         * lib/xalloc.h: Likewise.
31410         * lib/xasprintf.c: Likewise.
31411         * lib/xgetcwd.c: Likewise.
31412         * lib/xgetcwd.h: Likewise.
31413         * lib/xgetdomainname.c: Likewise.
31414         * lib/xgetdomainname.h: Likewise.
31415         * lib/xgethostname.c: Likewise.
31416         * lib/xmalloc.c: Likewise.
31417         * lib/xmalloca.c: Likewise.
31418         * lib/xmalloca.h: Likewise.
31419         * lib/xmemcoll.c: Likewise.
31420         * lib/xnanosleep.c: Likewise.
31421         * lib/xreadlink.c: Likewise.
31422         * lib/xreadlink.h: Likewise.
31423         * lib/xsetenv.c: Likewise.
31424         * lib/xsetenv.h: Likewise.
31425         * lib/xstriconv.c: Likewise.
31426         * lib/xstriconv.h: Likewise.
31427         * lib/xstrndup.c: Likewise.
31428         * lib/xstrndup.h: Likewise.
31429         * lib/xstrtod.c: Likewise.
31430         * lib/xstrtod.h: Likewise.
31431         * lib/xstrtol-error.c: Likewise.
31432         * lib/xstrtol.c: Likewise.
31433         * lib/xstrtol.h: Likewise.
31434         * lib/xtime.h: Likewise.
31435         * lib/xvasprintf.c: Likewise.
31436         * lib/xvasprintf.h: Likewise.
31437         * lib/yesno.c: Likewise.
31438         * lib/yesno.h: Likewise.
31439         * posix-modules: Likewise.
31440         * tests/test-alloca-opt.c: Likewise.
31441         * tests/test-arcfour.c: Likewise.
31442         * tests/test-arctwo.c: Likewise.
31443         * tests/test-argmatch.c: Likewise.
31444         * tests/test-argp-2.sh: Likewise.
31445         * tests/test-argp.c: Likewise.
31446         * tests/test-arpa_inet.c: Likewise.
31447         * tests/test-array_list.c: Likewise.
31448         * tests/test-array_oset.c: Likewise.
31449         * tests/test-atexit.c: Likewise.
31450         * tests/test-avltree_list.c: Likewise.
31451         * tests/test-avltree_oset.c: Likewise.
31452         * tests/test-avltreehash_list.c: Likewise.
31453         * tests/test-base64.c: Likewise.
31454         * tests/test-binary-io.c: Likewise.
31455         * tests/test-byteswap.c: Likewise.
31456         * tests/test-c-ctype.c: Likewise.
31457         * tests/test-c-strcasecmp.c: Likewise.
31458         * tests/test-c-strcasestr.c: Likewise.
31459         * tests/test-c-strncasecmp.c: Likewise.
31460         * tests/test-c-strstr.c: Likewise.
31461         * tests/test-canonicalize-lgpl.c: Likewise.
31462         * tests/test-canonicalize.c: Likewise.
31463         * tests/test-carray_list.c: Likewise.
31464         * tests/test-ceilf.c: Likewise.
31465         * tests/test-ceill.c: Likewise.
31466         * tests/test-count-one-bits.c: Likewise.
31467         * tests/test-crc.c: Likewise.
31468         * tests/test-dirname.c: Likewise.
31469         * tests/test-fbufmode.c: Likewise.
31470         * tests/test-fcntl.c: Likewise.
31471         * tests/test-fflush.c: Likewise.
31472         * tests/test-floorf.c: Likewise.
31473         * tests/test-floorl.c: Likewise.
31474         * tests/test-fopen.c: Likewise.
31475         * tests/test-fprintf-posix.c: Likewise.
31476         * tests/test-fprintf-posix.h: Likewise.
31477         * tests/test-fpurge.c: Likewise.
31478         * tests/test-freadable.c: Likewise.
31479         * tests/test-freadahead.c: Likewise.
31480         * tests/test-freading.c: Likewise.
31481         * tests/test-freopen.c: Likewise.
31482         * tests/test-frexp.c: Likewise.
31483         * tests/test-frexpl.c: Likewise.
31484         * tests/test-fseek.c: Likewise.
31485         * tests/test-fseeko.c: Likewise.
31486         * tests/test-fseterr.c: Likewise.
31487         * tests/test-fstrcmp.c: Likewise.
31488         * tests/test-ftell.c: Likewise.
31489         * tests/test-ftello.c: Likewise.
31490         * tests/test-fwritable.c: Likewise.
31491         * tests/test-fwriting.c: Likewise.
31492         * tests/test-getaddrinfo.c: Likewise.
31493         * tests/test-getpass.c: Likewise.
31494         * tests/test-gettimeofday.c: Likewise.
31495         * tests/test-hmac-md5.c: Likewise.
31496         * tests/test-hmac-sha1.c: Likewise.
31497         * tests/test-iconv.c: Likewise.
31498         * tests/test-iconvme.c: Likewise.
31499         * tests/test-inttypes.c: Likewise.
31500         * tests/test-isnan.c: Likewise.
31501         * tests/test-isnanf.c: Likewise.
31502         * tests/test-isnanl-nolibm.c: Likewise.
31503         * tests/test-isnanl.c: Likewise.
31504         * tests/test-isnanl.h: Likewise.
31505         * tests/test-ldexpl.c: Likewise.
31506         * tests/test-linked_list.c: Likewise.
31507         * tests/test-linkedhash_list.c: Likewise.
31508         * tests/test-locale.c: Likewise.
31509         * tests/test-localename.c: Likewise.
31510         * tests/test-lock.c: Likewise.
31511         * tests/test-lseek.c: Likewise.
31512         * tests/test-malloca.c: Likewise.
31513         * tests/test-math.c: Likewise.
31514         * tests/test-mbscasecmp.c: Likewise.
31515         * tests/test-mbscasestr1.c: Likewise.
31516         * tests/test-mbscasestr2.c: Likewise.
31517         * tests/test-mbscasestr3.c: Likewise.
31518         * tests/test-mbscasestr4.c: Likewise.
31519         * tests/test-mbschr.c: Likewise.
31520         * tests/test-mbscspn.c: Likewise.
31521         * tests/test-mbsncasecmp.c: Likewise.
31522         * tests/test-mbspbrk.c: Likewise.
31523         * tests/test-mbspcasecmp.c: Likewise.
31524         * tests/test-mbsrchr.c: Likewise.
31525         * tests/test-mbsspn.c: Likewise.
31526         * tests/test-mbsstr1.c: Likewise.
31527         * tests/test-mbsstr2.c: Likewise.
31528         * tests/test-mbsstr3.c: Likewise.
31529         * tests/test-md5.c: Likewise.
31530         * tests/test-memmem.c: Likewise.
31531         * tests/test-netinet_in.c: Likewise.
31532         * tests/test-open.c: Likewise.
31533         * tests/test-printf-frexp.c: Likewise.
31534         * tests/test-printf-frexpl.c: Likewise.
31535         * tests/test-printf-posix.c: Likewise.
31536         * tests/test-printf-posix.h: Likewise.
31537         * tests/test-rbtree_list.c: Likewise.
31538         * tests/test-rbtree_oset.c: Likewise.
31539         * tests/test-rbtreehash_list.c: Likewise.
31540         * tests/test-read-file.c: Likewise.
31541         * tests/test-rijndael.c: Likewise.
31542         * tests/test-search.c: Likewise.
31543         * tests/test-signbit.c: Likewise.
31544         * tests/test-sleep.c: Likewise.
31545         * tests/test-snprintf-posix.c: Likewise.
31546         * tests/test-snprintf-posix.h: Likewise.
31547         * tests/test-snprintf.c: Likewise.
31548         * tests/test-sprintf-posix.c: Likewise.
31549         * tests/test-sprintf-posix.h: Likewise.
31550         * tests/test-stat-time.c: Likewise.
31551         * tests/test-stdbool.c: Likewise.
31552         * tests/test-stdint.c: Likewise.
31553         * tests/test-stdio.c: Likewise.
31554         * tests/test-stdlib.c: Likewise.
31555         * tests/test-stpncpy.c: Likewise.
31556         * tests/test-strcasestr.c: Likewise.
31557         * tests/test-striconv.c: Likewise.
31558         * tests/test-striconveh.c: Likewise.
31559         * tests/test-striconveha.c: Likewise.
31560         * tests/test-string.c: Likewise.
31561         * tests/test-sys_select.c: Likewise.
31562         * tests/test-sys_socket.c: Likewise.
31563         * tests/test-sys_stat.c: Likewise.
31564         * tests/test-sys_time.c: Likewise.
31565         * tests/test-sysexits.c: Likewise.
31566         * tests/test-time.c: Likewise.
31567         * tests/test-tls.c: Likewise.
31568         * tests/test-trunc.c: Likewise.
31569         * tests/test-truncf.c: Likewise.
31570         * tests/test-truncl.c: Likewise.
31571         * tests/test-unistd.c: Likewise.
31572         * tests/test-vasnprintf-posix.c: Likewise.
31573         * tests/test-vasnprintf-posix2.c: Likewise.
31574         * tests/test-vasnprintf.c: Likewise.
31575         * tests/test-vasprintf-posix.c: Likewise.
31576         * tests/test-vasprintf.c: Likewise.
31577         * tests/test-verify.c: Likewise.
31578         * tests/test-vfprintf-posix.c: Likewise.
31579         * tests/test-vprintf-posix.c: Likewise.
31580         * tests/test-vsnprintf-posix.c: Likewise.
31581         * tests/test-vsnprintf.c: Likewise.
31582         * tests/test-vsprintf-posix.c: Likewise.
31583         * tests/test-wchar.c: Likewise.
31584         * tests/test-wctype.c: Likewise.
31585         * tests/test-wcwidth.c: Likewise.
31586         * tests/test-xstrtol.c: Likewise.
31587         * tests/test-xvasprintf.c: Likewise.
31588         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31589         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31590         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31591         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31592         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31593         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31594         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31595         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31596         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31597         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31598         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31599         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31600         * tests/uniname/test-uninames.c: Likewise.
31601         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31602         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31603         * tests/unistdio/test-u16-printf1.h: Likewise.
31604         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31605         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31606         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31607         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31608         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31609         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31610         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31611         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31612         * tests/unistdio/test-u32-printf1.h: Likewise.
31613         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31614         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31615         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31616         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31617         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31618         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31619         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31620         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31621         * tests/unistdio/test-u8-printf1.h: Likewise.
31622         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31623         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31624         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31625         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31626         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31627         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31628         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31629         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31630         * tests/unistdio/test-ulc-printf1.h: Likewise.
31631         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31632         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31633         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31634         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31635         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31636         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31637         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31638         * tests/uniwidth/test-u16-width.c: Likewise.
31639         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31640         * tests/uniwidth/test-u32-width.c: Likewise.
31641         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31642         * tests/uniwidth/test-u8-width.c: Likewise.
31643         * tests/uniwidth/test-uc_width.c: Likewise.
31644         * config/srclist-update: Likewise.
31645         (fixlicense): Update to GPLv3+.
31646
31647         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31648         * tests/test-tsearch.c: Change copyright notice.
31649
31650         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31651         * lib/c-strcaseeq.h: Change copyright notice.
31652         * lib/streq.h: Likewise.
31653         * lib/uniconv.h: Likewise.
31654         * lib/uniconv/u-conv-from-enc.h: Likewise.
31655         * lib/uniconv/u-conv-to-enc.h: Likewise.
31656         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31657         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31658         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31659         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31660         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31661         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31662         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31663         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31664         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31665         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31666         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31667         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31668         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31669         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31670         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31671         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31672         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31673         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31674         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31675         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31676         * lib/uniname.h: Likewise.
31677         * lib/uniname/uniname.c: Likewise.
31678         * lib/unistdio.h: Likewise.
31679         * lib/unistdio/u-asnprintf.h: Likewise.
31680         * lib/unistdio/u-asprintf.h: Likewise.
31681         * lib/unistdio/u-printf-args.c: Likewise.
31682         * lib/unistdio/u-printf-args.h: Likewise.
31683         * lib/unistdio/u-printf-parse.h: Likewise.
31684         * lib/unistdio/u-snprintf.h: Likewise.
31685         * lib/unistdio/u-sprintf.h: Likewise.
31686         * lib/unistdio/u-vasprintf.h: Likewise.
31687         * lib/unistdio/u-vsnprintf.h: Likewise.
31688         * lib/unistdio/u-vsprintf.h: Likewise.
31689         * lib/unistdio/u16-asnprintf.c: Likewise.
31690         * lib/unistdio/u16-asprintf.c: Likewise.
31691         * lib/unistdio/u16-printf-parse.c: Likewise.
31692         * lib/unistdio/u16-snprintf.c: Likewise.
31693         * lib/unistdio/u16-sprintf.c: Likewise.
31694         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31695         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31696         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31697         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31698         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31699         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31700         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31701         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31702         * lib/unistdio/u16-vasnprintf.c: Likewise.
31703         * lib/unistdio/u16-vasprintf.c: Likewise.
31704         * lib/unistdio/u16-vsnprintf.c: Likewise.
31705         * lib/unistdio/u16-vsprintf.c: Likewise.
31706         * lib/unistdio/u32-asnprintf.c: Likewise.
31707         * lib/unistdio/u32-asprintf.c: Likewise.
31708         * lib/unistdio/u32-printf-parse.c: Likewise.
31709         * lib/unistdio/u32-snprintf.c: Likewise.
31710         * lib/unistdio/u32-sprintf.c: Likewise.
31711         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31712         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31713         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31714         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31715         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31716         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31717         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31718         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31719         * lib/unistdio/u32-vasnprintf.c: Likewise.
31720         * lib/unistdio/u32-vasprintf.c: Likewise.
31721         * lib/unistdio/u32-vsnprintf.c: Likewise.
31722         * lib/unistdio/u32-vsprintf.c: Likewise.
31723         * lib/unistdio/u8-asnprintf.c: Likewise.
31724         * lib/unistdio/u8-asprintf.c: Likewise.
31725         * lib/unistdio/u8-printf-parse.c: Likewise.
31726         * lib/unistdio/u8-snprintf.c: Likewise.
31727         * lib/unistdio/u8-sprintf.c: Likewise.
31728         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31729         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31730         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31731         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31732         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31733         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31734         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31735         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31736         * lib/unistdio/u8-vasnprintf.c: Likewise.
31737         * lib/unistdio/u8-vasprintf.c: Likewise.
31738         * lib/unistdio/u8-vsnprintf.c: Likewise.
31739         * lib/unistdio/u8-vsprintf.c: Likewise.
31740         * lib/unistdio/ulc-asnprintf.c: Likewise.
31741         * lib/unistdio/ulc-asprintf.c: Likewise.
31742         * lib/unistdio/ulc-printf-parse.c: Likewise.
31743         * lib/unistdio/ulc-snprintf.c: Likewise.
31744         * lib/unistdio/ulc-sprintf.c: Likewise.
31745         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31746         * lib/unistdio/ulc-vasprintf.c: Likewise.
31747         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31748         * lib/unistdio/ulc-vsprintf.c: Likewise.
31749         * lib/unistr.h: Likewise.
31750         * lib/unistr/u-cpy-alloc.h: Likewise.
31751         * lib/unistr/u-cpy.h: Likewise.
31752         * lib/unistr/u-endswith.h: Likewise.
31753         * lib/unistr/u-move.h: Likewise.
31754         * lib/unistr/u-set.h: Likewise.
31755         * lib/unistr/u-startswith.h: Likewise.
31756         * lib/unistr/u-stpcpy.h: Likewise.
31757         * lib/unistr/u-stpncpy.h: Likewise.
31758         * lib/unistr/u-strcat.h: Likewise.
31759         * lib/unistr/u-strcpy.h: Likewise.
31760         * lib/unistr/u-strcspn.h: Likewise.
31761         * lib/unistr/u-strdup.h: Likewise.
31762         * lib/unistr/u-strlen.h: Likewise.
31763         * lib/unistr/u-strncat.h: Likewise.
31764         * lib/unistr/u-strncpy.h: Likewise.
31765         * lib/unistr/u-strnlen.h: Likewise.
31766         * lib/unistr/u-strpbrk.h: Likewise.
31767         * lib/unistr/u-strspn.h: Likewise.
31768         * lib/unistr/u-strstr.h: Likewise.
31769         * lib/unistr/u-strtok.h: Likewise.
31770         * lib/unistr/u16-check.c: Likewise.
31771         * lib/unistr/u16-chr.c: Likewise.
31772         * lib/unistr/u16-cmp.c: Likewise.
31773         * lib/unistr/u16-cpy-alloc.c: Likewise.
31774         * lib/unistr/u16-cpy.c: Likewise.
31775         * lib/unistr/u16-endswith.c: Likewise.
31776         * lib/unistr/u16-mblen.c: Likewise.
31777         * lib/unistr/u16-mbsnlen.c: Likewise.
31778         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31779         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31780         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31781         * lib/unistr/u16-mbtouc.c: Likewise.
31782         * lib/unistr/u16-mbtoucr.c: Likewise.
31783         * lib/unistr/u16-move.c: Likewise.
31784         * lib/unistr/u16-next.c: Likewise.
31785         * lib/unistr/u16-prev.c: Likewise.
31786         * lib/unistr/u16-set.c: Likewise.
31787         * lib/unistr/u16-startswith.c: Likewise.
31788         * lib/unistr/u16-stpcpy.c: Likewise.
31789         * lib/unistr/u16-stpncpy.c: Likewise.
31790         * lib/unistr/u16-strcat.c: Likewise.
31791         * lib/unistr/u16-strchr.c: Likewise.
31792         * lib/unistr/u16-strcmp.c: Likewise.
31793         * lib/unistr/u16-strcpy.c: Likewise.
31794         * lib/unistr/u16-strcspn.c: Likewise.
31795         * lib/unistr/u16-strdup.c: Likewise.
31796         * lib/unistr/u16-strlen.c: Likewise.
31797         * lib/unistr/u16-strmblen.c: Likewise.
31798         * lib/unistr/u16-strmbtouc.c: Likewise.
31799         * lib/unistr/u16-strncat.c: Likewise.
31800         * lib/unistr/u16-strncmp.c: Likewise.
31801         * lib/unistr/u16-strncpy.c: Likewise.
31802         * lib/unistr/u16-strnlen.c: Likewise.
31803         * lib/unistr/u16-strpbrk.c: Likewise.
31804         * lib/unistr/u16-strrchr.c: Likewise.
31805         * lib/unistr/u16-strspn.c: Likewise.
31806         * lib/unistr/u16-strstr.c: Likewise.
31807         * lib/unistr/u16-strtok.c: Likewise.
31808         * lib/unistr/u16-to-u32.c: Likewise.
31809         * lib/unistr/u16-to-u8.c: Likewise.
31810         * lib/unistr/u16-uctomb-aux.c: Likewise.
31811         * lib/unistr/u16-uctomb.c: Likewise.
31812         * lib/unistr/u32-check.c: Likewise.
31813         * lib/unistr/u32-chr.c: Likewise.
31814         * lib/unistr/u32-cmp.c: Likewise.
31815         * lib/unistr/u32-cpy-alloc.c: Likewise.
31816         * lib/unistr/u32-cpy.c: Likewise.
31817         * lib/unistr/u32-endswith.c: Likewise.
31818         * lib/unistr/u32-mblen.c: Likewise.
31819         * lib/unistr/u32-mbsnlen.c: Likewise.
31820         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31821         * lib/unistr/u32-mbtouc.c: Likewise.
31822         * lib/unistr/u32-mbtoucr.c: Likewise.
31823         * lib/unistr/u32-move.c: Likewise.
31824         * lib/unistr/u32-next.c: Likewise.
31825         * lib/unistr/u32-prev.c: Likewise.
31826         * lib/unistr/u32-set.c: Likewise.
31827         * lib/unistr/u32-startswith.c: Likewise.
31828         * lib/unistr/u32-stpcpy.c: Likewise.
31829         * lib/unistr/u32-stpncpy.c: Likewise.
31830         * lib/unistr/u32-strcat.c: Likewise.
31831         * lib/unistr/u32-strchr.c: Likewise.
31832         * lib/unistr/u32-strcmp.c: Likewise.
31833         * lib/unistr/u32-strcpy.c: Likewise.
31834         * lib/unistr/u32-strcspn.c: Likewise.
31835         * lib/unistr/u32-strdup.c: Likewise.
31836         * lib/unistr/u32-strlen.c: Likewise.
31837         * lib/unistr/u32-strmblen.c: Likewise.
31838         * lib/unistr/u32-strmbtouc.c: Likewise.
31839         * lib/unistr/u32-strncat.c: Likewise.
31840         * lib/unistr/u32-strncmp.c: Likewise.
31841         * lib/unistr/u32-strncpy.c: Likewise.
31842         * lib/unistr/u32-strnlen.c: Likewise.
31843         * lib/unistr/u32-strpbrk.c: Likewise.
31844         * lib/unistr/u32-strrchr.c: Likewise.
31845         * lib/unistr/u32-strspn.c: Likewise.
31846         * lib/unistr/u32-strstr.c: Likewise.
31847         * lib/unistr/u32-strtok.c: Likewise.
31848         * lib/unistr/u32-to-u16.c: Likewise.
31849         * lib/unistr/u32-to-u8.c: Likewise.
31850         * lib/unistr/u32-uctomb.c: Likewise.
31851         * lib/unistr/u8-check.c: Likewise.
31852         * lib/unistr/u8-chr.c: Likewise.
31853         * lib/unistr/u8-cmp.c: Likewise.
31854         * lib/unistr/u8-cpy-alloc.c: Likewise.
31855         * lib/unistr/u8-cpy.c: Likewise.
31856         * lib/unistr/u8-endswith.c: Likewise.
31857         * lib/unistr/u8-mblen.c: Likewise.
31858         * lib/unistr/u8-mbsnlen.c: Likewise.
31859         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31860         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31861         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31862         * lib/unistr/u8-mbtouc.c: Likewise.
31863         * lib/unistr/u8-mbtoucr.c: Likewise.
31864         * lib/unistr/u8-move.c: Likewise.
31865         * lib/unistr/u8-next.c: Likewise.
31866         * lib/unistr/u8-prev.c: Likewise.
31867         * lib/unistr/u8-set.c: Likewise.
31868         * lib/unistr/u8-startswith.c: Likewise.
31869         * lib/unistr/u8-stpcpy.c: Likewise.
31870         * lib/unistr/u8-stpncpy.c: Likewise.
31871         * lib/unistr/u8-strcat.c: Likewise.
31872         * lib/unistr/u8-strchr.c: Likewise.
31873         * lib/unistr/u8-strcmp.c: Likewise.
31874         * lib/unistr/u8-strcpy.c: Likewise.
31875         * lib/unistr/u8-strcspn.c: Likewise.
31876         * lib/unistr/u8-strdup.c: Likewise.
31877         * lib/unistr/u8-strlen.c: Likewise.
31878         * lib/unistr/u8-strmblen.c: Likewise.
31879         * lib/unistr/u8-strmbtouc.c: Likewise.
31880         * lib/unistr/u8-strncat.c: Likewise.
31881         * lib/unistr/u8-strncmp.c: Likewise.
31882         * lib/unistr/u8-strncpy.c: Likewise.
31883         * lib/unistr/u8-strnlen.c: Likewise.
31884         * lib/unistr/u8-strpbrk.c: Likewise.
31885         * lib/unistr/u8-strrchr.c: Likewise.
31886         * lib/unistr/u8-strspn.c: Likewise.
31887         * lib/unistr/u8-strstr.c: Likewise.
31888         * lib/unistr/u8-strtok.c: Likewise.
31889         * lib/unistr/u8-to-u16.c: Likewise.
31890         * lib/unistr/u8-to-u32.c: Likewise.
31891         * lib/unistr/u8-uctomb-aux.c: Likewise.
31892         * lib/unistr/u8-uctomb.c: Likewise.
31893         * lib/unitypes.h: Likewise.
31894         * lib/uniwidth.h: Likewise.
31895         * lib/uniwidth/cjk.h: Likewise.
31896         * lib/uniwidth/u16-strwidth.c: Likewise.
31897         * lib/uniwidth/u16-width.c: Likewise.
31898         * lib/uniwidth/u32-strwidth.c: Likewise.
31899         * lib/uniwidth/u32-width.c: Likewise.
31900         * lib/uniwidth/u8-strwidth.c: Likewise.
31901         * lib/uniwidth/u8-width.c: Likewise.
31902         * lib/uniwidth/width.c: Likewise.
31903
31904 2007-10-07  Bruno Haible  <bruno@clisp.org>
31905
31906         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31907         The file is still under LGPL (see modules/inttypes).
31908
31909 2007-10-06  Bruno Haible  <bruno@clisp.org>
31910
31911         * modules/trunc (Dependencies): Add 'extensions'.
31912         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31913         Reported by Ben Pfaff <blp@gnu.org>.
31914
31915 2007-10-06  Bruno Haible  <bruno@clisp.org>
31916
31917         * modules/freopen-tests: New file.
31918         * tests/test-freopen.c: New file.
31919
31920         * modules/fopen-tests: New file.
31921         * tests/test-fopen.c: New file.
31922
31923         * modules/fopen: New file.
31924         * lib/fopen.c: New file.
31925         * m4/fopen.m4: New file.
31926         * modules/freopen: New file.
31927         * lib/freopen.c: New file.
31928         * m4/freopen.m4: New file.
31929         * lib/stdio.in.h (fopen, freopen): New declarations.
31930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31931         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31932         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31933         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31934         * doc/functions/fopen.texi: Mention the 'fopen' module.
31935         * doc/functions/freopen.texi: Mention the 'freopen' module.
31936
31937 2007-10-06  Bruno Haible  <bruno@clisp.org>
31938
31939         * modules/open-tests: New file.
31940         * tests/test-open.c: New file.
31941
31942         * modules/open: New file.
31943         * lib/open.c: New file.
31944         * m4/open.m4: New file.
31945         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31946         lib/open.c does.
31947         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31948         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31949         macros.
31950         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31951         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31952         REPLACE_OPEN.
31953         * doc/functions/open.texi: Mention the 'open' module.
31954
31955 2007-10-04  Bruno Haible  <bruno@clisp.org>
31956
31957         * modules/ceill-tests: New file.
31958         * tests/test-ceill.c: New file.
31959
31960         * modules/ceill: New file.
31961         * lib/ceill.c: Replace entire file.
31962         * m4/ceill.m4: New file.
31963         * lib/math.in.h (ceill): Replace declaration.
31964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31965         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31966         * doc/functions/ceill.texi: Mention the 'ceill' module.
31967         * modules/mathl (Files): Remove lib/ceill.c.
31968         (Depends-on): Add ceill.
31969
31970 2007-10-04  Bruno Haible  <bruno@clisp.org>
31971
31972         * modules/ceilf-tests: New file.
31973         * tests/test-ceilf.c: New file.
31974
31975         * modules/ceilf: New file.
31976         * lib/ceil.c: New file.
31977         * lib/ceilf.c: New file.
31978         * m4/ceilf.m4: New file.
31979         * lib/math.in.h (ceilf): New declaration.
31980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31981         HAVE_DECL_CEILF.
31982         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31983         HAVE_DECL_CEILF.
31984         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31985
31986 2007-10-04  Bruno Haible  <bruno@clisp.org>
31987
31988         * modules/floorl-tests: New file.
31989         * tests/test-floorl.c: New file.
31990
31991         * modules/floorl: New file.
31992         * lib/floorl.c: Replace entire file.
31993         * m4/floorl.m4: New file.
31994         * lib/math.in.h (floorl): Replace declaration.
31995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31996         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31997         * doc/functions/floorl.texi: Mention the 'floorl' module.
31998         * modules/mathl (Files): Remove lib/floorl.c.
31999         (Depends-on): Add floorl.
32000
32001 2007-10-04  Bruno Haible  <bruno@clisp.org>
32002
32003         * modules/floorf-tests: New file.
32004         * tests/test-floorf.c: New file.
32005
32006         * modules/floorf: New file.
32007         * lib/floor.c: New file.
32008         * lib/floorf.c: New file.
32009         * m4/floorf.m4: New file.
32010         * lib/math.in.h (floorf): New declaration.
32011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
32012         HAVE_DECL_FLOORF.
32013         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
32014         HAVE_DECL_FLOORF.
32015         * doc/functions/floorf.texi: Mention the 'floorf' module.
32016
32017 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
32018             Bruno Haible  <bruno@clisp.org>
32019
32020         Advertise for the Git server instead of the CVS server.
32021         * doc/gnulib-intro.texi (Steady Development): Mention the Git
32022         repository instead of the CVS one.
32023         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
32024         about all VCS systems generically.
32025         * doc/gnulib.texi (Introduction): Capitalize `Git'.
32026
32027 2007-10-04  Bruno Haible  <bruno@clisp.org>
32028
32029         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
32030         means.
32031         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
32032
32033 2007-10-04  Bruno Haible  <bruno@clisp.org>
32034
32035         * modules/truncl-tests: New file.
32036         * tests/test-truncl.c: New file.
32037
32038         * modules/truncl: New file.
32039         * lib/truncl.c: New file.
32040         * m4/truncl.m4: New file.
32041         * lib/math.in.h (truncl): New declaration.
32042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
32043         HAVE_DECL_TRUNCL.
32044         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
32045         HAVE_DECL_TRUNCL.
32046         * doc/functions/truncl.texi: Mention the 'truncl' module.
32047
32048 2007-10-04  Bruno Haible  <bruno@clisp.org>
32049
32050         * modules/truncf-tests: New file.
32051         * tests/test-truncf.c: New file.
32052
32053         * modules/truncf: New file.
32054         * lib/trunc.c: Make paramerizable through USE_* macros.
32055         * lib/truncf.c: New file.
32056         * m4/truncf.m4: New file.
32057         * lib/math.in.h (truncf): New declaration.
32058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
32059         HAVE_DECL_TRUNCF.
32060         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
32061         HAVE_DECL_TRUNCF.
32062         * doc/functions/truncf.texi: Mention the 'truncf' module.
32063
32064 2007-10-03  Bruno Haible  <bruno@clisp.org>
32065
32066         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32067         augmentation also for tests modules.
32068         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
32069         * modules/atexit-tests (Makefile.am): Likewise.
32070         * modules/binary-io-tests (Makefile.am): Likewise.
32071         * modules/c-strcase-tests (Makefile.am): Likewise.
32072         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
32073         * modules/canonicalize-tests (Makefile.am): Likewise.
32074         * modules/closein-tests (Makefile.am): Likewise.
32075         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32076         * modules/freadahead-tests (Makefile.am): Likewise.
32077         * modules/fseek-tests (Makefile.am): Likewise.
32078         * modules/fseeko-tests (Makefile.am): Likewise.
32079         * modules/ftell-tests (Makefile.am): Likewise.
32080         * modules/ftello-tests (Makefile.am): Likewise.
32081         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
32082         * modules/isnanl-tests (Makefile.am): Likewise.
32083         * modules/lseek-tests (Makefile.am): Likewise.
32084         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32085         * modules/mbscasestr-tests (Makefile.am): Likewise.
32086         * modules/mbschr-tests (Makefile.am): Likewise.
32087         * modules/mbscspn-tests (Makefile.am): Likewise.
32088         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32089         * modules/mbspbrk-tests (Makefile.am): Likewise.
32090         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32091         * modules/mbsrchr-tests (Makefile.am): Likewise.
32092         * modules/mbsspn-tests (Makefile.am): Likewise.
32093         * modules/mbsstr-tests (Makefile.am): Likewise.
32094         * modules/printf-posix-tests (Makefile.am): Likewise.
32095         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32096         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32097         * modules/tsearch-tests (Makefile.am): Likewise.
32098         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32099         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32100         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32101         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32102         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32103         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32104         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32105         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32106         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32107         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32108         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32109         * modules/xstrtol-tests (Makefile.am): Likewise.
32110         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32111         * modules/yesno-tests (Makefile.am): Likewise.
32112
32113 2007-10-03  Bruno Haible  <bruno@clisp.org>
32114
32115         * modules/trunc-tests: New file.
32116         * tests/test-trunc.c: New file.
32117
32118         * modules/trunc: New file.
32119         * lib/trunc.c: New file.
32120         * m4/trunc.m4: New file.
32121         * lib/math.in.h (trunc): New declaration.
32122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32123         HAVE_DECL_TRUNC.
32124         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32125         HAVE_DECL_TRUNC.
32126         * doc/functions/trunc.texi: Mention the 'trunc' module.
32127
32128 2007-10-03  Bruno Haible  <bruno@clisp.org>
32129
32130         * tests/test-fpending.c: New file, mostly copied
32131         from coreutils/lib/t-fpending.c.
32132         * modules/fpending-tests: New file.
32133
32134 2007-10-03  Bruno Haible  <bruno@clisp.org>
32135
32136         Port the stdio extensions to QNX (untested).
32137         * lib/fseterr.c (fseterr): Add support for QNX.
32138         * lib/fbufmode.c (fbufmode): Likewise.
32139         * lib/freadable.c (freadable): Likewise.
32140         * lib/fwritable.c (fwritable): Likewise.
32141         * lib/freading.c (freading): Likewise.
32142         * lib/fwriting.c (fwriting): Likewise.
32143         * lib/freadahead.c (freadahed): Likewise.
32144         * lib/fpurge.c (fpurge): Likewise.
32145         * lib/fseeko.c (rpl_fseeko): Likewise.
32146
32147 2007-10-03  Bruno Haible  <bruno@clisp.org>
32148             Jim Meyering  <jim@meyering.net>
32149             Eric Blake  <ebb9@byu.net>
32150
32151         * doc/relocatable.texi: Use @command instead of @program.
32152
32153 2007-10-02  Jim Meyering  <jim@meyering.net>
32154
32155         Perform one more "_.h" -> ".in.h" substitution.
32156         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32157         instead of unistd_.h here, too.
32158
32159 2007-10-01  Bruno Haible  <bruno@clisp.org>
32160
32161         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32162         Needed for the alloca-opt module.
32163
32164 2007-09-30  Bruno Haible  <bruno@clisp.org>
32165
32166         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32167         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32168         alloca_.h.
32169         * lib/argz.in.h: Renamed from lib/argz_.h.
32170         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32171         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32172         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32173         byteswap_.h.
32174         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32175         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32176         dirent_.h.
32177         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32178         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32179         fcntl_.h.
32180         * lib/float.in.h: Renamed from lib/float_.h.
32181         * modules/float (Files, Makefile.am): Use float.in.h instead of
32182         float_.h.
32183         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32184         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32185         fnmatch_.h.
32186         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32187         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32188         getopt_.h.
32189         * lib/glob.in.h: Renamed from lib/glob_.h.
32190         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32191         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32192         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32193         iconv_.h.
32194         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32195         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32196         inttypes_.h.
32197         * lib/locale.in.h: Renamed from lib/locale_.h.
32198         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32199         locale_.h.
32200         * lib/math.in.h: Renamed from lib/math_.h.
32201         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32202         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32203         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32204         of netinet_in_.h. Add dependency.
32205         * lib/poll.in.h: Renamed from lib/poll_.h.
32206         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32207         * lib/search.in.h: Renamed from lib/search_.h.
32208         * modules/search (Files, Makefile.am): Use search.in.h instead of
32209         search_.h.
32210         * lib/signal.in.h: Renamed from lib/signal_.h.
32211         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32212         _signal.h.
32213         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32214         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32215         stdbool_.h.
32216         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32217         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32218         stdint_.h.
32219         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32220         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32221         stdio_.h.
32222         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32223         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32224         stdlib_.h.
32225         * lib/string.in.h: Renamed from lib/string_.h.
32226         * modules/string (Files, Makefile.am): Use string.in.h instead of
32227         string_.h.
32228         * doc/gnulib-tool.texi (Initial import): Update.
32229         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32230         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32231         of sys_select_.h. Add dependency.
32232         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32233         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32234         of sys_socket_.h.
32235         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32236         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32237         sys_stat_.h.
32238         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32239         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32240         sys_time_.h.
32241         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32242         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32243         sysexits_.h.
32244         * lib/time.in.h: Renamed from lib/time_.h.
32245         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32246         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32247         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32248         unistd_.h.
32249         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32250         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32251         wchar_.h.
32252         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32253         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32254         wctype_.h.
32255         * build-aux/bootstrap (slurp): Update.
32256         * lib/.cppi-disable: Update.
32257
32258 2007-09-30  Bruno Haible  <bruno@clisp.org>
32259
32260         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32261         Needed on BeOS.
32262
32263 2007-09-30  Bruno Haible  <bruno@clisp.org>
32264
32265         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32266
32267 2007-09-29  Bruno Haible  <bruno@clisp.org>
32268
32269         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32270
32271 2007-09-29  Bruno Haible  <bruno@clisp.org>
32272
32273         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32274         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32275         * build-aux/install-reloc: Compile also areadlink.c.
32276         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32277
32278 2007-09-29  Bruno Haible  <bruno@clisp.org>
32279
32280         * gnulib-tool (func_emit_initmacro_done): Indentation.
32281
32282 2007-09-29  Bruno Haible  <bruno@clisp.org>
32283
32284         * README: Add CVS checkout update instructions.
32285         Info from Bob Proulx <bob@proulx.com>.
32286
32287 2007-09-28  Eric Blake  <ebb9@byu.net>
32288
32289         Provide move-if-change.
32290         * build-aux/move-if-change: New file, based on best practice
32291         rather than any canonical upstream location.
32292
32293 2007-09-28  Jim Meyering  <jim@meyering.net>
32294
32295         Fix canonicalize loop-detection corner case.
32296         Do not attempt to stat the symlink values stored via seen_triple.
32297         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32298         on linux-2.6.18, (but not 2.6.22).
32299         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32300         triple_compare.  The former compares dev,ino,filename, while the latter
32301         would actually stat dirname(filename) when dev and ino were equal.
32302         * lib/hash-triple.c: Install <string.h>.
32303         (STREQ): Define.
32304         (triple_compare_ino_str): New function.
32305         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32306
32307 2007-09-28  Eric Blake  <ebb9@byu.net>
32308
32309         Enforce that AC_REPLACE_FUNCS files exist.
32310         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32311         override check for typos.
32312
32313         Fix test-closein on Solaris 10.
32314         * tests/test-closein.c (main): Don't assume stdin can be inherited
32315         closed on all systems.
32316         * tests/test-closein.sh: Likewise.
32317         Reported by Piotr Tarnowski.
32318
32319 2007-09-28  Jim Meyering  <jim@meyering.net>
32320
32321         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32322
32323 2007-09-27  Jim Meyering  <jim@meyering.net>
32324
32325         canonicalize: Avoid a false-positive cycle failure.
32326         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32327         Sort.  Remove cycle-check.
32328         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32329         not cycle-check.h.
32330         (seen_triple): New function.
32331         (canonicalize_filename_mode): Use it instead of cycle-check.
32332         * tests/test-canonicalize.c: Add a test for this bug.
32333         * tests/test-canonicalize.sh: Set up and run the test.
32334
32335         New module, file-set, from coreutils.
32336         * modules/file-set: Define it.
32337         * lib/file-set.c, lib/file-set.h: Implement.
32338
32339         New module, hash-triple, from coreutils.
32340         * modules/hash-triple: Define it.
32341         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32342
32343 2007-09-25  Eric Blake  <ebb9@byu.net>
32344
32345         Fix strerror on Interix.
32346         * lib/string_.h (strerror): Declare replacement.
32347         * doc/functions/strerror.texi (strerror): Document the Interix
32348         shortcoming.
32349         * modules/string (Makefile.am): Support new hooks.
32350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32351         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32352         gl_FUNC_STRERROR_SEPARATE.
32353         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32354         * lib/strerror.c (rpl_strerror): Provide replacement.
32355         * modules/strerror (Depends-on): Add string.
32356         (configure.ac): Detect use of module.
32357         * tests/test-strerror.c: New file.
32358         * modules/strerror-tests: New test module.
32359         * modules/argp (Depends-on): Add strerror.
32360         * modules/error (Depends-on): Likewise.
32361         Reported by Martin Koeppe.
32362
32363 2007-09-24  Bruno Haible  <bruno@clisp.org>
32364
32365         * README: Update git instructions.
32366
32367 2007-09-24  Eric Blake  <ebb9@byu.net>
32368
32369         Revert fpending breakage from 2007-09-08.
32370         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32371         __fpending.c.
32372
32373 2007-09-24  Jim Meyering  <jim@meyering.net>
32374
32375         filenamecat.c: Add a test.
32376         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32377         showing how the function works when DIR is the empty string.
32378
32379 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32380
32381         * tests/test-canonicalize.sh: Turn on executable bit.
32382
32383 2007-09-19  Eric Blake  <ebb9@byu.net>
32384
32385         * README: Update CVS instructions.
32386
32387 2007-09-18  Bruno Haible  <bruno@clisp.org>
32388
32389         * modules/areadlink: New file.
32390         * lib/areadlink.h (areadlink): New declaration.
32391         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32392
32393 2007-09-17  Jim Meyering  <jim@meyering.net>
32394
32395         * lib/savewd.c (ESTALE) [!defined]: Define.
32396         Reported to be required on Interix by Martin Koeppe.
32397
32398 2007-09-17  Bruno Haible  <bruno@clisp.org>
32399
32400         * gnulib-tool (func_version): Use $version.
32401
32402 2007-09-16  Bruno Haible  <bruno@clisp.org>
32403
32404         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32405         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32406         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32407         Reported by Greg Schafer <gschafer@zip.com.au>.
32408
32409 2007-09-15  Bruno Haible  <bruno@clisp.org>
32410
32411         * gnulib-tool (sed): Try a little harder to make bash understand the
32412         alias.
32413         Reported by Bruce Korb <bruce.korb@gmail.com>.
32414
32415 2007-09-13  Eric Blake  <ebb9@byu.net>
32416
32417         * ChangeLog: Remove conflict markers.
32418
32419 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32420
32421         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32422         Reported by Bruno Haible <bruno@clisp.org>.
32423
32424 2007-09-12  Bruno Haible  <bruno@clisp.org>
32425
32426         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32427         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32428         is not defined.
32429
32430 2007-09-12  Eric Blake  <ebb9@byu.net>
32431
32432         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32433         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32434         Autoconf definition.
32435         * modules/euidaccess (Depends-on): Add extensions, for
32436         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32437         * modules/fnmatch (Depends-on): Likewise.
32438         * modules/getaddrinfo (Depends-on): Likewise.
32439         * modules/getdelim (Depends-on): Likewise.
32440         * modules/getline (Depends-on): Likewise.
32441         * modules/getsubopt (Depends-on): Likewise.
32442         * modules/gettext (Depends-on): Likewise.
32443         * modules/group-member (Depends-on): Likewise.
32444         * modules/mbchar (Depends-on): Likewise.
32445         * modules/memmem (Depends-on): Likewise.
32446         * modules/mempcpy (Depends-on): Likewise.
32447         * modules/memrchr (Depends-on): Likewise.
32448         * modules/pagealign_alloc (Depends-on): Likewise.
32449         * modules/readutmp (Depends-on): Likewise.
32450         * modules/stpcpy (Depends-on): Likewise.
32451         * modules/stpncpy (Depends-on): Likewise.
32452         * modules/strchrnul (Depends-on): Likewise.
32453         * modules/strndup (Depends-on): Likewise.
32454         * modules/strsep (Depends-on): Likewise.
32455         * modules/strverscmp (Depends-on): Likewise.
32456         * modules/vasprintf (Depends-on): Likewise.
32457         * modules/wcwidth (Depends-on): Likewise.
32458         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32459         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32460         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32461         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32462         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32463         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32464         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32465         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32466         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32467         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32468         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32469         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32470         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32471         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32472         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32473         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32474         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32475         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32476         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32477         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32478         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32479         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32480         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32481         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32482         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32483         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32484         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32485         so that lock.m4 can be used in gettext without extensions module.
32486
32487 2007-09-11  Bruno Haible  <bruno@clisp.org>
32488
32489         * m4/isc-posix.m4: Remove file.
32490         Suggested by Eric Blake.
32491
32492 2007-09-11  Eric Blake  <ebb9@byu.net>
32493
32494         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32495
32496 2007-09-10  Bruno Haible  <bruno@clisp.org>
32497
32498         * posix-modules: Fix typo in error message.
32499         Reported by Matt <mkraai@beckman.com>.
32500
32501 2007-09-09  Bruno Haible  <bruno@clisp.org>
32502
32503         * doc/functions/getdelim.texi: Update list of platforms lacking the
32504         function.
32505         * doc/functions/getline.texi: Likewise.
32506
32507 2007-09-09  Jim Meyering  <jim@meyering.net>
32508
32509         * lib/hash.c (hash_initialize): Detect calloc failure.
32510         Reported by Bruno Haible.
32511
32512 2007-09-09  Bruno Haible  <bruno@clisp.org>
32513
32514         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32515         malloc or realloc fails.
32516
32517 2007-09-09  Bruno Haible  <bruno@clisp.org>
32518
32519         * modules/getcwd (Depends-on): Add malloc-posix.
32520         * modules/glob (Depends-on): Likewise.
32521         * modules/putenv (Depends-on): Likewise.
32522         * modules/strdup (Depends-on): Likewise.
32523         * modules/getdelim (Depends-on): Add realloc-posix.
32524         * modules/read-file (Depends-on): Likewise.
32525
32526 2007-09-09  Bruno Haible  <bruno@clisp.org>
32527
32528         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32529         (gl_FUNC_MALLOC_POSIX): Require it.
32530         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32531         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32532         * modules/realloc (Files): Add m4/malloc.m4.
32533         * modules/calloc (Files): Likewise.
32534
32535 2007-09-09  Bruno Haible  <bruno@clisp.org>
32536
32537         * modules/malloc-posix: New file.
32538         * modules/malloc (Depends-on): Add malloc-posix.
32539         * lib/malloc.c: Include errno.h.
32540         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32541         and a POSIX-compatible malloc into a single function. Set ENOMEM
32542         when returning NULL.
32543         * m4/malloc.m4: New file.
32544         * doc/functions/malloc.texi: Mention the malloc-posix module.
32545         * lib/stdlib_.h (malloc): New declaration.
32546         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32547         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32548         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32549         and HAVE_MALLOC_POSIX.
32550
32551 2007-09-09  Bruno Haible  <bruno@clisp.org>
32552
32553         * modules/realloc-posix: New file.
32554         * modules/realloc (Depends-on): Add realloc-posix.
32555         * lib/realloc.c: Include errno.h.
32556         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32557         and a POSIX-compatible realloc into a single function. Set ENOMEM
32558         when returning NULL.
32559         * m4/realloc.m4: New file.
32560         * doc/functions/realloc.texi: Mention the realloc-posix module.
32561         * lib/stdlib_.h (realloc): New declaration.
32562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32563         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32564         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32565         and HAVE_REALLOC_POSIX.
32566
32567 2007-09-09  Bruno Haible  <bruno@clisp.org>
32568
32569         * modules/calloc-posix: New file.
32570         * modules/calloc (Depends-on): Add calloc-posix.
32571         * lib/calloc.c: Include errno.h.
32572         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32573         and a POSIX-compatible calloc into a single function. Set ENOMEM
32574         when returning NULL.
32575         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32576         * doc/functions/calloc.texi: Mention the calloc-posix module.
32577         * lib/stdlib_.h (calloc): New declaration.
32578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32579         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32580         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32581         and HAVE_CALLOC_POSIX.
32582
32583 2007-09-09  Bruno Haible  <bruno@clisp.org>
32584
32585         Allow for modules to show an arbitrary notice.
32586         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32587         * gnulib-tool: New option --extract-notice.
32588         (func_usage): Document it.
32589         (sed_extract_prog): Update.
32590         (func_get_notice): New function.
32591         (func_modules_notice): New function.
32592         (func_import, func_create_testdir): Invoke it.
32593         Suggested by Jim Meyering.
32594
32595 2007-09-09  Bruno Haible  <bruno@clisp.org>
32596
32597         * gnulib-tool: New options --verbose, --quiet.
32598         (func_usage): Document them.
32599         (verbose): New variable.
32600         (func_execute_command): New function.
32601         (func_import): Don't show the module list and the file list if
32602         $verbose < 0.
32603         (func_create_testdir): Likewise. Use func_execute_command.
32604         (func_create_megatestdir): Use func_execute_command.
32605
32606 2007-09-08  Bruno Haible  <bruno@clisp.org>
32607
32608         * gnulib-tool (func_import): Prefer rsync over wget when available,
32609         for fetching the PO files.
32610
32611 2007-09-08  Bruno Haible  <bruno@clisp.org>
32612
32613         * posix-modules: New file. Portions copied from gnulib-tool.
32614         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32615
32616 2007-09-08  Jim Meyering  <jim@meyering.net>
32617
32618         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32619         * lib/fpending.h: Rename from __fpending.h.
32620         * lib/fpending.c: Rename from __fpending.c.
32621         Include "fpending.h", not "__fpending.h".
32622         * lib/__fpending.h, lib/__fpending.c: Remove files.
32623         * modules/fpending (Files): Reflect new file names.
32624         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32625
32626 2007-09-08  Bruno Haible  <bruno@clisp.org>
32627
32628         * m4/inttypes-h.m4: Remove stub file.
32629
32630 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32631
32632         * doc/headers/stdint.texi: Discuss #include_next issue.
32633
32634 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32635
32636         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32637
32638 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32639
32640         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32641         in variable name.
32642
32643 2007-09-03  Jim Meyering  <jim@meyering.net>
32644
32645         New module: git-version-gen.
32646         * modules/git-version-gen: New file.
32647
32648         Import changes from coreutils for bootstrap script.
32649
32650         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32651
32652         bootstrap: uses rsync to download the .po files
32653         * build-aux/bootstrap (po_download_command_format): New global.
32654         (download_po_files): Use rsync.
32655         (update_po_files): Don't remove .po files after download,
32656         so future rsync runs can take advantage of the copies.
32657
32658         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32659
32660         Solve the unnecessary-.po-file-regeneration problem once and for all.
32661         * build-aux/bootstrap (download_po_files): New function, renamed from
32662         get_translations.  Now, downloads, but doesn't update LINGUAS.
32663         (update_po_files): New function.
32664
32665         bootstrap: Ignore more.
32666         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32667         uniwidth to e.g., lib/.gitignore.
32668         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32669
32670         * build-aux/bootstrap: New setting: vc_ignore.
32671         (insert_sorted_if_absent): Create $file if absent.
32672         Adapt to new, possibly empty, list: $vc_ignore.
32673
32674         bootstrap: generate more ignorable names
32675         * build-aux/bootstrap (slurp): When generating ignorable names,
32676         also map .sin to .sed, .gperf to .c, and .y to .c.
32677
32678 2007-09-03  Jim Meyering  <jim@meyering.net>
32679
32680         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32681         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32682
32683 2007-09-02  Bruno Haible  <bruno@clisp.org>
32684
32685         Fix mis-recognition of 'mcs' on QNX 6.
32686         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32687         output contains the string "Mono".
32688         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32689         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32690
32691 2007-09-01  Bruno Haible  <bruno@clisp.org>
32692
32693         Fix collision between uniwidth/* and linebreak modules.
32694         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32695         u32_width): Remove declarations.
32696         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32697         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32698         streq3, streq2, streq1, streq0): Remove functions.
32699         (STREQ): Remove macro.
32700         (is_cjk_encoding): Remove function.
32701         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32702         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32703         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32704         * NEWS: Document the change.
32705
32706 2007-09-01  Bruno Haible  <bruno@clisp.org>
32707
32708         * lib/streq.h: Add double-inclusion guard.
32709
32710 2007-09-01  Karl Berry  <karl@gnu.org>
32711
32712         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32713
32714 2007-08-28  Jim Meyering  <jim@meyering.net>
32715
32716         Rename mreadlink_with_size to areadlink_with_size.
32717         * NEWS: Document the change.
32718         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32719         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32720         * lib/mreadlink.h: Rename this to...
32721         * lib/areadlink.h: ...this.
32722         * modules/mreadlink-with-size: Rename this to...
32723         * modules/areadlink-with-size: ...this.
32724         * lib/canonicalize.c: Reflect the renaming.
32725         * modules/canonicalize: Likewise.
32726
32727 2007-08-26  Bruno Haible  <bruno@clisp.org>
32728
32729         * gnulib-tool (func_import): When deciding which files to remove,
32730         consider also dangling symbolic links.
32731         Reported by Eric Blake.
32732
32733 2007-08-26  Bruno Haible  <bruno@clisp.org>
32734
32735         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32736
32737 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32738
32739         * lib/readline.c: Don't include getline.h, the prototype is now
32740         found in stdio.h.
32741
32742 2007-08-23  Jim Meyering  <jim@meyering.net>
32743
32744         Getdelim touchup.
32745         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32746         around the funlockfile call, since funlockfile never sets errno.
32747         Don't set errno upon failed realloc.
32748
32749 2007-08-22  Eric Blake  <ebb9@byu.net>
32750
32751         Getline touchups.
32752         * lib/getdelim.c (getdelim): Revert regression that required *n to
32753         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32754         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32755         getdelim, rather than whether implementation is missing.
32756         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32757         * lib/stdio_.h (getline): Also declare if replacement is
32758         required.
32759         * doc/functions/getdelim.texi: New file.
32760         * doc/functions/getline.texi: Likewise.
32761         * doc/gnulib.texi (Function Substitutes): Add new files.
32762         Reported by Bruno Haible.
32763
32764 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32765
32766         * users.txt: Add Guile.
32767
32768 2007-08-22  Eric Blake  <ebb9@byu.net>
32769
32770         * tests/test-getdelim.c (main): Use remove, not unlink.
32771         * tests/test-getline.c (main): Likewise.
32772
32773         Move getline and getdelim into stdio.h, per POSIX 200x.
32774         * modules/getline (Files): Remove getline.h.
32775         (Depends-on): Add stdio.
32776         (configure.ac): Add module indicator.
32777         * modules/getdelim (Files): Remove getdelim.h.
32778         (Depends-on): Add stdio.
32779         (configure.ac): Add module indicator.
32780         * modules/stdio (Makefile.am): Work with new indicators.
32781         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32782         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32783         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32784         * lib/getdelim.h: Delete.
32785         * lib/getline.h: Delete.
32786         * lib/stdio_.h (getdelim, getline): Declare.
32787         * modules/getdelim-tests: New module.
32788         * modules/getline-tests: Likewise.
32789         * tests/test-getdelim.c: New file.
32790         * tests/test-getline.c: Likewise.
32791         * NEWS: Document the change.
32792         * lib/getline.c: Update choice of header.
32793         * lib/csharpcomp.c: Likewise.
32794         * lib/getpass.c: Likewise.
32795         * lib/javacomp.c: Likewise.
32796         * lib/javaversion.c: Likewise.
32797         * lib/yesno.c: Likewise.
32798         * lib/getdelim.c: Likewise.
32799         (getdelim): Set errno on failure, and avoid memory leak.
32800
32801 2007-08-19  Bruno Haible  <bruno@clisp.org>
32802
32803         * modules/closein (Depends-on): Add freadahead.
32804         * lib/closein.c: Include freadahead.h.
32805         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32806         is zero.
32807
32808 2007-08-19  Bruno Haible  <bruno@clisp.org>
32809
32810         * modules/freadahead-tests: New file.
32811         * tests/test-freadahead.sh: New file.
32812         * tests/test-freadahead.c: New file.
32813
32814         * modules/freadahead: New file.
32815         * lib/freadahead.h: New file.
32816         * lib/freadahead.c: New file.
32817         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32818         fbufmode, fpurge, freadable, fwritable.
32819
32820 2007-08-19  Eric Blake  <ebb9@byu.net>
32821
32822         Test yesno in combination with closein.
32823         * lib/yesno.c (yesno): Document use of stdin.
32824         * modules/yesno-tests (Files): New module.
32825         * tests/test-yesno.c (main): New file.
32826         * tests/test-yesno.sh: Likewise.
32827
32828 2007-08-19  Bruno Haible  <bruno@clisp.org>
32829
32830         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32831         * lib/fseeko.c (rpl_fseeko): Likewise.
32832         * lib/fseterr.c (fseterr): Likewise.
32833
32834 2007-08-19  Bruno Haible  <bruno@clisp.org>
32835
32836         * tests/test-lseek.c (main): Disable a test for BeOS.
32837         * doc/functions/lseek.texi: Document the BeOS bug.
32838
32839 2007-08-19  Bruno Haible  <bruno@clisp.org>
32840             Eric Blake  <ebb9@byu.net>
32841
32842         * lib/lseek.c: Include <sys/stat.h>.
32843         (rpl_lseek): Add workaround code also for Unix platforms.
32844         Needed for BeOS.
32845         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32846         * doc/functions/lseek.texi: Document BeOS definiency.
32847
32848 2007-08-18  Bruno Haible  <bruno@clisp.org>
32849
32850         * modules/fstrcmp-tests: New file.
32851         * tests/test-fstrcmp.c: New file.
32852
32853 2007-08-18  Bruno Haible  <bruno@clisp.org>
32854
32855         * modules/fstrcmp: New file, from GNU gettext with modifications.
32856         * lib/fstrcmp.h: New file, from GNU gettext.
32857         * lib/fstrcmp.c: New file, from GNU gettext.
32858         * MODULES.html.sh (String handling): Add fstrcmp.
32859
32860 2007-08-18  Bruno Haible  <bruno@clisp.org>
32861
32862         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32863         'bool'.
32864         (diag, compareseq): Remove const from the ctxt argument.
32865         (USE_HEURISTIC): Undefine at the end.
32866
32867 2007-08-18  Jim Meyering  <jim@meyering.net>
32868
32869         New file: lib/idcache.h
32870         * NEWS: Mention the addition.
32871         * modules/idcache (Files): Add lib/idcache.h
32872         * lib/idcache.c: Include "idcache.h".
32873         Don't include <sys/types.h>.
32874         Add a FIXME comment.
32875         Move file-scoped "static" declarations to the top.
32876         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32877
32878 2007-08-17  Bruno Haible  <bruno@clisp.org>
32879         and Paul Eggert  <eggert@cs.ucla.edu>
32880
32881         * MODULES.html.sh: Add diffseq.
32882         * modules/diffseq: New file.
32883         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32884         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32885
32886 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32887
32888         Import changes from coreutils for bootstrap script.
32889
32890         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32891
32892         * build-aux/bootstrap (slurp): Work even in environments where
32893         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32894         current code does not slurp files whose names start with ".", and
32895         this looks like it might be a troublesome area.
32896
32897         2007-07-11  Jim Meyering  <jim@meyering.net>
32898
32899         If there's a GPL vN copyright comment, require that N == 3.
32900
32901         2007-07-08  Jim Meyering  <jim@meyering.net>
32902
32903         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32904         * build-aux/bootstrap (mam_template): Move definition out of loop.
32905
32906         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32907
32908         * build-aux/bootstrap (symlink_to_dir): Rename function from
32909         symlink_to_gnulib.  Add a directory parameter.  Update all
32910         callers.
32911         (cp_mark_as_generated): Also check for -- and link to -- files in
32912         gl/.
32913
32914         2007-07-08  Jim Meyering  <jim@meyering.net>
32915
32916         Adapt to deeper hierarchy in gnulib.
32917         * build-aux/bootstrap (symlink_to_dir): If the destination
32918         directory doesn't exist, create it. This is required at least for
32919         "lib/uniwidth/cjk.h".
32920
32921         2007-05-15  Jim Meyering  <jim@meyering.net>
32922
32923         * build-aux/bootstrap: Now that generated Makefile.am files
32924         are no longer under version control, they must be created at
32925         bootstrap time.
32926
32927 2007-08-14  Ben Pfaff  <blp@gnu.org>
32928
32929         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32930
32931 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32932
32933         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32934         given the changes below.
32935         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32936         even on hosts that have padding bits beyond the supported 64.
32937
32938 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32939
32940         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32941         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32942         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32943         depends on it.
32944         (xstrtol_error): Remove.
32945         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32946         but with a different signature.
32947         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32948         * lib/xstrtol-error.c: Include exitfail.h.
32949         (xstrtol_fatal): New function, with a different signature from the
32950         old xstrtol_error, so that the caller need not worry about passing
32951         in an exit status, or about storage management of the option argument.
32952         (xstrtol_error): Now a static function.  Redo signature to
32953         implement xstrtol_fatal.  Output the correct number of hyphens in
32954         front of the option so that the caller need not worry about
32955         storage management.
32956         (N_): New macro.
32957         (_): Remove; not used now.
32958         * modules/xstrtol: Depend on getopt.
32959         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32960         of old STRTOL_FATAL_ERROR macro.
32961         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32962         of test program.
32963         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32964         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32965
32966 2007-08-08  Eric Blake  <ebb9@byu.net>
32967
32968         * lib/xstrtol-error.c: Add missing include.
32969
32970         Move xstrtol messages into gnulib domain, when --pobase is used.
32971         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32972         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32973         * modules/xstrtol (Files): Distribute new file.
32974         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32975         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32976         * tests/test-xstrtol.c: ...into new file.
32977         * tests/test-xstrtoul.c: Also test xstrtoul.
32978         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32979         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32980         * tests/test-xstrtol.sh: Drive the tests.
32981         * tests/test-xstrtoimax.sh: Likewise.
32982         * tests/test-xstrtoumax.sh: Likewise.
32983         * modules/xstrtol-tests: New module.
32984         * modules/xstrtoimax-tests: Likewise.
32985         * modules/xstrtoumax-tests: Likewise.
32986
32987 2007-08-08  Jim Meyering  <jim@meyering.net>
32988
32989         New function: mfile_name_concat.
32990         * lib/filenamecat.c (mfile_name_concat): New function, just like
32991         file_name_concat, but return NULL upon failure rather than exiting
32992         with a diagnostic.
32993         * lib/filenamecat.h: Declare it.
32994
32995 2007-08-07  Bruno Haible  <bruno@clisp.org>
32996
32997         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32998         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32999         warning from gcc.
33000         Reported by Eric Blake.
33001
33002 2007-08-07  Simon Josefsson  <simon@josefsson.org>
33003
33004         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
33005         * modules/crypto/arcfour (License): Likewise.
33006         * modules/crypto/des-tests (License): Likewise.
33007         * modules/crypto/gc-arctwo-tests (License): Likewise.
33008         * modules/crypto/gc-des-tests (License): Likewise.
33009         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
33010         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
33011         * modules/crypto/gc-md2-tests (License): Likewise.
33012         * modules/crypto/gc-md4-tests (License): Likewise.
33013         * modules/crypto/gc-md5-tests (License): Likewise.
33014         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
33015         * modules/crypto/gc-rijndael-tests (License): Likewise.
33016         * modules/crypto/gc-sha1-tests (License): Likewise.
33017         * modules/crypto/gc-tests (License): Likewise.
33018         * modules/crypto/hmac-md5 (License): Likewise.
33019         * modules/crypto/hmac-sha1 (License): Likewise.
33020         * modules/crypto/md2-tests (License): Likewise.
33021         * modules/crypto/md4-tests (License): Likewise.
33022         * modules/crypto/md5 (License): Likewise.
33023         * modules/crypto/rijndael (License): Likewise.
33024         * modules/crypto/sha1 (License): Likewise.
33025         * modules/memxor (License): Likewise.
33026
33027 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33028         and Bruno Haible  <bruno@clisp.org>
33029
33030         * NEWS: Describe interface changes to human, xstrtol.
33031         * lib/human.h: Include <xstrtol.h>.
33032         (human_options): Return enum strtol_error, not int.  Remove
33033         bool arg; take int * instead.
33034         * lib/human.c: Don't include "gettext.h".
33035         (_): Remove; no longer used.
33036         Don't include <xstrtol.h>, since human.h does it.
33037         (human_options): Adjust to abovementioned interface changes.
33038         Do not report error to stderr; that's now the caller's
33039         responsibility.
33040         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
33041         interface change.
33042         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
33043         Str, Argument_type_string.  All uses changed.  Put " argument"
33044         in diagnostics to make them clearer.  Change wording of suffix
33045         message for clarity.
33046         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
33047         Argument_type_string.
33048         (STRTOL_FATAL_WARN): Remove; no longer used.
33049         * modules/human (Depends-on): Remove gettext-h.
33050
33051 2007-08-06  Simon Josefsson  <simon@josefsson.org>
33052
33053         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
33054
33055 2007-07-31  Bruno Haible  <bruno@clisp.org>
33056
33057         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
33058         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
33059         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
33060
33061 2007-07-31  Bruno Haible  <bruno@clisp.org>
33062
33063         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
33064         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
33065
33066 2007-07-30  Bruno Haible  <bruno@clisp.org>
33067
33068         * modules/base64 (License): Use the synonymous term "LGPLv2+".
33069         * modules/c-ctype (License): Likewise.
33070         * modules/c-strcase (License): Likewise.
33071         * modules/check-version (License): Likewise.
33072         * modules/iconv (License): Likewise.
33073         * modules/iconv_open (License): Likewise.
33074         * modules/read-file (License): Likewise.
33075         * modules/striconv (License): Likewise.
33076         * modules/strverscmp (License): Likewise.
33077         * modules/vasprintf (License): Likewise.
33078         * modules/crypto/des (License): Likewise.
33079         * modules/crypto/gc (License): Likewise.
33080         * modules/crypto/gc-arcfour (License): Likewise.
33081         * modules/crypto/gc-arctwo (License): Likewise.
33082         * modules/crypto/gc-des (License): Likewise.
33083         * modules/crypto/gc-hmac-md5 (License): Likewise.
33084         * modules/crypto/gc-hmac-sha1 (License): Likewise.
33085         * modules/crypto/gc-md2 (License): Likewise.
33086         * modules/crypto/gc-md4 (License): Likewise.
33087         * modules/crypto/gc-md5 (License): Likewise.
33088         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
33089         * modules/crypto/gc-random (License): Likewise.
33090         * modules/crypto/gc-rijndael (License): Likewise.
33091         * modules/crypto/gc-sha1 (License): Likewise.
33092         * modules/crypto/md2 (License): Likewise.
33093         * modules/crypto/md4 (License): Likewise.
33094
33095 2007-07-30  Jim Meyering  <jim@meyering.net>
33096
33097         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33098         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33099         it has valid stat data.  This bug would cause du not to count the
33100         sizes of inaccessible directories.
33101         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33102         in <http://bugzilla.redhat.com/250077>.
33103
33104 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33105             Bruno Haible  <bruno@clisp.org>
33106
33107         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33108         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33109         #include_next, gives a diagnostic about it, but reports no error in
33110         the exit code.
33111         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33112
33113 2007-07-24  Ben Pfaff  <blp@gnu.org>
33114
33115         Improve name: "count-one-bits" is better than "popcount".
33116         * MODULES.html.sh: Update name.
33117         * lib/popcount.h: Renamed lib/count-one-bits.h.
33118         (popcount): Renamed count_one_bits.
33119         (popcountl): Renamed count_one_bits_l.
33120         (popcountll): Renamed count_one_bits_ll.
33121         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33122         * modules/popcount: Renamed module/count-one-bits.
33123         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33124         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33125
33126 2007-07-23  Ben Pfaff  <blp@gnu.org>
33127
33128         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33129         better code generation, and add U to large constants to avoid
33130         warnings, in non-GCC case.
33131         Suggested by Bruno Haible.
33132
33133 2007-07-23  Ben Pfaff  <blp@gnu.org>
33134
33135         * lib/popcount.h: Use verify_true instead of if...abort.
33136         * modules/popcount: Depend on verify module.
33137         Suggested by Jim Meyering.
33138
33139 2007-07-23  Bruno Haible  <bruno@clisp.org>
33140
33141         * gnulib-tool (func_import): Create a .cvsignore file also when the
33142         directory is not yet in CVS but the toplevel directory is. When
33143         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33144         Reported by Karl Berry.
33145
33146 2007-07-22  Ben Pfaff  <blp@gnu.org>
33147
33148         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33149         case.
33150         Suggested by Eric Blake.
33151
33152 2007-07-22  Ben Pfaff  <blp@gnu.org>
33153
33154         New module: popcount.
33155         * MODULES.html.sh: Add popcount.
33156         * modules/popcount: New file.
33157         * modules/popcount-tests: New file.
33158         * tests/test-popcount.c: New file.
33159         * lib/popcount.h: New file.
33160         * m4/popcount.m4: New file.
33161
33162 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33163
33164         * build-aux/announce-gen: Update to GPLv3.
33165
33166         * build-aux/config.guess: Update from config.
33167
33168 2007-07-21  Bruno Haible  <bruno@clisp.org>
33169
33170         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33171         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33172
33173 2007-07-20  Jim Meyering  <jim@meyering.net>
33174
33175         * check-module: Diagnose a self-dependency.
33176
33177 2007-07-19  Bruno Haible  <bruno@clisp.org>
33178
33179         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33180         empty.
33181         Reported by Eric Blake.
33182
33183 2007-07-18  Bruno Haible  <bruno@clisp.org>
33184
33185         * gnulib-tool: New options --po-base, --po-domain.
33186         (func_usage): Document them.
33187         (pobase, po_domain): New variables.
33188         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33189         DEFAULT_TEXT_DOMAIN.
33190         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33191         (func_import): Consider pobase and po_domain. Create a po/ directory.
33192         (func_create_testdir): Set pobase and po_domain to empty.
33193         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33194         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33195
33196 2007-07-18  Bruno Haible  <bruno@clisp.org>
33197
33198         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33199         EXTRA_DIST augmentation for files in build-aux/.
33200
33201 2007-07-16  Bruno Haible  <bruno@clisp.org>
33202
33203         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33204         * modules/getdelim (License): Likewise.
33205
33206 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33207
33208         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33209         * modules/d-type (License): Likewise.
33210         * modules/extensions (License): Likewise.
33211         * modules/fnmatch (License): Likewise.
33212         * modules/fseeko (License): Likewise.
33213         * modules/getaddrinfo (License): Likewise.
33214         * modules/getline (License): Likewise.
33215         * modules/getlogin_r (License): Likewise.
33216         * modules/getpass (License): Likewise.
33217         * modules/gettimeofday (License): Likewise.
33218         * modules/glob (License): Likewise.
33219         * modules/inet_ntop (License): Likewise.
33220         * modules/malloc (License): Likewise.
33221         * modules/malloca (License): Likewise.
33222         * modules/memmem (License): Likewise.
33223         * modules/mempcpy (License): Likewise.
33224         * modules/memset (License): Likewise.
33225         * modules/minmax (License): Likewise.
33226         * modules/mktime (License): Likewise.
33227         * modules/netinet_in (License): Likewise.
33228         * modules/pathmax (License): Likewise.
33229         * modules/poll (License): Likewise.
33230         * modules/regex (License): Likewise.
33231         * modules/snprintf (License): Likewise.
33232         * modules/stdbool (License): Likewise.
33233         * modules/stdint (License): Likewise.
33234         * modules/stdio (License): Likewise.
33235         * modules/strcase (License): Likewise.
33236         * modules/strcasestr (License): Likewise.
33237         * modules/strdup (License): Likewise.
33238         * modules/string (License): Likewise.
33239         * modules/strndup (License): Likewise.
33240         * modules/strnlen (License): Likewise.
33241         * modules/strpbrk (License): Likewise.
33242         * modules/strptime (License): Likewise.
33243         * modules/strsep (License): Likewise.
33244         * modules/sys_select (License): Likewise.
33245         * modules/sys_socket (License): Likewise.
33246         * modules/sys_stat (License): Likewise.
33247         * modules/sys_time (License): Likewise.
33248         * modules/time (License): Likewise.
33249         * modules/time_r (License): Likewise.
33250         * modules/timegm (License): Likewise.
33251         * modules/unistd (License): Likewise.
33252         * modules/vsnprintf (License): Likewise.
33253         * modules/wctype (License): Likewise.
33254
33255 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33256
33257         * modules/argz (License): LGPLv2+.
33258
33259 2007-07-15  Karl Berry  <karl@gnu.org>
33260
33261         * doc/gnulib.texi: revise node structure per new fdl.texi.
33262
33263 2007-07-14  Bruno Haible  <bruno@clisp.org>
33264
33265         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33266         the output file.
33267         * lib/uniname/uninames.h: Regenerated.
33268
33269 2007-07-14  Karl Berry  <karl@gnu.org>
33270
33271         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33272         omitting sectioning and index commands.
33273
33274 2007-07-13  Bruno Haible  <bruno@clisp.org>
33275
33276         New gnulib-tool option --more-symlinks.
33277         * gnulib-tool (func_usage): Document --more-symlinks.
33278         (do_copyrights): New variable.
33279         Recognize option --more-symlinks.
33280         (func_import): Don't add a copyright notice transform to
33281         sed_transform_lib_file if do_copyrights is empty.
33282
33283 2007-07-13  Bruno Haible  <bruno@clisp.org>
33284
33285         * lib/vasnprintf.c (decimal_point_char): Define also if
33286         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33287         && !NEED_PRINTF_DIRECTIVE_A.
33288         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33289         Gary V. Vaughan <gary@gnu.org>.
33290
33291 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33292
33293         * lib/inttypes_.h: Undo previous change, since it was fixed
33294         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33295
33296 2007-07-13  Bruno Haible  <bruno@clisp.org>
33297
33298         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33299         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33300
33301 2007-07-13  Jim Meyering  <jim@meyering.net>
33302
33303         df: Don't fail for Tru64's "file-on-file mount".
33304         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33305         so we fall through and use statfs instead.  Details here:
33306         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33307         Reported by Albert Chin.
33308
33309 2007-07-13  Bruno Haible  <bruno@clisp.org>
33310
33311         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33312         * modules/configmake (License): Likewise.
33313         * modules/gettext (License): Likewise.
33314         * modules/gettext-h (License): Likewise.
33315         * modules/include_next (License): Likewise.
33316         * modules/link-warning (License): Likewise.
33317         * modules/localcharset (License): Likewise.
33318         * modules/localename (License): Likewise.
33319         * modules/lock (License): Likewise.
33320         * modules/relocatable-lib-lgpl (License): Likewise.
33321         * modules/size_max (License): Likewise.
33322         * modules/vasnprintf (License): Likewise.
33323         * modules/wchar (License): Likewise.
33324         * modules/xsize (License): Likewise.
33325
33326 2007-07-13  Bruno Haible  <bruno@clisp.org>
33327
33328         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33329         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33330
33331 2007-07-12  Bruno Haible  <bruno@clisp.org>
33332
33333         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33334         in the modules files.
33335
33336 2007-07-11  Karl Berry  <karl@gnu.org>
33337
33338         * MODULES.html.sh (func_module): use
33339          sed -e '\|^'"${includefile}"'$|d'
33340          instead of /.../d, to avoid errors on $includefile's containing /.
33341
33342 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33343
33344         * gnulib-tool (func_import): Avoid duplication of --avoid
33345         statements
33346         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33347         names to `_' in variable names.
33348
33349 2007-07-10  Eric Blake  <ebb9@byu.net>
33350
33351         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33352         * NEWS: Document this change.
33353
33354 2007-07-08  Bruno Haible  <bruno@clisp.org>
33355
33356         Update to Unicode 5.0.
33357         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33358         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33359         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33360         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33361         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33362         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33363         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33364         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33365         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33366         U+10A3F, U+1D242..U+1D244.
33367         (nonspacing_table_ind): Update.
33368         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33369         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33370
33371 2007-07-08  Bruno Haible  <bruno@clisp.org>
33372
33373         Update to Unicode 5.0.
33374         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33375         code transform. Extend the name index field of unicode_name_to_code and
33376         unicode_code_to_name from 16 to 24 bits.
33377         * lib/uniname/uniname.c (unicode_character_name,
33378         unicode_name_character): Add the range 0x12xxx to the code transform.
33379         * lib/uniname/uninames.h: Regenerated.
33380         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33381
33382 2007-07-07  Bruno Haible  <bruno@clisp.org>
33383
33384         * modules/wcwidth-tests: New file.
33385         * tests/test-wcwidth.c: New file.
33386
33387         Work around MacOS X wcwidth() bug.
33388         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33389         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33390         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33391         original wcwidth in non-UTF-8 locales.
33392         * modules/wcwidth (Depends-on): Add localcharset, streq,
33393         uniwidth/width.
33394         * doc/functions/wcwidth.texi: Update.
33395
33396 2007-07-07  Bruno Haible  <bruno@clisp.org>
33397
33398         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33399         (wcwidth): New declaration.
33400         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33401         macros.
33402         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33403         here. Prepare for creating <wchar.h> unconditionally.
33404         * modules/wchar (Depends-on): Add link-warning.
33405         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33406         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33407         * lib/wcwidth.h: Remove file.
33408         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33409         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33410         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33411         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33412         (Include): Replace wcwidth.h with <wchar.h>.
33413         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33414         * lib/mbchar.h: Don't include wcwidth.h.
33415         * lib/mbswidth.c: Likewise.
33416         * NEWS: Mention the change.
33417
33418 2007-07-07  Bruno Haible  <bruno@clisp.org>
33419
33420         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33421         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33422         definition with an external declaration.
33423         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33424         defined as a function. Remove AC_C_INLINE requirement.
33425         * modules/wcwidth (Files): Add lib/wcwidth.c.
33426         (Makefile.am): Remove redundant statement.
33427
33428 2007-07-07  Bruno Haible  <bruno@clisp.org>
33429
33430         * MODULES.html.sh (Unicode string functions): Add the new modules.
33431
33432         * tests/uniwidth/test-u32-strwidth.c: New file.
33433         * modules/uniwidth/u32-strwidth-tests: New file.
33434
33435         * lib/uniwidth/u32-strwidth.c: New file.
33436         * modules/uniwidth/u32-strwidth: New file.
33437
33438         * tests/uniwidth/test-u16-strwidth.c: New file.
33439         * modules/uniwidth/u16-strwidth-tests: New file.
33440
33441         * lib/uniwidth/u16-strwidth.c: New file.
33442         * modules/uniwidth/u16-strwidth: New file.
33443
33444         * tests/uniwidth/test-u8-strwidth.c: New file.
33445         * modules/uniwidth/u8-strwidth-tests: New file.
33446
33447         * lib/uniwidth/u8-strwidth.c: New file.
33448         * modules/uniwidth/u8-strwidth: New file.
33449
33450         * tests/uniwidth/test-u32-width.c: New file.
33451         * modules/uniwidth/u32-width-tests: New file.
33452
33453         * lib/uniwidth/u32-width.c: New file.
33454         * modules/uniwidth/u32-width: New file.
33455
33456         * tests/uniwidth/test-u16-width.c: New file.
33457         * modules/uniwidth/u16-width-tests: New file.
33458
33459         * lib/uniwidth/u16-width.c: New file.
33460         * modules/uniwidth/u16-width: New file.
33461
33462         * tests/uniwidth/test-u8-width.c: New file.
33463         * modules/uniwidth/u8-width-tests: New file.
33464
33465         * lib/uniwidth/u8-width.c: New file.
33466         * modules/uniwidth/u8-width: New file.
33467
33468         * tests/uniwidth/test-uc_width.c: New file.
33469         * modules/uniwidth/width-tests: New file.
33470
33471         * lib/uniwidth/width.c: New file, from GNU libiconv.
33472         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33473         * modules/uniwidth/width: New file.
33474
33475         * lib/uniwidth.h: New file, from GNU libiconv.
33476         * modules/uniwidth/base: New file.
33477
33478 2007-07-07  Bruno Haible  <bruno@clisp.org>
33479
33480         * lib/uniname.h: New file, from GNU gettext.
33481         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33482         * lib/uniname/uninames.h: New file, from GNU gettext.
33483         * lib/uniname/uniname.c: New file, from GNU gettext.
33484         * tests/uniname/test-uninames.sh: New file.
33485         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33486         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33487         * modules/uniname/base: New file.
33488         * modules/uniname/uniname: New file.
33489         * modules/uniname/uniname-tests: New file.
33490         * MODULES.html.sh (Unicode string functions): Add the new modules.
33491
33492 2007-07-06  Bruno Haible  <bruno@clisp.org>
33493
33494         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33495
33496 2007-07-06  Bruno Haible  <bruno@clisp.org>
33497
33498         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33499         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33500         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33501         include <sys/time.h>.
33502         Reported by Eric Blake.
33503
33504 2007-07-06  Eric Blake  <ebb9@byu.net>
33505
33506         Fix testing canonicalize on cygwin.
33507         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33508         Revert patch from 2007-06-19.
33509         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33510         canonicalize module is also in use.
33511         * tests/test-canonicalize.c: New file.
33512         * tests/test-canonicalize.sh: Likewise.
33513         * modules/canonicalize-tests: Likewise.
33514
33515 2007-07-06  Jim Meyering  <jim@meyering.net>
33516
33517         * lib/getugroups.c (getugroups): Detect getgrent failure.
33518         Adjust comment to reflect reality: this function may return -1.
33519
33520 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33521
33522         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33523         the new TP address.
33524         (usage): Fix typo
33525         (gnulib_mk): New variable.
33526
33527 2007-07-05  Jim Meyering  <jim@meyering.net>
33528
33529         Don't let endgrent clobber errno, no matter how improbable.
33530         * lib/getugroups.c (getugroups): Save and restore errno around
33531         endgrent call.
33532
33533         Close the group DB even when failing with 2^31 or more members.
33534         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33535
33536 2007-07-04  Jim Meyering  <jim@meyering.net>
33537
33538         * lib/getugroups.h: New file.
33539         * lib/getugroups.c: Include "getugroups.h".
33540         Remove uses of "register" keyword.
33541         Move local variable, "cp", down into scope where used.
33542         Give "username" parameter the "const" attribute.
33543         * modules/getugroups (Files): Add lib/getugroups.h
33544
33545 2007-07-04  Karl Berry  <karl@gnu.org>
33546
33547         * MODULES.html.sh (func_all_modules): Complete rename of
33548         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33549
33550 2007-07-02  Bruno Haible  <bruno@clisp.org>
33551
33552         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33553         mode, when inttypes.h comes from gnulib.
33554         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33555
33556 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33557
33558         * NEWS: Mention lgpl module name change.
33559
33560         * modules/lgpl-2.1: Renamed from lgpl.
33561
33562         * NEWS: Mention gpl module name change.
33563
33564         * modules/gpl-3.0: New file, based on gpl-2.0.
33565
33566         * modules/gpl-2.0: Renamed from gpl.
33567
33568         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33569         doc/gpl-2.0.texi.
33570
33571 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33572
33573         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33574         #define __STDC_LIMIT_MACROS temporarily while including
33575         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33576         Problem reported by Joel E. Denny in
33577         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33578
33579 2007-07-01  Bruno Haible  <bruno@clisp.org>
33580
33581         * lib/unistdio.h: New file.
33582         * lib/unistdio/u-asnprintf.h: New file.
33583         * lib/unistdio/u-asprintf.h: New file.
33584         * lib/unistdio/u-printf-args.c: New file.
33585         * lib/unistdio/u-printf-args.h: New file.
33586         * lib/unistdio/u-printf-parse.h: New file.
33587         * lib/unistdio/u-snprintf.h: New file.
33588         * lib/unistdio/u-sprintf.h: New file.
33589         * lib/unistdio/u-vasprintf.h: New file.
33590         * lib/unistdio/u-vsnprintf.h: New file.
33591         * lib/unistdio/u-vsprintf.h: New file.
33592         * lib/unistdio/ulc-asnprintf.c: New file.
33593         * lib/unistdio/ulc-asprintf.c: New file.
33594         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33595         * lib/unistdio/ulc-printf-parse.c: New file.
33596         * lib/unistdio/ulc-snprintf.c: New file.
33597         * lib/unistdio/ulc-sprintf.c: New file.
33598         * lib/unistdio/ulc-vasnprintf.c: New file.
33599         * lib/unistdio/ulc-vasprintf.c: New file.
33600         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33601         * lib/unistdio/ulc-vsnprintf.c: New file.
33602         * lib/unistdio/ulc-vsprintf.c: New file.
33603         * lib/unistdio/u8-asnprintf.c: New file.
33604         * lib/unistdio/u8-asprintf.c: New file.
33605         * lib/unistdio/u8-printf-parse.c: New file.
33606         * lib/unistdio/u8-snprintf.c: New file.
33607         * lib/unistdio/u8-sprintf.c: New file.
33608         * lib/unistdio/u8-vasnprintf.c: New file.
33609         * lib/unistdio/u8-vasprintf.c: New file.
33610         * lib/unistdio/u8-vsnprintf.c: New file.
33611         * lib/unistdio/u8-vsprintf.c: New file.
33612         * lib/unistdio/u8-u8-asnprintf.c: New file.
33613         * lib/unistdio/u8-u8-asprintf.c: New file.
33614         * lib/unistdio/u8-u8-snprintf.c: New file.
33615         * lib/unistdio/u8-u8-sprintf.c: New file.
33616         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33617         * lib/unistdio/u8-u8-vasprintf.c: New file.
33618         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33619         * lib/unistdio/u8-u8-vsprintf.c: New file.
33620         * lib/unistdio/u16-asnprintf.c: New file.
33621         * lib/unistdio/u16-asprintf.c: New file.
33622         * lib/unistdio/u16-printf-parse.c: New file.
33623         * lib/unistdio/u16-snprintf.c: New file.
33624         * lib/unistdio/u16-sprintf.c: New file.
33625         * lib/unistdio/u16-vasnprintf.c: New file.
33626         * lib/unistdio/u16-vasprintf.c: New file.
33627         * lib/unistdio/u16-vsnprintf.c: New file.
33628         * lib/unistdio/u16-vsprintf.c: New file.
33629         * lib/unistdio/u16-u16-asnprintf.c: New file.
33630         * lib/unistdio/u16-u16-asprintf.c: New file.
33631         * lib/unistdio/u16-u16-snprintf.c: New file.
33632         * lib/unistdio/u16-u16-sprintf.c: New file.
33633         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33634         * lib/unistdio/u16-u16-vasprintf.c: New file.
33635         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33636         * lib/unistdio/u16-u16-vsprintf.c: New file.
33637         * lib/unistdio/u32-asnprintf.c: New file.
33638         * lib/unistdio/u32-asprintf.c: New file.
33639         * lib/unistdio/u32-printf-parse.c: New file.
33640         * lib/unistdio/u32-snprintf.c: New file.
33641         * lib/unistdio/u32-sprintf.c: New file.
33642         * lib/unistdio/u32-vasnprintf.c: New file.
33643         * lib/unistdio/u32-vasprintf.c: New file.
33644         * lib/unistdio/u32-vsnprintf.c: New file.
33645         * lib/unistdio/u32-vsprintf.c: New file.
33646         * lib/unistdio/u32-u32-asnprintf.c: New file.
33647         * lib/unistdio/u32-u32-asprintf.c: New file.
33648         * lib/unistdio/u32-u32-snprintf.c: New file.
33649         * lib/unistdio/u32-u32-sprintf.c: New file.
33650         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33651         * lib/unistdio/u32-u32-vasprintf.c: New file.
33652         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33653         * lib/unistdio/u32-u32-vsprintf.c: New file.
33654         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33655         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33656         * tests/unistdio/test-ulc-printf1.h: New file.
33657         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33658         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33659         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33660         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33661         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33662         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33663         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33664         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33665         * tests/unistdio/test-u8-asnprintf1.c: New file.
33666         * tests/unistdio/test-u8-asnprintf1.h: New file.
33667         * tests/unistdio/test-u8-printf1.h: New file.
33668         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33669         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33670         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33671         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33672         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33673         * tests/unistdio/test-u8-vasprintf1.c: New file.
33674         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33675         * tests/unistdio/test-u8-vsprintf1.c: New file.
33676         * tests/unistdio/test-u16-asnprintf1.c: New file.
33677         * tests/unistdio/test-u16-asnprintf1.h: New file.
33678         * tests/unistdio/test-u16-printf1.h: New file.
33679         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33680         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33681         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33682         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33683         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33684         * tests/unistdio/test-u16-vasprintf1.c: New file.
33685         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33686         * tests/unistdio/test-u16-vsprintf1.c: New file.
33687         * tests/unistdio/test-u32-asnprintf1.c: New file.
33688         * tests/unistdio/test-u32-asnprintf1.h: New file.
33689         * tests/unistdio/test-u32-printf1.h: New file.
33690         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33691         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33692         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33693         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33694         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33695         * tests/unistdio/test-u32-vasprintf1.c: New file.
33696         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33697         * tests/unistdio/test-u32-vsprintf1.c: New file.
33698         * modules/unistdio/base: New file.
33699         * modules/unistdio/u-printf-args: New file.
33700         * modules/unistdio/ulc-asnprintf: New file.
33701         * modules/unistdio/ulc-asprintf: New file.
33702         * modules/unistdio/ulc-fprintf: New file.
33703         * modules/unistdio/ulc-printf-parse: New file.
33704         * modules/unistdio/ulc-snprintf: New file.
33705         * modules/unistdio/ulc-sprintf: New file.
33706         * modules/unistdio/ulc-vasnprintf: New file.
33707         * modules/unistdio/ulc-vasprintf: New file.
33708         * modules/unistdio/ulc-vfprintf: New file.
33709         * modules/unistdio/ulc-vsnprintf: New file.
33710         * modules/unistdio/ulc-vsprintf: New file.
33711         * modules/unistdio/u8-asnprintf: New file.
33712         * modules/unistdio/u8-asprintf: New file.
33713         * modules/unistdio/u8-printf-parse: New file.
33714         * modules/unistdio/u8-snprintf: New file.
33715         * modules/unistdio/u8-sprintf: New file.
33716         * modules/unistdio/u8-vasnprintf: New file.
33717         * modules/unistdio/u8-vasprintf: New file.
33718         * modules/unistdio/u8-vsnprintf: New file.
33719         * modules/unistdio/u8-vsprintf: New file.
33720         * modules/unistdio/u8-u8-asnprintf: New file.
33721         * modules/unistdio/u8-u8-asprintf: New file.
33722         * modules/unistdio/u8-u8-snprintf: New file.
33723         * modules/unistdio/u8-u8-sprintf: New file.
33724         * modules/unistdio/u8-u8-vasnprintf: New file.
33725         * modules/unistdio/u8-u8-vasprintf: New file.
33726         * modules/unistdio/u8-u8-vsnprintf: New file.
33727         * modules/unistdio/u8-u8-vsprintf: New file.
33728         * modules/unistdio/u16-asnprintf: New file.
33729         * modules/unistdio/u16-asprintf: New file.
33730         * modules/unistdio/u16-printf-parse: New file.
33731         * modules/unistdio/u16-snprintf: New file.
33732         * modules/unistdio/u16-sprintf: New file.
33733         * modules/unistdio/u16-vasnprintf: New file.
33734         * modules/unistdio/u16-vasprintf: New file.
33735         * modules/unistdio/u16-vsnprintf: New file.
33736         * modules/unistdio/u16-vsprintf: New file.
33737         * modules/unistdio/u16-u16-asnprintf: New file.
33738         * modules/unistdio/u16-u16-asprintf: New file.
33739         * modules/unistdio/u16-u16-snprintf: New file.
33740         * modules/unistdio/u16-u16-sprintf: New file.
33741         * modules/unistdio/u16-u16-vasnprintf: New file.
33742         * modules/unistdio/u16-u16-vasprintf: New file.
33743         * modules/unistdio/u16-u16-vsnprintf: New file.
33744         * modules/unistdio/u16-u16-vsprintf: New file.
33745         * modules/unistdio/u32-asnprintf: New file.
33746         * modules/unistdio/u32-asprintf: New file.
33747         * modules/unistdio/u32-printf-parse: New file.
33748         * modules/unistdio/u32-snprintf: New file.
33749         * modules/unistdio/u32-sprintf: New file.
33750         * modules/unistdio/u32-vasnprintf: New file.
33751         * modules/unistdio/u32-vasprintf: New file.
33752         * modules/unistdio/u32-vsnprintf: New file.
33753         * modules/unistdio/u32-vsprintf: New file.
33754         * modules/unistdio/u32-u32-asnprintf: New file.
33755         * modules/unistdio/u32-u32-asprintf: New file.
33756         * modules/unistdio/u32-u32-snprintf: New file.
33757         * modules/unistdio/u32-u32-sprintf: New file.
33758         * modules/unistdio/u32-u32-vasnprintf: New file.
33759         * modules/unistdio/u32-u32-vasprintf: New file.
33760         * modules/unistdio/u32-u32-vsnprintf: New file.
33761         * modules/unistdio/u32-u32-vsprintf: New file.
33762         * modules/unistdio/ulc-asnprintf-tests: New file.
33763         * modules/unistdio/ulc-vasnprintf-tests: New file.
33764         * modules/unistdio/ulc-vasprintf-tests: New file.
33765         * modules/unistdio/ulc-vsnprintf-tests: New file.
33766         * modules/unistdio/ulc-vsprintf-tests: New file.
33767         * modules/unistdio/u8-asnprintf-tests: New file.
33768         * modules/unistdio/u8-vasnprintf-tests: New file.
33769         * modules/unistdio/u8-vasprintf-tests: New file.
33770         * modules/unistdio/u8-vsnprintf-tests: New file.
33771         * modules/unistdio/u8-vsprintf-tests: New file.
33772         * modules/unistdio/u16-asnprintf-tests: New file.
33773         * modules/unistdio/u16-vasnprintf-tests: New file.
33774         * modules/unistdio/u16-vasprintf-tests: New file.
33775         * modules/unistdio/u16-vsnprintf-tests: New file.
33776         * modules/unistdio/u16-vsprintf-tests: New file.
33777         * modules/unistdio/u32-asnprintf-tests: New file.
33778         * modules/unistdio/u32-vasnprintf-tests: New file.
33779         * modules/unistdio/u32-vasprintf-tests: New file.
33780         * modules/unistdio/u32-vsnprintf-tests: New file.
33781         * modules/unistdio/u32-vsprintf-tests: New file.
33782         * MODULES.html.sh (Unicode string functions): Add the new modules.
33783
33784 2007-07-01  Bruno Haible  <bruno@clisp.org>
33785
33786         * lib/sprintf.c (sprintf): Limit the available length estimation,
33787         to avoid address wraparound.
33788         * lib/vsprintf.c (vsprintf): Likewise.
33789         * modules/sprintf-posix (Dependencies): Add stdint.
33790         * modules/vsprintf-posix (Dependencies): Likewise.
33791
33792 2007-07-01  Bruno Haible  <bruno@clisp.org>
33793
33794         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33795         Windows PATH as well. Conservative double-quoting. Comments.
33796
33797 2007-07-01  Bruno Haible  <bruno@clisp.org>
33798             Eric Blake  <ebb9@byu.net>
33799             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33800
33801         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33802         empty components in $PATH, denoting '.'.
33803
33804 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33805
33806         * gnulib-tool: Fix indentation.
33807         (func_create_megatestdir): Likewise.
33808         Report by Bruno Haible.
33809
33810 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33811
33812         Sync from Automake.
33813         * build-aux/gnupload: Fix shell portability issues with for loops.
33814         Report by Karl Berry.
33815
33816 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33817
33818         * build-aux/maint.mk (POURL): Use translationproject.org.
33819
33820 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33821             Bruno Haible  <bruno@clisp.org>
33822
33823         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33824         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33825         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33826         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33827         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33828
33829 2007-06-27  Bruno Haible  <bruno@clisp.org>
33830
33831         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33832         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33833
33834 2007-06-26  Karl Berry  <karl@gnu.org>
33835
33836         * MODULES.html.sh: remove xreadlink-with-size.
33837
33838 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33839
33840         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33841         method that I hope also handles the double-include problem noted
33842         by Bruno Haible in
33843         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33844
33845 2007-06-23  Bruno Haible  <bruno@clisp.org>
33846
33847         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33848         Don't let the 'mostlyclean' target fail if the last subdirectory could
33849         not be removed.
33850         Reported by Karl Berry.
33851
33852 2007-06-23  Bruno Haible  <bruno@clisp.org>
33853
33854         * gnulib-tool (echo): Add a speedier workaround for ksh.
33855         * tests/test-echo.sh: Likewise.
33856
33857 2007-06-23  Bruno Haible  <bruno@clisp.org>
33858
33859         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33860         * tests/test-echo.sh: Likewise.
33861
33862 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33863
33864         * gnulib-tool (IFS): Initialize early, so we don't set it to
33865         empty later.
33866         (self_abspathname): Rewrite algorithm to set it, reindent.
33867         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33868         (func_create_megatestdir): Merge some sed scripts.
33869
33870 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33871
33872         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33873         exposed by Sun Studio 11 cc on Solaris 8.
33874
33875 2007-06-22  Bruno Haible  <bruno@clisp.org>
33876
33877         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33878         backslashes.
33879         * tests/test-echo.sh: New file.
33880
33881 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33882
33883         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33884         simplify `sed_replace_build_aux' scripts, they are portable but
33885         echoing them with `echo' is not.
33886         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33887
33888 2007-06-21  Karl Berry  <karl@gnu.org>
33889
33890         * config/srclist.txt: guess we can't handle the licenses via
33891         srclist at the moment.
33892
33893 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33894
33895         * MODULES.html.sh: Add include_next.
33896         * modules/include_next: New file.
33897
33898 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33899
33900         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33901         INCLUDE_NEXT.
33902         (gl_CHECK_NEXT_HEADERS): New macro.
33903         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33904         the obsolescent gl_ABSOLUTE_HEADER.
33905         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33906         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33907         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33908         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33909         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33910         * m4/math_h.m4 (gl_MATH_H): Likewise.
33911         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33912         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33913         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33914         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33915         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33916         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33917         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33918         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33919         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33920         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33921         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33922         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33923         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33924         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33925         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33926         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33927         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33928         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33929         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33930         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33931         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33932         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33933         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33934         * lib/float_.h: Likewise.
33935         * lib/inttypes_.h: Likewise.
33936         * lib/math_.h: Likewise.
33937         * lib/search_.h: Likewise.
33938         * lib/signal_.h: Likewise.
33939         * lib/stdint_.h: Likewise.
33940         * lib/stdio_.h: Likewise.
33941         * lib/stdlib_.h: Likewise.
33942         * lib/string_.h: Likewise.
33943         * lib/sys_stat_.h: Likewise.
33944         * lib/sys_time_.h: Likewise.
33945         * lib/time_.h: Likewise.
33946         * lib/unistd_.h: Likewise.
33947         * lib/wchar_.h: Likewise.
33948         * lib/wctype_.h: Likewise.
33949         * lib/dirent_.h: Likewise.
33950         * lib/iconv_.h: Likewise.
33951         * lib/locale_.h: Likewise.
33952         * lib/netinet_in_.h: Likewise.
33953         * lib/sys_select_.h: Likewise.
33954         * lib/sys_socket_.h: Likewise.
33955         * lib/sysexits_.h: Likewise.
33956         * modules/fcntl (Depends-on): Depend on include_next, not
33957         absolute_header.
33958         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33959         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33960         * modules/fchdir: Likewise.
33961         * modules/float: Likewise.
33962         * modules/iconv_open: Likewise.
33963         * modules/inttypes: Likewise.
33964         * modules/locale: Likewise.
33965         * modules/math: Likewise.
33966         * modules/netinet_in: Likewise.
33967         * modules/search: Likewise.
33968         * modules/signal: Likewise.
33969         * modules/stdint: Likewise.
33970         * modules/stdio: Likewise.
33971         * modules/stdlib: Likewise.
33972         * modules/string: Likewise.
33973         * modules/sys_select: Likewise.
33974         * modules/sys_socket: Likewise.
33975         * modules/sys_stat: Likewise.
33976         * modules/sys_time: Likewise.
33977         * modules/sysexits: Likewise.
33978         * modules/time: Likewise.
33979         * modules/unistd: Likewise.
33980         * modules/wchar: Likewise.
33981         * modules/wctype: Likewise.
33982         * modules/sys_stat: Change maintainer to "all".
33983         * modules/unistd: Likewise.
33984
33985 2007-06-20  Karl Berry  <karl@gnu.org>
33986
33987         * config/srclist.txt: track www changes in license files.
33988
33989 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33990
33991         * build-aux/bootstrap: Remove stray dot.
33992         Make sure build_aux settings are honored when linking
33993         gnulib_extra_files.
33994
33995 2007-06-19  Eric Blake  <ebb9@byu.net>
33996
33997         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33998         Allow compilation on cygwin.
33999
34000 2007-06-19  Jim Meyering  <jim@meyering.net>
34001
34002         xreadlink-with-size: Remove module.  No longer used.
34003         Ex-callers now use xreadlink or mreadlink-with-size.
34004         * modules/xreadlink-with-size: Remove module.
34005         * lib/xreadlink-with-size.c: Remove file.
34006         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
34007         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
34008         just before the function definition *is* accurate.
34009
34010         Eliminate one way canonicalize_filename_mode could exit.
34011         * lib/canonicalize.c (canonicalize_filename_mode):
34012         Use mreadlink_with_size, not xreadlink_with_size.
34013
34014 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34015
34016         Detect porting problems to FreeBSD/arm, which has time_t wider than
34017         long int.  Original problem reported for GNU diff by Xin Li in
34018         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
34019         * modules/getdate (Depends-on): Add intprops, verify.
34020         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
34021         is an integer type no wider than long int.
34022
34023 2007-06-18  Jim Meyering  <jim@meyering.net>
34024
34025         New module: mreadlink-with-size.
34026         * MODULES.html.sh: Add mreadlink-with-size.
34027         * modules/mreadlink-with-size: New module
34028         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
34029         not xreadlink-with-size.
34030         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
34031
34032 2007-06-16  Bruno Haible  <bruno@clisp.org>
34033
34034         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
34035         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
34036         Reported by Gary V. Vaughan <gary@gnu.org>.
34037
34038 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34039
34040         Revamp lchown so that it lives in unistd.h where it belongs.
34041         * lib/lchown.h: Remove.
34042         * lib/dirchownmod.c: Don't include lib/lchown.h.
34043         * lib/fchownat.c: Likewise.
34044         * lib/openat.c: Likewise.
34045         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
34046         does not follow symlinks.
34047         (EOPNOTSUPP): Define if not defined.
34048         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
34049         is defined to 0.
34050         (lchown): New decl.
34051         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
34052         Do not check for lchown decl.
34053         Set REPLACE_LCHOWN.
34054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
34055         REPLACE_LCHOWN.
34056         * modules/chown: Make it clear it follows symlinks.
34057         * modules/lchown: Make it clear it doesn't follow symlinks.
34058         (Files): Remove lib/lchown.h
34059         (Depends-on): Add unistd.
34060         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
34061         (Include): Include <unistd.h>, not "lchown.h".
34062         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
34063         REPLACE_LCHOWN.
34064
34065 2007-06-15  Jim Meyering  <jim@meyering.net>
34066
34067         Change license (GPL to LGPL) of fsusage and dependents.
34068         * modules/fsusage (License): Change to LGPL.
34069         * modules/full-read (License): Likewise.
34070         * modules/full-write (License): Likewise.
34071         * modules/safe-read (License): Likewise.
34072         * modules/safe-write (License): Likewise.
34073
34074 2007-06-14  Ben Pfaff  <blp@gnu.org>
34075
34076         Missing part of allocsa -> malloca transition.
34077         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
34078         gl_MALLOCA.
34079
34080 2007-06-12  Bruno Haible  <bruno@clisp.org>
34081
34082         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
34083         to ia64, x86_64, i386.
34084         Reported by Eric Blake.
34085
34086 2007-06-12  Bruno Haible  <bruno@clisp.org>
34087
34088         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
34089         cross-compiling to x86_64.
34090
34091 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34092
34093         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34094         glitch reported by Ralf Wildenhues in
34095         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34096
34097         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34098         Vin Shelton.
34099
34100 2007-06-11  Bruno Haible  <bruno@clisp.org>
34101
34102         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34103         replacement string.
34104         Reported by Eric Blake.
34105
34106 2007-06-10  Bruno Haible  <bruno@clisp.org>
34107
34108         Prepare vasnprintf code for use with Unicode strings.
34109         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34110         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34111         TYPE_U32_STRING.
34112         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34113         a_u32_string variants.
34114         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34115         * lib/printf-args.c: Don't include config.h and the specification
34116         header if PRINTF_FETCHARGS is already defined.
34117         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34118         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34119         TYPE_U16_STRING, TYPE_U32_STRING.
34120         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34121         u16_directive, u16_directives, u32_directive, u32_directives): New
34122         types.
34123         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34124         New declarations.
34125         * lib/printf-parse.c: Don't include config.h and the specification
34126         header if PRINTF_PARSE is already defined. Eliminate the set of
34127         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34128         them now. Include c-ctype.h.
34129         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34130         directive and CHAR_T_ONLY_ASCII.
34131         * lib/vasnprintf.c: Don't include config.h and the specification header
34132         if VASNPRINTF is already defined.
34133         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34134         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34135         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34136         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34137         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34138         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34139         code accordingly.
34140         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34141         pad_ourselves also in this case, with the 'c' and 's' directives, and
34142         with a different notion of "width".
34143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34144
34145 2007-06-10  Bruno Haible  <bruno@clisp.org>
34146
34147         * modules/unistr/u32-mbsnlen: New file.
34148         * lib/unistr/u32-mbsnlen.c: New file.
34149
34150         * modules/unistr/u16-mbsnlen: New file.
34151         * lib/unistr/u16-mbsnlen.c: New file.
34152
34153         * modules/unistr/u8-mbsnlen: New file.
34154         * lib/unistr/u8-mbsnlen.c: New file.
34155
34156         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34157         declarations.
34158
34159 2007-06-10  Bruno Haible  <bruno@clisp.org>
34160
34161         * lib/string_.h (mbsnlen): New declaration.
34162         * lib/mbsnlen.c: New file.
34163         * m4/mbsnlen.m4: New file.
34164         * modules/mbsnlen: New file.
34165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34166         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34167         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34168
34169 2007-06-10  Bruno Haible  <bruno@clisp.org>
34170
34171         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34172
34173 2007-06-10  Bruno Haible  <bruno@clisp.org>
34174
34175         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34176         * lib/mbuiter.h: Likewise.
34177
34178 2007-06-10  Bruno Haible  <bruno@clisp.org>
34179
34180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34181         declaration.
34182
34183 2007-06-10  Karl Berry  <karl@gnu.org>
34184
34185         * config/srclist.txt: remove gettext entries, Bruno prefers
34186         to update individually.
34187
34188 2007-06-10  Bruno Haible  <bruno@clisp.org>
34189
34190         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34191         'maxlen'. Ensure only length + width bytes are allocated, not
34192         length + 1 + width.
34193
34194 2007-06-09  Bruno Haible  <bruno@clisp.org>
34195
34196         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34197         (CHAR_T): Remove macro.
34198         (VASNPRINTF): Update.
34199
34200 2007-06-09  Bruno Haible  <bruno@clisp.org>
34201
34202         * MODULES.html.sh (Unicode string functions): Add the new modules.
34203
34204         * modules/uniconv/u32-conv-to-enc: New file.
34205         * lib/uniconv/u32-conv-to-enc.c: New file.
34206         * modules/uniconv/u32-conv-to-enc-tests: New file.
34207         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34208
34209         * modules/uniconv/u16-conv-to-enc: New file.
34210         * lib/uniconv/u16-conv-to-enc.c: New file.
34211         * lib/uniconv/u-conv-to-enc.h: New file.
34212         * modules/uniconv/u16-conv-to-enc-tests: New file.
34213         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34214
34215         * modules/uniconv/u8-conv-to-enc: New file.
34216         * lib/uniconv/u8-conv-to-enc.c: New file.
34217         * modules/uniconv/u8-conv-to-enc-tests: New file.
34218         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34219
34220         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34221         u32_conv_to_encoding): New declarations.
34222
34223 2007-06-09  Bruno Haible  <bruno@clisp.org>
34224
34225         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34226
34227 2007-06-09  Bruno Haible  <bruno@clisp.org>
34228
34229         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34230         * modules/malloca: Renamed from modules/allocsa, updated.
34231         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34232         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34233         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34234         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34235         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34236         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34237         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34238         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34239         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34240         * modules/c-strcasestr (Depends-on): Update.
34241         * lib/c-strcasestr.c: Update.
34242         * modules/c-strstr (Depends-on): Update.
34243         * lib/c-strstr.c: Update.
34244         * modules/canonicalize-lgpl (Depends-on): Update.
34245         * lib/canonicalize-lgpl.c: Update.
34246         * modules/clean-temp (Depends-on): Update.
34247         * lib/clean-temp.c: Update.
34248         * modules/csharpcomp (Depends-on): Update.
34249         * lib/csharpcomp.c: Update.
34250         * modules/csharpexec (Depends-on): Update.
34251         * lib/csharpexec.c: Update.
34252         * modules/javacomp (Depends-on): Update.
34253         * lib/javacomp.c: Update.
34254         * modules/javaexec (Depends-on): Update.
34255         * lib/javaexec.c: Update.
34256         * modules/mbscasestr (Depends-on): Update.
34257         * lib/mbscasestr.c: Update.
34258         * modules/mbsstr (Depends-on): Update.
34259         * lib/mbsstr.c: Update.
34260         * modules/setenv (Depends-on): Update.
34261         * lib/setenv.c: Update.
34262         * modules/strcasestr (Depends-on): Update.
34263         * lib/strcasestr.c: Update.
34264         * modules/striconveha (Depends-on): Update.
34265         * lib/striconveha.c: Update.
34266         * modules/relocatable-prog-wrapper (Files): Update.
34267         * lib/relocwrapper.c: Update.
34268         * build-aux/install-reloc: Update.
34269         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34270
34271 2007-06-08  Bruno Haible  <bruno@clisp.org>
34272
34273         Port to uClibc.
34274         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34275         * lib/fpurge.c (fpurge): Likewise.
34276         * lib/freading.c (freading): Likewise.
34277         * lib/fseeko.c (rpl_fseeko): Likewise.
34278         * lib/fseterr.c (fseterr): Likewise.
34279         * lib/fwriting.c (fwriting): Likewise.
34280         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34281
34282 2007-06-08  Bruno Haible  <bruno@clisp.org>
34283
34284         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34285         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34286         * modules/gettext (Files): Add m4/intlmacosx.m4.
34287
34288 2007-06-07  Bruno Haible  <bruno@clisp.org>
34289
34290         * modules/localename-tests: New file.
34291         * tests/test-localename.c: New file.
34292
34293         New module 'localename'.
34294         * lib/localename.h: New file.
34295         * lib/localename.c: New file, from GNU gettext.
34296         * m4/localename.m4: New file.
34297         * modules/localename: New file.
34298
34299 2007-06-07  Bruno Haible  <bruno@clisp.org>
34300
34301         Work around the lack of <wchar.h> on some builds of uClibc.
34302         * doc/headers/wchar.texi: Update.
34303         * lib/wchar_.h: Include <wchar.h> only if it exists.
34304         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34305         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34306         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34307         doesn't exist.
34308         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34309         * modules/mbfile (Depends-on): Add wchar.
34310         * modules/mbiter (Depends-on): Likewise.
34311         * modules/mbuiter (Depends-on): Likewise.
34312         Reported by Simon Josefsson.
34313
34314 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34315
34316         Work around problem reported by Steven M. Schweda in
34317         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34318         Tru64 5.1B with the Compaq compiler environment installed declares
34319         an 'isblank' function but does not define it in the C library.
34320         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34321         * lib/regex_internal.h (isblank): Likewise.
34322         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34323         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34324
34325 2007-06-05  Bruno Haible  <bruno@clisp.org>
34326
34327         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34328         ia64.
34329         * modules/printf-safe: New file.
34330         * modules/fprintf-posix (Depends-on): Add printf-safe.
34331         * modules/printf-posix (Depends-on): Likewise.
34332         * modules/snprintf-posix (Depends-on): Likewise.
34333         * modules/sprintf-posix (Depends-on): Likewise.
34334         * modules/vasnprintf-posix (Depends-on): Likewise.
34335         * modules/vasprintf-posix (Depends-on): Likewise.
34336         * modules/vfprintf-posix (Depends-on): Likewise.
34337         * modules/vprintf-posix (Depends-on): Likewise.
34338         * modules/vsnprintf-posix (Depends-on): Likewise.
34339         * modules/vsprintf-posix (Depends-on): Likewise.
34340         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34341         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34342         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34343         "no" on i386, x86_64, ia64.
34344         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34345         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34346         on i386, x86_64, ia64.
34347         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34348         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34349         on i386, x86_64, ia64.
34350         * tests/test-vasnprintf-posix.c: Include float.h.
34351         (LDBL80_WORDS): New macro.
34352         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34353         on i386, x86_64, ia64.
34354         * tests/test-vasprintf-posix.c: Include float.h.
34355         (LDBL80_WORDS): New macro.
34356         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34357         on i386, x86_64, ia64.
34358         * tests/test-snprintf-posix.c: Include float.h.
34359         * tests/test-sprintf-posix.c: Likewise.
34360         * tests/test-vsnprintf-posix.c: Likewise.
34361         * tests/test-vsprintf-posix.c: Likewise.
34362
34363 2007-06-05  Bruno Haible  <bruno@clisp.org>
34364
34365         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34366         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34367         non-IEEE numbers on i386, x86_64, ia64.
34368         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34369         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34370         * tests/test-isnanl.h: Include float.h.
34371         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34372
34373 2007-06-05  Bruno Haible  <bruno@clisp.org>
34374
34375         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34376         also the %a / %A. Handle the %a / %A code before this extra handling.
34377
34378 2007-06-05  Bruno Haible  <bruno@clisp.org>
34379
34380         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34381         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34382
34383 2007-06-05  Bruno Haible  <bruno@clisp.org>
34384
34385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34386         typo in variable name.
34387
34388 2007-06-05  Eric Blake  <ebb9@byu.net>
34389
34390         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34391         Reported by Simon Josefsson.
34392
34393 2007-06-04  Bruno Haible  <bruno@clisp.org>
34394
34395         Avoid test failures on some PowerPC platforms.
34396         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34397         Define differently for PowerPC.
34398         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34399         Reported by Gary V. Vaughan <gary@gnu.org>.
34400
34401 2007-06-02  Bruno Haible  <bruno@clisp.org>
34402
34403         Fix test-stdint failure on FreeBSD/ia64.
34404         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34405         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34406         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34407         * doc/headers/stdint.texi: Update.
34408
34409 2007-06-01  Bruno Haible  <bruno@clisp.org>
34410
34411         * tests/test-binary-io.c (main): Pass a third argument to open().
34412         Reported by Gary V. Vaughan <gary@gnu.org>.
34413
34414 2007-06-01  Bruno Haible  <bruno@clisp.org>
34415
34416         * doc/functions/frexpl.texi: Update for mingw.
34417
34418 2007-06-01  Bruno Haible  <bruno@clisp.org>
34419
34420         * tests/test-lseek.c (main): Disable test of errno for invalid third
34421         argument.
34422         * doc/functions/lseek.texi: Update.
34423         Reported by Gary V. Vaughan <gary@gnu.org>.
34424
34425 2007-05-28  Bruno Haible  <bruno@clisp.org>
34426
34427         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34428
34429 2007-05-31  Eric Blake  <ebb9@byu.net>
34430
34431         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34432         cross compiling.
34433
34434 2007-05-30  Eric Blake  <ebb9@byu.net>
34435         and Bruno Haible  <bruno@clisp.org>
34436
34437         Work around mingw test failures exposed by m4-1.4.9b.
34438         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34439         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34440         moment.
34441
34442 2007-05-30  Bruno Haible  <bruno@clisp.org>
34443
34444         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34445         assuming that they are closed. Needed on HP-UX 11.
34446
34447 2007-05-29  Bruno Haible  <bruno@clisp.org>
34448
34449         Fix a problem with #include_next.
34450         * lib/dirent_.h: Split the double-inclusion guard.
34451         * lib/fcntl_.h: Likewise.
34452         * lib/float_.h: Likewise.
34453         * lib/iconv_.h: Likewise.
34454         * lib/inttypes_.h: Likewise.
34455         * lib/locale_.h: Likewise.
34456         * lib/math_.h: Likewise.
34457         * lib/netinet_in_.h: Likewise.
34458         * lib/search_.h: Likewise.
34459         * lib/signal_.h: Likewise.
34460         * lib/stdint_.h: Likewise.
34461         * lib/stdio_.h: Likewise.
34462         * lib/stdlib_.h: Likewise.
34463         * lib/string_.h: Likewise.
34464         * lib/sys_select_.h: Likewise.
34465         * lib/sys_socket_.h: Likewise.
34466         * lib/sys_stat_.h: Likewise.
34467         * lib/sys_time_.h: Likewise.
34468         * lib/sysexits_.h: Likewise.
34469         * lib/time_.h: Likewise.
34470         * lib/unistd_.h: Likewise.
34471         * lib/wchar_.h: Likewise.
34472         * lib/wctype_.h: Likewise.
34473
34474 2007-05-29  Bruno Haible  <bruno@clisp.org>
34475
34476         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34477         for the moment.
34478
34479 2007-05-29  Bruno Haible  <bruno@clisp.org>
34480
34481         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34482         invocation.
34483         Reported by Eric Blake.
34484
34485 2007-05-29  Bruno Haible  <bruno@clisp.org>
34486
34487         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34488         compiling case.
34489
34490 2007-05-29  Eric Blake  <ebb9@byu.net>
34491             Bruno Haible  <bruno@clisp.org>
34492
34493         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34494         cross compiles.
34495
34496 2007-05-28  Eric Blake  <ebb9@byu.net>
34497
34498         * modules/closein-tests (test_closein_LDADD): Support test on
34499         cygwin with libtool.
34500
34501 2007-05-28  Bruno Haible  <bruno@clisp.org>
34502
34503         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34504         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34505         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34506         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34507         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34508         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34509         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34510         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34511         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34512
34513 2007-05-28  Eric Blake  <ebb9@byu.net>
34514
34515         Unconditionally include <config.h> in unit tests.
34516         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34517         * tests/test-allocsa.c, tests/test-arcfour.c,
34518         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34519         tests/test-array_list.c, tests/test-array_oset.c,
34520         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34521         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34522         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34523         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34524         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34525         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34526         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34527         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34528         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34529         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34530         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34531         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34532         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34533         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34534         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34535         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34536         test-md5.c, test-memmem.c, test-printf-posix.c,
34537         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34538         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34539         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34540         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34541         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34542         test-vasnprintf-posix2.c, test-vasnprintf.c,
34543         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34544         test-vfprintf-posix.c, test-vprintf-posix.c,
34545         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34546         test-xvasprintf.c: Likewise.
34547
34548 2007-05-28  Bruno Haible  <bruno@clisp.org>
34549
34550         * gnulib-tool (func_import): Remember the --with-tests command-line
34551         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34552         Reported by Eric Blake.
34553
34554 2007-05-28  Bruno Haible  <bruno@clisp.org>
34555
34556         * modules/ftell-tests: New file.
34557         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34558         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34559
34560         * lib/ftell.c: New file.
34561         * modules/ftell: New file.
34562         * m4/ftell.m4: New file.
34563         * doc/functions/ftell.texi: Update.
34564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34565         REPLACE_FTELL.
34566         * lib/stdio_.h (rpl_ftell): New declaration.
34567         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34568         REPLACE_FTELL.
34569
34570 2007-05-28  Eric Blake  <ebb9@byu.net>
34571
34572         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34573
34574 2007-05-28  Bruno Haible  <bruno@clisp.org>
34575
34576         * modules/fseek-tests: New file.
34577         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34578         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34579
34580         * lib/fseek.c: New file.
34581         * modules/fseek: New file.
34582         * m4/fseek.m4: New file.
34583         * doc/functions/fseek.texi: Update.
34584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34585         REPLACE_FSEEK.
34586         * lib/stdio_.h (rpl_fseek): New declaration.
34587         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34588         REPLACE_FSEEK.
34589
34590 2007-05-28  Bruno Haible  <bruno@clisp.org>
34591
34592         * lib/stdio_.h (fflush): More comments.
34593
34594 2007-05-28  Bruno Haible  <bruno@clisp.org>
34595
34596         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34597         runtime test.
34598
34599 2007-05-28  Eric Blake  <ebb9@byu.net>
34600
34601         Improve lseek module.
34602         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34603         * lib/unistd_.h (lseek): Scale back link warning message.
34604         * tests/test-lseek.c: Beef up test.
34605         * tests/test-lseek.sh: Exercise more facets of lseek.
34606         Reported by Bruno Haible.
34607
34608 2007-05-28  Bruno Haible  <bruno@clisp.org>
34609
34610         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34611         to define.
34612
34613 2007-05-27  Bruno Haible  <bruno@clisp.org>
34614
34615         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34616
34617 2007-05-27  Bruno Haible  <bruno@clisp.org>
34618
34619         * modules/openmp: New file.
34620         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34621         Noah Misch.
34622
34623 2007-05-26  Bruno Haible  <bruno@clisp.org>
34624
34625         * modules/chdir-long (Depends-on): Add fchdir.
34626         * modules/chdir-safer (Depends-on): Likewise.
34627         * modules/fts (Depends-on): Likewise.
34628         * modules/fts-lgpl (Depends-on): Likewise.
34629         * modules/openat (Depends-on): Likewise.
34630         * modules/savewd (Depends-on): Likewise.
34631
34632 2007-05-24  Eric Blake  <ebb9@byu.net>
34633
34634         Fix lseek on mingw.
34635         * modules/lseek: New module.
34636         * m4/lseek.m4: New file.
34637         * lib/lseek.c: New file.
34638         * modules/lseek-tests: New file.
34639         * tests/test-lseek.c: New file.
34640         * tests/test-lseek.sh: New file.
34641         * MODULES.html.sh: Document lseek module.
34642         * modules/fflush (Depends-on): Add lseek, fseeko.
34643         * modules/fseeko (Depends-on): Likewise.
34644         * modules/ftello (Depends-on): Likewise.
34645         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34646         broken.
34647         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34648         broken.
34649         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34650         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34651         * lib/ftello.c (rpl_ftello): Likewise.
34652         * tests/test-fseeko.c (main): Test this.
34653         * tests/test-fseeko.sh: Likewise.
34654         * tests/test-ftello.c (main): Likewise.
34655         * tests/test-ftello.sh: Likewise.
34656         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34657         implies replacing fseek.
34658         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34659         HAVE_FTELLO.
34660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34661         * modules/unistd (Makefile.am): Likewise.
34662         * lib/unistd_.h (lseek): Declare a replacement.
34663         * doc/functions/lseek.texi (lseek): Document this fix.
34664         * doc/functions/fseek.texi (fseek): Likewise.
34665         * doc/functions/ftell.texi (ftell): Likewise.
34666
34667 2007-05-24  Bruno Haible  <bruno@clisp.org>
34668
34669         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34670         in the printed representation of a NaN.
34671         * tests/test-vasprintf-posix.c (test_function): Likewise.
34672         * tests/test-snprintf-posix.h (test_function): Likewise.
34673         * tests/test-sprintf-posix.h (test_function): Likewise.
34674         Reported by Eric Blake.
34675
34676 2007-05-23  Eric Blake  <ebb9@byu.net>
34677
34678         Fix fseeko/ftello on cygwin 1.5.24.
34679         * doc/functions/fseeko.texi (fseeko): Document the fix.
34680         * doc/functions/ftello.texi (ftello): Document the fix.
34681         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34682         * doc/functions/stdout.text (stdout): New file.
34683         * doc/functions/stderr.text (stderr): New file.
34684         * doc/gnulib.texi (Function Substitutes): Use new files.
34685         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34686         prior to 1.7.0.
34687         * tests/test-ftello.c (main): Likewise for ftello.
34688         * tests/test-fseeko.sh: New file.
34689         * tests/test-ftello.sh: New file.
34690         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34691         with seekable stdin.
34692         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34693         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34694         (gl_REPLACE_FSEEKO): New macro.
34695         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34696         * modules/fseeko (Files): Distribute fseeko.c.
34697         * modules/ftello (Files): Distribute ftello.c.
34698         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34699         mode.
34700         * lib/ftello.c (rpl_ftello): New file.
34701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34702         fseeko, ftello.
34703         (gl_STDIN_LARGE_OFFSET): New macro.
34704         * modules/stdio (Makefile.am): Perform the replacement.
34705         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34706
34707 2007-05-23  Bruno Haible  <bruno@clisp.org>
34708
34709         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34710         GNULIB_POSIXCHECK is defined.
34711
34712 2007-05-21  Bruno Haible  <bruno@clisp.org>
34713
34714         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34715         Check also the output for NaN arguments. When cross-compiling, guess
34716         no on IRIX.
34717         * lib/vasnprintf.c: Update comments.
34718         * tests/test-vasnprintf-posix.c (strisnan): New function.
34719         (test_function): Use it.
34720         * tests/test-vasprintf-posix.c (strisnan): New function.
34721         (test_function): Use it.
34722         * tests/test-snprintf-posix.h (strisnan): New function.
34723         (test_function): Use it.
34724         * tests/test-sprintf-posix.h (strisnan): New function.
34725         (test_function): Use it.
34726         Reported by Eric Blake.
34727
34728 2007-05-20  Bruno Haible  <bruno@clisp.org>
34729
34730         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34731         numbers that fails on BeOS.
34732         * doc/functions/frexpl.texi: Update.
34733
34734 2007-05-20  Jim Meyering  <jim@meyering.net>
34735
34736         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34737         forced upon us by glibc-2.6.
34738
34739 2007-05-20  Bruno Haible  <bruno@clisp.org>
34740
34741         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34742         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34743         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34744         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34745         NEED_PRINTF_INFINITE.
34746         (is_infinitel): New function.
34747         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34749         gl_PREREQ_VASNPRINTF_INFINITE.
34750         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34751         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34752         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34753         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34754         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34755         gl_PREREQ_VASNPRINTF_INFINITE.
34756         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34757         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34758         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34759         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34760         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34761         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34762         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34763         * doc/functions/fprintf.texi: Update.
34764         * doc/functions/printf.texi: Update.
34765         * doc/functions/snprintf.texi: Update.
34766         * doc/functions/sprintf.texi: Update.
34767         * doc/functions/vfprintf.texi: Update.
34768         * doc/functions/vprintf.texi: Update.
34769         * doc/functions/vsnprintf.texi: Update.
34770         * doc/functions/vsprintf.texi: Update.
34771
34772 2007-05-20  Bruno Haible  <bruno@clisp.org>
34773
34774         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34775         was not found in libc.
34776         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34777
34778 2007-05-20  Bruno Haible  <bruno@clisp.org>
34779
34780         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34781         printed as "-nan" instead of "nan".
34782         * tests/test-vasprintf-posix.c (test_function): Likewise.
34783         * tests/test-snprintf-posix.h (test_function): Likewise.
34784         * tests/test-sprintf-posix.h (test_function): Likewise.
34785         Needed for HP-UX 11.
34786
34787 2007-05-20  Jim Meyering  <jim@meyering.net>
34788
34789         Fix buggy test for the fchownat-deref bug.
34790         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34791         symlink required for the run-test.  Without it, this test would
34792         always declare that fchownat doesn't work, and client code would
34793         unnecessarily use the replacement function with fixed libc.
34794         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34795         Reported by Greg Schafer.
34796
34797 2007-05-19  Bruno Haible  <bruno@clisp.org>
34798
34799         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34800         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34801         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34802         Needed for IRIX 6.5 and Solaris 2.5.1.
34803
34804 2007-05-19  Bruno Haible  <bruno@clisp.org>
34805
34806         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34807         (test_function): Skip tests involving -0.0 on platforms where
34808         -0.0 = 0.0.
34809         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34810         (test_function): Skip tests involving -0.0 on platforms where
34811         -0.0 = 0.0.
34812         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34813         (test_function): Skip tests involving -0.0 on platforms where
34814         -0.0 = 0.0.
34815         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34816         (test_function): Skip tests involving -0.0 on platforms where
34817         -0.0 = 0.0.
34818         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34819         tests.
34820         * tests/test-printf-posix.h (test_function): Likewise.
34821         * tests/test-printf-posix.output: Remove all -0.0 related results.
34822         Needed for IRIX 6.5.
34823
34824 2007-05-19  Bruno Haible  <bruno@clisp.org>
34825
34826         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34827         printed as "nan0x7fffffff" instead of "nan".
34828         * tests/test-vasprintf-posix.c (test_function): Likewise.
34829         * tests/test-snprintf-posix.h (test_function): Likewise.
34830         * tests/test-sprintf-posix.h (test_function): Likewise.
34831         * tests/test-fprintf-posix.h (NaN): Remove macro.
34832         (test_function): Remove all NaN related tests.
34833         * tests/test-printf-posix.h (NaN): Remove macro.
34834         (test_function): Remove all NaN related tests.
34835         * tests/test-printf-posix.output: Remove all NaN related results.
34836         Needed for IRIX 6.5.
34837
34838 2007-05-19  Bruno Haible  <bruno@clisp.org>
34839
34840         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34841         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34842
34843 2007-05-19  Bruno Haible  <bruno@clisp.org>
34844
34845         * lib/float_.h: New file.
34846         * m4/float_h.m4: New file.
34847         * modules/float: New file.
34848         * modules/isnanl (Dependencies): Add float.
34849         * modules/isnanl-nolibm (Dependencies): Likewise.
34850         * modules/mathl (Dependencies): Likewise.
34851         * modules/printf-frexpl (Dependencies): Likewise.
34852         * modules/signbit (Dependencies): Likewise.
34853         * modules/vasnprintf (Dependencies): Likewise.
34854         * doc/headers/float.texi: Update.
34855
34856 2007-05-19  Jim Meyering  <jim@meyering.net>
34857
34858         * lib/utimens.c (gl_futimens): Rename from futimens,
34859         now that glibc-2.6 declares futimens.
34860         * lib/utimens.h: Likewise.
34861
34862 2007-05-19  Bruno Haible  <bruno@clisp.org>
34863
34864         Avoid test failures on mingw.
34865         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34866         * tests/test-printf-posix.sh: Likewise.
34867         * tests/test-vfprintf-posix.sh: Likewise.
34868         * tests/test-vprintf-posix.sh: Likewise.
34869
34870 2007-05-19  Bruno Haible  <bruno@clisp.org>
34871
34872         Fix *printf result for NaN, Inf, -0.0 on mingw.
34873         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34874         * lib/vasnprintf.c: Include math.h and isnan.h.
34875         (is_infinite_or_zero): New function.
34876         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34877         values in the %f, %F, %e, %E, %g, %G directives.
34878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34879         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34880         gl_PRINTF_INFINITE and test its result. Invoke
34881         gl_PREREQ_VASNPRINTF_INFINITE.
34882         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34883         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34884         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34885         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34886         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34887         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34888         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34889         * doc/functions/fprintf.texi: Update.
34890         * doc/functions/printf.texi: Update.
34891         * doc/functions/snprintf.texi: Update.
34892         * doc/functions/sprintf.texi: Update.
34893         * doc/functions/vfprintf.texi: Update.
34894         * doc/functions/vprintf.texi: Update.
34895         * doc/functions/vsnprintf.texi: Update.
34896         * doc/functions/vsprintf.texi: Update.
34897
34898 2007-05-19  Bruno Haible  <bruno@clisp.org>
34899
34900         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34901         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34902         Instead of multiplying with 10^k, set extra_zeroes to k.
34903         (scale10_round_long_double): Remove function.
34904
34905 2007-05-18  Bruno Haible  <bruno@clisp.org>
34906
34907         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34908         introduced on 2007-05-06.
34909
34910 2007-05-18  Bruno Haible  <bruno@clisp.org>
34911
34912         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34913         %g directives.
34914         * tests/test-vasprintf-posix.c (test_function): Likewise.
34915         * tests/test-snprintf-posix.h (test_function): Likewise.
34916         * tests/test-sprintf-posix.h (test_function): Likewise.
34917
34918 2007-05-18  Bruno Haible  <bruno@clisp.org>
34919
34920         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34921         (strmatch): New function.
34922         (test_function): Test the %f directive on numbers of various exponents.
34923         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34924         (strmatch): New function.
34925         (test_function): Test the %f directive on numbers of various exponents.
34926         * tests/test-snprintf-posix.h (strmatch): New function.
34927         (test_function): Test the %f directive on numbers of various exponents.
34928         * tests/test-sprintf-posix.h (strmatch): New function.
34929         (test_function): Test the %f directive on numbers of various exponents.
34930         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34931         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34932         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34933         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34934
34935 2007-05-18  Bruno Haible  <bruno@clisp.org>
34936
34937         Add support for 'long double' number output.
34938         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34939         * lib/vasnprintf.c: Include math.h and float+.h.
34940         (mp_limb_t): New type.
34941         (GMP_LIMB_BITS): New macro.
34942         (mp_twolimb_t): New type.
34943         (GMP_TWOLIMB_BITS): New macro.
34944         (mpn_t): New type.
34945         (multiply, divide, convert_to_decimal, decode_long_double,
34946         scale10_round_long_double, scale10_round_decimal_long_double,
34947         floorlog10l): New functions.
34948         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34949         for the %f, %F, %e, %E, %g, %G directives.
34950         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34951         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34952         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34953         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34954         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34955         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34956         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34957         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34958         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34959         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34960         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34961         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34962         * modules/snprintf-posix (Depends-on): Likewise.
34963         * modules/sprintf-posix (Depends-on): Likewise.
34964         * modules/vasnprintf-posix (Depends-on): Likewise.
34965         * modules/vasprintf-posix (Depends-on): Likewise.
34966         * modules/vfprintf-posix (Depends-on): Likewise.
34967         * modules/vsnprintf-posix (Depends-on): Likewise.
34968         * modules/vsprintf-posix (Depends-on): Likewise.
34969         * modules/vasnprintf (Files): Add lib/float+.h.
34970         * doc/functions/fprintf.texi: Update.
34971         * doc/functions/printf.texi: Update.
34972         * doc/functions/snprintf.texi: Update.
34973         * doc/functions/sprintf.texi: Update.
34974         * doc/functions/vfprintf.texi: Update.
34975         * doc/functions/vprintf.texi: Update.
34976         * doc/functions/vsnprintf.texi: Update.
34977         * doc/functions/vsprintf.texi: Update.
34978
34979 2007-05-18  Bruno Haible  <bruno@clisp.org>
34980
34981         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34982
34983 2007-05-18  Bruno Haible  <bruno@clisp.org>
34984
34985         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34986         for printing 64-bit integers. Needed for mingw.
34987
34988 2007-05-18  Bruno Haible  <bruno@clisp.org>
34989
34990         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34991         gl_FUNC_FREXPL_WORKS.
34992         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34993
34994 2007-05-18  Bruno Haible  <bruno@clisp.org>
34995
34996         * modules/frexpl-nolibm-tests: New file.
34997
34998         * modules/frexpl-nolibm: New file.
34999         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
35000
35001 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35002
35003         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
35004         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35005         GCC 4.2, which otherwise issues a lot of warnings.
35006         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
35007         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
35008         Likewise.
35009         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
35010         * modules/iconv_open (iconv.h): Likewise.
35011         * modules/locale (locale.h): Likewise.
35012         * modules/netinet_in (netinet/in.h): Likewise.
35013         * modules/sys_select (sys_select.h): Likewise.
35014         * modules/sys_socket (sys/socket.h): Likewise.
35015         * modules/sys_stat (sys/stat.h): Likewise.
35016         * modules/sysexits (sysexits.h): Likewise.
35017         * modules/unistd (unistd.h): Likewise.
35018
35019 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35020
35021         * modules/closein-tests (Makefile.am): Distribute
35022         `test-closein.sh'.
35023
35024 2007-05-17  Bruno Haible  <bruno@clisp.org>
35025
35026         * tests/test-printf-posix.output: Renamed from
35027         tests/test-fprintf-posix.out.
35028         * modules/fprintf-posix-tests: Update.
35029         * modules/printf-posix-tests: Update.
35030         * modules/vfprintf-posix-tests: Update.
35031         * modules/vprintf-posix-tests: Update.
35032         * tests/test-fprintf-posix.sh: Update.
35033         * tests/test-printf-posix.sh: Update.
35034         * tests/test-vfprintf-posix.sh: Update.
35035         * tests/test-vprintf-posix.sh: Update.
35036         Reported by Ralf Wildenhues.
35037
35038 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35039
35040         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
35041         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35042         GCC 4.2, which otherwise issues a lot of warnings.
35043         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
35044         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
35045         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
35046         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
35047         it should no longer be needed.
35048         * lib/string_.h: Likewise.
35049         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
35050         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
35051         * modules/inttypes (inttypes.h): Likewise.
35052         * modules/math (math.h): Likewise.
35053         * modules/search (search.h): Likewise.
35054         * modules/signal (signal.h): Likewise.
35055         * modules/stdint (stdint.h): Likewise.
35056         * modules/stdio (stdio.h): Likewise.
35057         * modules/stdlib (stdlib.h): Likewise.
35058         * modules/string (string.h): Likewise.
35059         * modules/sys_time (sys/time.h): Likewise.
35060         * modules/time (time.h): Likewise.
35061         * modules/wchar (wchar.h): Likewise.
35062         * modules/wctype (wtype.h): Likewise.
35063
35064 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35065
35066         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
35067
35068 2007-05-13  Bruno Haible  <bruno@clisp.org>
35069
35070         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
35071         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35072         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
35073         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35074         (gl_PREREQ_STRTOK_R): Don't require it here.
35075
35076 2007-05-13  Bruno Haible  <bruno@clisp.org>
35077
35078         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
35079         when used in C++ mode.
35080
35081 2007-05-12  Bruno Haible  <bruno@clisp.org>
35082
35083         * lib/linebuffer.h: Tweak doc.
35084         * lib/linebuffer.c: Likewise.
35085
35086 2007-05-12  James Youngman  <jay@gnu.org>
35087
35088         * lib/linebuffer.c (readlinebuffer_delim): New function,
35089         like readlinebuffer, but use a caller-specified delimiter.
35090         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35091         as the delimiter.
35092         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35093
35094 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35095
35096         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35097         * modules/openat (Files): Remove openat-die.c.
35098         (Depends-on): Add openat-die.
35099         * modules/openat-die: New module.
35100
35101 2007-05-06  Bruno Haible  <bruno@clisp.org>
35102
35103         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35104         Update with info about Cygwin.
35105         * doc/functions/fprintf.texi: Update.
35106         * doc/functions/printf.texi: Update.
35107         * doc/functions/snprintf.texi: Update.
35108         * doc/functions/sprintf.texi: Update.
35109         * doc/functions/vfprintf.texi: Update.
35110         * doc/functions/vprintf.texi: Update.
35111         * doc/functions/vsnprintf.texi: Update.
35112         * doc/functions/vsprintf.texi: Update.
35113         Reported by Eric Blake.
35114
35115 2007-05-06  Bruno Haible  <bruno@clisp.org>
35116
35117         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35118         padding ourselves for the floating-point directives.
35119         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35120         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35121         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35122         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35123         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35124         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35125         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35126         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35127         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35128         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35129         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35130         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35131         * tests/test-snprintf-posix.h (test_function): Also check the width
35132         and some flags in the %f directive.
35133         * tests/test-sprintf-posix.h (test_function): Likewise.
35134         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35135         * tests/test-vasprintf-posix.c (test_function): Likewise.
35136         * doc/functions/fprintf.texi: Update.
35137         * doc/functions/printf.texi: Update.
35138         * doc/functions/snprintf.texi: Update.
35139         * doc/functions/sprintf.texi: Update.
35140         * doc/functions/vfprintf.texi: Update.
35141         * doc/functions/vprintf.texi: Update.
35142         * doc/functions/vsnprintf.texi: Update.
35143         * doc/functions/vsprintf.texi: Update.
35144
35145 2007-05-06  Bruno Haible  <bruno@clisp.org>
35146
35147         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35148         pass the ' flag character to sprintf or snprintf.
35149         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35150         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35151         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35152         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35153         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35154         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35155         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35156         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35157         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35158         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35159         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35160         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35161         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35162         flag.
35163         * tests/test-sprintf-posix.h (test_function): Likewise.
35164         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35165         * tests/test-vasprintf-posix.c (test_function): Likewise.
35166         * doc/functions/fprintf.texi: Update.
35167         * doc/functions/printf.texi: Update.
35168         * doc/functions/snprintf.texi: Update.
35169         * doc/functions/sprintf.texi: Update.
35170         * doc/functions/vfprintf.texi: Update.
35171         * doc/functions/vprintf.texi: Update.
35172         * doc/functions/vsnprintf.texi: Update.
35173         * doc/functions/vsprintf.texi: Update.
35174
35175 2007-05-01  Bruno Haible  <bruno@clisp.org>
35176
35177         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35178
35179 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35180
35181         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35182         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35183
35184 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35185
35186         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35187         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35188         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35189
35190 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35191
35192         * lib/argp-help.c (struct hol_entry): New member `ord'.
35193         (HOL_ENTRY_PTRCMP): Use ord for comparison
35194         (hol_sort): Initialize ord.
35195
35196 2007-05-01  Bruno Haible  <bruno@clisp.org>
35197
35198         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35199         Reported by Eric Blake.
35200         * doc/gnulib.texi (Function Substitutes): Update.
35201
35202 2007-05-01  Bruno Haible  <bruno@clisp.org>
35203
35204         * doc/functions.texi: Remove file, now redundant through
35205         doc/functions/*.texi.
35206
35207 2007-05-01  Bruno Haible  <bruno@clisp.org>
35208
35209         * modules/argp (Depends-on): Add sleep.
35210
35211 2007-05-01  Bruno Haible  <bruno@clisp.org>
35212
35213         * modules/sleep-tests: New file.
35214         * tests/test-sleep.c: New file.
35215
35216         * modules/sleep: New file.
35217         * lib/sleep.c: New file.
35218         * m4/sleep.m4: New file.
35219         * lib/unistd_.h (sleep): New declaration.
35220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35221         HAVE_SLEEP.
35222         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35223         * doc/functions/sleep.texi: Document the sleep module.
35224
35225 2007-05-01  Bruno Haible  <bruno@clisp.org>
35226
35227         * lib/sigprocmask.h: Remove file.
35228         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35229         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35230         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35231         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35232         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35233         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35234         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35235         HAVE_SIGSET_T as a shell variable.
35236         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35237         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35238         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35239         (Depends-on): Add signal. Remove verify.
35240         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35241         (Include): Mention <signal.h> instead of sigprocmask.h.
35242         * NEWS: Mention the change.
35243         * lib/fatal-signal.c: Don't include sigprocmask.h.
35244
35245 2007-05-01  Bruno Haible  <bruno@clisp.org>
35246
35247         * modules/signal: New file.
35248         * lib/signal_.h: New file.
35249         * m4/signal_h.m4: New file.
35250
35251 2007-05-01  Bruno Haible  <bruno@clisp.org>
35252
35253         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35254         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35255         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35256         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35257
35258 2007-05-01  Bruno Haible  <bruno@clisp.org>
35259
35260         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35261         configure time.
35262         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35263         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35264         * modules/sys_stat (Makefile.am): Substitute their values into
35265         sys/stat.h.
35266
35267 2007-05-01  Bruno Haible  <bruno@clisp.org>
35268
35269         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35270         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35271         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35272
35273 2007-05-01  Bruno Haible  <bruno@clisp.org>
35274
35275         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35276         'assert' module here.
35277
35278 2007-05-01  Bruno Haible  <bruno@clisp.org>
35279
35280         * doc/functions/*.texi: New files.
35281         * doc/functions/google-ranking.txt: New file.
35282         * doc/gnulib.texi (Function Substitutes): New chapter.
35283         (ctime, inet_ntoa): Remove sections.
35284         * doc/ctime.texi: Remove file.
35285         * doc/inet_ntoa.texi: Remove file.
35286         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35287         dependencies.
35288         (%.info): New rule, specifying a --reference-limit.
35289
35290 2007-05-01  Bruno Haible  <bruno@clisp.org>
35291
35292         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35293
35294 2007-05-01  Bruno Haible  <bruno@clisp.org>
35295
35296         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35297         the portability of 'mkdir' to mingw systems.
35298
35299 2007-05-01  Bruno Haible  <bruno@clisp.org>
35300
35301         * doc/headers/google-ranking.txt: New file.
35302
35303 2007-04-30  Eric Blake  <ebb9@byu.net>
35304
35305         Prefer fseeko to fseek.
35306         * modules/getpass (Depends-on): Add fseeko.
35307         * lib/getpass.c (getpass): Use fseeko, not fseek.
35308
35309 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35310
35311         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35312         assumes the sorting is stable, while most qsort implementations
35313         are not.  Use argument addresses to ensure they never compare as
35314         equal.
35315
35316         * tests/test-argp-2.sh (usage-indent test): Fix output
35317         (func_compare): Restore diff options
35318         * tests/test-argp.c: Restore #include "progname.h"
35319
35320 2007-04-29  Bruno Haible  <bruno@clisp.org>
35321
35322         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35323         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35324         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35325         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35326         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35327         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35328         (TESTS, check_PROGRAMS): Add test-snprintf.
35329         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35330         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35331         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35332         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35333         assertions that fail on HP-UX, OSF/1, or IRIX.
35334         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35335
35336 2007-04-29  Bruno Haible  <bruno@clisp.org>
35337
35338         * MODULES.html.sh (posix_functions): Remove 'contents'.
35339
35340 2007-04-29  Karl Berry  <karl@gnu.org>
35341
35342         * config/srclist.txt (gendocs_template_min): new entry.
35343
35344 2007-04-29  Bruno Haible  <bruno@clisp.org>
35345
35346         Work around fpurge bug on BSD systems.
35347         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35348         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35349         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35350         fpurge to rpl_fpurge if the system already has this function.
35351         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35352         the case where the system already has this function. Correct invariants
35353         on BSD systems.
35354         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35355         BSD systems.
35356
35357 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35358
35359         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35360         proposed by Sven Verdoolaege.
35361
35362         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35363         options.
35364         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35365         (usage and help tests): Update
35366
35367 2007-04-29  Bruno Haible  <bruno@clisp.org>
35368
35369         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35370         Print more information in case of failure. Disable a test on BeOS.
35371
35372 2007-04-29  Bruno Haible  <bruno@clisp.org>
35373
35374         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35375         This helps debugging on systems on which no gdb is available.
35376
35377 2007-04-29  Bruno Haible  <bruno@clisp.org>
35378
35379         * lib/freading.h: Improve comments.
35380         * lib/fwriting.h: Likewise.
35381         * tests/test-freading.c (main): Don't check freading immediately after
35382         repositioning. Needed for glibc.
35383
35384 2007-04-29  Bruno Haible  <bruno@clisp.org>
35385
35386         * lib/freading.c (freading): Trivial simplification.
35387
35388 2007-04-28  Bruno Haible  <bruno@clisp.org>
35389
35390         * tests/test-fwriting.c (main): Also test the interaction between
35391         fflush and fwriting.
35392         * modules/fwriting-tests (Depends-on): Add fflush.
35393
35394         * tests/test-freading.c (main): Also test the interaction between
35395         fflush and freading.
35396         * modules/freading-tests (Depends-on): Add fflush.
35397
35398 2007-04-28  Bruno Haible  <bruno@clisp.org>
35399
35400         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35401         fseeko and ftello.
35402         Suggested by Eric Blake.
35403
35404 2007-04-28  Jim Meyering  <jim@meyering.net>
35405
35406         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35407         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35408         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35409
35410 2007-04-27  Eric Blake  <ebb9@byu.net>
35411
35412         * doc/headers/assert.texi (assert.h): Document assert module use.
35413
35414 2007-04-27  Bruno Haible  <bruno@clisp.org>
35415
35416         * doc/headers/*.texi: New files.
35417         * doc/gnulib.texi (Header File Substitutes): New chapter.
35418         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35419         dependencies.
35420         (standards.info ,standards.html, standards.dvi): Update dependencies.
35421         (mostlyclean, clean): New targets.
35422
35423 2007-04-27  Bruno Haible  <bruno@clisp.org>
35424
35425         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35426         * modules/sysexits (Files, Makefile.am): Update.
35427
35428         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35429         * modules/sys_socket (Files, Makefile.am): Update.
35430
35431         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35432         * modules/sys_stat (Files, Makefile.am): Update.
35433
35434 2007-04-27  Eric Blake  <ebb9@byu.net>
35435
35436         * lib/freading.h: Improve comments.
35437         * lib/fwriting.h: Likewise.
35438         * lib/fflush.c: Likewise.
35439
35440         Fix closein for mingw.
35441         * modules/closein-tests: Add tests for closein.
35442         * tests/test-closein.c: New file.
35443         * tests/test-closein.sh: Likewise.
35444         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35445         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35446
35447 2007-04-27  Bruno Haible  <bruno@clisp.org>
35448
35449         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35450         version is < 6.
35451         * lib/math_.h [__DECC]: Likewise.
35452         * lib/stdio_.h [__DECC]: Likewise.
35453         * lib/stdlib_.h [__DECC]: Likewise.
35454         * lib/string_.h [__DECC]: Likewise.
35455         * lib/time_.h [__DECC]: Likewise.
35456         * lib/wchar_.h [__DECC]: Likewise.
35457         * lib/wctype_.h [__DECC]: Likewise.
35458
35459 2007-04-27  Bruno Haible  <bruno@clisp.org>
35460
35461         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35462
35463 2007-04-27  Bruno Haible  <bruno@clisp.org>
35464
35465         * lib/fflush.c: Add comments.
35466         * modules/fpurge-tests (Depends-on): Add fflush.
35467         * modules/freadable-tests (Depends-on): Likewise.
35468         * modules/fwritable-tests (Depends-on): Likewise.
35469
35470 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35471
35472         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35473         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35474         Report by Bruno Haible <bruno@clisp.org>.
35475
35476 2007-04-26  Eric Blake  <ebb9@byu.net>
35477
35478         Fix fflush on mingw.
35479         * modules/fflush (Depends-on): Add freading.
35480         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35481         but unread data.
35482
35483 2007-04-26  Eric Blake  <ebb9@byu.net>
35484         and Bruno Haible  <bruno@clisp.org>
35485
35486         Implement freading and fwriting.
35487         * lib/freading.c: New file.
35488         * lib/freading.h: Likewise.
35489         * m4/freading.m4: Likewise.
35490         * modules/freading: Likewise.
35491         * modules/freading-tests: Likewise.
35492         * tests/test-freading.c: Likewise.
35493         * lib/fwriting.c: New file.
35494         * lib/fwriting.h: Likewise.
35495         * m4/fwriting.m4: Likewise.
35496         * modules/fwriting: Likewise.
35497         * modules/fwriting-tests: Likewise.
35498         * tests/test-fwriting.c: Likewise.
35499         * MODULES.html.sh (File stream based Input/Output): Mention them.
35500
35501 2007-04-26  Bruno Haible  <bruno@clisp.org>
35502
35503         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35504         'long' when we assume it.
35505         Suggested by Eric Blake.
35506
35507 2007-04-26  Bruno Haible  <bruno@clisp.org>
35508
35509         Ensure fseeko, ftello are declared on glibc systems.
35510         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35511         * modules/fseeko (configure.ac-early): Likewise.
35512         * modules/ftello (configure.ac-early): Likewise.
35513         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35514         AC_FUNC_FSEEKO for this.
35515         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35516         (gl_CHECK_FSEEKO): Remove macro.
35517
35518 2007-04-26  Bruno Haible  <bruno@clisp.org>
35519
35520         * tests/test-fflush.c (main): Also check the ftell result after
35521         fflush and fseek/fseeko.
35522         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35523         file descriptor position cache in the stream.
35524         * lib/fseeko.c (rpl_fseeko): Likewise.
35525
35526 2007-04-26  Bruno Haible  <bruno@clisp.org>
35527
35528         * modules/fflush-tests (Depends-on): Add fseeko.
35529
35530 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35531             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35532
35533         * lib/argz_.h: ensure error_t definition is obtained in same
35534         mechanism system argz.h would have.
35535         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35536         argz facilities are known bad.  Err on the side of caution if
35537         cross-compiling.
35538
35539 2007-04-25  Eric Blake  <ebb9@byu.net>
35540
35541         * lib/fpurge.c (includes): Use stdlib.h for free.
35542         * tests/test-fflush.c (main): Also test fflush-fseeko.
35543
35544 2007-04-25  Bruno Haible  <bruno@clisp.org>
35545
35546         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35547         * lib/fseeko.c: New file.
35548         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35549         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35550         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35551         gl_FUNC_FSEEKO.
35552         (gl_FUNC_FSEEKO): Invoke it.
35553         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35554         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35555         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35556
35557 2007-04-25  Bruno Haible  <bruno@clisp.org>
35558
35559         * modules/fflush (Depends-on): Add ftello.
35560
35561 2007-04-25  Bruno Haible  <bruno@clisp.org>
35562
35563         * modules/ftello-tests: New file.
35564         * tests/test-ftello.c: New file.
35565
35566         * modules/ftello: New file.
35567         * m4/ftello.m4: New file.
35568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35569         HAVE_FTELLO.
35570         * lib/stdio_.h (ftello): New declaration.
35571         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35572         HAVE_FTELLO.
35573
35574 2007-04-25  Bruno Haible  <bruno@clisp.org>
35575
35576         * modules/fseeko-tests: New file.
35577         * tests/test-fseeko.c: New file.
35578
35579         * modules/fseeko: New file.
35580         * m4/fseeko.m4: New file.
35581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35582         HAVE_FSEEKO.
35583         * lib/stdio_.h (fseeko): New declaration.
35584         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35585         HAVE_FSEEKO.
35586
35587 2007-04-25  Bruno Haible  <bruno@clisp.org>
35588
35589         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35590
35591 2007-04-25  Bruno Haible  <bruno@clisp.org>
35592
35593         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35594         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35595         * tests/test-unistd.c: Likewise.
35596         * tests/test-fcntl.c: Likewise.
35597
35598 2007-04-23  Eric Blake  <ebb9@byu.net>
35599
35600         * lib/fflush.c: Fix missing include.
35601         Reported by Bruno Haible.
35602
35603 2007-04-23  Bruno Haible  <bruno@clisp.org>
35604
35605         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35606         Reported by Eric Blake.
35607
35608 2007-04-23  Bruno Haible  <bruno@clisp.org>
35609
35610         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35611
35612 2007-04-23  Bruno Haible  <bruno@clisp.org>
35613
35614         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35615
35616 2007-04-23  Bruno Haible  <bruno@clisp.org>
35617
35618         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35619         Needed on HP-UX 11.
35620
35621 2007-04-16  Eric Blake  <ebb9@byu.net>
35622
35623         Make fflush rely on fpurge.
35624         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35625         open coding all variants.
35626         * modules/fflush (Depends-on): Add fpurge and unistd.
35627         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35628         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35629
35630         Fix --with-tests compilation on cygwin.
35631         * modules/argmatch-tests (Makefile.am): List gnulib library first
35632         in LDADD.
35633         * modules/argp-tests (Makefile.am): Likewise.
35634         * modules/array-list-tests (Makefile.am): Likewise.
35635         * modules/array-oset-tests (Makefile.am): Likewise.
35636         * modules/avltree-list-tests (Makefile.am): Likewise.
35637         * modules/avltree-oset-tests (Makefile.am): Likewise.
35638         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35639         * modules/carray-list-tests (Makefile.am): Likewise.
35640         * modules/dirname-tests (Makefile.am): Likewise.
35641         * modules/frexp-tests (Makefile.am): Likewise.
35642         * modules/isnanl-tests (Makefile.am): Likewise.
35643         * modules/linked-list-tests (Makefile.am): Likewise.
35644         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35645         * modules/lock-tests (Makefile.am): Likewise.
35646         * modules/rbtree-list-tests (Makefile.am): Likewise.
35647         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35648         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35649         * modules/tls-tests (Makefile.am): Likewise.
35650         * modules/tsearch-tests (Makefile.am): Likewise.
35651         * modules/xvasprintf-tests (Makefile.am): Likewise.
35652
35653         Fix fpurge for cygwin.
35654         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35655         value.
35656         * modules/fpurge-tests (Depends-on): Clean up trash.
35657
35658 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35659
35660         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35661
35662         * m4/autobuild.m4: Re-indent.
35663
35664 2007-04-13  Bruno Haible  <bruno@clisp.org>
35665
35666         * modules/fpurge-tests: New file.
35667         * tests/test-fpurge.c: New file.
35668
35669         * modules/fpurge: New file.
35670         * lib/fpurge.h: New file.
35671         * lib/fpurge.c: New file.
35672         * m4/fpurge.m4: New file.
35673
35674 2007-04-13  Bruno Haible  <bruno@clisp.org>
35675
35676         * modules/fbufmode-tests: New file.
35677         * tests/test-fbufmode.c: New file.
35678
35679         * modules/fbufmode: New file.
35680         * lib/fbufmode.h: New file.
35681         * lib/fbufmode.c: New file.
35682         * m4/fbufmode.m4: New file.
35683
35684 2007-04-13  Bruno Haible  <bruno@clisp.org>
35685
35686         * modules/fwritable-tests: New file.
35687         * tests/test-fwritable.c: New file.
35688
35689         * modules/fwritable: New file.
35690         * lib/fwritable.h: New file.
35691         * lib/fwritable.c: New file.
35692         * m4/fwritable.m4: New file.
35693
35694 2007-04-13  Bruno Haible  <bruno@clisp.org>
35695
35696         * modules/freadable-tests: New file.
35697         * tests/test-freadable.c: New file.
35698
35699         * modules/freadable: New file.
35700         * lib/freadable.h: New file.
35701         * lib/freadable.c: New file.
35702         * m4/freadable.m4: New file.
35703
35704 2007-04-13  Bruno Haible  <bruno@clisp.org>
35705
35706         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35707         MOSTLYCLEANFILES.
35708
35709 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35710
35711         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35712         gzip bootstrap.conf to avoid dragging in i18n machinery.
35713         (gnulib_tool_option): Use it.
35714
35715 2007-04-13  Bruno Haible  <bruno@clisp.org>
35716
35717         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35718         %F directives.
35719         * tests/test-vasprintf-posix.c (test_function): Likewise.
35720         * tests/test-snprintf-posix.h (test_function): Likewise.
35721         * tests/test-sprintf-posix.h (test_function): Likewise.
35722         * tests/test-fprintf-posix.h (test_function): Likewise.
35723         * tests/test-printf-posix.h (test_function): Likewise.
35724         * tests/test-fprintf-posix.out: Likewise.
35725
35726 2007-04-13  Bruno Haible  <bruno@clisp.org>
35727
35728         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35729         * modules/tls-tests (configure.ac): Likewise.
35730         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35731
35732 2007-04-13  Bruno Haible  <bruno@clisp.org>
35733
35734         * lib/tls.c (glthread_tls_get): Fix return type.
35735         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35736
35737 2007-04-12  Eric Blake  <ebb9@byu.net>
35738
35739         * modules/gettime (Depends-on): Remove gettime.
35740         Reported by Dmitry V. Levin.
35741
35742 2007-04-12  Bruno Haible  <bruno@clisp.org>
35743
35744         * modules/fflush (Include): Mention <stdio.h>.
35745         * modules/strtoimax (Include): Mention <inttypes.h>.
35746         * modules/strtoumax (Include): Likewise.
35747
35748 2007-04-12  Eric Blake  <ebb9@byu.net>
35749
35750         * .cvsignore: New file.
35751         * .gitignore: Likewise.
35752
35753 2007-04-12  Bruno Haible  <bruno@clisp.org>
35754
35755         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35756         not before, since $(LDADD) often contains libgnu.a.
35757         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35758         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35759         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35760         Needed on Cygwin.
35761
35762 2007-04-12  Eric Blake  <ebb9@byu.net>
35763
35764         Work around glibc's failure to flush stdin on fclose.
35765         * lib/closein.c (close_stdin): Flush stdin before closing.
35766
35767         Work around glibc's failure to reset seekable stdin on exit.
35768         * modules/closein: New module.
35769         * lib/closein.c: New file.
35770         * lib/closein.h: Likewise.
35771         * m4/closein.m4: Likewise.
35772         * MODULES.html.sh (File stream based Input/Output): Document it.
35773
35774 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35775
35776         * gnulib-tool: Rename generated 'autobuild' script to
35777         'do-autobuild' in --create-megatestdir output.
35778
35779         * doc/gnulib.texi (Build robot for gnulib): Fix.
35780
35781 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35782
35783         * modules/sysexits (Depends-on): Add absolute-header.
35784
35785 2007-04-12  Eric Blake  <ebb9@byu.net>
35786
35787         No need to preserve errno on success.
35788         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35789         Reported by Bruno Haible.
35790
35791 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35792
35793         * MODULES.html.sh (Support for maintaining and releasing
35794         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35795
35796 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35797
35798         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35799
35800 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35801
35802         * modules/autobuild: New module.
35803
35804         * m4/autobuild.m4: New file.
35805
35806 2007-04-11  Bruno Haible  <bruno@clisp.org>
35807
35808         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35809         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35810         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35811         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35812         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35813         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35814         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35815         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35816         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35817         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35818         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35819         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35820         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35821         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35822         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35823         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35824         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35825         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35826         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35827         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35828         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35829         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35830         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35831         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35832         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35833         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35834         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35835         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35836         Reported by Eric Blake.
35837
35838 2007-04-11  Bruno Haible  <bruno@clisp.org>
35839
35840         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35841
35842 2007-04-10  Bruno Haible  <bruno@clisp.org>
35843
35844         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35845         for NaN and Infinity. Needed on FreeBSD 6.1.
35846         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35847         regarding results for "%010a" of Infinity and NaN.
35848         * tests/test-vasprintf-posix.c (test_function): Likewise.
35849         * tests/test-snprintf-posix.h (test_function): Likewise.
35850         * tests/test-sprintf-posix.h (test_function): Likewise.
35851         * tests/test-fprintf-posix.h (test_function): Likewise.
35852         * tests/test-printf-posix.h (test_function): Likewise.
35853         * tests/test-fprintf-posix.out: Likewise.
35854
35855 2007-04-10  Bruno Haible  <bruno@clisp.org>
35856
35857         * modules/locale-tests: New file.
35858         * tests/test-locale.c: New file.
35859
35860         * modules/locale: New file.
35861         * lib/locale_.h: New file.
35862         * m4/locale_h.m4: New file.
35863
35864 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35865             Bruno Haible  <bruno@clisp.org>
35866
35867         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35868         be determined, test for availability of the copysignf, copysign,
35869         copysignl functions.
35870         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35871         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35872         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35873
35874 2007-04-09  Eric Blake  <ebb9@byu.net>
35875
35876         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35877         * modules/stdio (Makefile.am): Support fflush.
35878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35879         * modules/fflush: New file.
35880         * lib/fflush.c: Likewise.
35881         * m4/fflush.m4: Likewise.
35882         * modules/fflush-tests: New test.
35883         * tests/test-fflush.c: Likewise.
35884         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35885
35886 2007-04-06  Bruno Haible  <bruno@clisp.org>
35887
35888         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35889         (VASNPRINTF): Use signbit for faster determination whether to print a
35890         minus sign.
35891         * modules/vasnprintf (Files): Remove lib/float+.h.
35892         * modules/fprintf-posix (Depends-on): Add signbit.
35893         * modules/snprintf-posix (Depends-on): Likewise.
35894         * modules/sprintf-posix (Depends-on): Likewise.
35895         * modules/vasnprintf-posix (Depends-on): Likewise.
35896         * modules/vasprintf-posix (Depends-on): Likewise.
35897         * modules/vfprintf-posix (Depends-on): Likewise.
35898         * modules/vsnprintf-posix (Depends-on): Likewise.
35899         * modules/vsprintf-posix (Depends-on): Likewise.
35900
35901 2007-04-06  Bruno Haible  <bruno@clisp.org>
35902
35903         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35904         * tests/test-frexpl.c (main): Likewise.
35905         * tests/test-ldexpl.c (main): Likewise.
35906         * modules/frexp-tests (Depends-on): Add signbit.
35907         * modules/frexpl-tests (Depdends-on): Likewise.
35908         * modules/ldexpl-tests (Depdends-on): Likewise.
35909
35910 2007-04-06  Bruno Haible  <bruno@clisp.org>
35911
35912         * modules/signbit-tests: New file.
35913         * tests/test-signbit.c: New file.
35914
35915         * modules/signbit: New file.
35916         * lib/signbitf.c: New file.
35917         * lib/signbitd.c: New file.
35918         * lib/signbitl.c: New file.
35919         * m4/signbit.m4: New file.
35920         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35921         (signbit): New macro.
35922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35923         REPLACE_SIGNBIT.
35924         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35925         REPLACE_FREXPL into math.h.
35926
35927 2007-04-06  Bruno Haible  <bruno@clisp.org>
35928
35929         * modules/isnanf-nolibm-tests: New file.
35930         * tests/test-isnanf.c: New file.
35931
35932         * modules/isnanf-nolibm: New file.
35933         * lib/isnanf.h: New file.
35934         * lib/isnanf.c: New file.
35935         * lib/isnan.c: Consider the USE_FLOAT macro.
35936         * m4/isnanf.m4: New file.
35937
35938 2007-04-06  Bruno Haible  <bruno@clisp.org>
35939
35940         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35941         (Link): New section.
35942
35943         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35944
35945 2007-04-06  Bruno Haible  <bruno@clisp.org>
35946
35947         Assume the 'long double' type.
35948         * m4/longdouble.m4: Remove file.
35949         * config/srclist.txt: Don't mention longdouble.m4.
35950         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35951         * lib/float+.h: Likewise.
35952         * lib/frexp.c: Likewise.
35953         * lib/printf-args.h: Likewise.
35954         * lib/printf-args.c: Likewise.
35955         * lib/printf-frexp.c: Likewise.
35956         * lib/printf-parse.c: Likewise.
35957         * lib/vasnprintf.c: Likewise.
35958         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35959         * m4/intl.m4: Likewise.
35960         * m4/isnanl.m4: Likewise.
35961         * m4/printf.m4: Likewise.
35962         * m4/printf-frexpl.m4: Likewise.
35963         * m4/vasnprintf.m4: Likewise.
35964         * modules/allocsa (Files): Remove m4/longdouble.m4.
35965         * modules/gettext (Files): Likewise.
35966         * modules/relocatable-prog-wrapper (Files): Likewise.
35967         * modules/vasnprintf (Files): Likewise.
35968         * modules/isnanl (Files): Likewise.
35969         (Include): Simplify.
35970         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35971         (Include): Simplify.
35972         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35973         (Include): Simplify.
35974         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35975         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35976         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35977         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35978         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35979         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35980         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35981         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35982         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35983         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35984         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35985         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35986         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35987         * tests/test-isnanl.c: Likewise.
35988         * tests/test-snprintf-posix.h: Likewise.
35989         * tests/test-sprintf-posix.h: Likewise.
35990         * tests/test-vasnprintf-posix.c: Likewise.
35991         * tests/test-vasnprintf-posix2.c: Likewise.
35992         * tests/test-vasprintf-posix.c: Likewise.
35993
35994 2007-04-06  Bruno Haible  <bruno@clisp.org>
35995
35996         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35997         * lib/math_.h [__DECC]: Include the overridden include file through
35998         #include_next, outside the double-inclusion guard.
35999         * lib/stdio_.h [__DECC]: Likewise.
36000         * lib/stdlib_.h [__DECC]: Likewise.
36001         * lib/string_.h [__DECC]: Likewise.
36002         * lib/time_.h [__DECC]: Likewise.
36003         * lib/wchar_.h [__DECC]: Likewise.
36004         * lib/wctype_.h [__DECC]: Likewise.
36005         * lib/inttypes_.h [__DECC]: Likewise.
36006         Reported by Albert Chin <china@thewrittenword.com> in
36007         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
36008
36009 2007-04-04  Eric Blake  <ebb9@byu.net>
36010
36011         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
36012         1.5.x.
36013
36014 2007-04-04  Bruno Haible  <bruno@clisp.org>
36015
36016         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
36017         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
36018
36019 2007-04-04  Bruno Haible  <bruno@clisp.org>
36020
36021         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
36022         results for "%010a" of Infinity and NaN.
36023         * tests/test-vasprintf-posix.c (test_function): Likewise.
36024         * tests/test-snprintf-posix.h (test_function): Likewise.
36025         * tests/test-sprintf-posix.h (test_function): Likewise.
36026         * tests/test-fprintf-posix.h (test_function): Remove these tests.
36027         * tests/test-printf-posix.h (test_function): Likewise.
36028         * tests/test-fprintf-posix.out: Update.
36029         Needed for FreeBSD 6.1.
36030
36031 2007-04-04  Bruno Haible  <bruno@clisp.org>
36032
36033         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
36034         directly used by the gnulib modules nor by gnulib-tool.
36035
36036 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36037
36038         * DEPENDENCIES: Give overall description of version dependency
36039         desirability.  Use more-typical names for apps.
36040         Add shell, coreutils, diffutils, grep, tar, gzip.
36041
36042 2007-04-04  Simon Josefsson  <simon@josefsson.org>
36043
36044         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
36045
36046 2007-04-04  Karl Berry  <karl@gnu.org>
36047
36048         * MODULES.html.sh (func_module): missing '.
36049
36050 2007-04-03  Bruno Haible  <bruno@clisp.org>
36051
36052         * modules/argmatch-tests (Makefile.am): New variable
36053         test_argmatch_LDADD.
36054         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
36055         * modules/array-list-tests (Makefile.am): New variable
36056         test_array_list_LDADD.
36057         * modules/array-oset-tests (Makefile.am): New variable
36058         test_array_oset_LDADD.
36059         * modules/avltree-list-tests (Makefile.am): New variable
36060         test_avltree_list_LDADD.
36061         * modules/avltree-oset-tests (Makefile.am): New variable
36062         test_avltree_oset_LDADD.
36063         * modules/avltreehash-list-tests (Makefile.am): New variable
36064         test_avltreehash_list_LDADD.
36065         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
36066         test_canonicalize_lgpl_LDADD.
36067         * modules/carray-list-tests (Makefile.am): New variable
36068         test_carray_list_LDADD.
36069         * modules/dirname-tests (Makefile.am): New variable
36070         test_dirname_LDADD.
36071         * modules/linked-list-tests (Makefile.am): New variable
36072         test_linked_list_LDADD.
36073         * modules/linkedhash-list-tests (Makefile.am): New variable
36074         test_linkedhash_list_LDADD.
36075         * modules/rbtree-list-tests (Makefile.am): New variable
36076         test_rbtree_list_LDADD.
36077         * modules/rbtree-oset-tests (Makefile.am): New variable
36078         test_rbtree_oset_LDADD.
36079         * modules/rbtreehash-list-tests (Makefile.am): New variable
36080         test_rbtreehash_list_LDADD.
36081         * modules/xvasprintf-tests (Makefile.am): New variable
36082         test_xvasprintf_LDADD.
36083         Reported by Eric Blake.
36084
36085 2007-04-03  Eric Blake  <ebb9@byu.net>
36086
36087         * DEPENDENCIES: Weaken m4 requirements.
36088
36089 2007-04-03  Bruno Haible  <bruno@clisp.org>
36090
36091         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36092         * modules/isnanl-tests (configure.ac): Likewise.
36093
36094 2007-04-03  Ben Pfaff  <blp@gnu.org>
36095
36096         * modules/iconv_open: Add $(srcdir)/ to source directory
36097         references in Makefile fragments that call gperf, to fix VPATH
36098         builds.
36099
36100 2007-04-03  Bruno Haible  <bruno@clisp.org>
36101
36102         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36103         * lib/ldexpl.c: Undo last change.
36104
36105 2007-04-03  Bruno Haible  <bruno@clisp.org>
36106
36107         * modules/printf-frexpl (Depends-on): Undo last change.
36108         (Files): Add m4/ldexpl.m4.
36109
36110 2007-04-03  Bruno Haible  <bruno@clisp.org>
36111
36112         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36113         * modules/isnanl (Link): New section.
36114
36115         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36116         * modules/frexp (Link): New section.
36117
36118         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36119         * modules/frexpl (Link): New section.
36120
36121         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36122         * modules/ldexpl (Link): New section.
36123
36124 2007-04-03  Bruno Haible  <bruno@clisp.org>
36125
36126         * modules/TEMPLATE-EXTENDED: New file.
36127         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36128
36129 2007-04-03  Bruno Haible  <bruno@clisp.org>
36130
36131         * DEPENDENCIES: New file.
36132         Suggested by Simon Josefsson.
36133
36134 2007-04-03  Bruno Haible  <bruno@clisp.org>
36135
36136         * doc/gnulib.texi: Escape @.
36137
36138 2007-04-03  James Youngman  <jay@gnu.org>
36139         and Paul Eggert  <eggert@cs.ucla.edu>
36140
36141         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36142         birthtime on all systems that have birthtime, not just those which
36143         use st_birthtimensec rather than st_birthtim.  Putting zero in
36144         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36145         that the birth time is not available for files on an NFS mount.
36146
36147 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36148
36149         * modules/memxor: Move back from crypto/, suggested by Bruno.
36150         * modules/crypto/hmac-sha1: Fix memxor dependency.
36151
36152         * modules/crypto/gc: Moved from ../.
36153
36154 2007-04-02  Eric Blake  <ebb9@byu.net>
36155
36156         * lib/ldexpl.c (includes): Avoid libm.
36157
36158         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36159
36160 2007-04-02  Bruno Haible  <bruno@clisp.org>
36161
36162         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36163         on IRIX.
36164
36165 2007-04-02  Bruno Haible  <bruno@clisp.org>
36166
36167         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36168         x86 or x86_64 platforms running MacOS X.
36169         Reported by Ryan Schmidt <@ryandesign.com>.
36170
36171 2007-04-02  Bruno Haible  <bruno@clisp.org>
36172
36173         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36174         i386.
36175
36176 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36177
36178         * modules/crypto/arcfour: Moved from ../.
36179         * modules/crypto/arcfour-tests: Moved from ../.
36180         * modules/crypto/arctwo: Moved from ../.
36181         * modules/crypto/arctwo-tests: Moved from ../.
36182         * modules/crypto/des: Moved from ../.
36183         * modules/crypto/des-tests: Moved from ../.
36184         * modules/crypto/gc-arcfour: Moved from ../.
36185         * modules/crypto/gc-arcfour-tests: Moved from ../.
36186         * modules/crypto/gc-arctwo: Moved from ../.
36187         * modules/crypto/gc-arctwo-tests: Moved from ../.
36188         * modules/crypto/gc-des: Moved from ../.
36189         * modules/crypto/gc-des-tests: Moved from ../.
36190         * modules/crypto/gc-hmac-md5: Moved from ../.
36191         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36192         * modules/crypto/gc-hmac-sha1: Moved from ../.
36193         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36194         * modules/crypto/gc-md2: Moved from ../.
36195         * modules/crypto/gc-md2-tests: Moved from ../.
36196         * modules/crypto/gc-md4: Moved from ../.
36197         * modules/crypto/gc-md4-tests: Moved from ../.
36198         * modules/crypto/gc-md5: Moved from ../.
36199         * modules/crypto/gc-md5-tests: Moved from ../.
36200         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36201         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36202         * modules/crypto/gc-random: Moved from ../.
36203         * modules/crypto/gc-rijndael: Moved from ../.
36204         * modules/crypto/gc-rijndael-tests: Moved from ../.
36205         * modules/crypto/gc-sha1: Moved from ../.
36206         * modules/crypto/gc-sha1-tests: Moved from ../.
36207         * modules/crypto/gc-tests: Moved from ../.
36208         * modules/crypto/hmac-md5: Moved from ../.
36209         * modules/crypto/hmac-md5-tests: Moved from ../.
36210         * modules/crypto/hmac-sha1: Moved from ../.
36211         * modules/crypto/hmac-sha1-tests: Moved from ../.
36212         * modules/crypto/md2: Moved from ../.
36213         * modules/crypto/md2-tests: Moved from ../.
36214         * modules/crypto/md4: Moved from ../.
36215         * modules/crypto/md4-tests: Moved from ../.
36216         * modules/crypto/md5: Moved from ../.
36217         * modules/crypto/md5-tests: Moved from ../.
36218         * modules/crypto/memxor: Moved from ../.
36219         * modules/crypto/rijndael: Moved from ../.
36220         * modules/crypto/rijndael-tests: Moved from ../.
36221         * modules/crypto/sha1: Moved from ../.
36222
36223 2007-03-30  James Youngman  <jay@gnu.org>
36224
36225         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36226         rename() to change the ctime of a file (because ctime is unaffected
36227         by rename on jfs2 on AIX 5.1).
36228         (main): Start by doing cleanup, in case a previous run failed leaving
36229         test files behind.
36230
36231 2007-03-31  Bruno Haible  <bruno@clisp.org>
36232
36233         Support old proprietary implementations of iconv.
36234         * modules/iconv_open: New file.
36235         * lib/iconv_.h: New file.
36236         * m4/iconv_h.m4: New file.
36237         * lib/iconv_open.c: New file.
36238         * lib/iconv_open-aix.gperf: New file.
36239         * lib/iconv_open-hpux.gperf: New file.
36240         * lib/iconv_open-irix.gperf: New file.
36241         * lib/iconv_open-osf.gperf: New file.
36242         * m4/iconv_open.m4: New file.
36243         * modules/linebreak (Depends-on): Add iconv_open.
36244         * modules/striconv (Depends-on): Likewise.
36245         * modules/striconveh (Depends-on): Likewise.
36246         * modules/unicodeio (Depends-on): Likewise.
36247         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36248         (iconv_t)(-1).
36249         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36250         conversion if cd is (iconv_t)(-1).
36251         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36252         is not possible.
36253
36254 2007-03-31  Bruno Haible  <bruno@clisp.org>
36255
36256         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36257         work on Solaris either. Protect also second use of "autodetect_jp".
36258
36259 2007-03-31  Bruno Haible  <bruno@clisp.org>
36260
36261         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36262         the function is not present.
36263
36264 2007-03-31  Bruno Haible  <bruno@clisp.org>
36265
36266         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36267         the function is not present.
36268
36269 2007-03-31  Bruno Haible  <bruno@clisp.org>
36270
36271         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36272         a bug in HP-UX iconv_open().
36273
36274 2007-03-31  Bruno Haible  <bruno@clisp.org>
36275
36276         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36277         (Mathematics <math.h>): New section, add fpieee.
36278         (Input/output <stdio.h>): Add fseterr.
36279         (Mathematics <math.h>): New section, add printf-frexp.
36280         (Container data structures): Add sublist.
36281         (Core language properties): Add fpucw, inline.
36282         (Functions for greatest-width integer types <inttypes.h>): Add
36283         imaxabs, imaxdiv, inttypes.
36284         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36285         isnanl-nolibm, ldexp.
36286         (Mathematics <math.h>): New section, add printf-frexpl.
36287         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36288         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36289         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36290         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36291         (Unicode string functions): Add unistr/u*-mbtoucr.
36292         (Java): Add javacomp-script, javaexec-script.
36293         (C#): Add csharpcomp-script, csharpexec-script.
36294         (Support for building libraries and executables): Add havelib,
36295         relocatable-*.
36296         (Support for maintaining and releasing projects): Renamed from
36297         'Support for maintaining and release projects'. Add announce-gen.
36298
36299 2007-03-31  Bruno Haible  <bruno@clisp.org>
36300
36301         * README: Talk primarily about git.
36302         (git and CVS): Renamed from CVS.
36303         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36304         gnulib is available through git.
36305         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36306
36307 2007-03-30  Bruno Haible  <bruno@clisp.org>
36308
36309         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36310         * lib/poll_.h: Likewise.
36311         * lib/stat_.h: Likewise.
36312         * lib/sys_time_.h: Likewise.
36313         * lib/sysexit_.h: Likewise.
36314         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36315         * lib/stdbool_.h: Likewise.
36316         * lib/byteswap_.h: Add double-inclusion guard.
36317
36318 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36319
36320         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36321
36322 2007-03-30  Karl Berry  <karl@gnu.org>
36323
36324         * config/srclist-update: double space after USA in the license
36325         substitution, since that's how it's usually (?) written.
36326
36327 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36328
36329         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36330         reported by Bruno Haible.
36331
36332 2007-03-29  Bruno Haible  <bruno@clisp.org>
36333
36334         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36335         a bug in AIX iconv().
36336
36337 2007-03-29  Bruno Haible  <bruno@clisp.org>
36338
36339         * modules/ldexpl-tests: New file.
36340         * tests/test-ldexpl.c: New file.
36341
36342 2007-03-29  Bruno Haible  <bruno@clisp.org>
36343
36344         * lib/ldexpl.c: Include fpucw.h.
36345         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36346         multiplication.
36347         * modules/ldexpl (Depends-on): Add fpucw.
36348
36349 2007-03-29  Bruno Haible  <bruno@clisp.org>
36350
36351         * modules/ldexpl: New file.
36352         * m4/ldexpl.m4: New file.
36353         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36354         set.
36355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36356         REPLACE_LDEXPL.
36357         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36358         REPLACE_LDEXPL.
36359         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36360         gl_FUNC_LDEXPL_WORKS.
36361         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36362         * modules/mathl (Files): Remove lib/ldexpl.c.
36363         (Depends-on): Add ldexpl.
36364
36365 2007-03-29  Bruno Haible  <bruno@clisp.org>
36366
36367         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36368
36369 2007-03-29  Bruno Haible  <bruno@clisp.org>
36370
36371         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36372         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36373         and possibly also HP-UX.
36374         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36375         work on AIX, IRIX, HP-UX, OSF/1.
36376         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36377         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36378         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36379         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36380         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36381         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36382
36383 2007-03-29  Bruno Haible  <bruno@clisp.org>
36384
36385         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36386
36387 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36388
36389         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36390         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36391
36392 2007-03-29  Eric Blake  <ebb9@byu.net>
36393
36394         * lib/acl-internal.h: Remove redundant include.
36395         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36396         Cygwin when a file is locked.
36397
36398 2007-03-29  Bruno Haible  <bruno@clisp.org>
36399
36400         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36401         file.
36402         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36403
36404 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36405
36406         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36407         try to remove a parent directory if the child couldn't be removed
36408         (except for the first rmdir, which could fail because the child
36409         doesn't exist).  Problem reported by Jeff Blaine in
36410         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36411
36412 2007-03-28  Bruno Haible  <bruno@clisp.org>
36413
36414         * lib/striconveh.c (utf8conv_carefully): New function.
36415         (mem_cd_iconveh_internal): Invoke it.
36416
36417 2007-03-28  Bruno Haible  <bruno@clisp.org>
36418
36419         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36420         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36421         input.
36422         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36423         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36424         unistr/u8-uctomb.
36425
36426 2007-03-28  Bruno Haible  <bruno@clisp.org>
36427
36428         * modules/unistr/u8-mbtoucr: New file.
36429         * lib/unistr/u8-mbtoucr.c: New file.
36430         * modules/unistr/u16-mbtoucr: New file.
36431         * lib/unistr/u16-mbtoucr.c: New file.
36432         * modules/unistr/u16-mbtoucr: New file.
36433         * lib/unistr/u16-mbtoucr.c: New file.
36434         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36435
36436 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36437             Bruno Haible  <bruno@clisp.org>
36438
36439         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36440         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36441         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36442
36443         * m4/stdio_h.m4: Add stubs for vasprintf too.
36444
36445         * modules/stdio: Support vasprintf in sed command.
36446
36447         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36448         vasprintf.h.  Add stdio module indicator.
36449
36450         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36451         vasprintf.h.
36452
36453         * lib/vasprintf.h: File removed.
36454
36455         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36456         * lib/vasprintf.c: Ditto.
36457         * lib/xvasprintf.c: Ditto.
36458         * tests/test-vasprintf-posix.c: Ditto.
36459         * tests/test-vasprintf.c: Ditto.
36460
36461 2007-03-27  Bruno Haible  <bruno@clisp.org>
36462
36463         Make vasnprintf multithread-safe.
36464         * lib/vasnprintf.c (decimal_point_char): New function.
36465         (VASNPRINTF): Use it.
36466         Suggested by Simon Josefsson.
36467
36468 2007-03-27  Eric Blake  <ebb9@byu.net>
36469
36470         Support sub-second birthtime on cygwin.
36471         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36472         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36473         (get_stat_birthtime): Also work with st_birthtim.
36474
36475 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36476
36477         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36478         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36479         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36480         (get_stat_birthtime_ns): Simplify compile-time tests.
36481         (get_stat_birthtime): Change the API to look like
36482         get_stat_mtime etc., except return a negative tv_nsec on error.
36483         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36484         Don't check for "spare" fields.
36485         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36486         or for struct stat.st_birthtime, as these tests aren't used.
36487         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36488
36489 2007-03-27  Bruno Haible  <bruno@clisp.org>
36490
36491         * lib/stat-time.h: Include <sys/stat.h>.
36492
36493 2007-03-27  James Youngman  <jay@gnu.org>
36494
36495         * lib/stat-time.h (get_stat_birthtime): New function for
36496           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36497         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36498           and its variants.
36499         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36500         * modules/stat-time-test: New file.
36501         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36502
36503 2007-03-26  Bruno Haible  <bruno@clisp.org>
36504
36505         Better support of signalling NaNs.
36506         * lib/atanl.c: Include isnanl.h.
36507         (atanl): Perform test for NaN at the beginning of the function and
36508         through a call to isnanl.
36509         * lib/cosl.c: Include isnanl.h.
36510         (cosl): Perform test for NaN at the beginning of the function and
36511         through a call to isnanl.
36512         * lib/ldexpl.c: Include isnanl.h.
36513         (ldexpl): Perform test for NaN through a call to isnanl.
36514         * lib/logl.c: Include isnanl.h.
36515         (logl): Perform test for NaN at the beginning of the function and
36516         through a call to isnanl.
36517         * lib/sinl.c: Include isnanl.h.
36518         (sinl): Perform test for NaN at the beginning of the function and
36519         through a call to isnanl.
36520         * lib/sqrtl.c: Include isnanl.h.
36521         (sqrtl): Perform test for NaN at the beginning of the function and
36522         through a call to isnanl.
36523         * lib/tanl.c: Include isnanl.h.
36524         (tanl): Perform test for NaN at the beginning of the function and
36525         through a call to isnanl.
36526         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36527         * modules/mathl (Depends-on): Add isnanl.
36528
36529 2007-03-26  Eric Blake  <ebb9@byu.net>
36530
36531         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36532         regression in logic sense of previous patch.
36533
36534 2007-03-26  Bruno Haible  <bruno@clisp.org>
36535
36536         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36537         unportable shell command "if ! ...".
36538         Reported by Ralf Wildenhues.
36539
36540 2007-03-25  Bruno Haible  <bruno@clisp.org>
36541
36542         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36543         <sysexits.h> file, and only add EX_CONFIG.
36544         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36545         absolute file name and whether it is sufficient. Substitute also
36546         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36547         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36548         ABSOLUTE_SYSEXITS_H into sysexits.h.
36549
36550 2007-03-25  Bruno Haible  <bruno@clisp.org>
36551
36552         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36553         hints is NULL.
36554
36555 2007-03-25  Bruno Haible  <bruno@clisp.org>
36556
36557         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36558         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36559
36560 2007-03-25  Bruno Haible  <bruno@clisp.org>
36561
36562         * lib/vasnprintf.c: Include langinfo.h.
36563         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36564         multithread-safe.
36565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36566         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36567         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36568         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36569         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36570         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36571         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36572         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36573         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36574         Reported by Simon Josefsson.
36575
36576 2007-03-25  Bruno Haible  <bruno@clisp.org>
36577
36578         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36579         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36580         * modules/vasnprintf (Depends-on): Add stdint.
36581
36582 2007-03-25  Bruno Haible  <bruno@clisp.org>
36583
36584         * modules/fpieee: New file.
36585         * m4/fpieee.m4: New file.
36586         * modules/isnan-nolibm (Depends-on): Add fpieee.
36587         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36588         * modules/isnanl (Depends-on): Add fpieee.
36589
36590 2007-03-25  Bruno Haible  <bruno@clisp.org>
36591
36592         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36593
36594 2007-03-25  Bruno Haible  <bruno@clisp.org>
36595
36596         Avoid test failures on IRIX 6.5.
36597         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36598         (main): Use it.
36599         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36600         macros.
36601         (main): Use them.
36602
36603 2007-03-25  Bruno Haible  <bruno@clisp.org>
36604
36605         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36606         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36607         exists but doesn't work.
36608         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36609         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36611         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36612
36613 2007-03-25  Bruno Haible  <bruno@clisp.org>
36614
36615         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36616         returns inf. Needed on IRIX 6.5.
36617
36618 2007-03-25  Bruno Haible  <bruno@clisp.org>
36619
36620         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36621         (main): Use isnanl instead of x != x idiom.
36622         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36623
36624         * tests/test-frexp.c: Include isnan.h.
36625         (main): Use isnan instead of x != x idiom.
36626         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36627
36628 2007-03-25  Bruno Haible  <bruno@clisp.org>
36629
36630         * tests/test-frexp.c (NaN): New function/macro.
36631         (main): Use it instead of 0.0 / 0.0.
36632         * tests/test-isnan.c (NaN): New function/macro.
36633         (main): Use it instead of 0.0 / 0.0.
36634         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36635         (test_function): Use it instead of 0.0 / 0.0.
36636         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36637         (test_function): Use it instead of 0.0 / 0.0.
36638         * tests/test-snprintf-posix.h (NaN): New function/macro.
36639         (test_function): Use it instead of 0.0 / 0.0.
36640         * tests/test-sprintf-posix.h (NaN): New function/macro.
36641         (test_function): Use it instead of 0.0 / 0.0.
36642         * tests/test-fprintf-posix.h (NaN): New function/macro.
36643         (test_function): Use it instead of 0.0 / 0.0.
36644         * tests/test-printf-posix.h (NaN): New function/macro.
36645         (test_function): Use it instead of 0.0 / 0.0.
36646
36647         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36648
36649 2007-03-25  Bruno Haible  <bruno@clisp.org>
36650
36651         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36652
36653 2007-03-25  Bruno Haible  <bruno@clisp.org>
36654
36655         * lib/regexec.c (merge_state_with_log): Make static.
36656
36657 2007-03-25  Bruno Haible  <bruno@clisp.org>
36658
36659         * lib/trigl.c (kernel_rem_pio2): Make static.
36660
36661 2007-03-25  Bruno Haible  <bruno@clisp.org>
36662
36663         * lib/sincosl.c (sincosl_table): Make static.
36664
36665 2007-03-25  Bruno Haible  <bruno@clisp.org>
36666
36667         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36668         if the compiler does not support C99.
36669
36670 2007-03-25  Bruno Haible  <bruno@clisp.org>
36671
36672         * modules/time (Makefile.am): Ensure all rule action lines start with a
36673         tab.
36674
36675 2007-03-24  Bruno Haible  <bruno@clisp.org>
36676
36677         * modules/tsearch-tests: New file.
36678         * tests/test-tsearch.sh: New file.
36679         * tests/test-tsearch.c: New file, mostly copied from glibc.
36680
36681         * modules/search-tests: New file.
36682         * tests/test-search.c: New file.
36683
36684         * modules/search: New file.
36685         * lib/search_.h: New file, incorporating lib/tsearch.h.
36686         * m4/search_h.m4: New file.
36687         * lib/tsearch.h: Remove file.
36688         * lib/tsearch.c: Include search.h instead of tsearch.h.
36689         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36690         HAVE_TSEARCH.
36691         * modules/tsearch (Files): Remove lib/tsearch.h.
36692         (Depends-on): Add search.
36693         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36694         (Include): Change tsearch.h into search.h.
36695
36696 2007-03-24  Bruno Haible  <bruno@clisp.org>
36697
36698         * modules/fpucw: New file.
36699         * lib/fpucw.h: New file.
36700         * lib/frexp.c: Include fpucw.h.
36701         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36702         (FUNC): Use them.
36703         * lib/printf-frexp.c: Include fpucw.h.
36704         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36705         (FUNC): Use them.
36706         * lib/vasnprintf.c: Include fpucw.h.
36707         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36708         'long double' calculations.
36709         * tests/test-frexpl.c: Include fpucw.h.
36710         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36711         * tests/test-printf-frexpl.c: Include fpucw.h.
36712         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36713         * modules/frexpl (Depends-on): Add fpucw.
36714         * modules/printf-frexpl (Depends-on): Likewise.
36715         * modules/fprintf-posix (Depends-on): Likewise.
36716         * modules/snprintf-posix (Depends-on): Likewise.
36717         * modules/sprintf-posix (Depends-on): Likewise.
36718         * modules/vasnprintf-posix (Depends-on): Likewise.
36719         * modules/vasprintf-posix (Depends-on): Likewise.
36720         * modules/vfprintf-posix (Depends-on): Likewise.
36721         * modules/vsnprintf-posix (Depends-on): Likewise.
36722         * modules/vsprintf-posix (Depends-on): Likewise.
36723         * modules/frexpl-tests (Depends-on): Likewise.
36724         * modules/printf-frexpl-tests (Depends-on): Likewise.
36725
36726 2007-03-24  Bruno Haible  <bruno@clisp.org>
36727
36728         * lib/float+.h: New file.
36729         * lib/isnan.c: Include float+.h.
36730         (SIZE): New macro.
36731         (FUNC): Compare only SIZE bytes of the value.
36732         * lib/vasnprintf.c: Include float+.h.
36733         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36734         SIZEOF_LDBL or SIZEOF_DBL bytes.
36735         * modules/isnan-nolibm (Files): Add lib/float+.h.
36736         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36737         * modules/isnanl (Files): Add lib/float+.h.
36738         * modules/vasnprintf (Files): Add lib/float+.h.
36739
36740 2007-03-24  Bruno Haible  <bruno@clisp.org>
36741
36742         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36743         include isnanl-nolibm.h.
36744
36745 2007-03-24  Bruno Haible  <bruno@clisp.org>
36746
36747         * tests/test-read-file.c (main): Don't produce spurious output for
36748         expected situations. Make the test fail if it encountered unexpected
36749         results.
36750
36751 2007-03-24  Bruno Haible  <bruno@clisp.org>
36752
36753         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36754         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36755
36756 2007-03-24  Bruno Haible  <bruno@clisp.org>
36757
36758         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36759
36760 2007-03-24  Bruno Haible  <bruno@clisp.org>
36761
36762         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36763         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36764
36765         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36766         * modules/utf8-ucs4: Turn into a symbolic link to module
36767         unistr/u8-mbtouc.
36768
36769         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36770         utf8-ucs4-unsafe.
36771         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36772         unistr/u8-mbtouc-unsafe.
36773
36774         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36775         * modules/utf16-ucs4: Turn into a symbolic link to module
36776         unistr/u16-mbtouc.
36777
36778         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36779         utf16-ucs4-unsafe.
36780         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36781         unistr/u16-mbtouc-unsafe.
36782
36783         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36784         * modules/ucs4-utf8: Turn into a symbolic link to module
36785         unistr/u8-ubtomb.
36786
36787         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36788         * modules/ucs4-utf16: Turn into a symbolic link to module
36789         unistr/u16-ubtomb.
36790
36791 2007-03-24  Bruno Haible  <bruno@clisp.org>
36792
36793         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36794         Enable the function only if HAVE_INLINE.
36795         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36796         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36797         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36798         Enable the function only if HAVE_INLINE.
36799         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36800         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36801         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36802         Enable the function only if HAVE_INLINE.
36803         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36804         Enable the function only if HAVE_INLINE.
36805         * modules/utf8-ucs4: Update.
36806         * modules/utf8-ucs4-unsafe: Update.
36807         * modules/utf16-ucs4: Update.
36808         * modules/utf16-ucs4-unsafe: Update.
36809         * modules/ucs4-utf8: Update.
36810         * modules/ucs4-utf16: Update.
36811
36812 2007-03-24  Bruno Haible  <bruno@clisp.org>
36813
36814         * lib/utf8-ucs4.h: Remove file.
36815         * lib/utf8-ucs4-unsafe.h: Remove file.
36816         * lib/utf16-ucs4.h: Remove file.
36817         * lib/utf16-ucs4-unsafe.h: Remove file.
36818         * lib/ucs4-utf8.h: Remove file.
36819         * lib/ucs4-utf16.h: Remove file.
36820         * lib/unistr.h: Include their previous contents.
36821         * m4/utf-ucs4.m4: Remove file.
36822         * m4/ucs4-utf.m4: Remove file.
36823         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36824         (Depends-on): Add unistr/base.
36825         (configure.ac): Remove gl_UTF_UCS4.
36826         (Makefile.am): Update.
36827         (Include): Change to unistr.h.
36828         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36829         (Depends-on): Add unistr/base.
36830         (configure.ac): Remove gl_UTF_UCS4.
36831         (Makefile.am): Update.
36832         (Include): Change to unistr.h.
36833         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36834         (Depends-on): Add unistr/base.
36835         (configure.ac): Remove gl_UTF_UCS4.
36836         (Makefile.am): Update.
36837         (Include): Change to unistr.h.
36838         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36839         (Depends-on): Add unistr/base.
36840         (configure.ac): Remove gl_UTF_UCS4.
36841         (Makefile.am): Update.
36842         (Include): Change to unistr.h.
36843         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36844         (Depends-on): Add unistr/base.
36845         (configure.ac): Remove gl_UCS4_UTF.
36846         (Makefile.am): Update.
36847         (Include): Change to unistr.h.
36848         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36849         (Depends-on): Add unistr/base.
36850         (configure.ac): Remove gl_UCS4_UTF.
36851         (Makefile.am): Update.
36852         (Include): Change to unistr.h.
36853         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36854         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36855         utf8-ucs4-unsafe.h.
36856         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36857         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36858         utf16-ucs4-unsafe.h.
36859         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36860         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36861         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36862         * lib/unistr/u8-strchr.c: Likewise.
36863         * lib/unistr/u8-strrchr.c: Likewise.
36864         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36865         * lib/unistr/u16-strchr.c: Likewise.
36866         * lib/unistr/u16-strrchr.c: Likewise.
36867         * lib/striconveh.c: Update.
36868         * lib/linebreak.c: Update.
36869
36870 2007-03-24  Bruno Haible  <bruno@clisp.org>
36871
36872         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36873         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36874
36875 2007-03-22  Bruno Haible  <bruno@clisp.org>
36876
36877         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36878
36879 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36880
36881         * MODULES.html.sh (File system functions): New module write-any-file.
36882         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36883         * m4/write-any-file.m4: New files.
36884
36885 2007-03-23  Eric Blake  <ebb9@byu.net>
36886
36887         * gnulib-tool: Rearrange space-tab sequences, since some editors
36888         like to eat them.
36889
36890 2007-03-23  Eric Blake  <ebb9@byu.net>
36891
36892         * lib/version-etc.c (version_etc_va): Update license wording to
36893         be more concise.  Recommended by Richard Stallman.
36894
36895 2007-03-22  Bruno Haible  <bruno@clisp.org>
36896
36897         * lib/poll.c (MSG_PEEK): New fallback definition.
36898
36899 2007-03-22  Bruno Haible  <bruno@clisp.org>
36900
36901         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36902         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36903         (main): Update.
36904         Fixes a compilation error on BeOS.
36905
36906 2007-03-22  Bruno Haible  <bruno@clisp.org>
36907
36908         * modules/frexpl-tests: New file.
36909         * tests/test-frexpl.c: New file.
36910
36911         * modules/frexpl: New file.
36912         * m4/frexpl.m4: New file.
36913         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36914         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36916         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36917         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36918         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36919
36920 2007-03-22  Bruno Haible  <bruno@clisp.org>
36921
36922         * lib/frexpl.c: Share code with lib/frexp.c.
36923         * modules/mathl (Files): Add lib/frexp.c.
36924         (Depends-on): Add isnanl-nolibm.
36925
36926 2007-03-22  Bruno Haible  <bruno@clisp.org>
36927
36928         * modules/printf-frexp (Files): Add m4/frexp.m4.
36929         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36930         only if the found frexp function actually works.
36931
36932 2007-03-22  Bruno Haible  <bruno@clisp.org>
36933
36934         * lib/frexp.c: Remove older implementation that uses divisions.
36935
36936 2007-03-21  Bruno Haible  <bruno@clisp.org>
36937
36938         * modules/frexp-tests: New file.
36939         * tests/test-frexp.c: New file.
36940
36941         * modules/frexp: New file.
36942         * lib/frexp.c: New file.
36943         * m4/frexp.m4: New file.
36944         * lib/math_.h (frexp): New declaration.
36945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36946         REPLACE_FREXP.
36947         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36948
36949 2007-03-21  Bruno Haible  <bruno@clisp.org>
36950
36951         * modules/isnanl-tests: New file.
36952         * tests/test-isnanl.c: New file.
36953
36954         * modules/isnanl: New file.
36955         * lib/isnanl.h: New file.
36956         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36957         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36958         gl_FUNC_ISNANL_WORKS.
36959         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36960         New macros.
36961
36962 2007-03-21  Bruno Haible  <bruno@clisp.org>
36963
36964         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36965         lib/isnanl.h.
36966         (Include): Update.
36967         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36968         * lib/vasnprintf.c: Update.
36969         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36970         tests/test-isnanl.h, remove tests/test-isnanl.c.
36971         (Makefile.am): Update.
36972         * tests/test-isnanl-nolibm.c: New file.
36973         * tests/test-isnanl.h: New file.
36974         * tests/test-isnanl.c: Remove file.
36975
36976 2007-03-21  Jim Meyering  <jim@meyering.net>
36977
36978         When trying to open ".", treat ESTALE like EACCES.
36979         * lib/savewd.c (savewd_save): Resort to forking not just upon
36980         failure with EACCES, but also when errno is ESTALE.
36981
36982 2007-03-20  Bruno Haible  <bruno@clisp.org>
36983
36984         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36985         Needed on AIX 5.1. Reported by Matthew Woehlke.
36986
36987 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36988
36989         Suggestions by Bruno Haible:
36990         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36991         our own.
36992         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36993         * modules/acl (Depends-on): Add gettext.
36994
36995 2007-03-19  Bruno Haible  <bruno@clisp.org>
36996
36997         * modules/iconvme: Remove file.
36998         * lib/iconvme.h: Remove file.
36999         * lib/iconvme.c: Remove file.
37000         * m4/iconvme.m4: Remove file.
37001
37002 2007-03-19  Bruno Haible  <bruno@clisp.org>
37003
37004         * doc/relocatable-maint.texi: Break long shell script line.
37005         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37006
37007 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37008
37009         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
37010         handle file_has_acl.
37011         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
37012         * lib/acl.c: Move header inclusions and related macro defns into
37013         lib/acl-internal.h.
37014         (S_ISLNK): Remove defn, since that's now done for us.
37015         (file_has_acl): Move to lib/file-has-acl.c.
37016         Call acl_trivial if available.  This is the crucial part of the fix.
37017         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
37018         shared within the library.  Rewrite a bit, partly to make it compatible
37019         with the GNU coding style.
37020         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
37021         Remove unnecessary double-quotes.
37022         Don't test for acl_to_text; the build will catch that.
37023         Replace acl_entries if it doesn't exist and it is needed.
37024         Check for -lsec and acl_trivial (as used on Solaris 10).
37025         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
37026         lib/file-has-acl.c.
37027         (Depends-on): Add sys_stat, for S_ISLNK.
37028
37029 2007-03-19  Ben Pfaff  <blp@gnu.org>
37030
37031         * doc/gnulib.texi: Fix typos.
37032         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37033
37034 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37035
37036         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
37037         If size is zero here, buf must be zero.
37038
37039 2007-03-19  Simon Josefsson  <simon@josefsson.org>
37040
37041         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
37042         <bruno@clisp.org>.
37043
37044 2007-03-18  Bruno Haible  <bruno@clisp.org>
37045
37046         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
37047         Suggested by Eric Blake.
37048
37049 2007-03-18  Ben Pfaff  <blp@gnu.org>
37050
37051         * doc/relocatable.texi: Recommend using as prefix a directory
37052         that does not exist and will never be created.  Based on
37053         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
37054         and others.
37055
37056 2007-03-17  Bruno Haible  <bruno@clisp.org>
37057
37058         * lib/fchownat.c: Include lchown.h.
37059
37060 2007-03-17  Bruno Haible  <bruno@clisp.org>
37061
37062         Fix endless loop when the given allocated size was > INT_MAX.
37063         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
37064         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
37065         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
37066         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
37067         * lib/sprintf.c (sprintf): Likewise.
37068
37069 2007-03-17  Bruno Haible  <bruno@clisp.org>
37070
37071         * tests/test-argp-2.sh (func_compare): Output a context diff.
37072
37073 2007-03-17  Bruno Haible  <bruno@clisp.org>
37074
37075         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
37076         locale's decimal-point character.
37077
37078 2007-03-17  Bruno Haible  <bruno@clisp.org>
37079
37080         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
37081         before comparing it. Needed because on some platforms (e.g. x86) a
37082         'long double' occupies less bytes than sizeof (long double).
37083
37084 2007-03-17  Bruno Haible  <bruno@clisp.org>
37085
37086         * tests/test-crc.c (main): Make printf statements 64-bit clean.
37087         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
37088         * tests/test-getaddrinfo.c (simple): Likewise.
37089         * tests/test-read-file.c (main): Likewise.
37090
37091 2007-03-17  Bruno Haible  <bruno@clisp.org>
37092
37093         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37094
37095 2007-03-17  Bruno Haible  <bruno@clisp.org>
37096
37097         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37098         unused variable.
37099
37100 2007-03-17  Bruno Haible  <bruno@clisp.org>
37101
37102         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37103         * tests/test-c-strncasecmp.c: Likewise.
37104
37105 2007-03-17  Bruno Haible  <bruno@clisp.org>
37106
37107         * modules/stdlib (Depends-on): Add unistd.
37108         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37109         Needed for MacOS X 10.3.
37110
37111 2007-03-17  Bruno Haible  <bruno@clisp.org>
37112
37113         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37114
37115 2007-03-17  Bruno Haible  <bruno@clisp.org>
37116
37117         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37118
37119 2007-03-17  Bruno Haible  <bruno@clisp.org>
37120
37121         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37122         to reflect files copied from gnulib (with or without modifications).
37123         Suggested by Jim Meyering.
37124
37125 2007-03-17  Eric Blake  <ebb9@byu.net>
37126
37127         * NEWS: Document stdlib change from 2007-02-18.
37128
37129 2007-03-17  Jim Meyering  <jim@meyering.net>
37130
37131         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37132         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37133         someone uses a name containing shell meta-characters.
37134         Reported by Alfred M. Szmidt.
37135
37136         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37137
37138 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37139
37140         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37141         and copy gettext configuration files only if configure.ac contains
37142         a use of AM_GNU_GETTEXT_VERSION.
37143
37144 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37145
37146         * build-aux/bootstrap (gnulib_name): New variable.
37147         (gnulib_tool_options): Use it.
37148
37149 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37150
37151         * tests/test-des.c: Use new namespace.
37152
37153 2007-03-15  Bruno Haible  <bruno@clisp.org>
37154
37155         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37156         Reported by James Youngman <jay@gnu.org>.
37157
37158 2007-03-15  Bruno Haible  <bruno@clisp.org>
37159
37160         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37161         declared prototype. Needed with cc on OSF/1 5.1.
37162
37163 2007-03-15  Bruno Haible  <bruno@clisp.org>
37164
37165         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37166         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37167         (struct gl_list_implementation): Add dispose_fn argument to the
37168         'create_empty', 'create' methods.
37169         (struct gl_list_impl_base): Add field 'dispose_fn'.
37170         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37171         argument.
37172         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37173         dispose_fn argument.
37174         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37175         dispose_fn on the dropped values.
37176         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37177         dispose_fn argument.
37178         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37179         dropped values.
37180         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37181         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37182         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37183         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37184         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37185         argument.
37186         (gl_tree_list_free): Call dispose_fn on the dropped values.
37187         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37188         the dropped values.
37189         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37190         Add dispose_fn argument.
37191         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37192         Call dispose_fn on the dropped values.
37193         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37194         Add dispose_fn argument.
37195         (gl_sublist_create): Initialize the 'dispose_fn' field.
37196         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37197         * tests/test-array_list.c (main): Update.
37198         * tests/test-carray_list.c (main): Update.
37199         * tests/test-avltree_list.c (main): Update.
37200         * tests/test-rbtree_list.c (main): Update.
37201         * tests/test-avltreehash_list.c (main): Update.
37202         * tests/test-rbtreehash_list.c (main): Update.
37203         * tests/test-linked_list.c (main): Update.
37204         * tests/test-linkedhash_list.c (main): Update.
37205         * tests/test-array_oset.c (main): Update.
37206
37207 2007-03-15  Bruno Haible  <bruno@clisp.org>
37208
37209         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37210         (gl_oset_create_empty): Add dispose_fn argument.
37211         (struct gl_oset_implementation): Add dispose_fn argument to
37212         'create_empty' method.
37213         (struct gl_oset_impl_base): Add dispose_fn field.
37214         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37215         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37216         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37217         values.
37218         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37219         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37220         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37221         dropped value.
37222         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37223         dropped value.
37224         * tests/test-array_oset.c (main): Update.
37225         * tests/test-avltree_oset.c (main): Update.
37226         * tests/test-rbtree_oset.c (main): Update.
37227         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37228
37229 2007-03-13  Bruno Haible  <bruno@clisp.org>
37230
37231         * tests/test-stdbool.c (i): Update after last patch.
37232
37233 2007-03-12  Bruno Haible  <bruno@clisp.org>
37234
37235         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37236         the iswprint macro. Needed on Solaris 2.5.1.
37237
37238 2007-03-12  Bruno Haible  <bruno@clisp.org>
37239
37240         * tests/test-printf-frexp.c (main): Declare x as volatile.
37241
37242 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37243
37244         * doc/gnulib.texi (Build robot for gnulib): New section.
37245
37246 2007-03-12  Jim Meyering  <jim@meyering.net>
37247
37248         * build-aux/bootstrap: New file.
37249         * build-aux/bootstrap.conf: New file, from coreutils.
37250
37251 2007-03-11  Bruno Haible  <bruno@clisp.org>
37252
37253         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37254
37255 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37256
37257         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37258         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37259         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37260
37261 2007-03-11  Bruno Haible  <bruno@clisp.org>
37262
37263         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37264         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37265
37266 2007-03-11  Bruno Haible  <bruno@clisp.org>
37267
37268         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37269         formula. Needed for SunPRO C 5.0.
37270
37271 2007-03-11  Bruno Haible  <bruno@clisp.org>
37272
37273         * modules/long-options (Depends-on): Add getopt.
37274
37275 2007-03-11  Bruno Haible  <bruno@clisp.org>
37276
37277         * modules/modechange (Depends-on): Add stdbool.
37278
37279 2007-03-11  Bruno Haible  <bruno@clisp.org>
37280
37281         * modules/i-ring (Depends-on): Add stdbool.
37282
37283 2007-03-11  Bruno Haible  <bruno@clisp.org>
37284
37285         * modules/gc-des (Depends-on): Add stdbool.
37286
37287 2007-03-11  Bruno Haible  <bruno@clisp.org>
37288
37289         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37290
37291 2007-03-11  Bruno Haible  <bruno@clisp.org>
37292
37293         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37294
37295 2007-03-11  Bruno Haible  <bruno@clisp.org>
37296
37297         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37298
37299 2007-03-11  Bruno Haible  <bruno@clisp.org>
37300
37301         * lib/vasnprintf.c (sprintf): Undefine.
37302
37303 2007-03-11  Bruno Haible  <bruno@clisp.org>
37304
37305         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37306         initializers in SunPRO C and Compaq C compilers.
37307
37308 2007-03-11  Bruno Haible  <bruno@clisp.org>
37309
37310         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37311         decrementing code ANSI C compliant.
37312
37313 2007-03-11  Bruno Haible  <bruno@clisp.org>
37314
37315         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37316         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37317
37318 2007-03-11  Bruno Haible  <bruno@clisp.org>
37319
37320         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37321         <stdbool.h> substitute doesn't pass.
37322
37323 2007-03-11  Bruno Haible  <bruno@clisp.org>
37324
37325         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37326
37327 2007-03-11  Bruno Haible  <bruno@clisp.org>
37328
37329         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37330         script, for submission to autobuild.josefsson.org.
37331
37332 2007-03-10  Bruno Haible  <bruno@clisp.org>
37333
37334         * modules/canonicalize-lgpl-tests: New file.
37335         * tests/test-canonicalize-lgpl.sh: New file.
37336         * tests/test-canonicalize-lgpl.c: New file.
37337
37338         * modules/c-strcase-tests: New file.
37339         * tests/test-c-strcase.sh: New file.
37340         * tests/test-c-strcasecmp.c: New file.
37341         * tests/test-c-strncasecmp.c: New file.
37342
37343         * modules/atexit-tests: New file.
37344         * tests/test-atexit.sh: New file.
37345         * tests/test-atexit.c: New file.
37346
37347 2007-03-10  Bruno Haible  <bruno@clisp.org>
37348
37349         * tests/test-binary-io.sh: Use temporary filenames that are not so
37350         likely to clash with those of other tests (in a parallel make).
37351         * tests/test-binary-io.c: Likewise.
37352
37353 2007-03-10  Bruno Haible  <bruno@clisp.org>
37354
37355         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37356         fallback; use #error instead.
37357         Suggested by Simon Josefsson.
37358
37359 2007-03-10  Bruno Haible  <bruno@clisp.org>
37360
37361         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37362         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37363         first and the last.
37364
37365 2007-03-10  Bruno Haible  <bruno@clisp.org>
37366
37367         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37368
37369 2007-03-10  Bruno Haible  <bruno@clisp.org>
37370
37371         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37372         "make distcheck".
37373         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37374         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37375         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37376
37377 2007-03-10  Bruno Haible  <bruno@clisp.org>
37378
37379         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37380         variable.
37381         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37382         variable.
37383
37384 2007-03-09  Eric Blake  <ebb9@byu.net>
37385         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37386
37387         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37388         types are not being provided by gnulib.
37389         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37390         types are supported.
37391
37392 2007-03-10  Bruno Haible  <bruno@clisp.org>
37393
37394         * lib/stdio_.h (__attribute__): New macro.
37395         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37396         vsprintf): Specify __attribute__ __format__ for GCC.
37397         Suggested by Eric Blake.
37398
37399 2007-03-09  Bruno Haible  <bruno@clisp.org>
37400
37401         * modules/printf-posix-tests: New file.
37402         * tests/test-printf-posix.sh: New file.
37403         * tests/test-printf-posix.c: New file.
37404
37405         * modules/printf-posix: New file.
37406         * lib/printf.c: New file.
37407         * m4/printf-posix-rpl.m4: New file.
37408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37409         REPLACE_PRINTF.
37410         * lib/stdio_.h (printf): New declaration.
37411         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37412         ____strfmon____): New macros.
37413         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37414         REPLACE_PRINTF.
37415
37416 2007-03-09  Bruno Haible  <bruno@clisp.org>
37417
37418         * tests/test-vasnprintf-posix2.sh: New file.
37419         * tests/test-vasnprintf-posix2.c: New file.
37420         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37421         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37422         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37423
37424         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37425         a locale dependent decimal point, rather than always '.'.
37426
37427 2007-03-09  Eric Blake  <ebb9@byu.net>
37428
37429         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37430         spite of platforms like Tandem/NSK that define it to -1.
37431
37432 2007-03-08  Bruno Haible  <bruno@clisp.org>
37433
37434         * modules/vprintf-posix-tests: New file.
37435         * tests/test-vprintf-posix.sh: New file.
37436         * tests/test-vprintf-posix.c: New file.
37437         * tests/test-printf-posix.h: New file.
37438
37439         * modules/vprintf-posix: New file.
37440         * lib/vprintf.c: New file.
37441         * m4/vprintf-posix.m4: New file.
37442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37443         REPLACE_VPRINTF.
37444         * lib/stdio_.h (vprintf): New declaration.
37445         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37446         REPLACE_VPRINTF.
37447
37448 2007-03-08  Bruno Haible  <bruno@clisp.org>
37449
37450         * modules/fprintf-posix-tests: New file.
37451         * tests/test-fprintf-posix.sh: New file.
37452         * tests/test-fprintf-posix.c: New file.
37453
37454         * modules/fprintf-posix: New file.
37455         * lib/fprintf.c: New file.
37456         * m4/fprintf-posix.m4: New file.
37457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37458         REPLACE_FPRINTF.
37459         * lib/stdio_.h (fprintf): New declaration.
37460         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37461         REPLACE_FPRINTF.
37462
37463 2007-03-08  Bruno Haible  <bruno@clisp.org>
37464
37465         * modules/vfprintf-posix-tests: New file.
37466         * tests/test-vfprintf-posix.sh: New file.
37467         * tests/test-vfprintf-posix.c: New file.
37468         * tests/test-fprintf-posix.h: New file.
37469         * tests/test-fprintf-posix.out: New file.
37470
37471         * modules/vfprintf-posix: New file.
37472         * lib/vfprintf.c: New file.
37473         * m4/vfprintf-posix.m4: New file.
37474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37475         REPLACE_VFPRINTF.
37476         * lib/stdio_.h (vfprintf): New declaration.
37477         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37478         REPLACE_VFPRINTF.
37479
37480 2007-03-08  Bruno Haible  <bruno@clisp.org>
37481
37482         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37483
37484 2007-03-08  Bruno Haible  <bruno@clisp.org>
37485
37486         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37487         instead of 'expr' invocations.
37488         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37489         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37490         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37491         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37492         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37493         Suggested by Paul Eggert.
37494
37495 2007-03-08  Bruno Haible  <bruno@clisp.org>
37496
37497         * modules/fseterr-tests: New file.
37498         * tests/test-fseterr.c: New file.
37499
37500         * modules/fseterr: New file.
37501         * lib/fseterr.h: New file.
37502         * lib/fseterr.c: New file.
37503
37504 2007-03-08  Bruno Haible  <bruno@clisp.org>
37505
37506         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37507         * lib/getopt_.h: Likewise.
37508         * lib/mbswidth.h: Likewise.
37509         * lib/setenv.h: Likewise.
37510         * lib/vasnprintf.h: Likewise.
37511         * lib/vasprintf.h: Likewise.
37512         * lib/verror.h: Likewise.
37513         * lib/xsetenv.h: Likewise.
37514         * lib/xvasprintf.h: Likewise.
37515
37516 2007-03-08  Jim Meyering  <jim@meyering.net>
37517
37518         * users.txt: Add parted.
37519
37520         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37521
37522 2007-03-07  Bruno Haible  <bruno@clisp.org>
37523
37524         * m4/printf.m4: Make the shell script snippets copy&pastable.
37525
37526 2007-03-02  Bruno Haible  <bruno@clisp.org>
37527
37528         * lib/netinet_in_.h: New file.
37529         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37530         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37531         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37532         (Depends-on): Add absolute-header.
37533         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37534         into netinet/in.h.
37535
37536 2007-03-03  Bruno Haible  <bruno@clisp.org>
37537
37538         * lib/sys_select_.h: New file.
37539         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37540         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37541         * modules/sys_select (Files): Add lib/sys_select_.h.
37542         (Depends-on): Add absolute-header.
37543         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37544         into sys/select.h.
37545
37546 2007-03-02  Bruno Haible  <bruno@clisp.org>
37547
37548         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37549         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37550         values.
37551         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37552         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37553         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37554         * modules/sys_socket (Depends-on): Add absolute-header.
37555         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37556         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37557         (Include): Remove requirement of inclusion of <sys/types.h>.
37558
37559 2007-03-02  Bruno Haible  <bruno@clisp.org>
37560
37561         * lib/byteswap_.h (bswap_32): Fix formula.
37562
37563 2007-03-06  Bruno Haible  <bruno@clisp.org>
37564
37565         * modules/sprintf-posix-tests: New file.
37566         * tests/test-sprintf-posix.c: New file.
37567
37568         * modules/sprintf-posix: New file.
37569         * lib/sprintf.c: New file.
37570         * m4/sprintf-posix.m4: New file.
37571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37572         REPLACE_SPRINTF.
37573         * lib/stdio_.h (sprintf): New declaration.
37574         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37575         REPLACE_SPRINTF.
37576
37577 2007-03-06  Bruno Haible  <bruno@clisp.org>
37578
37579         * modules/vsprintf-posix-tests: New file.
37580         * tests/test-vsprintf-posix.c: New file.
37581         * tests/test-sprintf-posix.h: New file.
37582
37583         * modules/vsprintf-posix: New file.
37584         * lib/vsprintf.c: New file.
37585         * m4/vsprintf-posix.m4: New file.
37586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37587         REPLACE_VSPRINTF.
37588         * lib/stdio_.h (vsprintf): New declaration.
37589         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37590         REPLACE_VSPRINTF.
37591
37592 2007-03-06  Bruno Haible  <bruno@clisp.org>
37593
37594         * modules/vsnprintf (Depend-on): Remove minmax.
37595
37596 2007-03-06  Bruno Haible  <bruno@clisp.org>
37597
37598         * modules/snprintf-posix-tests: New file.
37599         * tests/test-snprintf-posix.c: New file.
37600
37601         * modules/snprintf-posix: New file.
37602         * m4/snprintf-posix.m4: New file.
37603         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37604         gl_FUNC_SNPRINTF.
37605         (gl_FUNC_SNPRINTF): Invoke it.
37606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37607         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37608         is set.
37609         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37610
37611 2007-03-06  Bruno Haible  <bruno@clisp.org>
37612
37613         * modules/vsnprintf-posix-tests: New file.
37614         * tests/test-vsnprintf-posix.c: New file.
37615         * tests/test-snprintf-posix.h: New file.
37616
37617         * modules/vsnprintf-posix: New file.
37618         * m4/vsnprintf-posix.m4: New file.
37619         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37620         gl_FUNC_VSNPRINTF.
37621         (gl_FUNC_VSNPRINTF): Invoke it.
37622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37623         * lib/stdio_.h (vsnprintf): Define as a replacement if
37624         REPLACE_VSNPRINTF is set.
37625         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37626
37627 2007-03-06  Bruno Haible  <bruno@clisp.org>
37628
37629         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37630         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37631
37632 2007-03-06  Bruno Haible  <bruno@clisp.org>
37633
37634         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37635         (asinl): Declare also if HAVE_DECL_ASINL is set.
37636         (atanl): Declare also if HAVE_DECL_ATANL is set.
37637         (ceill): Declare also if HAVE_DECL_CEILL is set.
37638         (cosl): Declare also if HAVE_DECL_COSL is set.
37639         (expl): Declare also if HAVE_DECL_EXPL is set.
37640         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37641         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37642         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37643         (logl): Declare also if HAVE_DECL_LOGL is set.
37644         (sinl): Declare also if HAVE_DECL_SINL is set.
37645         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37646         (tanl): Declare also if HAVE_DECL_TANL is set.
37647         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37649         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37650         declaration of frexpl, ldexpl.
37651         * modules/printf-frexpl (Depends-on): Add math.
37652         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37653
37654 2007-03-05  Bruno Haible  <bruno@clisp.org>
37655
37656         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37657         frexpl and ldexpl are declared.
37658         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37659
37660 2007-03-05  Bruno Haible  <bruno@clisp.org>
37661
37662         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37663         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37664
37665 2007-03-05  Bruno Haible  <bruno@clisp.org>
37666
37667         * lib/stdio_.h: Include <stddef.h>.
37668
37669 2007-03-05  Bruno Haible  <bruno@clisp.org>
37670
37671         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37672
37673 2007-03-05  Bruno Haible  <bruno@clisp.org>
37674
37675         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37676         NetBSD 4, from Ralf Wildenhues.
37677
37678 2007-03-04  Bruno Haible  <bruno@clisp.org>
37679
37680         * lib/vasprintf.h: Update #if logic for the case when the functions
37681         exist but are overridden.
37682
37683 2007-03-04  Bruno Haible  <bruno@clisp.org>
37684
37685         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37686         implementations: glibc-2.4 and MacOS X 10.3.
37687         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37688         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37689         * tests/test-vasprintf-posix.c (test_function): Likewise.
37690
37691 2007-03-04  Bruno Haible  <bruno@clisp.org>
37692
37693         * modules/vasprintf-posix-tests: New file.
37694         * tests/test-vasprintf-posix.c: New file.
37695
37696         * modules/vasprintf-posix: New file.
37697         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37698         defined.
37699         * m4/vasprintf-posix.m4: New file.
37700         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37701         gl_FUNC_VASPRINTF.
37702         (gl_FUNC_VASPRINTF): Invoke it.
37703         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37704         here.
37705         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37706
37707 2007-03-04  Bruno Haible  <bruno@clisp.org>
37708
37709         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37710         REPLACE_GETTIMEOFDAY.
37711         * modules/sys_time (Makefile.am): Likewise.
37712         * m4/sys_time_h.m4: Likewise.
37713         * m4/gettimeofday.m4: Likewise.
37714
37715 2007-03-04  Bruno Haible  <bruno@clisp.org>
37716
37717         * modules/vasnprintf-posix-tests: New file.
37718         * tests/test-vasnprintf-posix.c: New file.
37719
37720         * modules/vasnprintf-posix: New file.
37721         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37722         printf-frexpl.h.
37723         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37724         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37725         REPLACE_VASNPRINTF is defined.
37726         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37727         gl_FUNC_VASNPRINTF.
37728         (gl_FUNC_VASNPRINTF): Invoke it.
37729         * m4/vasnprintf-posix.m4: New file.
37730         * m4/printf.m4: New file.
37731
37732 2007-03-04  Bruno Haible  <bruno@clisp.org>
37733
37734         Compile progreloc.c only if --enable-relocatable is specified.
37735         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37736         if --enable-relocatable was specified.
37737         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37738         lib_SOURCES.
37739
37740 2007-03-04  Jim Meyering  <jim@meyering.net>
37741
37742         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37743         Use it consistently, rather than enumerating errno constants.
37744
37745 2007-03-04  Bruno Haible  <bruno@clisp.org>
37746
37747         * modules/xvasprintf-tests: New file.
37748         * tests/test-xvasprintf.c: New file.
37749
37750         * modules/vasprintf-tests: New file.
37751         * tests/test-vasprintf.c: New file.
37752
37753         * modules/vasnprintf-tests: New file.
37754         * tests/test-vasnprintf.c: New file.
37755
37756         * modules/vsnprintf-tests: New file.
37757         * tests/test-vsnprintf.c: New file.
37758
37759         * modules/snprintf-tests: New file.
37760         * tests/test-snprintf.c: New file.
37761
37762 2007-03-04  Bruno Haible  <bruno@clisp.org>
37763
37764         Compile relocatable.c only if --enable-relocatable is specified.
37765         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37766         gl_RELOCATABLE_LIBRARY.
37767         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37768         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37769         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37770         gl_RELOCATABLE_LIBRARY.
37771         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37772         (Makefile.am): Remove lib_SOURCES.
37773         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37774         gl_RELOCATABLE_LIBRARY.
37775         (Makefile.am): Remove lib_SOURCES.
37776         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37777         always.
37778         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37779         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37780
37781 2007-03-04  Bruno Haible  <bruno@clisp.org>
37782
37783         * modules/argmatch-tests: New file.
37784         * tests/test-argmatch.c: New file.
37785
37786         * tests/test-allocsa.c (main): Halve the number of loop runs.
37787
37788         * modules/alloca-opt-tests: New file.
37789         * tests/test-alloca-opt.c: New file.
37790
37791 2007-03-04  Jim Meyering  <jim@meyering.net>
37792
37793         Work around difference between Linux ACLs and Solaris 10 ZFS.
37794         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37795         for EINVAL.
37796
37797 2007-03-03  Bruno Haible  <bruno@clisp.org>
37798
37799         * modules/relocatable-prog (Depends-on): Add back progreloc's
37800         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37801
37802 2007-03-03  Bruno Haible  <bruno@clisp.org>
37803
37804         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37805         * modules/relocatable-lib: New file.
37806
37807 2007-03-03  Bruno Haible  <bruno@clisp.org>
37808
37809         * modules/relocatable-prog: Renamed from modules/relocatable.
37810         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37811
37812 2007-03-03  Bruno Haible  <bruno@clisp.org>
37813
37814         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37815         m4/relocatable-lib.m4.
37816         (Depends-on): Remove 'relocatable'.
37817         (configure.ac): Add gl_RELOCATABLE_NOP.
37818
37819 2007-03-03  Bruno Haible  <bruno@clisp.org>
37820
37821         * modules/relocatable-prog-wrapper: New file.
37822         * modules/relocatable (Depends-on): Add it. Remove all other
37823         dependencies except progname.
37824         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37825
37826         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37827         (gl_FUNC_STRERROR): Nop.
37828         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37829
37830         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37831         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37832
37833         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37834         (gl_FUNC_READLINK): Update.
37835
37836         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37837
37838 2007-03-03  Bruno Haible  <bruno@clisp.org>
37839
37840         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37841         * modules/xreadlink (Depends-on): Add unistd.
37842         * modules/xreadlink-with-size (Depends-on): Likewise.
37843
37844 2007-03-03  Bruno Haible  <bruno@clisp.org>
37845
37846         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37847         extracted from gt_FUNC_SETENV.
37848         (gt_FUNC_SETENV): Remove macro.
37849         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37850         remove gt_FUNC_SETENV.
37851
37852 2007-03-03  Bruno Haible  <bruno@clisp.org>
37853
37854         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37855         ENABLE_RELOCATABLE here.
37856         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37857
37858 2007-03-03  Bruno Haible  <bruno@clisp.org>
37859
37860         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37861         * tests/test-rbtreehash_list.c: Include progname.h.
37862         (main): Call set_program_name.
37863
37864         * modules/rbtree-oset-tests (Depends-on): Add progname.
37865         * tests/test-rbtree_oset.c: Include progname.h.
37866         (main): Call set_program_name.
37867
37868         * modules/rbtree-list-tests (Depends-on): Add progname.
37869         * tests/test-rbtree_list.c: Include progname.h.
37870         (main): Call set_program_name.
37871
37872         * modules/linked-list-tests (Depends-on): Add progname.
37873         * tests/test-linked_list.c: Include progname.h.
37874         (main): Call set_program_name.
37875
37876 2007-03-03  Bruno Haible  <bruno@clisp.org>
37877
37878         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37879         All uses of __restrict changed to _Restrict_.
37880         * lib/glob_.h (__restrict): Remove macro.
37881
37882 2007-03-02  Bruno Haible  <bruno@clisp.org>
37883
37884         * modules/gettext (configure.ac): Require gettext infrastructure
37885         from version 0.16.1.
37886
37887 2007-03-02  Bruno Haible  <bruno@clisp.org>
37888
37889         * modules/linkedhash-list-tests (Depends-on): Add progname.
37890         * tests/test-linkedhash_list.c: Include progname.h.
37891         (main): Call set_program_name.
37892
37893         * modules/carray-list-tests (Depends-on): Add progname.
37894         * tests/test-carray_list.c: Include progname.h.
37895         (main): Call set_program_name.
37896
37897         * modules/avltreehash-list-tests (Depends-on): Add progname.
37898         * tests/test-avltreehash_list.c: Include progname.h.
37899         (main): Call set_program_name.
37900
37901         * modules/avltree-oset-tests (Depends-on): Add progname.
37902         * tests/test-avltree_oset.c: Include progname.h.
37903         (main): Call set_program_name.
37904
37905         * modules/avltree-list-tests (Depends-on): Add progname.
37906         * tests/test-avltree_list.c: Include progname.h.
37907         (main): Call set_program_name.
37908
37909         * modules/array-oset-tests (Depends-on): Add progname.
37910         * tests/test-array_oset.c: Include progname.h.
37911         (main): Call set_program_name.
37912
37913         * modules/array-list-tests (Depends-on): Add progname.
37914         * tests/test-array_list.c: Include progname.h.
37915         (main): Call set_program_name.
37916
37917         * modules/argp-tests (Depends-on): Add progname.
37918         * tests/test-argp.c: Include argp.h first. Include progname.h.
37919         (main): Call set_program_name.
37920
37921 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37922
37923         * doc/gnulib-tool.texi (Initial import): Reword description of
37924         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37925         limited effect even if defined after the first system include.
37926
37927 2007-03-01  Bruno Haible  <bruno@clisp.org>
37928
37929         * build-aux/config.libpath: Update to libtool-1.5.22.
37930         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37931
37932 2007-03-01  Bruno Haible  <bruno@clisp.org>
37933
37934         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37935         foo_CFLAGS.
37936         Reported by Ralf Wildenhues.
37937
37938 2007-03-01  Bruno Haible  <bruno@clisp.org>
37939
37940         * build-aux/install-reloc: Remove object files left over by some
37941         compilers.
37942         Reported by Ralf Wildenhues.
37943
37944 2007-03-01  Bruno Haible  <bruno@clisp.org>
37945
37946         * build-aux/install-reloc: Break long lines.
37947
37948 2007-03-01  Bruno Haible  <bruno@clisp.org>
37949
37950         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37951         Reported by Ralf Wildenhues.
37952
37953 2007-03-01  Bruno Haible  <bruno@clisp.org>
37954
37955         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37956         include ordering constraints.
37957
37958 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37959
37960         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37961         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37962         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37963         as another example.
37964         * lib/time_.h: Fix misspelling.
37965         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37966         Require gl_HEADER_TIME_H_DEFAULTS.
37967         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37968         * m4/time_r.m4 (gl_TIME_R): Likewise.
37969         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37970
37971 2007-03-01  Bruno Haible  <bruno@clisp.org>
37972
37973         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37974         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37975
37976 2007-03-01  Jim Meyering  <jim@meyering.net>
37977
37978         * modules/xreadlink (Maintainer): Add my name.
37979         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37980
37981 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37982             Bruno Haible  <bruno@clisp.org>
37983
37984         * build-aux/install-reloc: Compile also c-ctype.c.
37985         * build-aux/relocatable.sh.in: New file.
37986         * doc/relocatable.texi: New file.
37987         * doc/relocatable-maint.texi: New file.
37988         * doc/gnulib.texi: Include relocatable-maint.texi.
37989         * lib/progreloc.c: Include unistd.h unconditionally.
37990         * lib/relocwrapper.c: Include unistd.h unconditionally.
37991         Include c-ctype.h.
37992         (add_dotbin): Use c_tolower.
37993         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37994         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37995         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37996         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37997         to m4/relocatable-lib.m4.
37998         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37999         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
38000         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
38001         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
38002         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
38003         * modules/relocatable: New file.
38004         * modules/relocatable-lib: New file.
38005         * modules/relocatable-script: New file.
38006
38007 2007-02-28  Bruno Haible  <bruno@clisp.org>
38008
38009         Import --enable-relocatable infrastructure.
38010         * build-aux/config.libpath: New file, from GNU gettext.
38011         * build-aux/install-reloc: New file, from GNU gettext.
38012         * build-aux/reloc-ldflags: New file, from GNU gettext.
38013         * lib/relocatable.h: New file, from GNU gettext.
38014         * lib/relocatable.c: New file, from GNU gettext.
38015         * lib/relocwrapper.c: New file, from GNU gettext.
38016         * m4/relocatable.m4: New file, from GNU gettext.
38017
38018 2007-02-28  Bruno Haible  <bruno@clisp.org>
38019
38020         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
38021
38022         * modules/xreadlink: New file, from GNU gettext with modifications.
38023         * lib/xreadlink.c: New file, from GNU gettext.
38024         * lib/xreadlink.h: Add comments.
38025         (xreadlink): New declaration.
38026
38027         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
38028         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
38029         lib/xreadlink-with-size.c.
38030         (configure.ac): Remove gl_XREADLINK invocation.
38031         (Makefile.am): Augment lib_SOURCES.
38032         * m4/xreadlink.m4: Remove file.
38033         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
38034         (xreadlink_with_size): Renamed from xreadink.
38035         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
38036         * modules/canonicalize (Depends-on): Replace xreadlink with
38037         xreadlink-with-size.
38038         * lib/canonicalize.c (canonicalize_filename_mode): Update.
38039
38040 2007-02-25  Jim Meyering  <jim@meyering.net>
38041
38042         * build-aux/announce-gen: When complaining about excess arguments,
38043         list them.
38044
38045 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38046
38047         * README: Document signed integer overflow situation more
38048         accurately.
38049
38050 2007-02-25  Bruno Haible  <bruno@clisp.org>
38051
38052         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
38053         'a' or 'A' conversion.
38054
38055 2007-02-25  Bruno Haible  <bruno@clisp.org>
38056
38057         * modules/filename: Renamed from modules/pathname.
38058         (Files): Replace lib/pathname.h with lib/filename.h. Replace
38059         lib/concatpath.c with lib/concat-filename.c.
38060         (Makefile.am): Update.
38061         (Include): Replace pathname.h with filename.h.
38062         * lib/filename.h: Renamed from lib/pathname.h.
38063         (concatenated_filename): Renamed from concatenated_pathname.
38064         * lib/concat-filename.c: Renamed from lib/concatpath.c.
38065         (concatenated_filename): Renamed from concatenated_pathname.
38066         * lib/findprog.c: Include filename.h instead of pathname.h.
38067         (find_in_path): Update.
38068         * lib/javacomp.c: Include filename.h instead of pathname.h.
38069         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38070         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38071         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38072         is_oldgcj_14_13_usable, is_javac_usable): Update.
38073         * lib/javaexec.c: Include filename.h instead of pathname.h.
38074         (execute_java_class): Update.
38075         * modules/findprog: Update.
38076         * modules/javacomp: Update.
38077         * modules/javaexec: Update.
38078         * MODULES.html.sh (File system functions): Add 'filename', remove
38079         'pathname'.
38080
38081 2007-02-25  Bruno Haible  <bruno@clisp.org>
38082
38083         * modules/printf-frexpl-tests: New file.
38084         * tests/test-printf-frexpl.c: New file.
38085
38086         * modules/printf-frexpl: New file.
38087         * lib/printf-frexpl.h: New file.
38088         * lib/printf-frexpl.c: New file.
38089         * m4/printf-frexpl.m4: New file.
38090
38091 2007-02-25  Bruno Haible  <bruno@clisp.org>
38092
38093         * modules/printf-frexp-tests: New file.
38094         * tests/test-printf-frexp.c: New file.
38095
38096         * modules/printf-frexp: New file.
38097         * lib/printf-frexp.h: New file.
38098         * lib/printf-frexp.c: New file.
38099         * m4/printf-frexp.m4: New file.
38100
38101 2007-02-25  Bruno Haible  <bruno@clisp.org>
38102
38103         Assume automake >= 1.10 for the tests.
38104         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38105         * modules/arctwo-tests: Likewise.
38106         * modules/argp-tests: Likewise.
38107         * modules/avltree-list-tests: Likewise.
38108         * modules/avltree-oset-tests: Likewise.
38109         * modules/avltreehash-list-tests: Likewise.
38110         * modules/carray-list-tests: Likewise.
38111         * modules/crc-tests: Likewise.
38112         * modules/des-tests: Likewise.
38113         * modules/gc-arcfour-tests: Likewise.
38114         * modules/gc-arctwo-tests: Likewise.
38115         * modules/gc-des-tests: Likewise.
38116         * modules/gc-hmac-md5-tests: Likewise.
38117         * modules/gc-hmac-sha1-tests: Likewise.
38118         * modules/gc-md2-tests: Likewise.
38119         * modules/gc-md4-tests: Likewise.
38120         * modules/gc-md5-tests: Likewise.
38121         * modules/gc-pbkdf2-sha1-tests: Likewise.
38122         * modules/gc-rijndael-tests: Likewise.
38123         * modules/gc-sha1-tests: Likewise.
38124         * modules/gc-tests: Likewise.
38125         * modules/getaddrinfo-tests: Likewise.
38126         * modules/hmac-md5-tests: Likewise.
38127         * modules/hmac-sha1-tests: Likewise.
38128         * modules/linked-list-tests: Likewise.
38129         * modules/linkedhash-list-tests: Likewise.
38130         * modules/lock-tests: Likewise.
38131         * modules/md2-tests: Likewise.
38132         * modules/md4-tests: Likewise.
38133         * modules/md5-tests: Likewise.
38134         * modules/rbtree-list-tests: Likewise.
38135         * modules/rbtree-oset-tests: Likewise.
38136         * modules/rbtreehash-list-tests: Likewise.
38137         * modules/read-file-tests: Likewise.
38138         * modules/rijndael-tests: Likewise.
38139         * modules/stdint-tests: Likewise.
38140         * modules/tls-tests: Likewise.
38141
38142 2007-02-24  Bruno Haible  <bruno@clisp.org>
38143
38144         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38145         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38146         function; instead check whether isnan with a double argument links.
38147         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38148         function; instead check whether isnan with a 'long double' argument
38149         links.
38150         Reported by Eric Blake <ebb9@byu.net>.
38151
38152 2007-02-24  Bruno Haible  <bruno@clisp.org>
38153
38154         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38155         defined.
38156         * lib/isnanl.c: Remove all code. Just include isnan.c.
38157         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38158
38159 2007-02-25  Jim Meyering  <jim@meyering.net>
38160
38161         Avoid conflicting types for 'unsetenv' on FreeBSD.
38162         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38163         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38164         in stdlib.h.
38165
38166 2007-02-24  Bruno Haible  <bruno@clisp.org>
38167
38168         * modules/isnanl-nolibm-tests: New file.
38169         * tests/test-isnanl.c: New file.
38170
38171         * modules/isnanl-nolibm: New file.
38172         * lib/isnanl.h: New file.
38173         * lib/isnanl.c: New file.
38174         * m4/isnanl.m4: New file.
38175
38176 2007-02-24  Bruno Haible  <bruno@clisp.org>
38177
38178         * modules/isnan-nolibm-tests: New file.
38179         * tests/test-isnan.c: New file.
38180
38181         * modules/isnan-nolibm: New file.
38182         * lib/isnan.h: New file.
38183         * lib/isnan.c: New file.
38184         * m4/isnan.m4: New file.
38185
38186 2007-02-24  Bruno Haible  <bruno@clisp.org>
38187
38188         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38189         assume that an exponent fits in 20 bits.
38190
38191 2007-02-24  Jim Meyering  <jim@meyering.net>
38192
38193         * m4/regex.m4: Update the description of the configure-time option,
38194         --without-included-regex, to state accurately what the defaults are,
38195         and perhaps to give people an idea why using this option is risky.
38196
38197 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38198
38199         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38200         loops on small arguments.  This attempts to avoid the problem
38201         Bruno Haible reported for AIX 4.3.2 in
38202         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38203
38204 2007-02-23  Bruno Haible  <bruno@clisp.org>
38205
38206         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38207         Needed for help2man.
38208
38209 2007-02-23  Karl Berry  <karl@gnu.org>
38210
38211         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38212         exists, foo.h should be cvs-ignored, not committed.
38213
38214 2007-02-23  Eric Blake  <ebb9@byu.net>
38215
38216         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38217         * lib/stat-time.h (includes): Likewise.
38218         * lib/utimecmp.c (includes): Likewise.
38219         * lib/utimens.h (includes): Likewise.
38220         * lib/getdate.y (includes): Also include "timespec.h" for use
38221         internal to the module.
38222         * modules/utimens (Depends-on): Revert yesterday's patch.
38223         * modules/nanosleep (Depends-on): Add missing dependency.
38224
38225 2007-02-22  Bruno Haible  <bruno@clisp.org>
38226
38227         * lib/glob.c: Don't include getlogin_r.h.
38228
38229 2007-02-22  Jim Meyering  <jim@meyering.net>
38230
38231         * modules/utimens (Depends-on): Add timespec, required for
38232         utimens.h's inclusion of timespec.h.
38233
38234 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38235
38236         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38237         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38238         Schwab in
38239         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38240         I'll try to think of a better way to fix the Solaris problem.
38241
38242         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38243         like glibc; on Solaris 10, it fails with errno == EINVAL.
38244         POSIX says the behavior is unspecified if the first argument is NULL,
38245         so play it safe and never pass NULL to the system getcwd.
38246
38247 2007-02-21  Jim Meyering  <jim@meyering.net>
38248
38249         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38250         of gettimeofday.  It would conflict with the one now always
38251         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38252         an IRIX 6.5 build failure.
38253
38254 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38255
38256         Minor fixups to port to Solaris 10 with Sun C 5.8.
38257         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38258         * modules/getcwd (Depends-on): Add dirfd.
38259         * lib/putenv.c (putenv): #undef it.
38260         (rpl_putenv): New decl.
38261         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38262
38263 2007-02-20  Bruno Haible  <bruno@clisp.org>
38264
38265         * modules/stdio-tests: New file.
38266         * tests/test-stdio.c: New file.
38267
38268         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38269         (Depends-on): Add stdio.
38270         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38271         (Include): Use <stdio.h> instead of vsnprintf.h.
38272         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38273         HAVE_DECL_VSNPRINTF.
38274         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38275
38276         * modules/snprintf (Files): Remove lib/snprintf.h.
38277         (Depends-on): Add stdio.
38278         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38279         (Include): Use <stdio.h> instead of snprintf.h.
38280         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38281         HAVE_DECL_SNPRINTF.
38282         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38283         * lib/getaddrinfo.c: Likewise.
38284
38285         * modules/stdio: New file.
38286         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38287         * lib/snprintf.h: Remove file.
38288         * lib/vsnprintf.h: Remove file.
38289         * lib/.cppi-disable: Remove snprintf.h.
38290         * m4/stdio_h.m4: New file.
38291         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38292
38293 2007-02-20  Jim Meyering  <jim@meyering.net>
38294
38295         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38296         used by e.g., mingw.  From Bruno Haible.
38297
38298 2007-02-19  Bruno Haible  <bruno@clisp.org>
38299
38300         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38301         warnings.
38302         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38303
38304 2007-02-19  Bruno Haible  <bruno@clisp.org>
38305
38306         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38307         from mingw users.
38308
38309 2007-02-19  Bruno Haible  <bruno@clisp.org>
38310
38311         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38312         warnings.
38313         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38314
38315 2007-02-19  Jim Meyering  <jim@meyering.net>
38316
38317         Don't use FD after a successful "fdopendir (fd)".
38318         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38319         Reset it by calling dirfd on the just-obtained DIR*.
38320
38321         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38322         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38323
38324 2007-02-18  Bruno Haible  <bruno@clisp.org>
38325
38326         * lib/readlink.c: Include <unistd.h>.
38327         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38328         HAVE_READLINK.
38329         * modules/readlink (Depends-on): Add unistd.
38330         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38331         (Include): Add <unistd.h>.
38332
38333         * lib/getlogin_r.h: Remove file.
38334         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38335         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38336         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38337         HAVE_DECL_GETLOGIN_R.
38338         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38339         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38340         (Include): Use <unistd.h> instead of getlogin_r.h.
38341
38342         * lib/getcwd.h: Remove file.
38343         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38344         * lib/xgetcwd.c: Likewise.
38345         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38346         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38347         * modules/getcwd (Files): Remove lib/getcwd.h.
38348         (Depends-on): Add unistd.
38349         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38350         (Include): Use <unistd.h> instad of getcwd.h.
38351
38352         * lib/ftruncate.c: Include <unistd.h> first.
38353         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38354         Set HAVE_FTRUNCATE.
38355         * modules/ftruncate (Depends-on): Add unistd.
38356         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38357
38358         * lib/fchdir.c: Include <unistd.h> first.
38359         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38360         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38361         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38362         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38363         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38364
38365         * lib/dup2.c: Include <unistd.h> first.
38366         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38367         HAVE_DUP2.
38368         * modules/dup2 (Depends-on): Add unistd.
38369         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38370
38371         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38372         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38373         REPLACE_CHOWN. Don't define chown as a macro here.
38374         * modules/chown (Depends-on): Add unistd.
38375         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38376
38377         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38378         Add definition for GL_LINK_WARNING.
38379         (chown, dup2): New declarations.
38380         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38381         link warning.
38382         (ftruncate): New declaration.
38383         (getcwd): New declaration, taken from old getcwd.h.
38384         (getlogin_r): New declaration, taken from old getlogin_r.h.
38385         (readlink): New declaration.
38386         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38387         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38388         (gl_PREREQ_UNISTD): Remove macro.
38389         (gl_UNISTD_MODULE_INDICATOR): New macro.
38390         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38391         many new variables. Don't set UNISTD_H.
38392         * modules/unistd (Description): Change.
38393         (Depends-on): Add link-warning.
38394         (configure.ac): Update.
38395         (Makefile.am): Create unistd.h always. Substitute many new variables
38396         into it.
38397
38398 2007-02-18  Bruno Haible  <bruno@clisp.org>
38399
38400         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38401         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38402         HAVE_GETSUBOPT.
38403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38404         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38405         * lib/getsubopt.h: Remove file.
38406         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38407         (Depends-on): Add stdlib.
38408         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38409         (Includes): Use <stdlib.h> instead of getsubopt.h.
38410         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38411         Set HAVE_GETSUBOPT.
38412         * lib/getsubopt.c: Don't include getsubopt.h.
38413
38414 2007-02-18  Bruno Haible  <bruno@clisp.org>
38415
38416         * modules/fchdir (Depends-on): Add dup2.
38417
38418 2007-02-18  Bruno Haible  <bruno@clisp.org>
38419
38420         * lib/stdlib_.h: Handle glibc's special invocation convention
38421         specially.
38422
38423 2007-02-18  Bruno Haible  <bruno@clisp.org>
38424
38425         * modules/stdlib-tests: New file.
38426         * tests/test-stdlib.c: New file.
38427
38428         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38429         (Depends-on): Add stdlib.
38430         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38431         (Includes): Use <stdlib.h> instead of mkstemp.h.
38432         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38433         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38434         * lib/mkstemp.c: Don't include mkstemp.h.
38435         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38436         * lib/stdlib--.h: Don't include mkstemp.h.
38437
38438         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38439         (Depends-on): Add stdlib.
38440         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38441         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38442         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38443         HAVE_MKDTEMP.
38444         * lib/mkdtemp.c: Don't include mkdtemp.h.
38445         * lib/clean-temp.c: Don't include mkdtemp.h.
38446
38447         * modules/exit (Files): Remove lib/exit.h.
38448         (Depends-on): Add stdlib.
38449         (Makefile.am): Remove lib_SOURCES.
38450         (Include): Use <stdlib.h> instead of exit.h.
38451         * lib/argmatch.c: Don't include exit.h.
38452         * lib/execute.c: Likewise.
38453         * lib/pagealign_alloc.c: Likewise.
38454         * lib/pipe.c: Likewise.
38455         * lib/wait-process.c: Likewise.
38456         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38457         * lib/exitfail.c: Likewise.
38458         * lib/savewd.c: Likewise.
38459         * lib/xsetenv.c: Likewise.
38460
38461         * modules/stdlib: New file.
38462         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38463         and extra comments about mkstemp().
38464         * lib/exit.h: Remove file.
38465         * lib/mkdtemp.h: Remove file.
38466         * lib/mkstemp.h: Remove file.
38467         * m4/stdlib_h.m4: New file.
38468         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38469
38470 2007-02-18  Bruno Haible  <bruno@clisp.org>
38471
38472         * modules/math-tests: New file.
38473         * tests/test-math.c: New file.
38474
38475         * modules/math: New file.
38476         * modules/mathl (Files): Remove lib/mathl.h.
38477         (Depends-on): Add math.
38478         (Makefile.am): Don't mention mathl.h.
38479         (Include): Use <math.h> instead of mathl.h.
38480         * lib/math_.h: New file.
38481         * lib/mathl.h: Remove file.
38482         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38483         mathl.h.
38484         * lib/asinl.c: Likewise.
38485         * lib/atanl.c: Likewise.
38486         * lib/ceill.c: Likewise.
38487         * lib/cosl.c: Likewise.
38488         * lib/expl.c: Likewise.
38489         * lib/floorl.c: Likewise.
38490         * lib/frexpl.c: Likewise.
38491         * lib/ldexpl.c: Likewise.
38492         * lib/logl.c: Likewise.
38493         * lib/sincosl.c: Likewise.
38494         * lib/sinl.c: Likewise.
38495         * lib/sqrtl.c: Likewise.
38496         * lib/tanl.c: Likewise.
38497         * lib/trigl.c: Likewise.
38498         * m4/math_h.m4: New file.
38499         * MODULES.html.sh (Mathematics): Add math.
38500
38501 2007-02-17  Bruno Haible  <bruno@clisp.org>
38502
38503         * modules/wctype-tests: New file.
38504         * tests/test-wctype.c: New file.
38505
38506         * modules/wchar-tests: New file.
38507         * tests/test-wchar.c: New file.
38508
38509         * modules/unistd-tests: New file.
38510         * tests/test-unistd.c: New file.
38511
38512         * modules/time-tests: New file.
38513         * tests/test-time.c: New file.
38514
38515         * modules/sysexits-tests: New file.
38516         * tests/test-sysexits.c: New file.
38517
38518         * modules/sys_time-tests: New file.
38519         * tests/test-sys_time.c: New file.
38520
38521         * modules/sys_stat-tests: New file.
38522         * tests/test-sys_stat.c: New file.
38523
38524         * modules/sys_socket-tests: New file.
38525         * tests/test-sys_socket.c: New file.
38526
38527         * modules/sys_select-tests: New file.
38528         * tests/test-sys_select.c: New file.
38529
38530         * modules/string-tests: New file.
38531         * tests/test-string.c: New file.
38532
38533         * modules/stdbool-tests: New file.
38534         * tests/test-stdbool.c: New file.
38535
38536         * modules/netinet_in-tests: New file.
38537         * tests/test-netinet_in.c: New file.
38538
38539         * modules/inttypes-tests: New file.
38540         * tests/test-inttypes.c: New file.
38541
38542         * modules/fcntl-tests: New file.
38543         * tests/test-fcntl.c: New file.
38544
38545         * modules/byteswap-tests: New file.
38546         * tests/test-byteswap.c: New file.
38547
38548         * modules/arpa_inet-tests: New file.
38549         * tests/test-arpa_inet.c: New file.
38550
38551 2007-02-17  Bruno Haible  <bruno@clisp.org>
38552
38553         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38554         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38555         if the corresponding module is not enabled. Emit link warnings if
38556         the function is used nevertheless.
38557         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38558         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38559         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38560         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38561         * modules/inttypes (Depends-on): Add link-warning.
38562         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38563         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38564         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38565         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38566         * modules/imaxdiv (configure.ac): Likewise.
38567         * modules/strtoimax (configure.ac): Likewise.
38568         * modules/strtoumax (configure.ac): Likewise.
38569
38570 2007-02-17  Bruno Haible  <bruno@clisp.org>
38571
38572         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38573         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38574         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38575         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38576
38577 2007-02-17  Bruno Haible  <bruno@clisp.org>
38578
38579         * modules/link-warning: New file.
38580         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38581         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38582         * modules/string (Depends-on): Add link-warning.
38583         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38584         string.h.
38585         * MODULES.html.sh (Support for building libraries and executables): Add
38586         link-warning.
38587
38588 2007-02-17  Bruno Haible  <bruno@clisp.org>
38589
38590         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38591         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38592         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38593         long lines.
38594
38595 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38596             Bruno Haible  <bruno@clisp.org>
38597
38598         * modules/tmpfile: New file.
38599         * lib/tmpfile.c: New file.
38600         * m4/tmpfile.m4: New file.
38601         * MODULES.html.sh (func_all_modules): New section "Input/output".
38602
38603 2007-02-15  Bruno Haible  <bruno@clisp.org>
38604
38605         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38606         (supports_delete_on_close): New function.
38607         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38608
38609 2007-02-14  Bruno Haible  <bruno@clisp.org>
38610
38611         * modules/mbspcasecmp-tests: New file.
38612         * tests/test-mbspcasecmp.sh: New file.
38613         * tests/test-mbspcasecmp.c: New file.
38614
38615         New module mbspcasecmp.
38616         * modules/mbspcasecmp: New file.
38617         * lib/mbspcasecmp.c: New file.
38618         * lib/string_.h (strncasecmp): Change warning message.
38619         (mbspcasecmp): New declaration.
38620         * m4/mbspcasecmp.m4: New file.
38621         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38622         GNULIB_MBSPCASECMP.
38623         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38624         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38625
38626 2007-02-14  Bruno Haible  <bruno@clisp.org>
38627
38628         * modules/mbsncasecmp-tests: New file.
38629         * tests/test-mbsncasecmp.sh: New file.
38630         * tests/test-mbsncasecmp.c: New file.
38631
38632         New module mbsncasecmp.
38633         * modules/mbsncasecmp: New file.
38634         * lib/mbsncasecmp.c: New file.
38635         * lib/string_.h (mbsncasecmp): New declaration.
38636         * m4/mbsncasecmp.m4: New file.
38637         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38638         GNULIB_MBSNCASECMP.
38639         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38640         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38641
38642 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38643
38644         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38645         Verify that it doesn't overlap with our flags.
38646         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38647         do not have the desired effect in multibyte locales; instead, use
38648         mbscasecmp.
38649         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38650         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38651         we don't require GNU fnmatch ourselves (if our users require it, they
38652         should do so explicitly).
38653
38654         Fix regex code so it doesn't rely on strcasecmp.
38655         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38656         Otherwise, include gnulib's langinfo.h.
38657         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38658         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38659         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38660         * modules/regex (FILES): Remove m4/codeset.m4.
38661         (Depends-on): Add localcharset.  Remove strcase.
38662
38663 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38664
38665         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38666         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38667
38668 2007-02-13  Bruno Haible  <bruno@clisp.org>
38669
38670         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38671         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38672
38673 2007-02-12  Bruno Haible  <bruno@clisp.org>
38674
38675         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38676         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38677         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38678         time warning rather than a link error.
38679
38680 2007-02-12  Bruno Haible  <bruno@clisp.org>
38681
38682         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38683         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38684         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38685
38686 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38687
38688         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38689         args, not 2.
38690
38691 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38692
38693         New module 'time', so that apps can include <time.h> as per
38694         POSIX and GNU instead of separate include files like time_r.h
38695         and timegm.h.  This implementation tries out a simpler approach
38696         for replacing decls in standard include files (as compared to
38697         the string module), somewhat as an experiment.
38698
38699         * config/srclist.txt: Comment out mktime.c for now.
38700         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38701         since it doesn't apply any more.  Use generic wording instead.
38702         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38703         'time'.
38704         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38705         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38706         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38707         Don't include <sys/types.h>; no longer needed since we assume C89.
38708         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38709         * lib/strftime.c: Likewise.
38710         * lib/time_r.c: Likewise.
38711         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38712         * lib/nanosleep.c: Include <time.h> first, to check interface.
38713         * lib/strptime.c: Likewise.
38714         * lib/time_r.c: Likewise.
38715         * lib/timegm.c: Likewise.
38716         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38717         needed.
38718         * lib/timegm.c: Don't include timegm.h; no longer needed.
38719         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38720         time.h now handles any problems in that area.
38721         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38722         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38723         that time.h defines struct timespec.
38724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38725         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38726         handles that.
38727         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38728         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38729         needed.  Set REPLACE_LOCALTIME.
38730         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38731         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38732         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38733         nanosleep; time_h.m4 now does that.  Don't require
38734         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38735         module handles this now.
38736         * modules/getdate (Depends-on): Remove timespec.  Add time.
38737         * modules/nanosleep (Depends-on): Likewise.
38738         * modules/stat-time (Depends-on): Likewise.
38739         * modules/nanosleep (Include): Include time.h, not timespec.h.
38740         * modules/strptime (Files): Remove lib/strptime.h.
38741         (Depends-on): Add extensions, time.
38742         (Include): Include time.h, not strptime.h.
38743         * modules/time_r (Files): Remove lib/time_r.h.
38744         (Depends-on): Add time.
38745         (Include): Include time.h, not time_r.h.
38746         * modules/timegm: Likewise.
38747         * modules/timespec (Description): Now does timespec-related decls
38748         of our own, instead of struct timespec itself.
38749         (Depends-on): Add time; remove extensions.
38750         (Maintainer): Add self.
38751         * modules/utimecmp (Depends-on): Add time; remove timespec.
38752         * modules/utimens (Depends-on): Likewise.
38753         * modules/xnanosleep (Depends-on): Likewise.
38754
38755 2007-02-11  Bruno Haible  <bruno@clisp.org>
38756
38757         * lib/c-strstr.c: Include allocsa.h.
38758         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38759         * lib/c-strcasestr.c: Include allocsa.h.
38760         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38761         * lib/strcasestr.c: Include allocsa.h.
38762         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38763         * lib/mbsstr.c: Include allocsa.h.
38764         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38765         allocsa/freesa instead of malloc/free.
38766         * lib/mbscasestr.c: Include allocsa.h.
38767         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38768         allocsa/freesa instead of malloc/free.
38769         * modules/c-strstr (Depends-on): Add allocsa.
38770         * modules/c-strcasestr (Depends-on): Likewise.
38771         * modules/strcasestr (Depends-on): Likewise.
38772         * modules/mbsstr (Depends-on): Likewise.
38773         * modules/mbscasestr (Depends-on): Likewise.
38774
38775 2007-02-11  Bruno Haible  <bruno@clisp.org>
38776
38777         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38778
38779         * modules/mbsspn-tests: New file.
38780         * tests/test-mbsspn.sh: New file.
38781         * tests/test-mbsspn.c: New file.
38782
38783 2007-02-11  Bruno Haible  <bruno@clisp.org>
38784
38785         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38786
38787         * modules/mbspbrk-tests: New file.
38788         * tests/test-mbspbrk.sh: New file.
38789         * tests/test-mbspbrk.c: New file.
38790
38791 2007-02-11  Bruno Haible  <bruno@clisp.org>
38792
38793         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38794         unneeded cast.
38795
38796         * modules/mbscspn-tests: New file.
38797         * tests/test-mbscspn.sh: New file.
38798         * tests/test-mbscspn.c: New file.
38799
38800 2007-02-11  Bruno Haible  <bruno@clisp.org>
38801
38802         * modules/mbscasecmp-tests: New file.
38803         * tests/test-mbscasecmp.sh: New file.
38804         * tests/test-mbscasecmp.c: New file.
38805
38806 2007-02-11  Bruno Haible  <bruno@clisp.org>
38807
38808         Ensure O(n) worst-case complexity of mbscasestr.
38809         * lib/mbscasestr.c: Include stdbool.h.
38810         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38811         functions.
38812         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38813         the bookkeeping indicates that it's worth it.
38814         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38815
38816         * modules/mbscasestr-tests: New file.
38817         * tests/test-mbscasestr1.c: New file.
38818         * tests/test-mbscasestr2.sh: New file.
38819         * tests/test-mbscasestr2.c: New file.
38820         * tests/test-mbscasestr3.sh: New file.
38821         * tests/test-mbscasestr3.c: New file.
38822         * tests/test-mbscasestr4.sh: New file.
38823         * tests/test-mbscasestr4.c: New file.
38824         * m4/locale-tr.m4: New file.
38825
38826 2007-02-11  Bruno Haible  <bruno@clisp.org>
38827
38828         Ensure O(n) worst-case complexity of mbsstr.
38829         * lib/mbsstr.c: Include stdbool.h.
38830         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38831         functions.
38832         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38833         bookkeeping indicates that it's worth it.
38834         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38835
38836         * modules/mbsstr-tests: New file.
38837         * tests/test-mbsstr1.c: New file.
38838         * tests/test-mbsstr2.sh: New file.
38839         * tests/test-mbsstr2.c: New file.
38840         * tests/test-mbsstr3.sh: New file.
38841         * tests/test-mbsstr3.c: New file.
38842         * m4/locale-fr.m4: New file.
38843
38844 2007-02-11  Bruno Haible  <bruno@clisp.org>
38845
38846         * lib/mbsrchr.c (mbsrchr): Fix bug.
38847
38848         * modules/mbsrchr-tests: New file.
38849         * tests/test-mbsrchr.sh: New file.
38850         * tests/test-mbsrchr.c: New file.
38851
38852 2007-02-11  Bruno Haible  <bruno@clisp.org>
38853
38854         * lib/mbschr.c (mbschr): Fix bug.
38855
38856         * modules/mbschr-tests: New file.
38857         * tests/test-mbschr.sh: New file.
38858         * tests/test-mbschr.c: New file.
38859         * m4/locale-zh.m4: New file.
38860
38861 2007-02-11  Bruno Haible  <bruno@clisp.org>
38862
38863         Support for copying multibyte string iterators.
38864         * lib/mbiter.h: Include <string.h>.
38865         (mbiter_multi_copy): New function.
38866         (mbi_copy): New macro.
38867         * lib/mbuiter.h: Include <string.h>.
38868         (mbuiter_multi_copy): New function.
38869         (mbui_copy): New macro.
38870
38871 2007-02-11  Bruno Haible  <bruno@clisp.org>
38872
38873         New module mbslen.
38874         * modules/mbslen: New file.
38875         * lib/mbslen.c: New file.
38876         * lib/string_.h (mbslen): New declaration.
38877         * m4/mbslen.m4: New file.
38878         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38879         GNULIB_MBSLEN.
38880         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38881         * MODULES.html.sh (Internationalization functions): Add mbslen.
38882
38883 2007-02-11  Bruno Haible  <bruno@clisp.org>
38884
38885         Ensure O(n) worst-case complexity of strcasestr substitute.
38886         * lib/strcasestr.c: Include stdbool.h.
38887         (knuth_morris_pratt): New function.
38888         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38889         bookkeeping indicates that it's worth it.
38890         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38891
38892         * modules/strcasestr-tests: New file.
38893         * tests/test-strcasestr.c: New file.
38894
38895 2007-02-11  Bruno Haible  <bruno@clisp.org>
38896
38897         Ensure O(n) worst-case complexity of c_strcasestr.
38898         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38899         (knuth_morris_pratt): New function.
38900         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38901         the bookkeeping indicates that it's worth it.
38902         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38903
38904         * modules/c-strcasestr-tests: New file.
38905         * tests/test-c-strcasestr.c: New file.
38906
38907 2007-02-11  Bruno Haible  <bruno@clisp.org>
38908
38909         Ensure O(n) worst-case complexity of c_strstr.
38910         * lib/c-strstr.c: Include stdbool.h, string.h.
38911         (knuth_morris_pratt): New function.
38912         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38913         bookkeeping indicates that it's worth it.
38914         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38915
38916         * lib/c-strstr.c: Complete rewrite for maintainability.
38917
38918         * modules/c-strstr-tests: New file.
38919         * tests/test-c-strstr.c: New file.
38920
38921 2007-02-11  Bruno Haible  <bruno@clisp.org>
38922
38923         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38924         5.2.1 and earlier, whereby \055 was treated just like the range
38925         delimiter '-'.
38926         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38927
38928 2007-02-08  Bruno Haible  <bruno@clisp.org>
38929
38930         * modules/regex (Depends-on): Add stdbool.
38931         Reported by Dalibor Topic <robilad@kaffe.org>.
38932
38933 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38934
38935         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38936         Prefer returning from main to exiting from it.
38937         Remove unnecessary parens after sizeof.
38938
38939 2007-02-05  Bruno Haible  <bruno@clisp.org>
38940
38941         New module mbssep.
38942         * modules/mbssep: New file.
38943         * lib/mbssep.c: New file.
38944         * lib/string_.h (strsep): Add a conditional link warning.
38945         (mbssep): New declaration.
38946         * m4/mbssep.m4: New file.
38947         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38948         GNULIB_MBSSEP.
38949         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38950         * MODULES.html.sh (Internationalization functions): Add mbssep.
38951
38952 2007-02-05  Bruno Haible  <bruno@clisp.org>
38953
38954         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38955         Optimize search in case of 1 delimiter.
38956
38957 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38958
38959         * lib/acl.h: Include sys/types.h before sys/acl.h.
38960
38961 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38962
38963         Merge upstream fix for glibc bugzilla #3957:
38964
38965         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38966
38967         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38968         bit for RE_HAT_LISTS_NOT_NEWLINE.
38969         (build_charclass_op): Remove bogus comment.
38970
38971 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38972
38973         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38974
38975 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38976
38977         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38978         * lib/memmem.c [!defined _LIBC]: Include config.h.
38979
38980 2007-02-04  Bruno Haible  <bruno@clisp.org>
38981
38982         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38983         warning message.
38984
38985 2007-02-04  Bruno Haible  <bruno@clisp.org>
38986
38987         New module mbstok_r.
38988         * modules/mbstok_r: New file.
38989         * lib/mbstok_r.c: New file.
38990         * lib/string_.h (strtok_r): Change argument names to match the
38991         comments. Add a conditional link warning.
38992         (mbstok_r): New declaration.
38993         * m4/mbstok_r.m4: New file.
38994         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38995         GNULIB_MBSTOK_R.
38996         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38997         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38998
38999 2007-02-04  Bruno Haible  <bruno@clisp.org>
39000
39001         New module mbsspn.
39002         * modules/mbsspn: New file.
39003         * lib/mbsspn.c: New file.
39004         * lib/string_.h (strspn): Add a conditional link warning.
39005         (mbsspn): New declaration.
39006         * m4/mbsspn.m4: New file.
39007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39008         GNULIB_MBSSPN.
39009         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
39010         * MODULES.html.sh (Internationalization functions): Add mbsspn.
39011
39012 2007-02-04  Bruno Haible  <bruno@clisp.org>
39013
39014         New module mbspbrk.
39015         * modules/mbspbrk: New file.
39016         * lib/mbspbrk.c: New file.
39017         * lib/string_.h (strpbrk): Add a conditional link warning.
39018         (mbspbrk): New declaration.
39019         * m4/mbspbrk.m4: New file.
39020         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39021         GNULIB_MBSPBRK.
39022         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
39023         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
39024
39025 2007-02-04  Bruno Haible  <bruno@clisp.org>
39026
39027         New module mbscspn.
39028         * modules/mbscspn: New file.
39029         * lib/mbscspn.c: New file.
39030         * lib/string_.h (strcspn): Add a conditional link warning.
39031         (mbscspn): New declaration.
39032         * m4/mbscspn.m4: New file.
39033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39034         GNULIB_MBSCSPN.
39035         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
39036         * MODULES.html.sh (Internationalization functions): Add mbscspn.
39037
39038 2007-02-04  Bruno Haible  <bruno@clisp.org>
39039
39040         New module mbscasestr, reduced goal of strcasestr.
39041         * modules/mbscasestr: New file.
39042         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
39043         (mbscasestr): Renamed from strcasestr.
39044         * lib/strcasestr.c: Don't include mbuiter.h.
39045         (strcasestr): Remove support for multibyte locales.
39046         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
39047         Change the conditional link warning.
39048         (mbscasestr): New declaration.
39049         * m4/mbscasestr.m4: New file.
39050         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
39051         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
39052         REPLACE_STRCASESTR.
39053         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
39054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39055         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39056         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
39057         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
39058         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39059         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
39060         (Depends-on): Remove mbuiter.
39061         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
39062
39063 2007-02-04  Bruno Haible  <bruno@clisp.org>
39064
39065         Simplify handling of strncasecmp.
39066         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
39067         the conditional link warning.
39068         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39069         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
39070         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
39071         * modules/strcase (configure.ac): Don't invoke
39072         gl_STRING_MODULE_INDICATOR.
39073         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
39074
39075 2007-02-04  Bruno Haible  <bruno@clisp.org>
39076
39077         New module mbscasecmp, reduced goal of strcasecmp.
39078         * modules/mbscasecmp: New file.
39079         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
39080         (mbscasecmp): Renamed from strcasecmp.
39081         * lib/strcasecmp.c: Don't include mbuiter.h.
39082         (strcasecmp): Remove support for multibyte locales.
39083         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
39084         Change the conditional link warning.
39085         (mbscasecmp): New declaration.
39086         * m4/mbscasecmp.m4: New file.
39087         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
39088         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
39089         REPLACE_STRCASECMP.
39090         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39091         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39092         GNULIB_MBSCASECMP.
39093         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39094         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39095         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39096         (Depends-on): Remove mbuiter.
39097         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39098
39099 2007-02-04  Bruno Haible  <bruno@clisp.org>
39100
39101         New module mbsstr. Remove module strstr.
39102         * modules/mbsstr: New file.
39103         * modules/strstr: Remove file.
39104         * lib/mbsstr.c: Renamed from lib/strstr.c.
39105         (mbsstr): Renamed from strstr.
39106         * lib/string_.h (strstr): Remove declaration. Change the conditional
39107         link warning.
39108         (mbsstr): New declaration.
39109         * m4/mbsstr.m4: New file.
39110         * m4/strstr.m4: Remove file.
39111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39112         REPLACE_STRSTR.
39113         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39114         Don't initialize GNULIB_STRSTR.
39115         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39116         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39117         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39118         (Support for systems lacking ANSI C 89): Remove strstr.
39119
39120 2007-02-04  Bruno Haible  <bruno@clisp.org>
39121
39122         New module mbsrchr.
39123         * modules/mbsrchr: New file.
39124         * lib/mbsrchr.c: New file.
39125         * lib/string_.h (strrchr): Add a conditional link warning.
39126         (mbsrchr): New declaration.
39127         * m4/mbsrchr.m4: New file.
39128         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39129         GNULIB_MBSRCHR.
39130         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39131         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39132
39133 2007-02-04  Bruno Haible  <bruno@clisp.org>
39134
39135         New module mbschr.
39136         * modules/mbschr: New file.
39137         * lib/mbschr.c: New file.
39138         * lib/string_.h (strchr): Add a conditional link warning.
39139         (mbschr): New declaration.
39140         * m4/mbschr.m4: New file.
39141         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39142         GNULIB_MBSCHR.
39143         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39144         * MODULES.html.sh (Internationalization functions): Add mbschr.
39145
39146 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39147
39148         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39149
39150         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39151
39152 2007-02-04  Bruno Haible  <bruno@clisp.org>
39153
39154         New module description section 'configure.ac-early'.
39155         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39156         (func_get_autoconf_early_snippet): New function.
39157         (func_import, func_create_testdir): Use it. Remove special cases for
39158         modules 'extensions' and 'lock'.
39159         * modules/extensions (configure.ac-early): Require
39160         gl_USE_SYSTEM_EXTENSIONS.
39161         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39162
39163 2007-02-04  Bruno Haible  <bruno@clisp.org>
39164
39165         Make use of gcj-4.3's -fsource and -ftarget option.
39166         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39167         and if so try the options -fsource and -ftarget.
39168         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39169         source_version, ftarget_option, target_version arguments.
39170         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39171         (is_envjavac_oldgcj_14_14_usable): Renamed from
39172         is_envjavac_gcj_14_14_usable.
39173         (is_envjavac_oldgcj_14_13_usable): Renamed from
39174         is_envjavac_gcj_14_13_usable.
39175         (is_gcj_present): Update.
39176         (is_gcj_43, is_gcj43_usable): New functions.
39177         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39178         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39179         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39180         try the options -fsource and -ftarget.
39181
39182 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39183
39184         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39185         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39186         larger value.
39187
39188 2007-02-03  Jim Meyering  <jim@meyering.net>
39189
39190         Give tools a better chance to allocate space for very large buffers.
39191         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39192
39193         Make pwd and readlink work also when run with an unreadable parent dir
39194         on systems with openat support.
39195         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39196         provided getcwd function, even when we have openat support.
39197         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39198
39199 2007-02-02  Bruno Haible  <bruno@clisp.org>
39200
39201         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39202         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39203         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39204         portability problems if one of these functions is only used on specific
39205         platforms.
39206         Reported by Paul Eggert.
39207
39208 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39209
39210         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39211         is causing more trouble than it's curing.
39212         * lib/regex_internal.h (__mempcpy): Remove.
39213         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39214         (and make the code a tad smaller to boot).
39215         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39216
39217 2007-02-02  Jim Meyering  <jim@meyering.net>
39218
39219         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39220         section, not in the Makefile.am: one.
39221
39222 2007-02-02  Eric Blake  <ebb9@byu.net>
39223
39224         * lib/strchrnul.c: Always include config.h first.
39225
39226         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39227         gnulib strstr is not necessary here.
39228
39229 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39230
39231         * m4/socklen.m4: Fix typo.
39232
39233 2007-02-02  Eric Blake  <ebb9@byu.net>
39234
39235         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39236         * modules/netinet_in (Makefile.am): Likewise.
39237
39238 2007-02-01  Bruno Haible  <bruno@clisp.org>
39239
39240         * lib/string_.h (GL_LINK_WARNING): New macro.
39241         (strcasecmp, strstr, strcasestr): If provided by the system,
39242         conditionally define as a macro that leads to a warning instead of to
39243         an error.
39244         (strncasecmp): Conditionally define as a macro that leads to a warning.
39245
39246 2007-02-01  Karl Berry  <karl@gnu.org>
39247
39248         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39249
39250 2007-02-01  Bruno Haible  <bruno@clisp.org>
39251
39252         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39253         renamings.
39254
39255 2007-02-01  Eric Blake  <ebb9@byu.net>
39256
39257         * modules/regex (Depends-on): Revert dependence on mempcpy.
39258         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39259         module's definition of mempcpy.
39260         Reported by Paul Eggert.
39261
39262 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39263
39264         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39265         the symbol XYZ before redefining it.  This fixes a problem with
39266         programs that don't use XYZ, when compiled on systems that define
39267         XYZ to something else.
39268
39269 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39270
39271         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39272         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39273         writeable to group or other and (2) is intended to have a special
39274         mode bit that is set or cleared.  In such a case, the directory
39275         should be neither group- nor other-writeable until the special
39276         mode bits are right.
39277
39278 2007-01-31  Eric Blake  <ebb9@byu.net>
39279
39280         * modules/mountlist (Depends-on): Add strstr.
39281
39282         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39283         bug.
39284         * modules/string (Makefile.am): Remove redundant replacement.
39285         * modules/regex (Depends-on): Add mempcpy.
39286
39287 2007-01-31  Bruno Haible  <bruno@clisp.org>
39288
39289         New module description field 'Link'.
39290         * gnulib-tool (func_usage): Document --extract-link-directive.
39291         (sed_extract_prog): Recognize 'Link' directive.
39292         (func_get_link_directive): New function.
39293         (func_import): Show summary of link directives.
39294         Handle --extract-link-directive option.
39295         * modules/acl (Link): New section.
39296         * modules/clock-time (Link): New section.
39297         * modules/euidaccess (Link): New section.
39298         * modules/gettext (Link): New section.
39299         * modules/iconv (Link): New section.
39300         * modules/lock (Link): New section.
39301         * modules/nanosleep (Link): New section.
39302         * modules/readline (Link): New section.
39303
39304 2007-01-27  Bruno Haible  <bruno@clisp.org>
39305
39306         Enforce the use of gnulib modules for unportable <string.h> functions.
39307         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39308         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39309         (gl_HEADER_STRING_H_BODY): Require it.
39310         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39311         the symbol XYZ to one that gives a link error.
39312         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39313         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39314         * modules/mempcpy (configure.ac): Likewise.
39315         * modules/memrchr (configure.ac): Likewise.
39316         * modules/stpcpy (configure.ac): Likewise.
39317         * modules/stpncpy (configure.ac): Likewise.
39318         * modules/strcase (configure.ac): Likewise.
39319         * modules/strcasestr (configure.ac): Likewise.
39320         * modules/strchrnul (configure.ac): Likewise.
39321         * modules/strdup (configure.ac): Likewise.
39322         * modules/strndup (configure.ac): Likewise.
39323         * modules/strnlen (configure.ac): Likewise.
39324         * modules/strpbrk (configure.ac): Likewise.
39325         * modules/strsep (configure.ac): Likewise.
39326         * modules/strstr (configure.ac): Likewise.
39327         * modules/strtok_r (configure.ac): Likewise.
39328
39329 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39330
39331         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39332
39333 2007-01-30  Jim Meyering  <jim@meyering.net>
39334
39335         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39336
39337 2007-01-29  Bruno Haible  <bruno@clisp.org>
39338
39339         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39340         * lib/execute.c: Likewise.
39341         * lib/pipe.c: Likewise.
39342         * lib/printf-args.h: Likewise.
39343         * lib/printf-args.c: Likewise.
39344         * lib/printf-parse.c: Likewise.
39345         * lib/vasnprintf.c: Likewise.
39346
39347 2007-01-29  Eric Blake  <ebb9@byu.net>
39348
39349         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39350         declaration.
39351
39352 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39353
39354         * lib/strptime.h (strptime): Use 'restrict' for args where
39355         POSIX requires this.
39356         * lib/strptime.c (strptime): Likewise.
39357         Change license notice from LGPL to GPL, since gnulib-tool will
39358         change this as needed.
39359         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39360         defined.
39361         Include "strptime.h" first, to check interface.
39362         Do not #undef _LIBC and _NL_CURRENT.
39363         Do not include <stdlib.h>; no longer needed.
39364         Include "time_r.h" and declare ptime_locale_status
39365         only if _LIBC is not defined.
39366         (__P): Remove unused macro.
39367         (match_string): Bring back glibc version, but use it only if _LIBC
39368         is defined.
39369         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39370         Remove unnecessary assertion and abort() call.
39371         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39372         * m4/strptime.m4: Fix serial number comment.
39373         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39374         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39375         (Depends-on): Add time_r.
39376
39377 2007-01-29  Bruno Haible  <bruno@clisp.org>
39378
39379         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39380         strptime.
39381         * modules/strptime (Depends-on): Add stdbool.
39382         * lib/strptime.h: Include <time.h> always. Add comments.
39383
39384 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39385
39386         * modules/strptime: New file.
39387         * lib/strptime.h: New file.
39388         * lib/strptime.c: New file.
39389         * m4/strptime.m4: New file.
39390
39391 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39392
39393         * MODULES.html.sh: New module mpsort.
39394         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39395
39396         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39397         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39398         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39399         All uses changed.
39400         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39401         All uses changed.
39402         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39403         to _Restrict_.
39404         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39405         the parameter matches the prototype.
39406
39407 2007-01-28  Jim Meyering  <jim@meyering.net>
39408
39409         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39410         sys/time.h here, reverting that part of the previous patch:
39411         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39412
39413 2007-01-28  Bruno Haible  <bruno@clisp.org>
39414
39415         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39416         value of $(SYS_TIME_H).
39417         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39418         remove it conditionally, too. [added by Jim Meyering]
39419         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39420         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39421         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39422         GETTIMEOFDAY_REPLACEMENT to 1.
39423
39424 2007-01-28  Bruno Haible  <bruno@clisp.org>
39425
39426         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39427         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39428         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39429         Set UNISTD_H instead of UNISTD_H2.
39430         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39431
39432 2007-01-28  Bruno Haible  <bruno@clisp.org>
39433
39434         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39435         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39436
39437 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39438
39439         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39440         (func_create_testdir): Ensure C locale for `grep' and `tr'
39441         character ranges.
39442         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39443         ACLOCAL_AMFLAGS parsing state machine.
39444
39445 2007-01-27  Bruno Haible  <bruno@clisp.org>
39446
39447         * modules/unistr/base: Update.
39448
39449 2007-01-27  Bruno Haible  <bruno@clisp.org>
39450
39451         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39452         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39453         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39454         modules/unistr/u32-mbtouc.
39455         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39456         * lib/unistr.h: Update.
39457         * lib/linebreak.c: Update.
39458         * modules/unistr/u32-mbtouc: Renamed from
39459         modules/unistr/u32-mbtouc-safe.
39460         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39461         * lib/unistr.h: Update.
39462         * lib/unistr/u32-to-u8.c: Update.
39463         * lib/unistr/u32-to-u16.c: Update.
39464
39465 2007-01-27  Bruno Haible  <bruno@clisp.org>
39466
39467         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39468         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39469         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39470         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39471         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39472         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39473         modules/unistr/u16-mbtouc.
39474         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39475         * lib/unistr.h: Update.
39476         * lib/linebreak.c: Update.
39477         * modules/linebreak: Update.
39478         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39479         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39480         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39481         * modules/unistr/u16-mbtouc: Renamed from
39482         modules/unistr/u16-mbtouc-safe.
39483         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39484         * lib/unistr.h: Update.
39485         * lib/unistr/u16-to-u8.c: Update.
39486         * modules/unistr/u16-to-u8: Update.
39487         * lib/unistr/u16-to-u32.c: Update.
39488         * modules/unistr/u16-to-u32: Update.
39489
39490 2007-01-27  Bruno Haible  <bruno@clisp.org>
39491
39492         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39493         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39494         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39495         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39496         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39497         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39498         modules/unistr/u8-mbtouc.
39499         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39500         * lib/unistr.h: Update.
39501         * lib/striconveh.c: Update.
39502         * modules/striconveh: Update.
39503         * lib/linebreak.c: Update.
39504         * modules/linebreak: Update.
39505         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39506         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39507         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39508         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39509         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39510         * lib/unistr.h: Update.
39511         * lib/striconveh.c: Update.
39512         * modules/striconveh: Update.
39513         * lib/unistr/u8-to-u16.c: Update.
39514         * modules/unistr/u8-to-u16: Update.
39515         * lib/unistr/u8-to-u32.c: Update.
39516         * modules/unistr/u8-to-u32: Update.
39517
39518 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39519
39520         Sync from Libtool.
39521         * lib/argz.c: Do not include strings.h nor memory.h, include
39522         string.h unconditionally.  Patch by Simon Josefsson.
39523
39524 2007-01-27  Bruno Haible  <bruno@clisp.org>
39525
39526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39527         from gl_HEADER_STRING_H_BODY.
39528         (gl_HEADER_STRING_H_BODY): Require it.
39529         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39530         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39531         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39532         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39533         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39534         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39536         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39537         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39538         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39539         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39540         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39541         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39542         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39543         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39544
39545 2007-01-27  Bruno Haible  <bruno@clisp.org>
39546
39547         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39548         check_PROGRAMS into noinst_PROGRAMS.
39549         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39550         check_PROGRAMS in this case.
39551         (func_import): Set for_test to false.
39552         (func_create_testdir): Set for_test to true.
39553
39554 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39555             Bruno Haible  <bruno@clisp.org>
39556
39557         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39558         (Depends-on): Add string.
39559         (Includes): Use <string.h> instead of strcasestr.h.
39560         * modules/string (Makefile.am): Also substitute the value of
39561         REPLACE_STRCASESTR.
39562         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39563         assume strcasestr is declared in <string.h> not <strings.h>. Also
39564         set REPLACE_STRCASESTR.
39565         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39566         REPLACE_STRCASESTR.
39567         * lib/strcasestr.h: Remove file.
39568         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39569         * lib/string_.h (strcasestr): New declaration.
39570
39571 2007-01-27  Bruno Haible  <bruno@clisp.org>
39572
39573         * lib/string_.h: Use 'extern'.
39574
39575 2007-01-27  Jim Meyering  <jim@meyering.net>
39576
39577         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39578         of set-but-not-used local, "q".
39579
39580         * lib/mempcpy.c: Include <config.h> before <string.h>.
39581         This fixes a compilation error on HP-UX, due to the system's
39582         "restrict"-using mempcpy prototype.
39583
39584 2007-01-26  Bruno Haible  <bruno@clisp.org>
39585
39586         Small optimization.
39587         * lib/javacomp.c: Include c-strstr.h.
39588          (is_envjavac_gcj): Use c_strstr instead of strstr.
39589         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39590
39591 2007-01-26  Bruno Haible  <bruno@clisp.org>
39592
39593         * MODULES.html.sh (Unicode string functions): Add the new modules.
39594
39595         * modules/uniconv/u32-strconv-to-locale: New file.
39596         * lib/uniconv/u32-strconv-to-locale.c: New file.
39597
39598         * modules/uniconv/u16-strconv-to-locale: New file.
39599         * lib/uniconv/u16-strconv-to-locale.c: New file.
39600
39601         * modules/uniconv/u8-strconv-to-locale: New file.
39602         * lib/uniconv/u8-strconv-to-locale.c: New file.
39603
39604         * modules/uniconv/u32-strconv-from-locale: New file.
39605         * lib/uniconv/u32-strconv-from-locale.c: New file.
39606
39607         * modules/uniconv/u16-strconv-from-locale: New file.
39608         * lib/uniconv/u16-strconv-from-locale.c: New file.
39609
39610         * modules/uniconv/u8-strconv-from-locale: New file.
39611         * lib/uniconv/u8-strconv-from-locale.c: New file.
39612
39613         * modules/uniconv/u32-strconv-to-enc: New file.
39614         * lib/uniconv/u32-strconv-to-enc.c: New file.
39615         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39616         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39617
39618         * modules/uniconv/u16-strconv-to-enc: New file.
39619         * lib/uniconv/u16-strconv-to-enc.c: New file.
39620         * lib/uniconv/u-strconv-to-enc.h: New file.
39621         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39622         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39623
39624         * modules/uniconv/u8-strconv-to-enc: New file.
39625         * lib/uniconv/u8-strconv-to-enc.c: New file.
39626         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39627         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39628
39629         * modules/uniconv/u32-strconv-from-enc: New file.
39630         * lib/uniconv/u32-strconv-from-enc.c: New file.
39631         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39632         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39633
39634         * modules/uniconv/u16-strconv-from-enc: New file.
39635         * lib/uniconv/u16-strconv-from-enc.c: New file.
39636         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39637         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39638
39639         * modules/uniconv/u8-strconv-from-enc: New file.
39640         * lib/uniconv/u8-strconv-from-enc.c: New file.
39641         * lib/uniconv/u-strconv-from-enc.h: New file.
39642         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39643         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39644
39645         * modules/uniconv/u32-conv-from-enc: New file.
39646         * lib/uniconv/u32-conv-from-enc.c: New file.
39647         * modules/uniconv/u32-conv-from-enc-tests: New file.
39648         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39649
39650         * modules/uniconv/u16-conv-from-enc: New file.
39651         * lib/uniconv/u16-conv-from-enc.c: New file.
39652         * lib/uniconv/u-conv-from-enc.h: New file.
39653         * modules/uniconv/u16-conv-from-enc-tests: New file.
39654         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39655
39656         * modules/uniconv/u8-conv-from-enc: New file.
39657         * lib/uniconv/u8-conv-from-enc.c: New file.
39658         * modules/uniconv/u8-conv-from-enc-tests: New file.
39659         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39660
39661         * modules/uniconv/base: New file.
39662         * lib/uniconv.h: New file.
39663
39664 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39665
39666         * doc/gnulib-tool.texi (Initial import): Update to match current
39667         behavior with strdup module.
39668         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39669         * lib/memmem.h: Remove; all uses removed.  This is now done
39670         by <string.h>.
39671         * lib/mempcpy.h: Likewise.
39672         * lib/memrchr.h: Likewise.
39673         * lib/stpcpy.h: Likewise.
39674         * lib/stpncpy.h: Likewise.
39675         * lib/strcase.h: Likewise.
39676         * lib/strchrnul.h: Likewise.
39677         * lib/strdup.h: Likewise.
39678         * lib/strndup.h: Likewise.
39679         * lib/strnlen.h: Likewise.
39680         * lib/strpbrk.h: Likewise.
39681         * lib/strsep.h: Likewise.
39682         * lib/strstr.h: Likewise.
39683         * lib/strtok_r.h: Likewise.
39684         * lib/string_.h: New file.
39685         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39686         Rely on <string.h> instead.
39687         * lib/canon-host.c: Likewise.
39688         * lib/chdir-long.c: Likewise.
39689         * lib/concatpath.c: Likewise.
39690         * lib/exclude.c: Likewise.
39691         * lib/fchdir.c: Likewise.
39692         * lib/getaddrinfo.c: Likewise.
39693         * lib/getcwd.c: Likewise.
39694         * lib/getsubopt.c: Likewise.
39695         * lib/glob.c: Likewise.
39696         * lib/hard-locale.c: Likewise.
39697         * lib/iconvme.c: Likewise.
39698         * lib/javacomp.c: Likewise.
39699         * lib/mempcpy.c: Likewise.
39700         * lib/memrchr.c: Likewise.
39701         * lib/regex_internal.h: Likewise.
39702         * lib/stpncpy.c: Likewise.
39703         * lib/strcasecmp.c: Likewise.
39704         * lib/strchrnul.c: Likewise.
39705         * lib/strdup.c: Likewise.
39706         * lib/striconv.c: Likewise.
39707         * lib/striconveh.c: Likewise.
39708         * lib/striconveha.c: Likewise.
39709         * lib/strncasecmp.c: Likewise.
39710         * lib/strndup.c: Likewise.
39711         * lib/strnlen.c: Likewise.
39712         * lib/strsep.c: Likewise.
39713         * lib/strstr.c: Likewise.
39714         * lib/strtok_r.c: Likewise.
39715         * lib/userspec.c: Likewise.
39716         * lib/w32spawn.h: Likewise.
39717         * lib/xstrndup.c: Likewise.
39718         * lib/mountlist.c (strstr): Remove decl.
39719         * m4/string_h.m4: New file.
39720         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39721         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39722         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39723         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39724         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39725         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39726         Set REPLACE_STRCASECMP if necessary.
39727         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39728         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39729         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39730         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39731         HAVE_DECL_STRDUP if necessary.
39732         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39733         since gl_FUNC_STRNDUP does that now.
39734         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39735         Check for decl here...
39736         (gl_PREREQ_STRNLEN): ... not here.
39737         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39738         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39739         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39740         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39741         necessary.
39742         * modules/string: New file.
39743         * modules/memmem (Files): Remove special-purpose include file.
39744         (Depends-on): Add string.
39745         (Include): Include <string.h>, not the removed file.
39746         * modules/mempcpy: Likewise.
39747         * modules/memrchr: Likewise.
39748         * modules/stpcpy: Likewise.
39749         * modules/stpncpy: Likewise.
39750         * modules/strcase: Likewise.
39751         * modules/strchrnul: Likewise.
39752         * modules/strdup: Likewise.
39753         * modules/strndup: Likewise.
39754         * modules/strnlen: Likewise.
39755         * modules/strpbrk: Likewise.
39756         * modules/strsep: Likewise.
39757         * modules/strstr: Likewise.
39758         * modules/strtok_r: Likewise.
39759         * tests/test-dirname.c: Don't include "strdup.h", since
39760         <string.h> now suffices.
39761         * tests/test-memmem.c: Don't include "memmem.h", since
39762         <string.h> now suffices.
39763
39764 2007-01-25  Bruno Haible  <bruno@clisp.org>
39765
39766         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39767         *resultp is 0.
39768
39769         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39770         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39771         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39772         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39773
39774         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39775         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39776         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39777         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39778         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39779         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39780
39781 2007-01-24  Bruno Haible  <bruno@clisp.org>
39782
39783         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39784         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39785         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39786         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39787         gl_FUNC_FTS_CORE.
39788         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39789         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39790         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39791         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39792         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39793         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39794         gl_FUNC_FCHOWNAT.
39795         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39796         gl_FUNC_STRFTIME.
39797         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39798         Reported by Ralf Wildenhues.
39799
39800 2007-01-24  Bruno Haible  <bruno@clisp.org>
39801
39802         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39803         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39804         gl_GETADDRINFO.
39805         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39806         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39807         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39808
39809 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39810
39811         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39812         Don't use 'exit'; just return from 'main'.
39813         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39814
39815         * lib/fnmatch_.h: Readjust white space and comments to match
39816         glibc, to avoid spurious diffs.
39817
39818 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39819
39820         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39821         2004-12-01 change by Jakub Jelinek, since this code won't compile
39822         if !LIBC.  Problem reported by Bob Proulx.
39823
39824 2007-01-23  Bruno Haible  <bruno@clisp.org>
39825
39826         * lib/striconveh.c: Include c-strcaseeq.h.
39827         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39828         * modules/striconveh (Depends-on): Add c-strcaseeq.
39829
39830 2007-01-23  Bruno Haible  <bruno@clisp.org>
39831
39832         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39833
39834         * modules/c-strcaseeq: New file.
39835         * lib/c-strcaseeq.h: New file.
39836
39837         * modules/streq: New file.
39838         * lib/streq.h: New file.
39839
39840 2007-01-23  Bruno Haible  <bruno@clisp.org>
39841
39842         * modules/striconveha-tests: New file.
39843         * tests/test-striconveha.c: New file.
39844
39845         * lib/striconveha.h: Include <stdbool.h>.
39846         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39847         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39848         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39849         (mem_iconveha): New function.
39850         (str_iconveha_notranslit): Renamed from str_iconveha.
39851         (str_iconveha): New function.
39852         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39853         c-strcase.
39854
39855 2007-01-23  Bruno Haible  <bruno@clisp.org>
39856
39857         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39858         encodings without forgiving before trying any encoding with handler.
39859         (str_iconveha): Try all encodings without forgiving before trying any
39860         encoding with handler.
39861
39862 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39863
39864         Import the following changes from libc.
39865
39866         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39867
39868         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39869
39870         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39871
39872         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39873         normal_bracket label.
39874
39875         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39876
39877         [BZ #361]
39878         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39879         to normal_bracket after fetching the next character.
39880
39881 2007-01-22  Bruno Haible  <bruno@clisp.org>
39882
39883         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39884         argument.
39885         * lib/striconveh.c (iconv_carefully_1): New function.
39886         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39887         argument.
39888         (str_cd_iconveh): Update.
39889         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39890         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39891         * tests/test-striconveh.c (MAGIC): New macro.
39892         (new_offsets): New function.
39893         (main): Test call with and without offsets.
39894
39895 2007-01-22  Bruno Haible  <bruno@clisp.org>
39896
39897         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39898         * modules/sys_select (Makefile.am): Likewise.
39899         * modules/sys_socket (Makefile.am): Likewise.
39900         * modules/sys_time (Makefile.am): Likewise.
39901
39902 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39903
39904         * modules/gettimeofday (License): Change from GPL to LGPL, since
39905         gettimeofday is a library function.
39906
39907 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39908
39909         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39910
39911 2007-01-21  Bruno Haible  <bruno@clisp.org>
39912
39913         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39914
39915 2007-01-21  Bruno Haible  <bruno@clisp.org>
39916
39917         * modules/striconveha: New file.
39918         * lib/striconveha.h: New file.
39919         * lib/striconveha.c: New file.
39920         * MODULES.html.sh (Internationalization functions): Add striconveha.
39921         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39922         string.
39923         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39924
39925 2007-01-21  Bruno Haible  <bruno@clisp.org>
39926
39927         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39928         * lib/striconveh.c (str_iconveh): Likewise.
39929
39930 2007-01-21  Bruno Haible  <bruno@clisp.org>
39931
39932         * lib/striconveh.h (mem_iconveh): New declaration.
39933         * lib/striconveh.c (mem_iconveh): New function.
39934         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39935
39936 2007-01-21  Bruno Haible  <bruno@clisp.org>
39937
39938         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39939
39940         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39941         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39942         original result buffer.
39943         (str_cd_iconveh): Update.
39944         * tests/test-striconveh.c (main): Update.
39945
39946         * lib/striconv.h (mem_cd_iconv): Change specification.
39947         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39948         result buffer.
39949         (str_cd_iconv): Update.
39950         * tests/test-striconv.c (main): Update.
39951
39952 2007-01-21  Bruno Haible  <bruno@clisp.org>
39953
39954         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39955
39956 2007-01-20  Jim Meyering  <jim@meyering.net>
39957
39958         * lib/userspec.c (parse_with_separator): If a user or group string
39959         starts with "+", skip the corresponding name-to-ID look-up, since
39960         such a look-up must fail: user and group names may not include "+".
39961
39962 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39963
39964         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39965         since we now assume the sys_time module.
39966         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39967         check for sys/time.h; no longer needed.
39968         * modules/poll (Depends-on): Depend on sys_time.
39969
39970 2007-01-18  Bruno Haible  <bruno@clisp.org>
39971
39972         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39973         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39974
39975         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39976         gettimeofday.
39977
39978         * tests/test-gettimeofday.c: Include <time.h>.
39979         (dummy): Remove variable.
39980
39981         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39982         gl_HEADER_SYS_TIME_H.
39983         (gl_HEADER_SYS_TIME_H): New macro.
39984
39985         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39986         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39987         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39988         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39989         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39990         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39991         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39992         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39993         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39994         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39995         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39996
39997         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39998         last change; it caused a compilation error when cross-compiling to
39999         Cygwin.
40000
40001 2007-01-18  Jim Meyering  <jim@meyering.net>
40002
40003         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
40004         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
40005         than the race-prone "test -d sys || mkdir sys".
40006         (configure.ac): Use AC_PROG_MKDIR_P.
40007         * modules/sys_select: Likewise.
40008         * modules/sys_socket: Likewise.
40009         * modules/sys_time: Likewise.
40010
40011 2007-01-18  Eric Blake  <ebb9@byu.net>
40012
40013         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
40014         replace gettimeofday.
40015         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
40016         name, to avoid infinite recursion.
40017
40018 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
40019
40020         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
40021         module sys_time.
40022         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
40023         assume timespec.h defines struct timeval.
40024         * lib/settime.c: Likewise.
40025         * lib/utimens.c: Likewise.
40026         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
40027         since we now assume the gettimeofday module.
40028         * lib/tempname.c (__gen_tempname): Likewise.
40029         * lib/gettimeofday.h: Remove.
40030         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
40031         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
40032         Include <time.h>, for 'time()'.
40033         (localtime_buffer_addr): Also use this workaround if
40034         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
40035         to simplify the uses.  All uses changed.
40036         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
40037         that #undef is inside {}, and 'const' follows type name consistently.
40038         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
40039         (gettimeofday): Do not use the maximum possible value for
40040         tv->tv_usec, since that might break usages other than ls.c.
40041         Instead, we'll leave ls.c alone.  This undoes today's patch
40042         by Bruno.  Add a compile-time warning for 1s-clock resolution;
40043         we've never observed the problem but might as well keep the
40044         canary.
40045         * lib/nanosleep.c: Include timespec.h first, for interface check.
40046         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
40047         now assume the sys_time module.
40048         * lib/tempname.c: Likewise.
40049         * lib/timespec.h: Likewise.
40050         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
40051         needed.
40052         * lib/strftime.c: Likewise.
40053         * lib/timespec.h: Likewise.
40054         * lib/posixtm.c: Include posixtm.h first, for interface check.
40055         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
40056         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
40057         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
40058         * lib/sys_time_.h: New file.
40059         * lib/timespec.h (struct timespec): Use long int, not long.
40060         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40061         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
40062         Remove obsolescent call to AC_HEADER_TIME.
40063         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40064         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40065         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40066         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
40067         Likewise.
40068         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
40069         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
40070         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
40071         into the sys_time module.  Check for gettimeofday just once.
40072         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
40073         for gettimeofday signature to just check the signature.  Merely
40074         compile it, since linking doesn't test signature.  Improve test for
40075         whether gettimeofday.o is actually needed.
40076         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
40077         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
40078         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
40079         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40080         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
40081         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
40082         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
40083         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
40084         than worrying about sys/time.h.
40085         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40086         Don't bother worrying about TIME_WITH_SYS_TIME.
40087         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40088         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
40089         * m4/sys_time_h.m4: New file.
40090         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40091         Don't include sys/time.h.  Return from main rather than exiting.
40092         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40093         all uses changed.
40094         * modules/gethrxtime (Depends-on): Add sys_time.
40095         * modules/gettime (Depends-on): Likewise.
40096         * modules/gettimeofday (Depends-on): Likewise.
40097         * modules/nanosleep (Depends-on): Likewise.
40098         * modules/settime (Depends-on): Likewise.
40099         * modules/tempname (Depends-on): Likewise.
40100         * modules/utimens (Depends-on): Likewise.
40101         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40102         (Include:) Change back to <sys/time.h>.
40103         (Maintainer:) Add self.
40104         * modules/sys_time: New file.
40105         * modules/tempname (Depends-on): Add gettimeofday.
40106         * tests/test-gettimeofday.c: Include <sys/time.h>
40107         rather than gettimeofday.h.
40108
40109 2007-01-17  Bruno Haible  <bruno@clisp.org>
40110
40111         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40112         the license default to GPL.
40113         (func_create_testdir): Don't complain if a module is LGPL and its
40114         tests module depends on GPLed modules.
40115
40116 2007-01-17  Bruno Haible  <bruno@clisp.org>
40117
40118         * lib/gettimeofday.c (gettimeofday): Add code for the case
40119         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40120         maximum possible value for tv->tv_usec, rather than the minimum one.
40121
40122 2005-10-08  Martin Lambers  <marlam@marlam.de>
40123 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40124 2007-01-16  Bruno Haible  <bruno@clisp.org>
40125
40126         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40127         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40128         gl_FUNC_GETTIMEOFDAY.
40129         (Include): Add gettimeofday.h.
40130         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40131         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40132         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40133         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40134         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40135         * lib/gettimeofday.h: New file.
40136         * lib/gettimeofday.c: Include <sys/timeb.h>.
40137         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40138         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40139         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40140         fall back on time().
40141
40142         * tests/test-gettimeofday.c: New file.
40143         * modules/gettimeofday-tests: New file.
40144
40145 2007-01-16  Eric Blake  <ebb9@byu.net>
40146
40147         * modules/fnmatch (Depends-on): Depend on wchar.
40148         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40149         * m4/fnmatch.m4: Likewise.
40150         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40151         * m4/mbchar.m4: Likewise.
40152         * modules/mbswidth (Depends-on): Depend on wchar.
40153         * lib/mbswidth.c: Assume <wchar.h>.
40154         * m4/mbswidth.m4: Likewise.
40155         * modules/quotearg (Depends-on): Depend on wchar.
40156         * lib/quotearg.c: Assume <wchar.h>.
40157         * m4/quotearg.m4: Likewise.
40158         * modules/regex (Depends-on): Depend on wchar.
40159         * lib/regex_internal.h: Assume <wchar.h>.
40160         * m4/regex.m4: Likewise.
40161         * modules/stdint (Depends-on): Depend on wchar.
40162         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40163         * m4/stdint.m4: Likewise.
40164         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40165         * modules/strftime (Depends-on): Depend on wchar.
40166         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40167         * modules/strtol (Depends-on): Depend on wchar.
40168         * lib/strtol.c: Assume <wchar.h>.
40169         * modules/wcwidth (Depends-on): Depend on wchar.
40170         * lib/wcwidth.h: Assume <wchar.h>.
40171         * m4/wcwidth.m4: Likewise.
40172
40173 2007-01-16  Bruno Haible  <bruno@clisp.org>
40174
40175         * modules/csharpexec-script: New, created from...
40176         * modules/csharpexec: ... this.
40177
40178 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40179
40180         * modules/javaexec-script: New, created from...
40181         * modules/javaexec: ... this.
40182
40183 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40184
40185         * modules/poll (Dependencies): Add sys_select.
40186
40187 2007-01-15  Jim Meyering  <jim@meyering.net>
40188
40189         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40190         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40191         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40192         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40193
40194 2007-01-15  Bruno Haible  <bruno@clisp.org>
40195
40196         * modules/striconveh: New file.
40197         * lib/striconveh.h: New file.
40198         * lib/striconveh.c: New file.
40199         * MODULES.html.sh (Internationalization functions): Add striconveh.
40200
40201         * modules/striconveh-tests: New file.
40202         * tests/test-striconveh.c: New file.
40203
40204 2007-01-15  Bruno Haible  <bruno@clisp.org>
40205
40206         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40207         not from GNU libiconv or GNU libc.
40208
40209 2007-01-15  Bruno Haible  <bruno@clisp.org>
40210
40211         * doc/gnulib-intro.texi (Copyright): Explain the different license
40212         terms for module descriptions, autoconf macros, tests, documentation.
40213
40214 2007-01-14  Bruno Haible  <bruno@clisp.org>
40215
40216         * modules/striconv-tests: New file.
40217         * tests/test-striconv.c: New file.
40218
40219 2007-01-14  Bruno Haible  <bruno@clisp.org>
40220
40221         * modules/iconv-tests: New file.
40222         * tests/test-iconv.c: New file.
40223
40224 2007-01-14  Bruno Haible  <bruno@clisp.org>
40225
40226         * gnulib-tool (func_get_license): For test modules, use the license of
40227         the main module.
40228
40229 2007-01-14  Bruno Haible  <bruno@clisp.org>
40230
40231         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40232         if iconv is found to exist.
40233
40234 2007-01-14  Bruno Haible  <bruno@clisp.org>
40235
40236         * modules/c-ctype-tests: New file.
40237         * tests/test-c-ctype.c: New file.
40238
40239 2007-01-14  Bruno Haible  <bruno@clisp.org>
40240
40241         * modules/binary-io-tests: New file.
40242         * tests/test-binary-io.sh: New file.
40243         * tests/test-binary-io.c: New file.
40244
40245 2007-01-14  Bruno Haible  <bruno@clisp.org>
40246
40247         * modules/array-oset-tests: New file.
40248         * tests/test-array_oset.c: New file.
40249
40250 2007-01-14  Bruno Haible  <bruno@clisp.org>
40251
40252         * modules/array-list-tests: New file.
40253         * tests/test-array_list.c: New file.
40254
40255 2007-01-14  Bruno Haible  <bruno@clisp.org>
40256
40257         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40258         and make.
40259         Reported by Simon Josefsson in
40260         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40261
40262 2007-01-14  Bruno Haible  <bruno@clisp.org>
40263
40264         * modules/allocsa-tests: New file.
40265         * tests/test-allocsa.c: New file.
40266
40267 2007-01-14  Bruno Haible  <bruno@clisp.org>
40268
40269         * modules/fchdir (Depends-on): Add absolute-header.
40270         * modules/unistd (Depends-on): Likewise.
40271
40272 2006-12-30  Bruno Haible  <bruno@clisp.org>
40273
40274         * modules/fchdir: New file.
40275         * modules/unistd (Files): Add lib/unistd_.h.
40276         (Makefile.am): Generate unistd.h from unistd_.h.
40277         * lib/fchdir.c: New file.
40278         * lib/dirent_.h: New file.
40279         * lib/unistd_.h: New file.
40280         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40281         * m4/fchdir.m4: New file.
40282         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40283         (gl_HEADER_UNISTD): Invoke it.
40284         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40285         function.
40286         * lib/backupfile.c (opendir, closedir): Undefine.
40287         * lib/chown.c (open, close): Undefine.
40288         * lib/clean-temp.c (open, close): Undefine.
40289         * lib/copy-file.c (open, close): Undefine.
40290         * lib/execute.c (open, close): Undefine.
40291         * lib/fsusage.c (open, close): Undefine.
40292         * lib/gc-gnulib.c (open, close): Undefine.
40293         * lib/getcwd.c (opendir, closedir): Undefine.
40294         * lib/glob.c (opendir, closedir): Undefine.
40295         * lib/javacomp.c (open, close): Undefine.
40296         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40297         * lib/openat-proc.c (open, close): Undefine.
40298         * lib/pagealign_alloc.c (open, close): Undefine.
40299         * lib/pipe.c (open, close): Undefine.
40300         * lib/progreloc.c (open, close): Undefine.
40301         * lib/savedir.c (opendir, closedir): Undefine.
40302         * lib/utime.c (open, close): Undefine.
40303         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40304
40305 2007-01-10  Bruno Haible  <bruno@clisp.org>
40306
40307         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40308
40309 2007-01-12  Eric Blake  <ebb9@byu.net>
40310
40311         Provide a robust <wchar.h>.  Further simplifications are now
40312         possible in other modules, but not included here.
40313         * modules/wchar: New module.
40314         * m4/wchar.m4: New file.
40315         * lib/wchar_.h: Likewise.
40316         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40317         of the new module.
40318         * MODULES.html.sh (Extended multibyte and wide character utilities):
40319         New section.
40320
40321 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40322
40323         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40324         to a reasonable default for memory allocation.
40325         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40326         file system that reports garbage st_size values for symlinks.
40327         Problem reported by Liyang Hu.
40328
40329 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40330
40331         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40332         Emacs .#* auto-save files).
40333
40334 2007-01-11  Bruno Haible  <bruno@clisp.org>
40335
40336         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40337         directory.
40338
40339 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40340
40341         Use @...@ consistently in lib/wctype_.h.
40342         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40343         on it being set to 1 or 0.
40344         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40345         go back to AC_SUBSTing it.
40346         * modules/wctype (Makefile.am): Undo previous change.
40347
40348 2007-01-10  Eric Blake  <ebb9@byu.net>
40349
40350         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40351         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40352         * modules/wctype (Makefile.am): Likewise.
40353         Reported by Chris McGuire.
40354
40355 2007-01-10  Jim Meyering  <jim@meyering.net>
40356
40357         fts.c: a small readability/maintainability improvement
40358         * lib/fts.c (fts_read): Make this code slightly more readable and
40359         maintainable by hoisting the "sp->fts_cur = p" assignments to
40360         immediately follow the statements that set P.  Derived from
40361         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40362
40363 2007-01-10  Eric Blake  <ebb9@byu.net>
40364
40365         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40366         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40368         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40369         Reported by Chris McGuire.
40370
40371 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40372
40373         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40374         in sed script.
40375
40376 2007-01-09  Bruno Haible  <bruno@clisp.org>
40377
40378         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40379         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40380         variables.
40381         (func_module): Use them.
40382
40383 2007-01-09  Bruno Haible  <bruno@clisp.org>
40384
40385         * modules/unistr/base: New file.
40386         * lib/unistr.h: New file.
40387
40388         * modules/unistr/u8-to-u16: New file.
40389         * lib/unistr/u8-to-u16.c: New file.
40390
40391         * modules/unistr/u8-to-u32: New file.
40392         * lib/unistr/u8-to-u32.c: New file.
40393
40394         * modules/unistr/u16-to-u8: New file.
40395         * lib/unistr/u16-to-u8.c: New file.
40396
40397         * modules/unistr/u16-to-u32: New file.
40398         * lib/unistr/u16-to-u32.c: New file.
40399
40400         * modules/unistr/u32-to-u8: New file.
40401         * lib/unistr/u32-to-u8.c: New file.
40402
40403         * modules/unistr/u32-to-u16: New file.
40404         * lib/unistr/u32-to-u16.c: New file.
40405
40406         * modules/unistr/u8-check: New file.
40407         * modules/unistr/u16-check: New file.
40408         * modules/unistr/u32-check: New file.
40409         * lib/unistr/u8-check.c: New file.
40410         * lib/unistr/u16-check.c: New file.
40411         * lib/unistr/u32-check.c: New file.
40412
40413         * modules/unistr/u8-chr: New file.
40414         * modules/unistr/u16-chr: New file.
40415         * modules/unistr/u32-chr: New file.
40416         * lib/unistr/u8-chr.c: New file.
40417         * lib/unistr/u16-chr.c: New file.
40418         * lib/unistr/u32-chr.c: New file.
40419
40420         * modules/unistr/u8-cmp: New file.
40421         * modules/unistr/u16-cmp: New file.
40422         * modules/unistr/u32-cmp: New file.
40423         * lib/unistr/u8-cmp.c: New file.
40424         * lib/unistr/u16-cmp.c: New file.
40425         * lib/unistr/u32-cmp.c: New file.
40426
40427         * modules/unistr/u8-cpy: New file.
40428         * modules/unistr/u16-cpy: New file.
40429         * modules/unistr/u32-cpy: New file.
40430         * lib/unistr/u8-cpy.c: New file.
40431         * lib/unistr/u16-cpy.c: New file.
40432         * lib/unistr/u32-cpy.c: New file.
40433         * lib/unistr/u-cpy.h: New file.
40434
40435         * modules/unistr/u8-cpy-alloc: New file.
40436         * modules/unistr/u16-cpy-alloc: New file.
40437         * modules/unistr/u32-cpy-alloc: New file.
40438         * lib/unistr/u8-cpy-alloc.c: New file.
40439         * lib/unistr/u16-cpy-alloc.c: New file.
40440         * lib/unistr/u32-cpy-alloc.c: New file.
40441         * lib/unistr/u-cpy-alloc.h: New file.
40442
40443         * modules/unistr/u8-endswith: New file.
40444         * modules/unistr/u16-endswith: New file.
40445         * modules/unistr/u32-endswith: New file.
40446         * lib/unistr/u8-endswith.c: New file.
40447         * lib/unistr/u16-endswith.c: New file.
40448         * lib/unistr/u32-endswith.c: New file.
40449         * lib/unistr/u-endswith.h: New file.
40450
40451         * modules/unistr/u8-mblen: New file.
40452         * modules/unistr/u16-mblen: New file.
40453         * modules/unistr/u32-mblen: New file.
40454         * lib/unistr/u8-mblen.c: New file.
40455         * lib/unistr/u16-mblen.c: New file.
40456         * lib/unistr/u32-mblen.c: New file.
40457
40458         * modules/unistr/u8-mbtouc: New file.
40459         * modules/unistr/u16-mbtouc: New file.
40460         * modules/unistr/u32-mbtouc: New file.
40461         * lib/unistr/u8-mbtouc.c: New file.
40462         * lib/unistr/u16-mbtouc.c: New file.
40463         * lib/unistr/u32-mbtouc.c: New file.
40464
40465         * modules/unistr/u8-mbtouc-safe: New file.
40466         * modules/unistr/u16-mbtouc-safe: New file.
40467         * modules/unistr/u32-mbtouc-safe: New file.
40468         * lib/unistr/u8-mbtouc-safe.c: New file.
40469         * lib/unistr/u16-mbtouc-safe.c: New file.
40470         * lib/unistr/u32-mbtouc-safe.c: New file.
40471
40472         * modules/unistr/u8-move: New file.
40473         * modules/unistr/u16-move: New file.
40474         * modules/unistr/u32-move: New file.
40475         * lib/unistr/u8-move.c: New file.
40476         * lib/unistr/u16-move.c: New file.
40477         * lib/unistr/u32-move.c: New file.
40478         * lib/unistr/u-move.h: New file.
40479
40480         * modules/unistr/u8-next: New file.
40481         * modules/unistr/u16-next: New file.
40482         * modules/unistr/u32-next: New file.
40483         * lib/unistr/u8-next.c: New file.
40484         * lib/unistr/u16-next.c: New file.
40485         * lib/unistr/u32-next.c: New file.
40486
40487         * modules/unistr/u8-prev: New file.
40488         * modules/unistr/u16-prev: New file.
40489         * modules/unistr/u32-prev: New file.
40490         * lib/unistr/u8-prev.c: New file.
40491         * lib/unistr/u16-prev.c: New file.
40492         * lib/unistr/u32-prev.c: New file.
40493
40494         * modules/unistr/u8-set: New file.
40495         * modules/unistr/u16-set: New file.
40496         * modules/unistr/u32-set: New file.
40497         * lib/unistr/u8-set.c: New file.
40498         * lib/unistr/u16-set.c: New file.
40499         * lib/unistr/u32-set.c: New file.
40500         * lib/unistr/u-set.h: New file.
40501
40502         * modules/unistr/u8-startswith: New file.
40503         * modules/unistr/u16-startswith: New file.
40504         * modules/unistr/u32-startswith: New file.
40505         * lib/unistr/u8-startswith.c: New file.
40506         * lib/unistr/u16-startswith.c: New file.
40507         * lib/unistr/u32-startswith.c: New file.
40508         * lib/unistr/u-startswith.h: New file.
40509
40510         * modules/unistr/u8-stpcpy: New file.
40511         * modules/unistr/u16-stpcpy: New file.
40512         * modules/unistr/u32-stpcpy: New file.
40513         * lib/unistr/u8-stpcpy.c: New file.
40514         * lib/unistr/u16-stpcpy.c: New file.
40515         * lib/unistr/u32-stpcpy.c: New file.
40516         * lib/unistr/u-stpcpy.h: New file.
40517
40518         * modules/unistr/u8-stpncpy: New file.
40519         * modules/unistr/u16-stpncpy: New file.
40520         * modules/unistr/u32-stpncpy: New file.
40521         * lib/unistr/u8-stpncpy.c: New file.
40522         * lib/unistr/u16-stpncpy.c: New file.
40523         * lib/unistr/u32-stpncpy.c: New file.
40524         * lib/unistr/u-stpncpy.h: New file.
40525
40526         * modules/unistr/u8-strcat: New file.
40527         * modules/unistr/u16-strcat: New file.
40528         * modules/unistr/u32-strcat: New file.
40529         * lib/unistr/u8-strcat.c: New file.
40530         * lib/unistr/u16-strcat.c: New file.
40531         * lib/unistr/u32-strcat.c: New file.
40532         * lib/unistr/u-strcat.h: New file.
40533
40534         * modules/unistr/u8-strchr: New file.
40535         * modules/unistr/u16-strchr: New file.
40536         * modules/unistr/u32-strchr: New file.
40537         * lib/unistr/u8-strchr.c: New file.
40538         * lib/unistr/u16-strchr.c: New file.
40539         * lib/unistr/u32-strchr.c: New file.
40540
40541         * modules/unistr/u8-strcmp: New file.
40542         * modules/unistr/u16-strcmp: New file.
40543         * modules/unistr/u32-strcmp: New file.
40544         * lib/unistr/u8-strcmp.c: New file.
40545         * lib/unistr/u16-strcmp.c: New file.
40546         * lib/unistr/u32-strcmp.c: New file.
40547
40548         * modules/unistr/u8-strcpy: New file.
40549         * modules/unistr/u16-strcpy: New file.
40550         * modules/unistr/u32-strcpy: New file.
40551         * lib/unistr/u8-strcpy.c: New file.
40552         * lib/unistr/u16-strcpy.c: New file.
40553         * lib/unistr/u32-strcpy.c: New file.
40554         * lib/unistr/u-strcpy.h: New file.
40555
40556         * modules/unistr/u8-strcspn: New file.
40557         * modules/unistr/u16-strcspn: New file.
40558         * modules/unistr/u32-strcspn: New file.
40559         * lib/unistr/u8-strcspn.c: New file.
40560         * lib/unistr/u16-strcspn.c: New file.
40561         * lib/unistr/u32-strcspn.c: New file.
40562         * lib/unistr/u-strcspn.h: New file.
40563
40564         * modules/unistr/u8-strdup: New file.
40565         * modules/unistr/u16-strdup: New file.
40566         * modules/unistr/u32-strdup: New file.
40567         * lib/unistr/u8-strdup.c: New file.
40568         * lib/unistr/u16-strdup.c: New file.
40569         * lib/unistr/u32-strdup.c: New file.
40570         * lib/unistr/u-strdup.h: New file.
40571
40572         * modules/unistr/u8-strlen: New file.
40573         * modules/unistr/u16-strlen: New file.
40574         * modules/unistr/u32-strlen: New file.
40575         * lib/unistr/u8-strlen.c: New file.
40576         * lib/unistr/u16-strlen.c: New file.
40577         * lib/unistr/u32-strlen.c: New file.
40578         * lib/unistr/u-strlen.h: New file.
40579
40580         * modules/unistr/u8-strmblen: New file.
40581         * modules/unistr/u16-strmblen: New file.
40582         * modules/unistr/u32-strmblen: New file.
40583         * lib/unistr/u8-strmblen.c: New file.
40584         * lib/unistr/u16-strmblen.c: New file.
40585         * lib/unistr/u32-strmblen.c: New file.
40586
40587         * modules/unistr/u8-strmbtouc: New file.
40588         * modules/unistr/u16-strmbtouc: New file.
40589         * modules/unistr/u32-strmbtouc: New file.
40590         * lib/unistr/u8-strmbtouc.c: New file.
40591         * lib/unistr/u16-strmbtouc.c: New file.
40592         * lib/unistr/u32-strmbtouc.c: New file.
40593
40594         * modules/unistr/u8-strncat: New file.
40595         * modules/unistr/u16-strncat: New file.
40596         * modules/unistr/u32-strncat: New file.
40597         * lib/unistr/u8-strncat.c: New file.
40598         * lib/unistr/u16-strncat.c: New file.
40599         * lib/unistr/u32-strncat.c: New file.
40600         * lib/unistr/u-strncat.h: New file.
40601
40602         * modules/unistr/u8-strncmp: New file.
40603         * modules/unistr/u16-strncmp: New file.
40604         * modules/unistr/u32-strncmp: New file.
40605         * lib/unistr/u8-strncmp.c: New file.
40606         * lib/unistr/u16-strncmp.c: New file.
40607         * lib/unistr/u32-strncmp.c: New file.
40608
40609         * modules/unistr/u8-strncpy: New file.
40610         * modules/unistr/u16-strncpy: New file.
40611         * modules/unistr/u32-strncpy: New file.
40612         * lib/unistr/u8-strncpy.c: New file.
40613         * lib/unistr/u16-strncpy.c: New file.
40614         * lib/unistr/u32-strncpy.c: New file.
40615         * lib/unistr/u-strncpy.h: New file.
40616
40617         * modules/unistr/u8-strnlen: New file.
40618         * modules/unistr/u16-strnlen: New file.
40619         * modules/unistr/u32-strnlen: New file.
40620         * lib/unistr/u8-strnlen.c: New file.
40621         * lib/unistr/u16-strnlen.c: New file.
40622         * lib/unistr/u32-strnlen.c: New file.
40623         * lib/unistr/u-strnlen.h: New file.
40624
40625         * modules/unistr/u8-strpbrk: New file.
40626         * modules/unistr/u16-strpbrk: New file.
40627         * modules/unistr/u32-strpbrk: New file.
40628         * lib/unistr/u8-strpbrk.c: New file.
40629         * lib/unistr/u16-strpbrk.c: New file.
40630         * lib/unistr/u32-strpbrk.c: New file.
40631         * lib/unistr/u-strpbrk.h: New file.
40632
40633         * modules/unistr/u8-strrchr: New file.
40634         * modules/unistr/u16-strrchr: New file.
40635         * modules/unistr/u32-strrchr: New file.
40636         * lib/unistr/u8-strrchr.c: New file.
40637         * lib/unistr/u16-strrchr.c: New file.
40638         * lib/unistr/u32-strrchr.c: New file.
40639
40640         * modules/unistr/u8-strspn: New file.
40641         * modules/unistr/u16-strspn: New file.
40642         * modules/unistr/u32-strspn: New file.
40643         * lib/unistr/u8-strspn.c: New file.
40644         * lib/unistr/u16-strspn.c: New file.
40645         * lib/unistr/u32-strspn.c: New file.
40646         * lib/unistr/u-strspn.h: New file.
40647
40648         * modules/unistr/u8-strstr: New file.
40649         * modules/unistr/u16-strstr: New file.
40650         * modules/unistr/u32-strstr: New file.
40651         * lib/unistr/u8-strstr.c: New file.
40652         * lib/unistr/u16-strstr.c: New file.
40653         * lib/unistr/u32-strstr.c: New file.
40654         * lib/unistr/u-strstr.h: New file.
40655
40656         * modules/unistr/u8-strtok: New file.
40657         * modules/unistr/u16-strtok: New file.
40658         * modules/unistr/u32-strtok: New file.
40659         * lib/unistr/u8-strtok.c: New file.
40660         * lib/unistr/u16-strtok.c: New file.
40661         * lib/unistr/u32-strtok.c: New file.
40662         * lib/unistr/u-strtok.h: New file.
40663
40664         * modules/unistr/u8-uctomb: New file.
40665         * modules/unistr/u16-uctomb: New file.
40666         * modules/unistr/u32-uctomb: New file.
40667         * lib/unistr/u8-uctomb.c: New file.
40668         * lib/unistr/u16-uctomb.c: New file.
40669         * lib/unistr/u32-uctomb.c: New file.
40670
40671         * MODULES.html.sh (Unicode string functions): Add the new modules.
40672
40673 2007-01-08  Bruno Haible  <bruno@clisp.org>
40674
40675         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40676         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40677         subdirectories.
40678
40679 2007-01-08  Karl Berry  <karl@gnu.org>
40680
40681         * doc/error.texi: mention that main() fns must set program_name
40682         when progname is used.
40683
40684 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40685
40686         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40687         WCTYPE_H is empty, for the benefit of builds from non-distclean
40688         directories.  Problem reported by Eric Blake in
40689         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40690
40691 2007-01-08  Bruno Haible  <bruno@clisp.org>
40692
40693         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40694         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40695         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40696         PROVIDE_CANONICALIZE_FILENAME_MODE.
40697         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40698
40699 2007-01-08  Bruno Haible  <bruno@clisp.org>
40700
40701         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40702         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40703         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40704         * lib/fts.c: Likewise.
40705         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40706
40707 2006-12-25  Bruno Haible  <bruno@clisp.org>
40708
40709         * modules/utf8-ucs4-safe: New file.
40710         * lib/utf8-ucs4-safe.h: New file.
40711         * lib/unistr/utf8-ucs4-safe.c: New file.
40712
40713         * modules/utf16-ucs4-safe: New file.
40714         * lib/utf16-ucs4-safe.h: New file.
40715         * lib/unistr/utf16-ucs4-safe.c: New file.
40716
40717         * MODULES.html.sh (Unicode string functions): Add the new modules.
40718
40719 2007-01-08  Bruno Haible  <bruno@clisp.org>
40720
40721         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40722         (Depends-on): Add unitypes.
40723         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40724         (u8_mbtouc_aux): Move out to separate file.
40725         (u8_mbtouc): Use ucs4_t, uint8_t types.
40726         * lib/unistr/utf8-ucs4.c: New file.
40727
40728         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40729         (Depends-on): Add unitypes.
40730         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40731         (u16_mbtouc_aux): Move out to separate file.
40732         (u16_mbtouc): Use ucs4_t, uint16_t types.
40733         * lib/unistr/utf16-ucs4.c: New file.
40734
40735         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40736         (Depends-on): Add unitypes.
40737         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40738         (u8_uctomb_aux): Move out to separate file.
40739         (u8_uctomb): Use ucs4_t, uint8_t types.
40740         * lib/unistr/ucs4-utf8.c: New file.
40741
40742         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40743         (Depends-on): Add unitypes.
40744         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40745         (u16_uctomb_aux): Move out to separate file.
40746         (u16_uctomb): Use ucs4_t, uint16_t types.
40747         * lib/unistr/ucs4-utf16.c: New file.
40748
40749 2006-12-25  Bruno Haible  <bruno@clisp.org>
40750
40751         * modules/unitypes: New file.
40752         * lib/unitypes.h: New file.
40753         * MODULES.html.sh (func_all_modules): New section "Unicode string
40754         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40755         this section. Add unitypes.
40756
40757 2007-01-08  Bruno Haible  <bruno@clisp.org>
40758
40759         Avoid variable names that conflict with those from libtool.
40760         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40761         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40762         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40763         library_names_spec to acl_library_names_spec, hardcode_* to
40764         acl_hardcode_*.
40765         Reported by Ralf Wildenhues.
40766
40767 2007-01-08  Bruno Haible  <bruno@clisp.org>
40768
40769         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40770         definition.
40771         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40772         definition.
40773         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40774         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40775         definition.
40776         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40777         definition.
40778         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40779         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40780         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40781         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40782         definition.
40783         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40784         definition.
40785         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40786         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40787         GC_USE_<algorithm>.
40788         * lib/gc-libgcrypt.c: Likewise.
40789         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40790         * modules/gc-arctwo (configure.ac): Likewise.
40791         * modules/gc-des (configure.ac): Likewise.
40792         * modules/gc-hmac-md5 (configure.ac): Likewise.
40793         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40794         * modules/gc-md2 (configure.ac): Likewise.
40795         * modules/gc-md4 (configure.ac): Likewise.
40796         * modules/gc-md5 (configure.ac): Likewise.
40797         * modules/gc-random (configure.ac): Likewise.
40798         * modules/gc-rijndael (configure.ac): Likewise.
40799         * modules/gc-sha1 (configure.ac): Likewise.
40800
40801 2007-01-08  Bruno Haible  <bruno@clisp.org>
40802
40803         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40804         macro definition.
40805         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40806         definition.
40807         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40808         definition.
40809         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40810         * modules/fcntl-safer (configure.ac): Likewise.
40811         * modules/fopen-safer (configure.ac): Likewise.
40812         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40813         GNULIB_FWRITEERROR macro definition.
40814
40815 2007-01-08  Bruno Haible  <bruno@clisp.org>
40816
40817         * m4/gnulib-common.m4: New file.
40818         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40819         (func_get_filelist): Add m4/gnulib-common.m4.
40820
40821 2007-01-08  Bruno Haible  <bruno@clisp.org>
40822
40823         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40824         command.
40825
40826 2007-01-08  Jim Meyering  <jim@meyering.net>
40827
40828         Use a more robust test for a "can't happen" condition.
40829         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40830         narrowed the st_size value.  Presuming the "can't happen" condition
40831         is true, that narrowing could conceivably convert an invalid st_size
40832         value into a valid one.  Instead, use a change based on Matthew
40833         Woehlke's original patch.
40834
40835         Slight readability improvement: use an assert-like macro
40836         in place of literal "abort ()" uses.
40837         * lib/fts.c (fts_assert): Define.
40838         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40839         Use this macro instead of a bare 'abort'.
40840
40841 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40842
40843         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40844         simply work around them.
40845         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40846         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40847         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40848         declaring.
40849         Don't bother to define as macros, since the standard doesn't require it.
40850         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40851         longer worry about IRIX 5.3.
40852         (HAVE_WCTYPE_CTMP_BUG): Remove.
40853
40854 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40855
40856         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40857         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40858         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40859         Problems reported by Georg Schwarz for IRIX 5.3.
40860
40861         * gnulib-tool (autoconf_minversion): Take the maximum version number
40862         found, not the minimum.  Problem reported by James Youngman.
40863
40864 2007-01-03  Karl Berry  <karl@gnu.org>
40865
40866         * doc/error.texi: new file, explaining interaction with progname.
40867         * doc/gnulib.texi: include it.  Update copyright.
40868
40869 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40870
40871         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40872         AC_CANONICAL_HOST, to improve autobuild outputs.
40873
40874 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40875             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40876
40877         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40878         sockets, server sockets, and other file descriptors.  Count errors
40879         to compute the return value.  Reorder the code a bit to be easier
40880         to follow.  Don't set event bits that were not requested (except
40881         POLLERR and POLLHUP).
40882
40883 2007-01-01  Bruno Haible  <bruno@clisp.org>
40884
40885         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40886
40887 2007-01-03  Jim Meyering  <jim@meyering.net>
40888
40889         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40890
40891 2007-01-02  Bruno Haible  <bruno@clisp.org>
40892
40893         * modules/settime (Include): Require timespec.h.
40894         * modules/nanosleep (Include): Likewise.
40895
40896 2007-01-01  Bruno Haible  <bruno@clisp.org>
40897
40898         * gnulib-tool (func_emit_copyright_notice): Bump year.
40899         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40900
40901 2007-01-01  Bruno Haible  <bruno@clisp.org>
40902
40903         Improve support for OpenBSD.
40904         * build-aux/config.rpath (libname_spec): Export.
40905         (library_names_spec): New variable. Export.
40906         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40907         library_names_spec from the config.rpath output. Locate shared library
40908         through the name pattern in library_names_spec.
40909
40910 2007-01-01  Eric Blake  <ebb9@byu.net>
40911
40912         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40913
40914 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40915
40916         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40917         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40918         assume the C locale, and avoid an "eval" that could cause trouble.
40919         Problem with SORT reported by Bob Proulx.
40920
40921         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40922         Define.  Trivial patch from Henning Nielsen Lund, originally
40923         sent to bug-grep@gnu.org today.
40924
40925 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40926
40927         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40928         struct stat.  Problem reported by Henning Nielsen Lund.
40929         * lib/acl.c: Include acl.h first, to check interface.  Don't
40930         bother to include sys/types.h and sys/stat.h again.
40931
40932 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40933
40934         Import the following change from libc; problem reported by
40935         Sven Verdoolaege.
40936
40937         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40938
40939         [BZ #1373]
40940         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40941
40942 2006-12-28  Jim Meyering  <jim@meyering.net>
40943
40944         * build-aux/announce-gen: Do not assume that the package
40945         builds any of tar.gz, tar.bz2, and .xdelta files.
40946         Suggestion from Simon Josefsson.
40947
40948 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40949
40950         * modules/announce-gen: New file.
40951
40952 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40953
40954         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40955         handles its gotchas now.
40956         * lib/mbswidth.c: Likewise.
40957         * lib/wcwidth.h: Likewise.
40958         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40959         and iswcntrl; the wctype module does this stuff now.
40960         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40961         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40962         * modules/mbchar (Depends-on): Add wctype.
40963         * modules/mbswidth (Depends-on): Likewise.
40964         * modules/wcwidth (Depends-on): Likewise.
40965
40966 2006-12-27  Eric Blake  <ebb9@byu.net>
40967
40968         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40969         module uses more than what <wctype.h> is required to provide.
40970
40971 2006-12-26  Eric Blake  <ebb9@byu.net>
40972
40973         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40974
40975 2006-12-26  Eric Blake  <ebb9@byu.net>
40976
40977         * modules/absolute-header: New module.
40978         * modules/fcntl (Depends-on): Depend on it.
40979         * modules/inttypes (Depends-on): Likewise.
40980         * modules/stdint (Depends-on): Likewise.
40981         * modules/sys_stat (Depends-on): Likewise.
40982         * modules/wctype (Depends-on): Likewise.
40983         * MODULES.html.sh (Support for building libraries and
40984         executables): Document it.
40985
40986 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40987
40988         * gnulib-tool (SED): Remove, undoing previous change.
40989         The problem was that it broke coreutils on Solaris, because
40990         "sed --posix" leaked into a makefile.
40991         (sed): New alias, if 'alias' and GNU sed.
40992
40993 2006-12-24  Jim Meyering  <jim@meyering.net>
40994
40995         Work around an fchownat bug in glibc-2.4:
40996         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40997         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40998         in spite of the -P option.
40999         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
41000         New macros.
41001         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
41002         * modules/openat (Files): Add lib/fchownat.c.
41003         * lib/openat.c (fchownat): Don't define here.  Move to...
41004         * lib/fchownat.c: ...this new file.
41005
41006 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41007
41008         Fix bug reported by Bruno Haible in
41009         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
41010         where quotearg.c didn't compile on Mac OS X 10.2 because it
41011         lacks <wchar.h> and wint_t.
41012         * lib/wctype_.h (__wctype_wint_t): New type.
41013         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
41014         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
41015         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
41016         Arg is now of type __wctype_wint_t, not wint_t.
41017         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
41018         substitute HAVE_WINT_T.
41019         * modules/wctype (Files): Add m4/wint_t.m4.
41020         (wctype.h): Substitute HAVE_WINT_T.
41021
41022 2006-12-23  Bruno Haible  <bruno@clisp.org>
41023
41024         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
41025
41026 2006-12-23  Bruno Haible  <bruno@clisp.org>
41027
41028         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
41029         S_ISLNK.
41030         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
41031         mingw.
41032
41033 2006-12-22  Bruno Haible  <bruno@clisp.org>
41034
41035         * lib/copy-file.c: Include acl.h.
41036         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
41037         Close the file descriptors only after being done with copy_acl.
41038         * modules/copy-file (Depends-on): Add acl.
41039
41040 2006-12-22  Bruno Haible  <bruno@clisp.org>
41041
41042         * gnulib-tool (SED): New variable.
41043         Use $SED instead of sed everywhere.
41044
41045 2006-12-22  Bruno Haible  <bruno@clisp.org>
41046
41047         * modules/no-c++: New file.
41048         * m4/no-c++.m4: New file.
41049         * MODULES.html.sh (Support for building libraries and executables):
41050         Add no-c++.
41051
41052 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41053
41054         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41055         Include <limits.h>, and use its INT_MAX to rewrite the
41056         j loop so that it does not overflow 'int'.  Problem reported by
41057         Ralf Wildenhues in
41058         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
41059         Play it safe by shifting left by 1 rather than multiplying by 2,
41060         as GCC is less likely to optimize this away when the value
41061         is signed (when it assumes overflow leads to undefined behavior).
41062         Also, don't assume time_t uses two's complement.
41063
41064 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
41065
41066         * MODULES.html.sh: New module wctype.
41067         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
41068         * lib/fnmatch.c: Don't bother to include <wchar.h> before
41069         <wctype.h>, since the new wctype module should fix this.
41070         * lib/quotearg.c: Include <wctype.h> unconditionally, since
41071         the wctype module should arrange for it.
41072         * lib/regex_internal.h: Likewise.
41073         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
41074         since the wctype module should handle this now.
41075         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
41076         * modules/fnmatch (Depends-on): Add wctype.
41077         * modules/quotearg (Depends-on): Likewise.
41078         * modules/regex (Depends-on): Likewise.
41079
41080 2006-12-19  Bruno Haible  <bruno@clisp.org>
41081
41082         * lib/strdup.h [C++]: Wrap definitions in extern "C".
41083         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
41084
41085 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41086
41087         * modules/savewd (Depends-on): Fix dependency on fcntl.
41088
41089 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41090
41091         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41092         conforms to C99, rather than relying on the user's environment
41093         setting of STDINT_H.
41094
41095 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41096         and Eric Blake  <ebb9@byu.net>
41097
41098         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41099         This is more consistent with the other defines here.
41100         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41101         Port to z/OS.  Problem reported by Paul Gilmartin.
41102         Change local vars to use gl_ prefix rather than ac_.
41103         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41104         with other defines.
41105         * modules/double-slash-root: New module.
41106         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41107         (Depends-on): Add double-slash-root.
41108         * MODULES.html.sh (File system functions): Mention new module.
41109
41110 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41111
41112         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41113         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41114         This is for the benefit of gzip, which doesn't do i18n.
41115
41116 2006-12-12  Jim Meyering  <jim@meyering.net>
41117
41118         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41119         Reported by Andreas Schwab <schwab@suse.de>.
41120
41121 2006-12-12  Bruno Haible  <bruno@clisp.org>
41122
41123         Merge these changes.
41124         2006-09-05  Bruno Haible  <bruno@clisp.org>
41125         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41126         iconv_alloc succeeded.
41127         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41128         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41129         test for " && dest " at the end - dest is always != NULL there. Call
41130         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41131         with 2xNULL arguments, also to flush the state storage. Handle the
41132         IRIX iconv behaviour. Realloc the final result, to throw away unused
41133         memory.
41134
41135 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41136
41137         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41138         and fchmodat unconditionally, since glibc 2.4 has them.
41139         Problem reported by Arkadiusz Miskiewicz.
41140
41141 2006-12-10  Bruno Haible  <bruno@clisp.org>
41142
41143         * gnulib-tool (func_import): Show the include files only for those
41144         modules that are copied and specified.
41145         Reported by Karl Berry.
41146
41147 2006-12-08  Jim Meyering  <jim@meyering.net>
41148
41149         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41150         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41151
41152         * build-aux/announce-gen: Add two new options, both optional:
41153         --bootstrap-tools=TOOL_LIST
41154               a comma-separated list of tools, e.g.,
41155               autoconf,automake,bison,gnulib
41156         --gnulib-snapshot-date=DATE
41157               if gnulib is in the bootstrap tool list,
41158               then report this as the snapshot date.
41159               If not specified, use the current date/time.
41160               If you specify a date here, be sure it's UTC.
41161
41162 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41163
41164         * tests/test-argp-2.sh: Fix test to match actual output.
41165         (func_compare): Fix sed script to be portable.
41166
41167 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41168
41169         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41170         workaround for this case.  It is not autoconfigured now; offhand
41171         it's hard to see how to autoconfigure it.
41172
41173 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41174
41175         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41176         a directory that is about to be chowned.  Such a directory's
41177         initial file permissions should permit the owner only and this
41178         should not be changed until after the chown, since the group and
41179         other bits would be incorrect if they granted permission before
41180         the chown.
41181
41182         Fix porting problem for iswctype reported by Georg Schwarz in:
41183         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41184         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41185         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41186         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41187         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41188
41189 2006-12-03  Jim Meyering  <jim@meyering.net>
41190
41191         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41192         p->fts_statp may not yet be defined.
41193         (fts_read): Instead, set it in the caller, once p->fts_statp is
41194         sure to be defined, and corresponds to a top-level directory.
41195         This bug made du -x fail.  Here's the coreutils test case:
41196         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41197         Reported by Mike Frysinger.
41198
41199 2006-12-01  Jim Meyering  <jim@meyering.net>
41200
41201         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41202         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41203         Reported by Simon Josefsson.
41204
41205 2006-11-30  Jim Meyering  <jim@meyering.net>
41206
41207         * m4/warning.m4: Use the all-permissive copyright notice
41208         recommended by RMS (rather than LGPL).
41209         * m4/vararrays.m4: Likewise.
41210         * m4/flexmember.m4: Likewise.
41211
41212 2006-11-29  Bruno Haible  <bruno@clisp.org>
41213
41214         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41215         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41216         using +=.
41217         Reported by Simon Josefsson <simon@josefsson.org>.
41218
41219 2006-11-28  James Youngman <jay@gnu.org>
41220
41221         * README: Advise users that they might find the bug-gnulib@gnu.org
41222         and autotools-announce@gnu.org mailing lists useful.
41223
41224 2006-11-28  Bruno Haible  <bruno@clisp.org>
41225
41226         * m4/ptrdiff_max.m4: Remove file.
41227
41228 2006-11-21  Bruno Haible  <bruno@clisp.org>
41229
41230         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41231         _AC_COMPUTE_INT.
41232         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41233         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41234         _AC_COMPUTE_INT.
41235         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41236         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
41237         _AC_COMPUTE_INT.
41238         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41239
41240 2006-11-28  Jim Meyering  <jim@meyering.net>
41241
41242         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41243         warning from "gcc -Wshadow" about shadowing the builtin.
41244
41245 2006-11-27  Bruno Haible  <bruno@clisp.org>
41246
41247         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41248         _AC_COMPUTE_INT.
41249         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41250
41251 2006-11-27  Bruno Haible  <bruno@clisp.org>
41252             Paul Eggert  <eggert@cs.ucla.edu>
41253
41254         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41255
41256 2006-11-26  Bruno Haible  <bruno@clisp.org>
41257
41258         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41259         noinst_LTLIBRARIES.
41260
41261 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41262             Bruno Haible  <bruno@clisp.org>
41263
41264         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41265         if compiling with "gcc -ansi".
41266
41267 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41268
41269         Fix some incompatibilities with gcc -ansi -pedantic.
41270         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41271         if compiling pedantically with GCC, unless it's C99 or later.
41272         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41273         it mishandles gcc -ansi -pedantic as well.
41274         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41275         if gcc -pedantic.
41276         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41277         initializers for struct if -pedantic, unless it's C99 or later.
41278
41279 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41280
41281         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41282         Don't close an fd more than once. Identical atimes indicate
41283         success, not failure.
41284
41285 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41286
41287         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41288
41289 2006-11-23  Jim Meyering  <jim@meyering.net>
41290
41291         * build-aux/announce-gen: New file.  From coreutils.
41292
41293 2006-11-22  Jim Meyering  <jim@meyering.net>
41294
41295         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41296         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41297         (fts_read): Use a temporary to narrow the overused st_size member
41298         before using it in a switch statement.  Reported by Matthew Woehlke.
41299
41300         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41301         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41302
41303 2006-11-20  Bruno Haible  <bruno@clisp.org>
41304
41305         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41306         changequote instead of pairs of brackets.
41307         Reported by Andreas Schwab <schwab@suse.de>.
41308
41309 2006-11-21  Jim Meyering  <jim@meyering.net>
41310
41311         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41312         so as to remain compatible with older compilers.
41313         Patch from Michael Deutschmann.
41314
41315 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41316
41317         * MODULES.html.sh (File system functions): Add openat.
41318
41319         * lib/openat.h (rpl_fstatat): New macro, if
41320         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41321         (fstatat): Define to rpl_fstatat under the same conditions,
41322         unless COMPILING_FSTATAT.
41323         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41324         seems to have the bug.
41325         * lib/fstatat.c: New file.
41326         * modules/openat (Files): Add it.
41327
41328 2006-11-20  Bruno Haible  <bruno@clisp.org>
41329
41330         * Makefile: New file.
41331
41332 2006-11-20  Jim Meyering  <jim@meyering.net>
41333
41334         The beginnings of syntax-related checks for gnulib.
41335         * lib/Makefile: New file.
41336         * lib/t-idcache: New script.  Ensure that the two halves of
41337         idcache.c stay in sync.
41338
41339         * lib/idcache.c: Adjust comments in user- and group- portions to
41340         be more accurate, and to be consistent with one another.
41341
41342 2006-11-20  Jim Meyering  <jim@meyering.net>
41343
41344         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41345         continue using the flexible array member (thus, this module performs
41346         half as many malloc calls), with the addition that...
41347         (getgroup, getuser): Consistently record a non-match via an empty
41348         "name" string, and map an empty string match to a NULL return value.
41349         * modules/idcache (Depends-on): Re-add flexmember.
41350
41351         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41352         (getuidbyname, getgroup, getgidbyname): Likewise.
41353
41354         Use cleaner syntax: NULL rather than 0.
41355         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41356
41357 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41358
41359         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41360         It mishandled the case where the group was missing.
41361         Problem reported by Greg Schafer.
41362         * modules/idcache: Likewise.
41363
41364 2006-11-18  Jim Meyering  <jim@meyering.net>
41365
41366         * check-module (%exempt_header): Add exception for some
41367         conditionally-included headers.
41368
41369         * modules/i-ring (Depends-on): Add verify.
41370         (License): Change to LGPL.
41371
41372 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41373
41374         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41375         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41376         and inttostr.h.  Use snprintf rather than uinttostr, so that
41377         LGPLed code doesn't depend on GPLed.
41378
41379 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41380
41381         * modules/inline (License): Change from GPL to LGPL.
41382
41383 2006-11-17  Jim Meyering  <jim@meyering.net>
41384
41385         * modules/d-type (License): Switch to LGPL.
41386
41387 2006-11-15  Bruno Haible  <bruno@clisp.org>
41388
41389         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41390
41391 2006-11-15  Eric Blake  <ebb9@byu.net>
41392
41393         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41394         the module dependency.
41395
41396 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41397             Bruno Haible  <bruno@clisp.org>
41398
41399         * gnulib-tool (func_create_testdir): Add license consistency check.
41400
41401 2006-11-15  Eric Blake  <ebb9@byu.net>
41402
41403         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41404         random "(cached)" in configure output.
41405
41406 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41407
41408         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41409         test for conforming inttypes.h is both announced and cached.
41410
41411         * MODULES.html.sh (seen_modules, seen_files): New variables.
41412         (func_module): Rewrite to use a few less gnulib-tool and sed
41413         invocations.  Avoid a couple of quadratic algorithms for ...
41414         (missed_modules, missed_files): ... these, with ...
41415         (func_append, func_tmpdir): ... these new functions, from
41416         gnulib-tool.  Analogously, install traps for cleanup.
41417
41418         * tests/test-gc.c (main): Remove unused variables.
41419         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41420
41421 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41422
41423         * modules/inttostr (License): Change to LGPL.
41424
41425 2006-11-14  Eric Blake  <ebb9@byu.net>
41426
41427         * modules/tempname (License): Change to LGPL.
41428
41429 2006-11-14  Eric Blake  <ebb9@byu.net>
41430
41431         * doc/functions.texi (Function Portability): *printf functions on
41432         Cygwin now understand all POSIX size specifiers.
41433
41434 2006-11-14  Bruno Haible  <bruno@clisp.org>
41435
41436         * modules/c-ctype (License): Change to LGPL.
41437
41438 2006-11-12  Bruno Haible  <bruno@clisp.org>
41439
41440         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41441         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41442         for GNOME libraries, for which the include files are installed in
41443         subdirectories of $prefix/include.
41444
41445 2006-11-12  Bruno Haible  <bruno@clisp.org>
41446
41447         * m4/lib-link.m4: Require at least autoconf-2.54.
41448         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41449         name to underscores for the --with option.
41450
41451 2006-11-13  Bruno Haible  <bruno@clisp.org>
41452
41453         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41454         the tests directory.
41455         Reported by Ralf Wildenhues.
41456
41457 2006-11-13  Bruno Haible  <bruno@clisp.org>
41458
41459         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41460         (func_emit_initmacro_end): Undo the override here.
41461         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41462         Works around the famous automake error in coreutils.
41463
41464 2006-11-13  Eric Blake  <ebb9@byu.net>
41465
41466         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41467         element, not its node.
41468
41469 2006-11-12  Bruno Haible  <bruno@clisp.org>
41470
41471         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41472         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41473
41474 2006-11-12  Bruno Haible  <bruno@clisp.org>
41475
41476         * gnulib-tool: New option --local-symlink.
41477         (func_usage): Document it.
41478         (lsymbolic): New variable.
41479         (func_import, func_create_testdir): If --symlink was not specified,
41480         test whether --local-symlink was specified and the file comes from
41481         the local_gnulib_dir.
41482
41483 2006-11-12  Bruno Haible  <bruno@clisp.org>
41484
41485         * gnulib-tool (func_ln): New function.
41486         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41487
41488 2006-11-12  Bruno Haible  <bruno@clisp.org>
41489
41490         Finish support for source files in subdirectories.
41491         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41492         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41493         AUTOMAKE_OPTIONS.
41494         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41495
41496 2006-11-12  Bruno Haible  <bruno@clisp.org>
41497
41498         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41499         EXTRA_lib_SOURCES augmentation.
41500         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41501
41502 2006-11-12  Jim Meyering  <jim@meyering.net>
41503
41504         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41505         file descriptors.  This also averts a failure on systems with
41506         native openat support when a traversed directory lacks "x" access.
41507         * lib/fts_.h: Include "i-ring.h"
41508         (struct FTS) [fts_fd_ring]: New member.
41509         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41510         (FCHDIR): Add parentheses.
41511         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41512         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41513         When descending, rather than simply closing the previous
41514         fts_cwd_fd value, push that file descriptor onto the ring.
41515         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41516         (fts_open): Initialize the new fd_ring member.
41517         (fts_close): Clear the ring.
41518         (fts_safe_changedir): When possible, use our new fd_ring to skip
41519         the diropen and fstat and dev/ino comparison that would normally
41520         accompany a virtual `chdir ("..")'.
41521
41522         * modules/fts (Depends-on): Add i-ring.
41523         * modules/i-ring: New module.
41524         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41525         * m4/i-ring.m4: New file.
41526
41527 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41528
41529         * gnulib-tool (func_create_testdir): Fix replacement of
41530         `build-aux' in configure.ac.  Run autotools in gltests
41531         subdirectory.
41532         (func_create_testdir, func_create_megatestdir, test): There is
41533         no need for '--force' in most autotool invocations in a new
41534         tree.  Actually fail the whole test if any of the tools, or the
41535         configure or make stages fail.
41536
41537         Sync from Automake.
41538         * build-aux/gnupload: Revert last change.  Add pointer to upload
41539         instructions of the GNU Maintenance Instructions.
41540         Suggestion by Karl Berry.
41541
41542 2006-11-10  Jim Meyering  <jim@meyering.net>
41543
41544         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41545
41546 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41547
41548         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41549         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41550         (bind_textdomain_codeset) [! ENABLE_NLS]:
41551         Evaluate all the arguments.  That way, callers get compatible behavior
41552         if the arguments have side effects.  Also, it avoids some GCC
41553         diagnostics in some cases; Joel E. Denny reported problems when Bison
41554         was configured with --enable-gcc-warnigs.
41555
41556 2006-11-10  Jim Meyering  <jim@meyering.net>
41557
41558         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41559         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41560         account.
41561
41562 2006-11-10  Jim Meyering  <jim@meyering.net>
41563
41564         * modules/inline: New file/module.
41565         * modules/xalloc (Files): Remove m4/inline.m4.
41566         (Depends-on): Add inline, instead.
41567         * modules/oset: Likewise.
41568         * modules/list: Likewise.
41569
41570 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41571
41572         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41573         Problem reported by Matthew Woehlke.
41574
41575 2006-11-09  Bruno Haible  <bruno@clisp.org>
41576
41577         * lib/tempname.c (gen_tempname): Remove variant that invokes
41578         __gen_tempname.
41579         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41580         __gen_tempname.
41581
41582 2006-11-08  Bruno Haible  <bruno@clisp.org>
41583
41584         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41585         to 'yes' instead of 'cross-compiling'.
41586
41587 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41588
41589         * lib/quotearg.h (quotearg_free): New decl.
41590         * lib/quotearg.c (quotearg_free): New function.
41591         (slot0, nslots, slotvec0, slotvec):
41592         Now file-scope so that quotearg_free can get at them.
41593
41594 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41595
41596         Sync from Automake.
41597         * build-aux/gnupload: Add missing 'gnu' to example URL.
41598         Report by Karl Berry.
41599
41600 2006-11-08  Bruno Haible  <bruno@clisp.org>
41601
41602         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41603         Suggested by Paul Eggert.
41604
41605 2006-11-08  Jim Meyering  <jim@meyering.net>
41606
41607         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41608         It's already included if !_LIBC.
41609         (fts_safe_changedir): Add a comment.
41610
41611 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41612
41613         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41614         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41615         Matthew Woehlke.
41616
41617         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41618         definitions up, to avoid colliding with change below.
41619         (static_inline) [HAVE_INLINE]: New macro.
41620         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41621         Provide extern decls when !HAVE_INLINE.  Do not define unless
41622         static_inline is defined, either by us or by xmalloc.c.  Use
41623         static_inline rather than static inline.
41624         (XCALLOC): Optimize sizeof(T) = 1 case.
41625         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41626
41627 2006-11-07  Bruno Haible  <bruno@clisp.org>
41628
41629         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41630         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41631         AC_C_INLINE.
41632         * modules/xalloc (Files): Add m4/inline.m4.
41633
41634 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41635
41636         * README: Fix typo.
41637         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41638         (Miscellanous Notes): ...from this.
41639
41640 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41641
41642         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41643         Mention that offsetof should be used instead of sizeof.
41644         From Bruno Haible.
41645
41646 2006-11-07  Bruno Haible  <bruno@clisp.org>
41647
41648         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41649
41650 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41651
41652         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41653         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41654         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41655         (gl_tree_add_before, gl_tree_add_after):
41656         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41657         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41658         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41659         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41660         (gl_linked_add_after, gl_linked_add_at): Likewise.
41661         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41662         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41663         (gl_tree_add_before, gl_tree_add_after): Likewise.
41664         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41665         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41666         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41667
41668 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41669
41670         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41671
41672 2006-11-06  Bruno Haible  <bruno@clisp.org>
41673
41674         * m4/inline.m4: New file.
41675         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41676         * modules/list (Files): Add m4/inline.m4.
41677         * modules/oset (Files): Likewise.
41678
41679 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41680
41681         * lib/idcache.c: Include <stddef.h>, for offsetof.
41682         (struct userid.name): Change from char * to a flexible array member.
41683         All uses changed.
41684         * modules/idcache (Depends-on): Add flexmember.
41685
41686         * MODULES.html.sh (Core language properties): New module flexmember.
41687         * modules/flexmember, m4/flexmember.m4: New files.
41688
41689         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41690         inline functions that are identical with the old xnmalloc_inline,
41691         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41692         that we can avoid some unnecessary integer multiplications and
41693         divisions in the common case where the element size is known at
41694         compile time.
41695         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41696         needed.
41697         (xnboundedmalloc): Remove.
41698         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41699         arguments, for consistency with rest of this header.
41700         (xcharalloc): Rewrite using XNMALLOC.
41701         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41702         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41703         versions have been moved to lib/xalloc.h and renamed to be the
41704         non-*_inline versions.
41705         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41706         and xnrealloc functions, since those functions are now inline and
41707         now call us.
41708         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41709         renaming described above.
41710         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41711         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41712         captures the dependency in AC_C_INLINE.
41713
41714         New module canonicalize-lgpl, proposed by Charles Wilson in
41715         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41716         with a few small changes afterwards.
41717         * MODULES.html.sh (File system functions): New module
41718         canonicalize-lgpl.
41719         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41720         and canonicalize_file_name.
41721         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41722         * modules/canonicalize-lgpl: New files.
41723
41724 2006-11-05  Bruno Haible  <bruno@clisp.org>
41725
41726         * gnulib-tool (func_import, func_create_testdir): Create directories
41727         also for files in subdirectories of lib/.
41728
41729 2006-11-05  Bruno Haible  <bruno@clisp.org>
41730
41731         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41732         ANSI C compliant.
41733
41734 2006-11-03  Bruno Haible  <bruno@clisp.org>
41735
41736         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41737         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41738         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41739         (xnboundedmalloc): New inline function.
41740         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41741         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41742         xmalloc.
41743         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41744         xmalloc.
41745         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41746         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41747         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41748         xmalloc.
41749         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41750         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41751         xmalloc.
41752         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41753         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41754         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41755         xmalloc.
41756         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41757         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41758         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41759         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41760         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41761         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41762         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41763
41764 2006-11-03  Bruno Haible  <bruno@clisp.org>
41765
41766         * lib/c-ctype.h [C++]: Define functions without name mangling.
41767         * lib/fwriteerror.h [C++]: Likewise.
41768         * lib/gcd.h [C++]: Likewise.
41769         * lib/linebreak.h [C++]: Likewise.
41770
41771 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41772
41773         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41774         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41775         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41776         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41777         Check for functions and headers just once.
41778         Check for declaration of canonicalize_file_name.
41779         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41780
41781 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41782
41783         * gnulib-tool (func_import): Fix typo in actioncmd.
41784
41785 2006-11-02  Bruno Haible  <bruno@clisp.org>
41786
41787         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41788         newline sequence in the Makefile.am snippet as a space, like "make"
41789         does.
41790         Reported by Roger Persson <perrog@gmail.com>.
41791
41792 2006-11-01  Bruno Haible  <bruno@clisp.org>
41793
41794         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41795         already declared in <string.h>.
41796         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41797
41798 2006-11-01  Bruno Haible  <bruno@clisp.org>
41799
41800         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41801         * lib/strcase.h: Include <string.h>.
41802         (strcasecmp): Define to rpl_strcasecmp here.
41803
41804 2006-11-01  Bruno Haible  <bruno@clisp.org>
41805
41806         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41807
41808 2006-11-01  Eric Blake  <ebb9@byu.net>
41809
41810         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41811
41812         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41813
41814 2006-10-29  Bruno Haible  <bruno@clisp.org>
41815
41816         Make it compile in C++ mode.
41817         * lib/full-write.c (full_rw): Add a cast.
41818
41819 2006-11-01  Bruno Haible  <bruno@clisp.org>
41820
41821         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41822         be POSIX compliant.
41823         Reported by Roger Persson <perrog@gmail.com>.
41824
41825 2006-11-01  Eric Blake  <ebb9@byu.net>
41826
41827         * lib/getopt_.h: Fix comments.
41828
41829 2006-10-31  Eric Blake  <ebb9@byu.net>
41830
41831         * modules/tmpdir (Depends-on): Add sys_stat.
41832         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41833         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41834         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41835         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41836         tempname.
41837
41838 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41839
41840         Avoid some C++ diagnostics reported by Bruno Haible.
41841         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41842         xmalloc.
41843         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41844         (struct slotvec): Move to top level.
41845         (quotearg_n_options): Rewrite to avoid xmalloc.
41846         * lib/xalloc.h (xcharalloc): New function.
41847         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41848         [defined __cplusplus]: Add function template that provides result
41849         type propagation.  This part of the change is from Bruno Haible.
41850
41851 2006-10-29  Bruno Haible  <bruno@clisp.org>
41852
41853         Make it compile in C++ mode.
41854         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41855         * lib/strnlen1.c (strnlen1): Cast memchr result.
41856         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41857         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41858         (create_temp_dir): Rename local variable 'template'.
41859         (compile_csharp_using_sscli): Add cast.
41860         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41861         * lib/findprog.c (find_in_path): Likewise.
41862         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41863         * lib/wait-process.c (register_slave_subprocess): Likewise.
41864
41865 2006-10-22  Bruno Haible  <bruno@clisp.org>
41866
41867         * modules/tsearch: New file.
41868         * lib/tsearch.h: New file.
41869         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41870         * m4/tsearch.m4: New file.
41871         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41872
41873 2006-10-29  Eric Blake  <ebb9@byu.net>
41874
41875         * lib/arcfour.c: Assume config.h.
41876         * lib/arctwo.c: Likewise.
41877         * lib/base64.c: Likewise.
41878         * lib/check-version.c: Likewise.
41879         * lib/crc.c: Likewise.
41880         * lib/des.c: Likewise.
41881         * lib/gc-gnulib.c: Likewise.
41882         * lib/gc-libgcrypt.c: Likewise.
41883         * lib/gc-pbkdf2-sha1.c: Likewise.
41884         * lib/getaddrinfo.c: Likewise.
41885         * lib/getdelim.c: Likewise.
41886         * lib/getline.c: Likewise.
41887         * lib/hmac-md5.c: Likewise.
41888         * lib/hmac-sha1.c: Likewise.
41889         * lib/iconvme.c: Likewise.
41890         * lib/md2.c: Likewise.
41891         * lib/md4.c: Likewise.
41892         * lib/memxor.c: Likewise.
41893         * lib/read-file.c: Likewise.
41894         * lib/readline.c: Likewise.
41895         * lib/rijndael-alg-fst.c: Likewise.
41896         * lib/rijndael-api-fst.c: Likewise.
41897         * lib/xgetdomainname.c: Likewise.
41898
41899 2006-10-28  Eric Blake  <ebb9@byu.net>
41900
41901         * lib/xstrndup.c: Assume config.h.
41902
41903 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41904
41905         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41906         stat-macros.h is now for our own macros, whereas stat_h is for
41907         macros in the <sys/stat.h> name space.
41908         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41909         (STAT_MACROS_H): Remove.
41910         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41911         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41912         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41913         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41914         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41915         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41916         Move these macros to ...
41917         * lib/stat_.h: here.  Don't include stat-macros.h.
41918         * lib/canonicalize.c: Don't include stat-macros.h.
41919         * lib/chown.c: Likewise.
41920         * lib/euidaccess.c: Likewise.
41921         * lib/file-type.c: Likewise.
41922         * lib/filemode.c: Likewise.
41923         * lib/glob.c: Likewise.
41924         * lib/isapipe.c: Likewise.
41925         * lib/lchown.c: Likewise.
41926         * lib/lstat.c: Likewise.
41927         * lib/mkdir-p.c: Likewise.
41928         * lib/rmdir.c: Likewise.
41929         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41930         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41931         unless mkdir isn't declared, to speed up 'configure'.
41932         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41933         would define all the S_* symbols.
41934         * modules/canonicalize (Depends-on):
41935         Depend on sys_stat, not stat-macros.
41936         * modules/chown: Likewise.
41937         * modules/euidaccess: Likewise.
41938         * modules/filemode: Likewise.
41939         * modules/file-type: Likewise.
41940         * modules/glob: Likewise.
41941         * modules/isapipe: Likewise.
41942         * modules/lchown: Likewise.
41943         * modules/lstat: Likewise.
41944         * modules/mkancesdirs: Likewise.
41945         * modules/rmdir: Likewise.
41946         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41947         * modules/modechange: Likewise.
41948         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41949         (configure.ac): Remove gl_STAT_MACROS.
41950         * modules/sys_stat (Depends-on): Remove stat-macros.
41951
41952 2006-10-27  Bruno Haible  <bruno@clisp.org>
41953
41954         * m4/signed.m4: Remove file.
41955         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41956         invocation.
41957         * modules/vasnprintf (Files): Remove m4/signed.m4.
41958
41959 2006-10-27  Bruno Haible  <bruno@clisp.org>
41960
41961         Update to GNU gettext 0.16.
41962         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41963         m4/inttypes-h.m4, m4/signed.m4.
41964         * m4/gettext.m4: Update to GNU gettext 0.16.
41965         * m4/intl.m4: New file, from GNU gettext.
41966         * m4/intldir.m4: New file, from GNU gettext.
41967         * config/srclist.txt: Update
41968
41969 2006-10-27  Eric Blake  <ebb9@byu.net>
41970
41971         * MODULES.html.sh: Document tempname.
41972         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41973         dependencies.
41974         (Files): Move lib/tempname.c...
41975         * modules/tempname: ...to this new module.
41976         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41977         (gl_PREREQ_TEMPNAME): Move...
41978         * m4/tempname.m4: ...to this new file.
41979         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41980         * modules/sys_stat (Depends-on): Add stat-macros.
41981         * lib/stat_.h (includes): Pick up stat macros.
41982         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41983         if stat macros are broken.
41984         * lib/tempname.c (includes): No need to include "stat-macros.h".
41985         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41986         (direxists, __path_search) [!_LIBC]: Don't compile these in
41987         gnulib; the tmpdir module covers that.
41988         * lib/tempname.h: New file.
41989
41990 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41991
41992         * COPYING: Explain how gnulib-tool converts licence headers.
41993         Almost all wording by Eric Blake.
41994
41995 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41996
41997         * lib/mbchar.h (is_basic_table): Make read-only.
41998         * lib/mbchar.c (is_basic_table): Likewise.
41999         Reported by John Darrington.
42000
42001 2006-10-25  Bruno Haible  <bruno@clisp.org>
42002
42003         * lib/progname.h (set_program_name): Undefine before defining.
42004
42005 2006-10-25  Bruno Haible  <bruno@clisp.org>
42006
42007         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
42008         false for non-gcc C++ compilers.
42009         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42010
42011 2006-10-24  Bruno Haible  <bruno@clisp.org>
42012
42013         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
42014         iconv implementations like Irix iconv.
42015
42016 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42017
42018         * modules/vararrays: New file.
42019         * m4/vararrays.m4: New file, taken from diffutils.
42020         * MODULES.html.sh: New module vararrays.
42021
42022 2006-10-24  Karl Berry  <karl@gnu.org>
42023
42024         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
42025         Don't call GNU Unix.
42026
42027 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42028
42029         * users.txt: Add Libtool.
42030
42031         Sync from Libtool:
42032
42033         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42034
42035         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
42036         to gnulib's policy of including config.h unconditionally.
42037
42038 2006-10-24  Bruno Haible  <bruno@clisp.org>
42039
42040         * modules/wcwidth (Files): Add m4/wint_t.m4.
42041         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
42042         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
42043
42044 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42045
42046         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
42047         to pacify GCC with some -W flags enabled.  Problem reported by
42048         Bruno Haible.
42049
42050 2006-10-24  Jim Meyering  <jim@meyering.net>
42051
42052         * MODULES.html.sh: Remove uinttostr.  It's not a module.
42053         Reported by Karl Berry.
42054
42055 2006-10-23  Bruno Haible  <bruno@clisp.org>
42056
42057         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
42058
42059 2006-10-24  Bruno Haible  <bruno@clisp.org>
42060
42061         * lib/gl_list.h: Use C comment style, not C++ comment style.
42062
42063 2006-10-23  Eric Blake  <ebb9@byu.net>
42064
42065         * lib/getaddrinfo.c (includes): Add missing include.
42066
42067 2006-10-23  Bruno Haible  <bruno@clisp.org>
42068             Paul Eggert  <eggert@cs.ucla.edu>
42069
42070         Ability to rename obstack_free.
42071         * lib/obstack.h (__obstack_free): New macro. Declare instead of
42072         obstack_free.
42073         (obstack_free): Invoke the __obstack_free macro.
42074         * lib/obstack.c (obstack_free): Use __obstack_free macro.
42075
42076 2006-10-23  Bruno Haible  <bruno@clisp.org>
42077             Paul Eggert  <eggert@cs.ucla.edu>
42078
42079         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
42080         __argc, __argv from the declaration. (They are defined as macros on
42081         mingw.)
42082
42083 2006-10-22  Bruno Haible  <bruno@clisp.org>
42084
42085         * doc/gnulib-intro.texi: New file.
42086         * doc/gnulib.texi: Include it.
42087
42088 2006-10-21  Bruno Haible  <bruno@clisp.org>
42089
42090         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42091         "Introduction", "Miscellanous Notes", "Particular Modules".
42092
42093 2006-10-21  Bruno Haible  <bruno@clisp.org>
42094
42095         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42096         Change mostlyclean-local rule to avoid sh syntax error from bash
42097         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42098
42099 2006-10-23  Jim Meyering  <jim@meyering.net>
42100
42101         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42102         in place of snprintf.
42103
42104         * modules/inttostr (Files): Add lib/uinttostr.c.
42105         * lib/uinttostr.c (inttostr): New file/function.
42106         * lib/inttostr.h (uinttostr): Declare.
42107         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42108         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42109         Add uinttostr.
42110         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42111
42112 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42113
42114         * lib/canonicalize.c (ELOOP): Define if not already defined.
42115         Problem reported by Bruno Haible in
42116         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42117
42118 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42119
42120         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42121         Problem reported by Perry Smith and Ville Laurikari.
42122
42123         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42124         uses.
42125
42126 2006-10-19  Bruno Haible  <bruno@clisp.org>
42127
42128         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42129         for mingw.
42130
42131 2006-10-19  Bruno Haible  <bruno@clisp.org>
42132
42133         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42134         Needed for mingw.
42135
42136 2006-10-19  Bruno Haible  <bruno@clisp.org>
42137
42138         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42139
42140 2006-10-19  Bruno Haible  <bruno@clisp.org>
42141
42142         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42143         it.
42144
42145 2006-10-19  Bruno Haible  <bruno@clisp.org>
42146
42147         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42148         invocation.
42149
42150 2006-10-19  Bruno Haible  <bruno@clisp.org>
42151
42152         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42153         mountlist by default.
42154
42155 2006-10-16  Bruno Haible  <bruno@clisp.org>
42156
42157         * lib/c-strstr.c: Include c-strstr.h.
42158
42159 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42160
42161         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42162         in a slash.
42163
42164 2006-10-18  Bruno Haible  <bruno@clisp.org>
42165
42166         * lib/lock.h [C++]: Wrap definitions in extern "C".
42167
42168 2006-10-18  Bruno Haible  <bruno@clisp.org>
42169
42170         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42171         gl_LIBOBJS list.
42172
42173 2006-10-18  Bruno Haible  <bruno@clisp.org>
42174
42175         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42176
42177 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42178
42179         * lib/xstrtol.h: Include gettext.h.
42180         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42181         Problem reported by Eric Blake.
42182         * modules/xstrtol (Depends-on): Add gettext-h.
42183
42184 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42185
42186         * lib/strftime.c (advance): New macro.
42187         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42188         incomplete type, so you can't add 0 to it.  Problem and patch
42189         reported by Eelco Dolstra for dietlibc.
42190
42191 2006-10-18  Jim Meyering  <jim@meyering.net>
42192
42193         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42194         type for a local, and rename it: s/up/user_proc/.
42195
42196 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42197
42198         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42199         READ_UTMP_USER_PROCESS.
42200         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42201
42202 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42203
42204         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42205         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42206
42207 2006-10-17  Eric Blake  <ebb9@byu.net>
42208
42209         * lib/sigprocmask.c (sigprocmask): Fix typo.
42210
42211         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42212
42213         * modules/clean-temp (Makefile.am): Don't add to make output...
42214         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42215         config.h.
42216
42217 2006-10-17  Bruno Haible  <bruno@clisp.org>
42218
42219         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42220         differently if DEFAULT_TEXT_DOMAIN is set.
42221
42222 2006-10-16  Bruno Haible  <bruno@clisp.org>
42223
42224         * lib/clean-temp.c: Include fwriteerror.h.
42225
42226 2006-10-16  Bruno Haible  <bruno@clisp.org>
42227
42228         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42229
42230 2006-10-16  Bruno Haible  <bruno@clisp.org>
42231
42232         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42233         * lib/sigprocmask.h: Include <sys/types.h>.
42234         (sigset_t): Use the system's definition if present.
42235
42236 2006-10-17  Eric Blake  <ebb9@byu.net>
42237
42238         * lib/xvasprintf.c (includes): Assume config.h.
42239         * lib/xasprintf.c (includes): Likewise.
42240
42241 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42242
42243         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42244         at least as wide as intmax_t.
42245
42246 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42247
42248         (Imported from Automake.)
42249         * build-aux/gnupload: Update to version 1.1 of directive file.
42250
42251 2006-10-16  Eric Blake  <ebb9@byu.net>
42252
42253         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42254         match Automake 1.10a.
42255
42256 2006-10-14  Bruno Haible  <bruno@clisp.org>
42257
42258         * modules/sigprocmask: New file.
42259         * lib/sigprocmask.h: New file.
42260         * lib/sigprocmask.c: New file.
42261         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42262         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42263         request sigprocmask.o.
42264         (gl_PREREQ_SIGPROCMASK): New macro.
42265         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42266         (Depends-on): Add sigprocmask.
42267         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42268         gt_SIGNALBLOCKING. Test for 'raise' only once.
42269         * lib/fatal-signal.c: Include sigprocmask.h.
42270         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42271         unblock_fatal_signals): Define always.
42272         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42273         sigprocmask.
42274
42275 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42276
42277         Sync from Automake.
42278         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42279         which incorrectly sets the mode of an existing destination
42280         directory.  In some cases the unpatched install-sh could do the
42281         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42282         system.  We hope this is rare in practice, but it's clearly worth
42283         fixing.  Problem reported by Alex Unleashed in
42284         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42285         Also, don't bother to check for -m bugs unless we're using -m;
42286         suggested by Stepan Kasal.
42287
42288 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42289
42290         Sync from Automake.
42291         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42292         `-c' flag, so they appear at the same position as in %FASTDEP%
42293         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42294         which ignores unknown options only after the first non-option.
42295         Bug report against M4 by Nelson H. F. Beebe.
42296
42297 2006-10-13  Jim Meyering  <jim@meyering.net>
42298
42299         Fix a bug in yesterday's change.
42300         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42301         p->fts_statp->st_dev would be used uninitialized.
42302         Ensures that we always call fts_stat on the very first entry.
42303         Miklos Szeredi reported that find -xdev stopped working.
42304
42305 2006-10-12  Bruno Haible  <bruno@clisp.org>
42306
42307         * gnulib-tool (func_get_automake_snippet): Append an automatically
42308         computed EXTRA_DIST augmentation.
42309         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42310         * modules/alloca-opt (Makefile.am): Likewise.
42311         * modules/allocsa (Makefile.am): Likewise.
42312         * modules/arcfour (Makefile.am): Likewise.
42313         * modules/arctwo (Makefile.am): Likewise.
42314         * modules/argmatch (Makefile.am): Likewise.
42315         * modules/argz (Makefile.am): Likewise.
42316         * modules/atexit (Makefile.am): Likewise.
42317         * modules/backupfile (Makefile.am): Likewise.
42318         * modules/byteswap (Makefile.am): Likewise.
42319         * modules/c-strtod (Makefile.am): Likewise.
42320         * modules/c-strtold (Makefile.am): Likewise.
42321         * modules/calloc (Makefile.am): Likewise.
42322         * modules/canon-host (Makefile.am): Likewise.
42323         * modules/canonicalize (Makefile.am): Likewise.
42324         * modules/chdir-long (Makefile.am): Likewise.
42325         * modules/chdir-safer (Makefile.am): Likewise.
42326         * modules/check-version (Makefile.am): Likewise.
42327         * modules/chown (Makefile.am): Likewise.
42328         * modules/cloexec (Makefile.am): Likewise.
42329         * modules/close-stream (Makefile.am): Likewise.
42330         * modules/closeout (Makefile.am): Likewise.
42331         * modules/crc (Makefile.am): Likewise.
42332         * modules/csharpexec (Makefile.am): Likewise.
42333         * modules/cycle-check (Makefile.am): Likewise.
42334         * modules/des (Makefile.am): Likewise.
42335         * modules/dev-ino (Makefile.am): Likewise.
42336         * modules/dirfd (Makefile.am): Likewise.
42337         * modules/dirname (Makefile.am): Likewise.
42338         * modules/dup2 (Makefile.am): Likewise.
42339         * modules/eealloc (Makefile.am): Likewise.
42340         * modules/error (Makefile.am): Likewise.
42341         * modules/euidaccess (Makefile.am): Likewise.
42342         * modules/exclude (Makefile.am): Likewise.
42343         * modules/exitfail (Makefile.am): Likewise.
42344         * modules/fcntl-safer (Makefile.am): Likewise.
42345         * modules/fcntl (Makefile.am): Likewise.
42346         * modules/file-type (Makefile.am): Likewise.
42347         * modules/fileblocks (Makefile.am): Likewise.
42348         * modules/filemode (Makefile.am): Likewise.
42349         * modules/filenamecat (Makefile.am): Likewise.
42350         * modules/fnmatch (Makefile.am): Likewise.
42351         * modules/fopen-safer (Makefile.am): Likewise.
42352         * modules/fpending (Makefile.am): Likewise.
42353         * modules/fprintftime (Makefile.am): Likewise.
42354         * modules/free (Makefile.am): Likewise.
42355         * modules/fsusage (Makefile.am): Likewise.
42356         * modules/ftruncate (Makefile.am): Likewise.
42357         * modules/fts (Makefile.am): Likewise.
42358         * modules/gc-arcfour (Makefile.am): Likewise.
42359         * modules/gc-des (Makefile.am): Likewise.
42360         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42361         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42362         * modules/gc-md4 (Makefile.am): Likewise.
42363         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42364         * modules/gc-sha1 (Makefile.am): Likewise.
42365         * modules/gc (Makefile.am): Likewise.
42366         * modules/getaddrinfo (Makefile.am): Likewise.
42367         * modules/getcwd (Makefile.am): Likewise.
42368         * modules/getdelim (Makefile.am): Likewise.
42369         * modules/getdomainname (Makefile.am): Likewise.
42370         * modules/getgroups (Makefile.am): Likewise.
42371         * modules/gethostname (Makefile.am): Likewise.
42372         * modules/gethrxtime (Makefile.am): Likewise.
42373         * modules/getline (Makefile.am): Likewise.
42374         * modules/getloadavg (Makefile.am): Likewise.
42375         * modules/getlogin_r (Makefile.am): Likewise.
42376         * modules/getndelim2 (Makefile.am): Likewise.
42377         * modules/getopt (Makefile.am): Likewise.
42378         * modules/getpagesize (Makefile.am): Likewise.
42379         * modules/getpass-gnu (Makefile.am): Likewise.
42380         * modules/getpass (Makefile.am): Likewise.
42381         * modules/getsubopt (Makefile.am): Likewise.
42382         * modules/gettime (Makefile.am): Likewise.
42383         * modules/gettimeofday (Makefile.am): Likewise.
42384         * modules/getugroups (Makefile.am): Likewise.
42385         * modules/getusershell (Makefile.am): Likewise.
42386         * modules/glob (Makefile.am): Likewise.
42387         * modules/group-member (Makefile.am): Likewise.
42388         * modules/hard-locale (Makefile.am): Likewise.
42389         * modules/hash (Makefile.am): Likewise.
42390         * modules/hmac-md5 (Makefile.am): Likewise.
42391         * modules/hmac-sha1 (Makefile.am): Likewise.
42392         * modules/human (Makefile.am): Likewise.
42393         * modules/idcache (Makefile.am): Likewise.
42394         * modules/imaxabs (Makefile.am): Likewise.
42395         * modules/imaxdiv (Makefile.am): Likewise.
42396         * modules/inet_ntop (Makefile.am): Likewise.
42397         * modules/inet_pton (Makefile.am): Likewise.
42398         * modules/intprops (Makefile.am): Likewise.
42399         * modules/inttostr (Makefile.am): Likewise.
42400         * modules/inttypes (Makefile.am): Likewise.
42401         * modules/isapipe (Makefile.am): Likewise.
42402         * modules/javaversion (Makefile.am): Likewise.
42403         * modules/lchmod (Makefile.am): Likewise.
42404         * modules/lchown (Makefile.am): Likewise.
42405         * modules/localcharset (Makefile.am): Likewise.
42406         * modules/long-options (Makefile.am): Likewise.
42407         * modules/lstat (Makefile.am): Likewise.
42408         * modules/malloc (Makefile.am): Likewise.
42409         * modules/mathl (Makefile.am): Likewise.
42410         * modules/mbchar (Makefile.am): Likewise.
42411         * modules/md2 (Makefile.am): Likewise.
42412         * modules/md4 (Makefile.am): Likewise.
42413         * modules/md5 (Makefile.am): Likewise.
42414         * modules/memcasecmp (Makefile.am): Likewise.
42415         * modules/memchr (Makefile.am): Likewise.
42416         * modules/memcmp (Makefile.am): Likewise.
42417         * modules/memcoll (Makefile.am): Likewise.
42418         * modules/memcpy (Makefile.am): Likewise.
42419         * modules/memmem (Makefile.am): Likewise.
42420         * modules/memmove (Makefile.am): Likewise.
42421         * modules/mempcpy (Makefile.am): Likewise.
42422         * modules/memrchr (Makefile.am): Likewise.
42423         * modules/memset (Makefile.am): Likewise.
42424         * modules/memxor (Makefile.am): Likewise.
42425         * modules/mkancesdirs (Makefile.am): Likewise.
42426         * modules/mkdir-p (Makefile.am): Likewise.
42427         * modules/mkdir (Makefile.am): Likewise.
42428         * modules/mkdtemp (Makefile.am): Likewise.
42429         * modules/mkstemp (Makefile.am): Likewise.
42430         * modules/mktime (Makefile.am): Likewise.
42431         * modules/modechange (Makefile.am): Likewise.
42432         * modules/mountlist (Makefile.am): Likewise.
42433         * modules/nanosleep (Makefile.am): Likewise.
42434         * modules/obstack (Makefile.am): Likewise.
42435         * modules/openat (Makefile.am): Likewise.
42436         * modules/pagealign_alloc (Makefile.am): Likewise.
42437         * modules/pathmax (Makefile.am): Likewise.
42438         * modules/physmem (Makefile.am): Likewise.
42439         * modules/poll (Makefile.am): Likewise.
42440         * modules/posixtm (Makefile.am): Likewise.
42441         * modules/posixver (Makefile.am): Likewise.
42442         * modules/putenv (Makefile.am): Likewise.
42443         * modules/quote (Makefile.am): Likewise.
42444         * modules/quotearg (Makefile.am): Likewise.
42445         * modules/raise (Makefile.am): Likewise.
42446         * modules/read-file (Makefile.am): Likewise.
42447         * modules/readline (Makefile.am): Likewise.
42448         * modules/readlink (Makefile.am): Likewise.
42449         * modules/readtokens (Makefile.am): Likewise.
42450         * modules/readutmp (Makefile.am): Likewise.
42451         * modules/realloc (Makefile.am): Likewise.
42452         * modules/regex (Makefile.am): Likewise.
42453         * modules/rename-dest-slash (Makefile.am): Likewise.
42454         * modules/rename (Makefile.am): Likewise.
42455         * modules/rijndael (Makefile.am): Likewise.
42456         * modules/rmdir (Makefile.am): Likewise.
42457         * modules/rpmatch (Makefile.am): Likewise.
42458         * modules/safe-read (Makefile.am): Likewise.
42459         * modules/safe-write (Makefile.am): Likewise.
42460         * modules/same-inode (Makefile.am): Likewise.
42461         * modules/same (Makefile.am): Likewise.
42462         * modules/save-cwd (Makefile.am): Likewise.
42463         * modules/savedir (Makefile.am): Likewise.
42464         * modules/setenv (Makefile.am): Likewise.
42465         * modules/settime (Makefile.am): Likewise.
42466         * modules/sha1 (Makefile.am): Likewise.
42467         * modules/sig2str (Makefile.am): Likewise.
42468         * modules/snprintf (Makefile.am): Likewise.
42469         * modules/stat-macros (Makefile.am): Likewise.
42470         * modules/stat-time (Makefile.am): Likewise.
42471         * modules/stdbool (Makefile.am): Likewise.
42472         * modules/stdint (Makefile.am): Likewise.
42473         * modules/stdlib-safer (Makefile.am): Likewise.
42474         * modules/stpcpy (Makefile.am): Likewise.
42475         * modules/stpncpy (Makefile.am): Likewise.
42476         * modules/strcase (Makefile.am): Likewise.
42477         * modules/strcasestr (Makefile.am): Likewise.
42478         * modules/strchrnul (Makefile.am): Likewise.
42479         * modules/strcspn (Makefile.am): Likewise.
42480         * modules/strdup (Makefile.am): Likewise.
42481         * modules/strerror (Makefile.am): Likewise.
42482         * modules/strftime (Makefile.am): Likewise.
42483         * modules/strndup (Makefile.am): Likewise.
42484         * modules/strnlen (Makefile.am): Likewise.
42485         * modules/strpbrk (Makefile.am): Likewise.
42486         * modules/strsep (Makefile.am): Likewise.
42487         * modules/strstr (Makefile.am): Likewise.
42488         * modules/strtod (Makefile.am): Likewise.
42489         * modules/strtoimax (Makefile.am): Likewise.
42490         * modules/strtok_r (Makefile.am): Likewise.
42491         * modules/strtol (Makefile.am): Likewise.
42492         * modules/strtoll (Makefile.am): Likewise.
42493         * modules/strtoul (Makefile.am): Likewise.
42494         * modules/strtoull (Makefile.am): Likewise.
42495         * modules/strtoumax (Makefile.am): Likewise.
42496         * modules/strverscmp (Makefile.am): Likewise.
42497         * modules/sys_socket (Makefile.am): Likewise.
42498         * modules/sys_stat (Makefile.am): Likewise.
42499         * modules/sysexits (Makefile.am): Likewise.
42500         * modules/time_r (Makefile.am): Likewise.
42501         * modules/timegm (Makefile.am): Likewise.
42502         * modules/timespec (Makefile.am): Likewise.
42503         * modules/tmpfile-safer (Makefile.am): Likewise.
42504         * modules/trim (Makefile.am): Likewise.
42505         * modules/unistd-safer (Makefile.am): Likewise.
42506         * modules/unlinkdir (Makefile.am): Likewise.
42507         * modules/unlocked-io (Makefile.am): Likewise.
42508         * modules/userspec (Makefile.am): Likewise.
42509         * modules/utime (Makefile.am): Likewise.
42510         * modules/utimecmp (Makefile.am): Likewise.
42511         * modules/utimens (Makefile.am): Likewise.
42512         * modules/vasnprintf (Makefile.am): Likewise.
42513         * modules/vasprintf (Makefile.am): Likewise.
42514         * modules/vsnprintf (Makefile.am): Likewise.
42515         * modules/xalloc (Makefile.am): Likewise.
42516         * modules/xgetcwd (Makefile.am): Likewise.
42517         * modules/xnanosleep (Makefile.am): Likewise.
42518         * modules/xreadlink (Makefile.am): Likewise.
42519         * modules/xstrtod (Makefile.am): Likewise.
42520         * modules/xstrtol (Makefile.am): Likewise.
42521         * modules/xstrtold (Makefile.am): Likewise.
42522         * modules/yesno (Makefile.am): Likewise.
42523         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42524
42525 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42526
42527         * modules/error (Makefile.am): Distribute files through
42528         EXTRA_DIST, not lib_SOURCES.
42529
42530 2006-10-12  Eric Blake  <ebb9@byu.net>
42531
42532         * modules/error (Makefile.am): Distribute files in /lib.
42533         * modules/obstack (Makefile.am): Likewise.
42534
42535 2006-10-12  Bruno Haible  <bruno@clisp.org>
42536
42537         * modules/acl (Makefile.am): Distribute all files in lib/ through
42538         EXTRA_DIST.
42539         * modules/arcfour (Makefile.am): Likewise.
42540         * modules/arctwo (Makefile.am): Likewise.
42541         * modules/argmatch (Makefile.am): Likewise.
42542         * modules/argz (Makefile.am): Likewise.
42543         * modules/atexit (Makefile.am): Likewise.
42544         * modules/backupfile (Makefile.am): Likewise.
42545         * modules/c-strtod (Makefile.am): Likewise.
42546         * modules/c-strtold (Makefile.am): Likewise.
42547         * modules/calloc (Makefile.am): Likewise.
42548         * modules/canon-host (Makefile.am): Likewise.
42549         * modules/canonicalize (Makefile.am): Likewise.
42550         * modules/chdir-long (Makefile.am): Likewise.
42551         * modules/chdir-safer (Makefile.am): Likewise.
42552         * modules/check-version (Makefile.am): Likewise.
42553         * modules/chown (Makefile.am): Likewise.
42554         * modules/cloexec (Makefile.am): Likewise.
42555         * modules/close-stream (Makefile.am): Likewise.
42556         * modules/closeout (Makefile.am): Likewise.
42557         * modules/crc (Makefile.am): Likewise.
42558         * modules/cycle-check (Makefile.am): Likewise.
42559         * modules/des (Makefile.am): Likewise.
42560         * modules/dirfd (Makefile.am): Likewise.
42561         * modules/dirname (Makefile.am): Likewise.
42562         * modules/dup2 (Makefile.am): Likewise.
42563         * modules/euidaccess (Makefile.am): Likewise.
42564         * modules/exclude (Makefile.am): Likewise.
42565         * modules/exitfail (Makefile.am): Likewise.
42566         * modules/fcntl-safer (Makefile.am): Likewise.
42567         * modules/file-type (Makefile.am): Likewise.
42568         * modules/fileblocks (Makefile.am): Likewise.
42569         * modules/filemode (Makefile.am): Likewise.
42570         * modules/filenamecat (Makefile.am): Likewise.
42571         * modules/fnmatch (Makefile.am): Likewise.
42572         * modules/fopen-safer (Makefile.am): Likewise.
42573         * modules/fpending (Makefile.am): Likewise.
42574         * modules/fprintftime (Makefile.am): Likewise.
42575         * modules/free (Makefile.am): Likewise.
42576         * modules/fsusage (Makefile.am): Likewise.
42577         * modules/ftruncate (Makefile.am): Likewise.
42578         * modules/fts (Makefile.am): Likewise.
42579         * modules/gc (Makefile.am): Likewise.
42580         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42581         * modules/getaddrinfo (Makefile.am): Likewise.
42582         * modules/getcwd (Makefile.am): Likewise.
42583         * modules/getdelim (Makefile.am): Likewise.
42584         * modules/getdomainname (Makefile.am): Likewise.
42585         * modules/getgroups (Makefile.am): Likewise.
42586         * modules/gethostname (Makefile.am): Likewise.
42587         * modules/gethrxtime (Makefile.am): Likewise.
42588         * modules/getline (Makefile.am): Likewise.
42589         * modules/getloadavg (Makefile.am): Likewise.
42590         * modules/getlogin_r (Makefile.am): Likewise.
42591         * modules/getopt (Makefile.am): Likewise.
42592         * modules/getpass (Makefile.am): Likewise.
42593         * modules/getpass-gnu (Makefile.am): Likewise.
42594         * modules/getsubopt (Makefile.am): Likewise.
42595         * modules/gettime (Makefile.am): Likewise.
42596         * modules/gettimeofday (Makefile.am): Likewise.
42597         * modules/getugroups (Makefile.am): Likewise.
42598         * modules/getusershell (Makefile.am): Likewise.
42599         * modules/glob (Makefile.am): Likewise.
42600         * modules/group-member (Makefile.am): Likewise.
42601         * modules/hard-locale (Makefile.am): Likewise.
42602         * modules/hash (Makefile.am): Likewise.
42603         * modules/hmac-md5 (Makefile.am): Likewise.
42604         * modules/hmac-sha1 (Makefile.am): Likewise.
42605         * modules/human (Makefile.am): Likewise.
42606         * modules/idcache (Makefile.am): Likewise.
42607         * modules/imaxabs (Makefile.am): Likewise.
42608         * modules/imaxdiv (Makefile.am): Likewise.
42609         * modules/inet_ntop (Makefile.am): Likewise.
42610         * modules/inet_pton (Makefile.am): Likewise.
42611         * modules/inttostr (Makefile.am): Likewise.
42612         * modules/isapipe (Makefile.am): Likewise.
42613         * modules/lchown (Makefile.am): Likewise.
42614         * modules/long-options (Makefile.am): Likewise.
42615         * modules/lstat (Makefile.am): Likewise.
42616         * modules/malloc (Makefile.am): Likewise.
42617         * modules/mathl (Makefile.am): Likewise.
42618         * modules/mbchar (Makefile.am): Likewise.
42619         * modules/md2 (Makefile.am): Likewise.
42620         * modules/md4 (Makefile.am): Likewise.
42621         * modules/md5 (Makefile.am): Likewise.
42622         * modules/memcasecmp (Makefile.am): Likewise.
42623         * modules/memchr (Makefile.am): Likewise.
42624         * modules/memcmp (Makefile.am): Likewise.
42625         * modules/memcoll (Makefile.am): Likewise.
42626         * modules/memcpy (Makefile.am): Likewise.
42627         * modules/memmem (Makefile.am): Likewise.
42628         * modules/memmove (Makefile.am): Likewise.
42629         * modules/mempcpy (Makefile.am): Likewise.
42630         * modules/memrchr (Makefile.am): Likewise.
42631         * modules/memset (Makefile.am): Likewise.
42632         * modules/memxor (Makefile.am): Likewise.
42633         * modules/mkancesdirs (Makefile.am): Likewise.
42634         * modules/mkdir (Makefile.am): Likewise.
42635         * modules/mkdir-p (Makefile.am): Likewise.
42636         * modules/mkdtemp (Makefile.am): Likewise.
42637         * modules/mkstemp (Makefile.am): Likewise.
42638         * modules/mktime (Makefile.am): Likewise.
42639         * modules/modechange (Makefile.am): Likewise.
42640         * modules/mountlist (Makefile.am): Likewise.
42641         * modules/nanosleep (Makefile.am): Likewise.
42642         * modules/openat (Makefile.am): Likewise.
42643         * modules/pagealign_alloc (Makefile.am): Likewise.
42644         * modules/physmem (Makefile.am): Likewise.
42645         * modules/poll (Makefile.am): Likewise.
42646         * modules/posixtm (Makefile.am): Likewise.
42647         * modules/posixver (Makefile.am): Likewise.
42648         * modules/putenv (Makefile.am): Likewise.
42649         * modules/quote (Makefile.am): Likewise.
42650         * modules/quotearg (Makefile.am): Likewise.
42651         * modules/raise (Makefile.am): Likewise.
42652         * modules/read-file (Makefile.am): Likewise.
42653         * modules/readline (Makefile.am): Likewise.
42654         * modules/readlink (Makefile.am): Likewise.
42655         * modules/readtokens (Makefile.am): Likewise.
42656         * modules/readutmp (Makefile.am): Likewise.
42657         * modules/realloc (Makefile.am): Likewise.
42658         * modules/regex (Makefile.am): Likewise.
42659         * modules/rename (Makefile.am): Likewise.
42660         * modules/rename-dest-slash (Makefile.am): Likewise.
42661         * modules/rijndael (Makefile.am): Likewise.
42662         * modules/rmdir (Makefile.am): Likewise.
42663         * modules/rpmatch (Makefile.am): Likewise.
42664         * modules/safe-read (Makefile.am): Likewise.
42665         * modules/safe-write (Makefile.am): Likewise.
42666         * modules/same (Makefile.am): Likewise.
42667         * modules/save-cwd (Makefile.am): Likewise.
42668         * modules/savedir (Makefile.am): Likewise.
42669         * modules/setenv (Makefile.am): Likewise.
42670         * modules/settime (Makefile.am): Likewise.
42671         * modules/sha1 (Makefile.am): Likewise.
42672         * modules/sig2str (Makefile.am): Likewise.
42673         * modules/snprintf (Makefile.am): Likewise.
42674         * modules/stdlib-safer (Makefile.am): Likewise.
42675         * modules/stpcpy (Makefile.am): Likewise.
42676         * modules/stpncpy (Makefile.am): Likewise.
42677         * modules/strcase (Makefile.am): Likewise.
42678         * modules/strcasestr (Makefile.am): Likewise.
42679         * modules/strchrnul (Makefile.am): Likewise.
42680         * modules/strcspn (Makefile.am): Likewise.
42681         * modules/strdup (Makefile.am): Likewise.
42682         * modules/strerror (Makefile.am): Likewise.
42683         * modules/strftime (Makefile.am): Likewise.
42684         * modules/strndup (Makefile.am): Likewise.
42685         * modules/strnlen (Makefile.am): Likewise.
42686         * modules/strpbrk (Makefile.am): Likewise.
42687         * modules/strsep (Makefile.am): Likewise.
42688         * modules/strstr (Makefile.am): Likewise.
42689         * modules/strtod (Makefile.am): Likewise.
42690         * modules/strtoimax (Makefile.am): Likewise.
42691         * modules/strtok_r (Makefile.am): Likewise.
42692         * modules/strtol (Makefile.am): Likewise.
42693         * modules/strtoll (Makefile.am): Likewise.
42694         * modules/strtoul (Makefile.am): Likewise.
42695         * modules/strtoull (Makefile.am): Likewise.
42696         * modules/strtoumax (Makefile.am): Likewise.
42697         * modules/strverscmp (Makefile.am): Likewise.
42698         * modules/time_r (Makefile.am): Likewise.
42699         * modules/timegm (Makefile.am): Likewise.
42700         * modules/tmpfile-safer (Makefile.am): Likewise.
42701         * modules/unistd-safer (Makefile.am): Likewise.
42702         * modules/unlinkdir (Makefile.am): Likewise.
42703         * modules/userspec (Makefile.am): Likewise.
42704         * modules/utime (Makefile.am): Likewise.
42705         * modules/utimecmp (Makefile.am): Likewise.
42706         * modules/utimens (Makefile.am): Likewise.
42707         * modules/vasnprintf (Makefile.am): Likewise.
42708         * modules/vasprintf (Makefile.am): Likewise.
42709         * modules/vsnprintf (Makefile.am): Likewise.
42710         * modules/xalloc (Makefile.am): Likewise.
42711         * modules/xgetcwd (Makefile.am): Likewise.
42712         * modules/xnanosleep (Makefile.am): Likewise.
42713         * modules/xreadlink (Makefile.am): Likewise.
42714         * modules/xstrtod (Makefile.am): Likewise.
42715         * modules/xstrtol (Makefile.am): Likewise.
42716         * modules/xstrtold (Makefile.am): Likewise.
42717         * modules/yesno (Makefile.am): Likewise.
42718
42719 2006-10-12  Jim Meyering  <jim@meyering.net>
42720
42721         * m4/getloadavg.m4: Revert the change below.
42722
42723         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42724         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42725         fail with a symlink, which is what coreutils' ./bootstrap now
42726         creates by default.
42727
42728 2006-10-12  Bruno Haible  <bruno@clisp.org>
42729
42730         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42731         mingw.
42732         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42733         MSVC and mingw explicitly.
42734
42735 2006-10-11  Simon Josefsson  <jas@extundo.com>
42736             Bruno Haible  <bruno@clisp.org>
42737
42738         Add support for multiple gnulib-tool invocations in the scope of a
42739         single configure.ac file.
42740         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42741         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42742         with the same contents as the _LIBADD variable.
42743         (func_emit_initmacro_start, func_emit_initmacro_end,
42744         func_emit_initmacro_done): New functions.
42745         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42746         gl_LIBOBJS and gl_LTLIBOBJS.
42747
42748 2006-10-11  Bruno Haible  <bruno@clisp.org>
42749
42750         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42751         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42752         autoreconf. Instead, invoke autopoint explicitly but move back the
42753         *.m4 files from gnulib.
42754
42755 2006-10-11  Bruno Haible  <bruno@clisp.org>
42756
42757         * gnulib-tool (func_usage): Make module names after --create-testdir
42758         optional.
42759         (func_create_testdir): If no module was specified, use nearly all
42760         modules.
42761
42762 2006-10-12  Jim Meyering  <jim@meyering.net>
42763
42764         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42765         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42766         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42767         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42768         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42769         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42770         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42771         (fts_set_stat_required): New function.
42772         (fts_open): Defer the calls to fts_stat, if possible or requested.
42773         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42774         into fts_stat itself.
42775         (fts_read): Perform any required (deferred) fts_stat call.
42776         (fts_build): Likewise, for the directory we're about to open and read.
42777         In the readdir loop, carefully decide whether each entry will require
42778         an eventual call to fts_stat, using dirent.d_type info if available.
42779         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42780         a command line argument into this function.  Update all callers.
42781         Map a return value of FTS_DOT to FTS_D for a command line argument.
42782         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42783         Thanks to Miklos Szeredi for his tenacity and for the initial
42784         bug report about "find" failing on a FUSE-based file system.
42785
42786         * lib/fts.c (fts_open): Use consistent indentation.
42787
42788 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42789
42790         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42791         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42792         reported by Jim Meyering.  All uses of cache variables renamed
42793         to match Autoconf's.
42794         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42795         the other one.
42796
42797         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42798         Fix misspelling in diagnostic.
42799
42800 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42801
42802         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42803         defined.  Problem reported by Matthew Woehlke.
42804
42805         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42806         Add support for Tandem NonStop R series.
42807         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42808         Use new macro.
42809
42810         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42811         (has_trailing_slash): Omit size arg; all callers changed.
42812         Omit 'inline', since it doesn't help performance and we'd
42813         need to configure it.
42814         Don't count //, ///, etc. as having a trailing slash.
42815         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42816         (rpl_rename_dest_slash): On failure, use rename's errno rather
42817         than (in some cases) an incorrect or junk errno.
42818         Simplify code by removing need to compute length; this does
42819         cause it to make two passes instead of one over the file name,
42820         but it's worth it.
42821
42822         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42823         change, since Autoconf's version may no longer be appropriate now
42824         that we are using CVS Autoconf's version.  Add support for Tandem.
42825
42826 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42827             Bruno Haible  <bruno@clisp.org>
42828
42829         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42830         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42831         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42832         gl_AC_TYPE_LONG_LONG.
42833
42834         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42835         instead of HAVE_LONG_LONG.
42836         * lib/printf-args.c (printf_fetchargs): Likewise.
42837         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42838         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42839         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42840         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42841         gl_AC_TYPE_LONG_LONG.
42842
42843 2006-10-11  Bruno Haible  <bruno@clisp.org>
42844
42845         * m4/longlong.m4: Add comments.
42846         * m4/ulonglong.m4: Likewise.
42847
42848 2006-10-10  Bruno Haible  <bruno@clisp.org>
42849
42850         Make it possible to #define stpcpy, strdup to aliases.
42851         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42852         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42853
42854 2006-10-10  Bruno Haible  <bruno@clisp.org>
42855
42856         Make it possible to #define gcd to an alias.
42857         * lib/gcd.c: Include config.h.
42858
42859 2006-10-10  Bruno Haible  <bruno@clisp.org>
42860
42861         Make it possible to #define c_isascii to an alias.
42862         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42863         defined. Undefine the macros before defining them, to avoid gcc
42864         warnings.
42865         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42866         define NO_C_CTYPE_MACROS early.
42867
42868 2006-10-10  Bruno Haible  <bruno@clisp.org>
42869
42870         Make it possible to #define set_program_name to an alias.
42871         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42872         ENABLE_RELOCATABLE early.
42873
42874 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42875
42876         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42877         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42878         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42879         More generally, don't assume that 64-bit signed int is available
42880         if unsigned int is, and vice versa.
42881         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42882         unsigned symbols, not on their signed counterparts.
42883         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42884         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42885         (UINT64_C, UINTMAX_C):
42886         Likewise.
42887         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42888         unsigned counterparts.
42889         (Have_long_long, Unsigned): New macros.
42890         (Int): Renamed from INT.
42891         (strtoimax): Use the new macros.
42892         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42893         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42894         * modules/inttypes (inttypes.h): Substitute
42895         HAVE_UNSIGNED_LONG_LONG_INT.
42896         * modules/stdint (stdint.h): Likewise.
42897         (Files): Add m4/ulonglong.m4.
42898
42899 2006-10-10  Bruno Haible  <bruno@clisp.org>
42900
42901         Fix a gcc -Wshadow warning.
42902         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42903         to 'bucket'.
42904         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42905         gl_linked_indexof_from_to): Likewise.
42906         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42907         Likewise.
42908         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42909         Likewise.
42910         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42911         Reported by Eric Blake.
42912
42913 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42914
42915         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42916         for NetBSD.  Problem reported by Bruno Haible.
42917
42918 2006-10-09  Jim Meyering  <jim@meyering.net>
42919
42920         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42921         Patch from Bruno Haible.
42922
42923 2006-10-09  Jim Meyering  <jim@meyering.net>
42924
42925         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42926         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42927         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42928
42929 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42930
42931         Don't include <config.h> twice; this doesn't work in some cases,
42932         e.g., when config.h has "#define intmax_t long long int" and
42933         we include <config.h>, <inttypes.h>, <config.h> in that order.
42934         Problem reported by Matthew Woehlke in:
42935         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42936         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42937         * lib/fts-cycle.c: Don't include config.h.
42938         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42939         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42940         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42941         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42942         inttypes.h.
42943         * lib/xstrtoumax.c: Likewise.
42944         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42945         __strtol and the like, so that this module is more like its siblings.
42946         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42947         Remove; no longer needed now that we assume gnulib inttypes.h.
42948
42949 2006-10-08  Bruno Haible  <bruno@clisp.org>
42950
42951         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42952         option.
42953
42954 2006-10-07  Jim Meyering  <jim@meyering.net>
42955
42956         * modules/inttypes (inttypes.h): Revert what seems to have been
42957         an inadvertent part of today's change: use "|", not "/" in the
42958         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42959
42960 2006-10-07  Bruno Haible  <bruno@clisp.org>
42961
42962         * modules/sublist: New file.
42963
42964 2006-10-07  Bruno Haible  <bruno@clisp.org>
42965
42966         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42967         * modules/argz (argz.h): Likewise.
42968         * modules/arpa_inet (arpa/inet.h): Likewise.
42969         * modules/byteswap (byteswap.h): Likewise.
42970         * modules/configmake (configmake.h): Likewise.
42971         * modules/fcntl (fcntl.h): Likewise.
42972         * modules/fnmatch (fnmatch.h): Likewise.
42973         * modules/getopt (getopt.h): Likewise.
42974         * modules/glob (glob.h): Likewise.
42975         * modules/inttypes (inttypes.h): Likewise.
42976         * modules/netinet_in (netinet/in.h): Likewise.
42977         * modules/poll (poll.h): Likewise.
42978         * modules/stdbool (stdbool.h): Likewise.
42979         * modules/stdint (stdint.h): Likewise.
42980         * modules/sys_select (sys/select.h): Likewise.
42981         * modules/sys_socket (sys/socket.h): Likewise.
42982         * modules/sys_stat (sys/stat.h): Likewise.
42983         * modules/sysexits (sysexits.h): Likewise.
42984         * modules/unistd (unistd.h): Likewise.
42985         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42986         Add a "DO NOT EDIT" comment to the generated file.
42987         (func_import): Likewise for gnulib-comp.m4.
42988
42989 2006-10-07  Bruno Haible  <bruno@clisp.org>
42990
42991         * lib/gl_sublist.h: New file.
42992         * lib/gl_sublist.c: New file.
42993
42994 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42995
42996         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42997         name (relative to the original working directory) and the file
42998         name component (relative to the temporary working directory).  All
42999         callers changed.
43000         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
43001         * lib/mkdir-p.c (make_dir_parents): Likewise.
43002         * lib/mkdir-p.h (make_dir_parents): Likewise.
43003
43004 2006-10-06  Eric Blake  <ebb9@byu.net>
43005
43006         Define several macros for use by the clean-temp module.
43007         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
43008         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
43009         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
43010
43011         * lib/clean-temp.h (close_stream_temp): New declaration.
43012         * lib/clean-temp.c (includes): Pull in headers according to what
43013         other modules are in use.
43014         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
43015
43016 2006-10-06  Bruno Haible  <bruno@clisp.org>
43017
43018         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
43019         instead of fopen, fwriteerror.
43020
43021 2006-10-06  Bruno Haible  <bruno@clisp.org>
43022
43023         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
43024         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
43025         int.
43026         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
43027         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
43028         Return an error indicator.
43029         Suggested by Eric Blake.
43030
43031 2006-10-06  Bruno Haible  <bruno@clisp.org>
43032
43033         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
43034         Reported by Eric Blake.
43035
43036 2006-10-06  Bruno Haible  <bruno@clisp.org>
43037
43038         * modules/closeout (Description): Mention stderr too.
43039
43040 2006-10-06  Bruno Haible  <bruno@clisp.org>
43041         and Paul Eggert  <eggert@cs.ucla.edu>
43042
43043         * lib/closeout.c (close_stdout): Also close stderr.
43044         * lib/closeout.h: Update comment.
43045
43046 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43047
43048         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
43049         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
43050         * lib/dirchownmod.c: Include lchown.h.
43051         * lib/lchown.c: Don't include files that lchown.h now includes.
43052         Don't declare chown, since lchown.h now does that.
43053         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
43054         (lchown): Define to rpl_chown if lchown is declared but
43055         does not exist.  Declare using a prototype if lchown is not
43056         declared.  Add a copyright notice.
43057         * lib/mkstemp.h: Include <unistd.h>.
43058         * lib/openat.c: Include lchown.h.
43059
43060         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
43061         we now test for that separately.
43062         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
43063         rather than O_NOFOLLOW, when testing whether it's possible to
43064         avoid a race condition reliably.
43065         * lib/savewd.c (savewd_chdir): Likewise.
43066
43067         Remove macros that are no longer needed now that stdint.h is
43068         reliable.
43069         * lib/fsusage.c (UINTMAX_MAX): Remove.
43070         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
43071         * lib/utimecmp.c (SIZE_MAX): Remove.
43072
43073         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
43074
43075         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
43076         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
43077         O_NOATIME works.
43078
43079 2006-10-05  Bruno Haible  <bruno@clisp.org>
43080
43081         * lib/gl_list.h (gl_sortedlist_search_from_to,
43082         gl_sortedlist_indexof_from_to): New declarations.
43083         (gl_list_implementation): New fields sortedlist_search_from_to,
43084         sortedlist_indexof_from_to.
43085         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
43086         inline functions.
43087         * lib/gl_list.c (gl_sortedlist_search_from_to,
43088         gl_sortedlist_indexof_from_to): New functions.
43089         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
43090         function.
43091         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43092         (gl_array_sortedlist_search_from_to): New function.
43093         (gl_array_list_implementation): Update.
43094         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43095         function.
43096         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43097         (gl_carray_sortedlist_search_from_to): New function.
43098         (gl_carray_list_implementation): Update.
43099         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43100         gl_linked_sortedlist_indexof_from_to): New functions.
43101         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43102         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43103         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43104         gl_tree_sortedlist_indexof_from_to): New functions.
43105         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43106         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43107         Update.
43108         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43109         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43110         Update.
43111
43112 2006-10-05  Bruno Haible  <bruno@clisp.org>
43113
43114         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43115         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43116         (struct gl_list_implementation): Add fields search_from_to,
43117         indexof_from_to. Remove fields search, indexof.
43118         (gl_list_search): Use the search_from_to method.
43119         (gl_list_search_from, gl_list_search_from_to): New functions.
43120         (gl_list_indexof): Use the indexof_from_to method.
43121         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43122         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43123         (gl_list_search_from, gl_list_search_from_to): New functions.
43124         (gl_list_indexof): Use the indexof_from_to method.
43125         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43126         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43127         gl_array_indexof. Add start_index, end_index arguments.
43128         (gl_array_search_from_to): Renamed from gl_array_search. Add
43129         start_index, end_index arguments.
43130         (gl_array_remove, gl_array_list_implementation): Update.
43131         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43132         gl_carray_indexof. Add start_index, end_index arguments.
43133         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43134         start_index, end_index arguments.
43135         (gl_carray_remove, gl_carray_list_implementation): Update.
43136         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43137         gl_linked_search. Add start_index, end_index arguments.
43138         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43139         start_index, end_index arguments.
43140         (gl_linked_remove): Update.
43141         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43142         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43143         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
43144         field to 'size_t'.
43145         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43146         gl_tree_search. Add start_index, end_index arguments.
43147         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43148         start_index, end_index arguments.
43149         (gl_tree_remove): Update.
43150         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43151         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43152         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43153         function.
43154         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43155         gl_tree_search. Add start_index, end_index arguments.
43156         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43157         start_index, end_index arguments.
43158         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43159         Update.
43160         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43161
43162 2006-10-05  Bruno Haible  <bruno@clisp.org>
43163
43164         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43165
43166         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43167         fwriteerror_temp): New declarations.
43168         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43169         (descriptors): New variable.
43170         (cleanup): First, close the descriptors.
43171         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43172         fclose_temp, fwriteerror_temp): New functions.
43173
43174 2006-10-04  Jim Meyering  <jim@meyering.net>
43175
43176         * lib/fts.c (fts_open): Tiny comment change.
43177
43178 2006-10-04  Bruno Haible  <bruno@clisp.org>
43179
43180         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43181         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43182         gl_LOCK_BODY.
43183         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43184         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43185         gl_LOCK_EARLY_BODY.
43186         (gl_LOCK): Require gl_LOCK_BODY.
43187
43188 2006-10-04  Bruno Haible  <bruno@clisp.org>
43189
43190         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43191         (gl_oset_search_atleast): New declaration.
43192         (struct gl_oset_implementation): Add field 'search_atleast'.
43193         (gl_oset_search_atleast): New inline function.
43194         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43195         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43196         (gl_array_oset_implementation): Update.
43197         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43198         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43199         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43200
43201 2006-10-04  Bruno Haible  <bruno@clisp.org>
43202
43203         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43204
43205 2006-10-03  Bruno Haible  <bruno@clisp.org>
43206
43207         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43208         from gl_avltreehash_list_implementation.
43209
43210 2006-10-03  Bruno Haible  <bruno@clisp.org>
43211
43212         * lib/gl_oset.c (gl_oset_add): Fix return type.
43213
43214 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43215
43216         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43217
43218 2006-10-02  Eric Blake  <ebb9@byu.net>
43219
43220         * modules/strnlen (Depends-on): Add extensions.
43221
43222 2006-10-02  Eric Blake  <ebb9@byu.net>
43223
43224         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43225         definition in 2.60+.
43226
43227 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43228
43229         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43230         checks.
43231
43232 2006-10-02  Bruno Haible  <bruno@clisp.org>
43233
43234         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43235         to the AUTOMAKE_OPTIONS.
43236         Reported by Jim Meyering.
43237
43238 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43239
43240         Work around bug in Solaris 10 /proc file system:
43241         /proc/self/fd/NNN/.. isn't the parent directory of
43242         the directory whose file descriptor is NNN.  This needs to
43243         be worked around at run time, not compile time, since a
43244         program might be built on Solaris 8, where things work, and
43245         run on Solaris 10.
43246         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43247         to use the following interface instead:
43248         (OPENAT_BUFFER_SIZE): New macro.
43249         (openat_proc_name): New function.
43250         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43251         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43252         Likewise.
43253         * lib/openat-proc.c: New file.
43254         * modules/openat (Files): Add lib/openat-proc.c.
43255         (Depends-on): Add same-inode, stdbool.
43256         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43257
43258 2006-09-29  Bruno Haible  <bruno@clisp.org>
43259
43260         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43261         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43262         argument. Set stdout_closed before testing for ferror, not after.
43263         (fwriteerror, fwriteerror_no_ebadf): New functions.
43264
43265 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43266
43267         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43268
43269 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43270
43271         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43272         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43273
43274 2006-09-28  Jim Meyering  <jim@meyering.net>
43275
43276         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43277         Include <unistd.h>.
43278
43279 2006-09-28  Bruno Haible  <bruno@clisp.org>
43280
43281         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43282         * modules/linkedhash-list (Depends-on): Likewise.
43283         * modules/rbtreehash-list (Depends-on): Likewise.
43284
43285 2006-09-28  Bruno Haible  <bruno@clisp.org>
43286
43287         * lib/strndup.h: Simplify the redefinition of strndup.
43288         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43289         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43290
43291 2006-09-28  Bruno Haible  <bruno@clisp.org>
43292
43293         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43294         * lib/gl_linkedhash_list.c: Likewise.
43295         * lib/gl_rbtreehash_list.c: Likewise.
43296
43297 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43298
43299         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43300         getaddrinfo.
43301
43302         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43303         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43304         it causes <stdio_ext.h> to cause a compile-time error.
43305         Problem reported by Nelson H. F. Beebe.
43306         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43307         of HAVE_DECL___PENDING.
43308
43309         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43310         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43311         declaration.
43312
43313 2006-09-27  Jim Meyering  <jim@meyering.net>
43314
43315         This file could end up with a definition for a function
43316         named __strndup, rather than rpl_strndup on a system with
43317         incomplete weak_alias support.
43318         * lib/strndup.c (strndup): Rename from __strndup.
43319         Remove #defines that used to map __strndup to strndup.
43320         Don't use K&R prototypes.
43321         Remove LIBC-related code, since this file is not sync'd with glibc.
43322         * lib/strndup.h: Revamp, accordingly.
43323         * m4/strndup.m4: Modernize.
43324
43325 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43326
43327         * modules/savewd (Depends-on): Add 'raise'.
43328         * lib/savewd.c: Include <signal.h>, for 'raise'.
43329
43330 2006-09-26  Jim Meyering  <jim@meyering.net>
43331
43332         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43333         when we detect Darwin 8.7.0's acl_get_file bug.
43334         Rearrange to perform the new (below) run-test while $LIBS
43335         contains any acl-related library.  Set USE_ACL at the end.
43336         (gl_ACL_GET_FILE): New function.
43337
43338 2006-09-26  Eric Blake  <ebb9@byu.net>
43339
43340         * lib/verror.c: Include <config.h> unconditionally.
43341
43342 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43343
43344         * modules/clock-time (Maintainer): Add self.
43345         * modules/getlogin_r (Depends-on): Add extensions.
43346
43347 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43348
43349         * modules/clock-time: New module.
43350         * modules/nanosleep (Depends-on): Add clock-time.
43351         * modules/gethrxtime (Depends-on): Likewise.
43352         * modules/gettime (Depends-on): Likewise.
43353         * modules/settime (Depends-on): Likewise.
43354
43355         * modules/fts-lgpl: Depend on openat.
43356         * modules/mkancesdirs: Depend on savewd.
43357         * modules/mkdir-p: Likewise.
43358
43359 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43360
43361         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43362
43363         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43364         `gl_have_arbitrary_file_name_length_limit' to
43365         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43366         actually works between configure runs.
43367
43368 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43369             Bruno Haible  <bruno@clisp.org>
43370
43371         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43372
43373 2006-09-25  Jim Meyering  <jim@meyering.net>
43374
43375         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43376         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43377
43378 2006-09-25  Eric Blake  <ebb9@byu.net>
43379
43380         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43381         exec's in 2006-09-18 patch when shuffling fds.
43382
43383 2006-09-25  Bruno Haible  <bruno@clisp.org>
43384
43385         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43386         Reported by Jim Meyering.
43387
43388 2006-09-24  Jim Meyering  <jim@meyering.net>
43389
43390         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43391         compare a pointer against a literal "0".  That caused failures with
43392         at least HP-UX's hpcc.
43393
43394 2006-09-22  Simon Josefsson  <jas@extundo.com>
43395
43396         * modules/gc-sha1:
43397         * modules/gc-md4:
43398         * modules/gc-hmac-sha1:
43399         * modules/gc-hmac-md5:
43400         * modules/gc-des:
43401         * modules/gc-arcfour: Distribute more files.
43402
43403 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43404
43405         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43406         (gl_linked_iterator_from_to): Initialize struct completely.
43407         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43408         (gl_tree_iterator_from_to): Likewise
43409         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43410         * lib/gl_array_list.c [lint] (gl_array_iterator)
43411         (gl_array_iterator_from_to): Likewise.
43412         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43413         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43414         (gl_carray_iterator_from_to): Likewise.
43415
43416         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43417         * lib/md4.c (md4_process_block): Remove unused variable.
43418         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43419         parentheses for clarity.
43420
43421 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43422
43423         * modules/bison-i18n (Depends-on): Add gettext.
43424
43425 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43426
43427         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43428         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43429         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43430         also add missing comma that caused broken test.
43431         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43432         stdlib.h, for `abort'.
43433         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43434         variables.
43435         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43436         include unistd.h if present, for `rmdir'.
43437         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43438         variables.
43439         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43440         in the process include standard headers for prototypes.
43441         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43442         gets declared on GNU/Linux.
43443         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43444         unistd.h, for `rmdir'.
43445         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43446
43447         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43448         always true.
43449         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43450
43451         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43452
43453 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43454
43455         * gnulib-tool (func_version): Create output all at once.  This
43456         may help avoid triggering unnecessary SIGPIPEs, and at any
43457         rate it doesn't hurt.
43458
43459 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43460             Bruno Haible  <bruno@clisp.org>
43461
43462         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43463         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43464         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43465
43466         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43467         (gl_FUNC_VASPRINTF): Invoke it.
43468
43469 2006-09-22  Bruno Haible  <bruno@clisp.org>
43470
43471         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43472         getloadavg.c as first argument.
43473
43474 2006-09-22  Bruno Haible  <bruno@clisp.org>
43475
43476         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43477         at the beginning of the gl_INIT macro.
43478         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43479         gl_GETLOADAVG.
43480
43481 2006-09-22  Bruno Haible  <bruno@clisp.org>
43482
43483         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43484         module.
43485         Suggested by Ralf Wildenhues.
43486
43487 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43488
43489         Import this patch from libc:
43490
43491         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43492
43493         * lib/regex_internal.c (re_string_reconstruct): Handle
43494         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43495         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43496         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43497         re_string_context_at.
43498
43499         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43500         now requires it.
43501         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43502         gl_REGEX now does it for us.
43503         (gl_REGEX): Add test taken from
43504         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43505
43506         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43507         Check that large offsets work.  Modernize Autoconf usages.
43508         Prefer "yes" to mean a good thing rather than a bad.
43509         Don't put "#define mkstemp" in config.h, as this might interfere
43510         with standard system headers that "#define mkstemp mkstemp64".
43511
43512         * modules/mkstemp (Depends-on): Add extensions, so that
43513         mkstemp is visible on some platforms.
43514         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43515         (Include): Change to "mkstemp.h" from <stdlib.h>.
43516         (Files): Add mkstemp.h.
43517
43518         * lib/mkstemp.h: New file, since some standard headers
43519         #define mkstemp.
43520         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43521         Include "mkstemp.h".
43522         Make the _LIBC code resemble glibc original more,
43523         e.g., use K&R style.
43524         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43525         (mkstemp): Remove, since mkstemp.h does this for us.
43526         * lib/stdlib--.h: Include mkstemp.h.
43527
43528         Import this patch from libc:
43529
43530         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43531
43532         * lib/tempname.c (__gen_tempname): Change attempts_min
43533         into a macro.  Use preprocessor to decide how to initialize
43534         attempts [Coverity CID 67].
43535
43536 2006-09-20  Bruno Haible  <bruno@clisp.org>
43537
43538         * lib/mkdtemp.c: Import from libc.
43539         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43540                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43541                 attempts_min into a macro.  Use preprocessor to decide how to
43542                 initialize attempts [Coverity CID 67].
43543         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43544                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43545                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43546
43547 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43548
43549         * gnulib-tool (func_exit): New function, to allow to pass the
43550         exit status portably through the trap.  Use everywhere.
43551         (--help, --version): Signal a write error.
43552         (trap): catch SIGPIPE, for write errors.
43553         Exit at the end of the trap, with the correct exit status.
43554
43555 2006-09-19  Karl Berry  <karl@gnu.org>
43556
43557         * doc/gnulib.texi: note about the license texinfo files.
43558
43559 2006-09-19  Eric Blake  <ebb9@byu.net>
43560
43561         * gnulib-tool: Avoid space-tab.
43562
43563 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43564
43565         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43566         that prevented coreutils 6.1 from building.  Problem reported
43567         by Petter Reinholdtsen.
43568
43569 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43570
43571         * gnulib-tool (avoidlist): Fix typo that broke options like
43572         --avoid=lock that are used by coreutils bootstrap.
43573
43574 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43575
43576         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43577         more systematically.
43578
43579 2006-09-18  Jim Meyering  <jim@meyering.net>
43580
43581         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43582
43583 2006-09-18  Bruno Haible  <bruno@clisp.org>
43584
43585         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43586
43587 2006-09-18  Bruno Haible  <bruno@clisp.org>
43588
43589         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43590         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43591         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43592         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43593         * m4/gettext.m4: Require autoconf >= 2.52.
43594         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43595         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43596         of gl_cv_header_inttypes_h.
43597
43598 2006-09-18  Bruno Haible  <bruno@clisp.org>
43599
43600         * lib/javaversion.c: Include configmake.h.
43601
43602 2006-09-18  Bruno Haible  <bruno@clisp.org>
43603
43604         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43605         avoid that the while loops be executed in a subshell.
43606
43607 2006-09-18  Bruno Haible  <bruno@clisp.org>
43608
43609         * MODULES.html.sh (func_module): Break long lines.
43610         Suggested by Bruce Korb <bkorb@gnu.org>.
43611
43612 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43613
43614         Speed up by a factor of 1.12.
43615         * gnulib-tool (nl): New variable.
43616         (func_import): Rewrite include directive extraction to only read each
43617         directive once.
43618
43619 2006-09-17  Bruno Haible  <bruno@clisp.org>
43620
43621         * modules/javaversion (Makefile.am): Remove DEFS setting.
43622         (Depends-on): Add configmake, for PKGDATADIR definition.
43623
43624 2006-09-17  Bruno Haible  <bruno@clisp.org>
43625
43626         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43627
43628 2006-09-17  Bruno Haible  <bruno@clisp.org>
43629
43630         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43631         (func_modules_transitive_closure, func_modules_add_dummy,
43632         func_modules_to_filelist, func_import, func_create_testdir,
43633         func_create_megatestdir, ...): Use it wherever possible.
43634         Suggested by Ralf Wildenhues.
43635
43636 2006-09-16  Karl Berry  <karl@gnu.org>
43637
43638         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43639         to avoid sectioning errors.
43640         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43641         [ifinfo]: blank line after @center-ed titles.
43642         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43643         Spell FSF address consistently with others.
43644         (These changes approved by rms.)
43645
43646 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43647
43648         Speed up by a factor of 1.61.
43649         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43650         already checked module names again.
43651
43652 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43653
43654         Speed up by a factor of 1.13.
43655         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43656         for new_files, and the input to func_add_or_update.
43657
43658 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43659
43660         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43661         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43662
43663 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43664
43665         * modules/mkancesdirs (Depends-on): Add fcntl.
43666         * modules/savewd: New file.
43667         * MODULES.html.sh (File system functions): Add savewd.
43668
43669         * modules/configmake (Makefile.am): Add support for the
43670         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43671
43672 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43673
43674         * m4/savewd.m4: New file.
43675
43676 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43677
43678         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43679         (dirchownmod): New arg FD.  All callers changed.
43680         Use FD rather than opening the directory ourself, as opening is
43681         now the caller's responsibility.
43682         * lib/dirchownmod.h: Likewise.
43683         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43684         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43685         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43686         (test_dir): Remove.
43687         (mkancesdirs): Return length of prefix of FILE that has already
43688         been made, or -2 if there is a child doing the work.  Redo
43689         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43690         ".", and treat ".." specially since it might stray back into
43691         already-created areas.  Use a subprocess if necessary.  New arg
43692         WD; all users changed.  MAKE_DIR function should now return 1
43693         if it creates a directory that is not readable.  Return -2 if
43694         a child process is spun off.
43695         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43696         Adjust signature to match code.
43697         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43698         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43699         all users changed.
43700         * lib/savewd.c, lib/savewd.h: New files.
43701
43702 2006-09-15  Jim Meyering  <jim@meyering.net>
43703
43704         * modules/rename-dest-slash: New module.
43705         * MODULES.html.sh (posix_compat): Add it here.
43706
43707         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43708
43709 2006-09-15  Jim Meyering  <jim@meyering.net>
43710
43711         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43712         file.
43713
43714         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43715
43716 2006-09-15  Jim Meyering  <jim@meyering.net>
43717
43718         * lib/rename-dest-slash.c (has_trailing_slash): Use
43719         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43720         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43721         test before testing whether SRC is a directory.
43722         Suggestions from Bruno Haible.
43723
43724         Avoid a warning about an unused variable.
43725         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43726         into the #ifdef block where it's used.
43727
43728         * lib/rename-dest-slash.c: New file.
43729
43730 2006-09-14  Bruno Haible  <bruno@clisp.org>
43731
43732         * lib/allocsa.c: Include <config.h> unconditionally.
43733         * lib/asnprintf.c: Likewise.
43734         * lib/asprintf.c: Likewise.
43735         * lib/c-strcasecmp.c: Likewise.
43736         * lib/c-strcasestr.c: Likewise.
43737         * lib/c-strncasecmp.c: Likewise.
43738         * lib/c-strstr.c: Likewise.
43739         * lib/classpath.c: Likewise.
43740         * lib/clean-temp.c: Likewise.
43741         * lib/concatpath.c: Likewise.
43742         * lib/copy-file.c: Likewise.
43743         * lib/csharpcomp.c: Likewise.
43744         * lib/csharpexec.c: Likewise.
43745         * lib/execute.c: Likewise.
43746         * lib/fatal-signal.c: Likewise.
43747         * lib/findprog.c: Likewise.
43748         * lib/fwriteerror.c: Likewise.
43749         * lib/gl_array_list.c: Likewise.
43750         * lib/gl_array_oset.c: Likewise.
43751         * lib/gl_avltree_list.c: Likewise.
43752         * lib/gl_avltree_oset.c: Likewise.
43753         * lib/gl_avltreehash_list.c: Likewise.
43754         * lib/gl_carray_list.c: Likewise.
43755         * lib/gl_linked_list.c: Likewise.
43756         * lib/gl_linkedhash_list.c: Likewise.
43757         * lib/gl_list.c: Likewise.
43758         * lib/gl_oset.c: Likewise.
43759         * lib/gl_rbtree_list.c: Likewise.
43760         * lib/gl_rbtree_oset.c: Likewise.
43761         * lib/gl_rbtreehash_list.c: Likewise.
43762         * lib/imaxabs.c: Likewise.
43763         * lib/imaxdiv.c: Likewise.
43764         * lib/javacomp.c: Likewise.
43765         * lib/javaexec.c: Likewise.
43766         * lib/javaversion.c: Likewise.
43767         * lib/linebreak.c: Likewise.
43768         * lib/localcharset.c: Likewise.
43769         * lib/lock.c: Likewise.
43770         * lib/mbchar.c: Likewise.
43771         * lib/mbswidth.c: Likewise.
43772         * lib/mkdtemp.c: Likewise.
43773         * lib/pipe.c: Likewise.
43774         * lib/printf-args.c: Likewise.
43775         * lib/printf-parse.c: Likewise.
43776         * lib/progname.c: Likewise.
43777         * lib/progreloc.c: Likewise.
43778         * lib/readlink.c: Likewise.
43779         * lib/sh-quote.c: Likewise.
43780         * lib/stpcpy.c: Likewise.
43781         * lib/stpncpy.c: Likewise.
43782         * lib/strcasecmp.c: Likewise.
43783         * lib/strcasestr.c: Likewise.
43784         * lib/strcspn.c: Likewise.
43785         * lib/striconv.c: Likewise.
43786         * lib/strncasecmp.c: Likewise.
43787         * lib/strnlen1.c: Likewise.
43788         * lib/strstr.c: Likewise.
43789         * lib/strtok_r.c: Likewise.
43790         * lib/tls.c: Likewise.
43791         * lib/tmpdir.c: Likewise.
43792         * lib/unicodeio.c: Likewise.
43793         * lib/unsetenv.c: Likewise.
43794         * lib/vasnprintf.c: Likewise.
43795         * lib/vasprintf.c: Likewise.
43796         * lib/wait-process.c: Likewise.
43797         * lib/xallocsa.c: Likewise.
43798         * lib/xsetenv.c: Likewise.
43799         * lib/xstriconv.c: Likewise.
43800
43801 2006-09-13  Simon Josefsson  <jas@extundo.com>
43802
43803         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43804         that internally, suggested by Ralf Wildenhues
43805         <Ralf.Wildenhues@gmx.de>.
43806
43807 2006-09-13  Simon Josefsson  <jas@extundo.com>
43808
43809         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43810         @LIBOBJS@.
43811         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43812
43813 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43814
43815         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43816         longer worry about uses that don't define HAVE_CONFIG_H.
43817         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43818         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43819         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43820         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43821         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43822         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43823         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43824         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43825         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43826         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43827         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43828         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43829         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43830         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43831         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43832         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43833         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43834         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43835         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43836         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43837         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43838         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43839         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43840         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43841         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43842         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43843         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43844         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43845         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43846         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43847         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43848         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43849         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43850         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43851         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43852         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43853         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43854         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43855         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43856         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43857         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43858         Likewise.
43859
43860 2006-09-13  Eric Blake  <ebb9@byu.net>
43861
43862         * lib/getopt.c: Fix typo in last commit.
43863
43864 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43865
43866         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43867         dgettext.
43868
43869 2006-09-12  Jim Meyering  <jim@meyering.net>
43870
43871         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43872         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43873         Reported by Nelson H. F. Beebe.
43874
43875 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43876
43877         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43878         program_invocation_name and program_invocation_short_name are
43879         initialized.
43880         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43881         and program_invocation_short_name to argp.h, so they are visible
43882         to user programs.
43883         * lib/argp.h: Likewise
43884
43885 2006-09-10  Bruno Haible  <bruno@clisp.org>
43886
43887         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43888         m4/inttypes_h.m4, m4/uintmax_t.m4.
43889
43890 2006-09-10  Bruno Haible  <bruno@clisp.org>
43891
43892         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43893         gl_AC_TYPE_UINTMAX_T.
43894
43895 2006-09-10  Bruno Haible  <bruno@clisp.org>
43896
43897         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43898
43899 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43900
43901         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43902         convention.  Text proposed by Bruno Haible.
43903         (struct argp_option): Document the use of N_() wrappers.
43904
43905         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43906         '\v', and translate the two parts separately, instead of feeding
43907         the whole string to gettext.  This allows to exclude
43908         '\v' from the strings visible to the translator by writing doc
43909         strings as N_("..") "\v" N_("..").
43910
43911 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43912
43913         * config/srclist.txt: Undo latest change; the bug was fixed.
43914
43915 2006-09-09  Bruno Haible  <bruno@clisp.org>
43916
43917         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43918         assignments if building a library without libtool.
43919         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43920         in func_emit_lib_Makefile_am.
43921         (func_import): When building a static library libfoo.a, arrange to
43922         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43923         (func_create_testdir): Likewise.
43924         * modules/gc (configure.ac, Makefile.am): If building statically,
43925         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43926         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43927         * modules/striconv (configure.ac, Makefile.am): Likewise.
43928         Based on a suggestion by Ralf Wildenhues.
43929
43930 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43931
43932         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43933         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43934         Also:
43935
43936         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43937         Add year_2050_test to catch glibc bug 2821
43938         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43939
43940         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43941         Prefer #ifdef to #if.
43942
43943         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43944         Return from 'main' instead of calling 'exit'.
43945
43946 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43947
43948         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43949         returned the maximum time_t value rather than (time_t) -1.
43950         Problem originally reported by William Bardwell
43951         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43952
43953         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43954         Moved to here ...
43955         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43956         ... from here.
43957
43958 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43959
43960         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43961         2821 is fixed.
43962
43963 2006-09-08  Jim Meyering  <jim@meyering.net>
43964
43965         Don't make generated files read-only.  That would bother too many
43966         people.  However, do retain the ability to work when targets are
43967         read-only: remove the destination and temporary files before writing
43968         them (when generated via sed or echo), or by using the -f option for
43969         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43970         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43971         * modules/byteswap, modules/configmake, modules/fcntl:
43972         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43973         * modules/localcharset, modules/netinet_in, modules/poll:
43974         * modules/stdbool, modules/stdint, modules/sys_select:
43975         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43976
43977 2006-09-08  Jim Meyering  <jim@meyering.net>
43978
43979         Avoid new build failure on FreeBSD 6.0.
43980         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43981         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43982         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43983
43984 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43985
43986         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43987
43988 2006-09-07  Jim Meyering  <jim@meyering.net>
43989
43990         Fix global typo in last change: use chmod u-w, not chmod u-x.
43991         Spotted by Paul Eggert and Bruce Korb.
43992         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43993         * modules/byteswap, modules/configmake, modules/fcntl:
43994         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43995         * modules/localcharset, modules/netinet_in, modules/poll:
43996         * modules/stdbool, modules/stdint, modules/sys_select:
43997         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43998
43999 2006-09-06  Jim Meyering  <jim@meyering.net>
44000
44001         Make generated files be read-only.
44002         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
44003         Ensure that each generated file is now read-only.
44004         * modules/argz: Likewise.
44005         * modules/arpa_inet: Likewise.
44006         * modules/byteswap: Likewise.
44007         * modules/configmake: Likewise.
44008         * modules/fcntl: Likewise.
44009         * modules/fnmatch: Likewise.
44010         * modules/getopt: Likewise.
44011         * modules/glob: Likewise.
44012         * modules/inttypes: Likewise.
44013         * modules/netinet_in: Likewise.
44014         * modules/poll: Likewise.
44015         * modules/stdbool: Likewise.
44016         * modules/stdint: Likewise.
44017         * modules/sys_select: Likewise.
44018         * modules/sys_socket: Likewise.
44019         * modules/sys_stat: Likewise.
44020         * modules/sysexits: Likewise.
44021         * modules/localcharset: Same as above, but continue using temporary
44022         file named "t-$@" (why different?) rather than the "$@-t" used
44023         everywhere else.
44024
44025         * modules/sysexits (Makefile.am): Replace literal occurrences
44026         of "sysexit.h" more readable, and more consistent, "$@".
44027
44028 2006-09-06  Bruno Haible  <bruno@clisp.org>
44029
44030         * modules/striconv: New file.
44031         * modules/xstriconv: New file.
44032         * MODULES.html.sh (Internationalization functions): Add striconv,
44033         xstriconv.
44034
44035 2006-09-06  Bruno Haible  <bruno@clisp.org>
44036
44037         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
44038         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
44039         not using libtool correctly.
44040
44041 2006-09-06  Bruno Haible  <bruno@clisp.org>
44042
44043         * lib/striconv.h: New file.
44044         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
44045         iconvstring.c.
44046         * lib/xstriconv.h: New file.
44047         * lib/xstriconv.c: New file.
44048
44049 2006-09-06  Bruno Haible  <bruno@clisp.org>
44050
44051         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44052         lib_..._LDFLAGS.
44053
44054 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44055
44056         * lib/argz_.h: Sync from Libtool.
44057
44058         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
44059                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44060
44061         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
44062
44063 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44064
44065         * modules/trim: New file.
44066
44067 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44068
44069         * lib/trim.h: New file.
44070         * lib/trim.c: New file.
44071
44072 2006-09-05  Bruno Haible  <bruno@clisp.org>
44073
44074         * MODULES.html.sh (String handling): Add trim.
44075
44076 2006-09-04  Karl Berry  <karl@gnu.org>
44077
44078         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
44079         until next release.
44080
44081 2006-09-03  Bruno Haible  <bruno@clisp.org>
44082
44083         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
44084         correctly.
44085
44086 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44087
44088         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
44089         not gl_GETLOADAVG.  Omit unneeded semicolons.
44090         Problems reported by Ralf Wildenhues in
44091         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44092         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44093         at the end, which is the usual gnulib style.
44094
44095         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44096         of doing all the work ourselves.
44097         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44098         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44099
44100 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44101
44102         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44103         Problem reported by Ralf Wildenhues in
44104         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44105
44106         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44107         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44108
44109 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44110
44111         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44112         yesterday's patch by changing test -n to test -z.
44113
44114 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44115
44116         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44117         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44118         the former is now obsolescent.
44119
44120         * modules/chdir-long (Depends-on): Add fcntl.
44121
44122 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44123
44124         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44125         obsolescent, and programs should use gnulib instead.
44126         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44127         but with prefixes changed.
44128
44129 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44130
44131         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44132         or stdbool.h, because they might not exist while configuring.
44133
44134         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44135         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44136         does that for us.
44137         (O_DIRECTORY): Remove.
44138
44139 2006-08-31  Eric Blake  <ebb9@byu.net>
44140
44141         * gnulib-tool: Don't let emacs change spaces to TAB.
44142
44143 2006-08-31  Bruno Haible  <bruno@clisp.org>
44144
44145         * gnulib-tool: When calling func_import more than once, do it in a
44146         subshell.
44147         Reported by Eric Blake <ebb9@byu.net>.
44148
44149 2006-08-31  Bruno Haible  <bruno@clisp.org>
44150
44151         * gnulib-tool (nl): Remove variable.
44152         (sed_transform_lib_file): Use more robust test for config-h module.
44153         (func_import): Fix typo in 2006-08-25 patch.
44154
44155 2006-08-31  Bruno Haible  <bruno@clisp.org>
44156
44157         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44158         specified, augment Makefile.am variables instead of assigning them.
44159
44160 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44161
44162         Work around a bug in both the Linux and SunOS 64-bit kernels:
44163         nanosleep mishandles sleeps for longer than 2**31 seconds.
44164         Problem reported by Frank v Waveren in
44165         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44166         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44167         Check for nanosleep bug.
44168         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44169
44170 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44171
44172         Work around a bug in both the Linux and SunOS 64-bit kernels:
44173         nanosleep mishandles sleeps for longer than 2**31 seconds.
44174         Problem reported by Frank v Waveren in
44175         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44176         * lib/nanosleep.c (BILLION): New constant.
44177         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44178         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44179         implementation.
44180
44181 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44182
44183         * modules/nanosleep (Depends-on): Add gettime.
44184
44185 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44186         and Simon Josefsson  <jas@extundo.com>
44187         and Oskar Liljeblad  <oskar@osk.mine.nu>
44188
44189         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44190         * gnulib-tool (func_import): New license type 'unmodifiable license
44191         text'.
44192         * modules/fdl: Use it.  Longer description.
44193         * module/gpl, module/lgpl: New files.
44194
44195 2006-08-30  Jim Meyering  <jim@meyering.net>
44196
44197         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44198         shadowing the parameter.
44199
44200 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44201
44202         Sync from Libtool:
44203
44204         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44205
44206         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44207         sharing with gnulib.  Report by Eric Blake.
44208
44209 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44210
44211         * modules/isapipe: New file.
44212         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44213
44214 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44215
44216         * modules/configmake (Makefile.am): Add a comment, and omit
44217         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44218         by Bruno Haible.
44219
44220 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44221
44222         * m4/isapipe.m4: New file.
44223
44224 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44225
44226         * lib/isapipe.c, lib/isapipe.h: New files.
44227
44228 2006-08-29  Jim Meyering  <jim@meyering.net>
44229
44230         * modules/configmake (Makefile.am): Make configmake.h depend on
44231         Makefile.  Otherwise, a stale configmake.h could hang around.
44232
44233 2006-08-29  Eric Blake  <ebb9@byu.net>
44234
44235         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44236         resolution of upstream bug 3044.
44237
44238 2006-08-29  Bruno Haible  <bruno@clisp.org>
44239
44240         * modules/localcharset (Depends-on): Add configmake.
44241         (Makefile.am): Remove setting of LIBDIR through DEFS.
44242
44243 2006-08-29  Bruno Haible  <bruno@clisp.org>
44244
44245         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44246         defined.
44247
44248 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44249
44250         * modules/fcntl: New file.
44251         * modules/chdir-safer (Depends-on): Add fcntl.
44252         * modules/fts: Likewise.
44253         * modules/mkdir-p: Likewise.
44254
44255         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44256         This undoes the most recent change, since we're now addressing the
44257         problem in a different way.
44258
44259         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44260         into output, since the output might be called Makefile.am even
44261         if $makefile_name is something different.
44262         (func_import): Use $makefile_am rather than
44263         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44264         empty.
44265
44266         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44267
44268 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44269
44270         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44271         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44272         recent change to stdint.m4, since we're now addressing the problem in a
44273         different way.
44274
44275 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44276
44277         * m4/fcntl_h.m4: New file.
44278
44279 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44280
44281         * lib/fcntl_.h: New file.
44282         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44283         the fcntl module.
44284         * lib/dirchownmod.c: Likewise.
44285         * lib/fts.c: Likewise.
44286
44287         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44288         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44289         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44290         just before including <inttypes.h>, to avoid circular inclusion.
44291
44292 2006-08-28  Jim Meyering  <jim@meyering.net>
44293
44294         * doc/visibility.texi: Actually read and correct the grammar of the
44295         sentence affected by yesterday's change.
44296
44297 2006-08-28  Eric Blake  <ebb9@byu.net>
44298
44299         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44300         needs wrapper.
44301
44302 2006-08-28  Eric Blake  <ebb9@byu.net>
44303
44304         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44305
44306 2006-08-28  Eric Blake  <ebb9@byu.net>
44307
44308         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44309
44310 2006-08-28  Bruno Haible  <bruno@clisp.org>
44311
44312         * modules/c-strstr: New file, from GNU gettext.
44313         * MODULES.html.sh (String handling): Add c-strstr.
44314
44315 2006-08-28  Bruno Haible  <bruno@clisp.org>
44316
44317         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44318         macros.
44319         Reported by Eric Blake.
44320
44321 2006-08-28  Bruno Haible  <bruno@clisp.org>
44322
44323         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44324         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44325         * lib/vasprintf.c: Include errno.h, limits.h.
44326         (EOVERFLOW): New fallback definition.
44327         (vasprintf): Test here whether the string length is > INT_MAX.
44328         * lib/vsnprintf.c: Include errno.h, limits.h.
44329         (EOVERFLOW): New fallback definition.
44330         (vsnprintf): Fix bug when generated string was too long for the buffer.
44331         Test here whether the string length is > INT_MAX.
44332
44333 2006-08-28  Bruno Haible  <bruno@clisp.org>
44334
44335         * lib/inttypes_.h (SCNX*): Remove definitions.
44336         Reported by Eric Blake.
44337
44338 2006-08-28  Bruno Haible  <bruno@clisp.org>
44339
44340         * lib/c-strstr.h: New file, from GNU gettext.
44341         * lib/c-strstr.c: New file, from GNU gettext.
44342
44343 2006-08-28  Bruno Haible  <bruno@clisp.org>
44344
44345         * gnulib-tool: Reorder some statements.
44346
44347 2006-08-28  Bruno Haible  <bruno@clisp.org>
44348
44349         * gnulib-tool: New option --makefile-name.
44350         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44351         $makefile_name.
44352         (func_import): Write $makefile_name to the cache file, and read it from
44353         there unless explicitly specified. Use $makefile_name as file name
44354         instead of Makefile.am. Adjust the recommendations accordingly.
44355
44356 2006-08-28  Bruno Haible  <bruno@clisp.org>
44357
44358         * gnulib-tool (func_verify_module): Check against misapplying patch.
44359
44360 2006-08-28  Bruno Haible  <bruno@clisp.org>
44361
44362         * gnulib-tool (func_relativize, func_relconcat): New functions.
44363         Give an error if --local-dir is given with --update.
44364         Remove trailing slashes from $local_gnulib_dir.
44365         (func_import): Store the relativized $local_gnulib_dir in
44366         gnulib-cache.m4, and read it from there if not specified explicitly.
44367
44368 2006-08-28  Bruno Haible  <bruno@clisp.org>
44369
44370         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44371         is the current directory. Respect also $local_gnulib_dir.
44372
44373 2006-08-28  Bruno Haible  <bruno@clisp.org>
44374             Simon Josefsson  <jas@extundo.com>
44375
44376         BeOS portability.
44377         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44378
44379 2006-08-27  Jim Meyering  <jim@meyering.net>
44380
44381         * doc/visibility.texi: Remove duplicate word: "pointer".
44382
44383 2006-08-26  Bruno Haible  <bruno@clisp.org>
44384
44385         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44386         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44387         (Makefile.am): Create inttypes.h from inttypes_.h.
44388         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44389
44390         * modules/imaxabs: New file.
44391
44392         * modules/imaxdiv: New file.
44393
44394 2006-08-26  Bruno Haible  <bruno@clisp.org>
44395
44396         * m4/inttypes.m4: New file.
44397         * m4/_inttypes_h.m4: Remove file.
44398         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44399         PRI_MACROS_BROKEN.
44400         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44401
44402         * m4/imaxabs.m4: New file.
44403
44404         * m4/imaxdiv.m4: New file.
44405
44406 2006-08-26  Bruno Haible  <bruno@clisp.org>
44407
44408         * lib/inttypes_.h: New file.
44409         * lib/inttypes.h: Remove file.
44410         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44411
44412         * lib/imaxabs.c: New file.
44413
44414         * lib/imaxdiv.c: New file.
44415
44416 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44417
44418         New config-h module, so that "make" output needn't be cluttered
44419         by -DHAVE_CONFIG_H.
44420         * MODULES.html.sh (Support for building libraries and executables):
44421         Add config-h.
44422         * modules/config-h: New file.
44423         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44424         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44425         the config-h module is used.
44426
44427         New configmake module, so that "make" output needn't be cluttered
44428         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44429         * MODULES.html.sh (Support for building libraries and executables):
44430         Add configmake.
44431         * modules/configmake: New file.
44432
44433 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44434
44435         * m4/config-h.m4: New file.
44436
44437 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44438
44439         * config/srclist.txt: Add elisp-comp.
44440
44441 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44442
44443         * MODULES.html.sh (Support for building libraries and executables):
44444         Add elisp-comp.
44445         * build-aux/elisp-comp: New file.
44446         * modules/elisp-comp: New file.
44447
44448 2006-08-24  Bruno Haible  <bruno@clisp.org>
44449
44450         * gnulib-tool (func_create_testdir): Use non-default values of
44451         sourcebase and m4base.
44452
44453 2006-08-24  Bruno Haible  <bruno@clisp.org>
44454
44455         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44456         HTML structure.
44457
44458 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44459
44460         * modules/openat (Depends-on): Add lchown.
44461
44462 2006-08-23  Bruno Haible  <bruno@clisp.org>
44463
44464         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44465         of gl_LOCK_EARLY instead of gl_LOCK.
44466
44467 2006-08-23  Bruno Haible  <bruno@clisp.org>
44468
44469         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44470         on OSF/1 to no.
44471         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44472
44473 2006-08-23  Bruno Haible  <bruno@clisp.org>
44474
44475         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44476         as unusable.
44477
44478         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44479         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44480         (gl_LOCK): New macro.
44481
44482 2006-08-22  Simon Josefsson  <jas@extundo.com>
44483
44484         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44485         to md5 module.
44486
44487 2006-08-22  Simon Josefsson  <jas@extundo.com>
44488
44489         * MODULES.html.sh: Add "Support for maintaining and release
44490         projects".
44491
44492         * build-aux/gnupload: New file, from coreutils.
44493
44494 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44495
44496         Avoid the need for AC_LIBSOURCES in m4 macros.
44497         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44498         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44499         * modules/check-version (EXTRA_DIST): Add check-version.h.
44500         * modules/crc (EXTRA_DIST): Add crc.h.
44501         * modules/des (EXTRA_DIST): Add des.h.
44502         * modules/gc (EXTRA_DIST): Add gc.h.
44503         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44504         * modules/getline (EXTRA_DIST): Add getline.h.
44505         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44506         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44507         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44508         * modules/md2 (EXTRA_DIST): Add md2.h.
44509         * modules/md4 (EXTRA_DIST): Add md4.h.
44510         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44511         * modules/read-file (EXTRA_DIST): Add read-file.h.
44512         * modules/readline (EXTRA_DIST): Add readline.h.
44513         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44514         rijndael-api-fst.h.
44515
44516 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44517
44518         * m4/rijndael.m4 (gl_ARCFOUR):
44519         * m4/arctwo.m4 (gl_ARCTWO):
44520         * m4/check-version.m4 (gl_CHECK_VERSION):
44521         * m4/crc.m4 (gl_CRC):
44522         * m4/des.m4 (gl_DES):
44523         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44524         * m4/gc.m4 (gl_GC):
44525         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44526         * m4/getline.m4 (gl_FUNC_GETLINE):
44527         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44528         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44529         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44530         * m4/md2.m4 (gl_MD2):
44531         * m4/md4.m4 (gl_MD4):
44532         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44533         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44534         * m4/readline.m4 (gl_FUNC_READLINE):
44535         * m4/rijndael.m4 (gl_RIJNDAEL):
44536         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44537         to get the necessary .h files and whatnot.
44538
44539 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44540
44541         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44542         gnulib rather than the other way around.
44543         * config/srclistvars.sh (COREUTILS): Remove.
44544
44545 2006-08-22  Jim Meyering  <jim@meyering.net>
44546
44547         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44548
44549         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44550
44551 2006-08-22  Eric Blake  <ebb9@byu.net>
44552
44553         * modules/regexprops-generic: New file.
44554         * MODULES.html.sh (Support for building documentation): List it.
44555
44556 2006-08-22  Eric Blake  <ebb9@byu.net>
44557
44558         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44559         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44560         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44561         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44562
44563 2006-08-22  Bruno Haible  <bruno@clisp.org>
44564
44565         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44566         and lib_LTLIBRARIES like the other lib_* variables.
44567
44568 2006-08-22  Bruno Haible  <bruno@clisp.org>
44569
44570         * build-aux/x-to-1.in: New file, from GNU gettext.
44571
44572 2006-08-22  Bruno Haible  <bruno@clisp.org>
44573
44574         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44575         <utmpx.h> exists.
44576
44577 2006-08-22  Bruno Haible  <bruno@clisp.org>
44578
44579         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44580         <utmpx.h> exists.
44581
44582 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44583
44584         BeOS portability.
44585         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44586         exist.
44587         Problem reported by Bruno Haible.
44588
44589 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44590
44591         Avoid the need for AC_LIBSOURCES in m4 macros.
44592         * modules/acl (EXTRA_DIST): Add acl.h.
44593         * modules/argmatch (Files): Add m4/argmatch.m4.
44594         (configure.ac): Add gl_ARGMATCH.
44595         (EXTRA_DIST): Renamed from lib_SOURCES, for
44596         consistency with the other modules.  Remove argmatch.c.
44597         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44598         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44599         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44600         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44601         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44602         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44603         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44604         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44605         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44606         * modules/closeout (EXTRA_DIST): Add closeout.h.
44607         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44608         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44609         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44610         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44611         dirname.h; remove basename.c and stripslash.c.
44612         * modules/exclude (EXTRA_DIST): Add exclude.h.
44613         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44614         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44615         * modules/file-type (EXTRA_DIST): Add file-type.h.
44616         * modules/filemode (EXTRA_DIST): Add filemode.h.
44617         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44618         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44619         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44620         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44621         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44622         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44623         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44624         * modules/getdate (EXTRA_DIST): Add getdate.c.
44625         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44626         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44627         * modules/getpass (EXTRA_DIST): Add getpass.h.
44628         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44629         * modules/group-member (EXTRA_DIST): Add group-member.h.
44630         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44631         * modules/hash (EXTRA_DIST): Add hash.h.
44632         * modules/human (EXTRA_DIST): Add human.h.
44633         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44634         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44635         * modules/lchown (EXTRA_DIST): Add lchown.h.
44636         * modules/long-options (EXTRA_DIST): Add long-options.h.
44637         * modules/lstat (EXTRA_DIST): Add lstat.h.
44638         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44639         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44640         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44641         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44642         * modules/memxor (EXTRA_DIST): Add memxor.h.
44643         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44644         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44645         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44646         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44647         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44648         * modules/physmem (EXTRA_DIST): Add physmem.h.
44649         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44650         * modules/posixver (EXTRA_DIST): Add posixver.h.
44651         * modules/quote (EXTRA_DIST): Add quote.h.
44652         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44653         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44654         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44655         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44656         regex_internal.h regexec.c.
44657         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44658         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44659         * modules/same (EXTRA_DIST): Add same.h.
44660         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44661         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44662         * modules/savedir (EXTRA_DIST): Add savedir.h.
44663         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44664         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44665         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44666         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44667         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44668         * modules/strdup (EXTRA_DIST): Add strdup.h.
44669         * modules/strftime (EXTRA_DIST): Add strftime.h.
44670         * modules/strndup (EXTRA_DIST): Add strndup.h.
44671         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44672         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44673         * modules/time_r (EXTRA_DIST): Add time_r.h.
44674         * modules/timespec (EXTRA_DIST): Add timespec.h.
44675         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44676         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44677         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44678         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44679         * modules/userspec (EXTRA_DIST): Add userspec.h.
44680         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44681         * modules/utimens (EXTRA_DIST): Add utimens.h.
44682         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44683         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44684         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44685         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44686         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44687         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44688         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44689         * modules/yesno (EXTRA_DIST): Add yesno.h.
44690
44691 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44692
44693         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44694
44695         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44696         * m4/dev-ino.m4, same-inode.m4: Remove.
44697
44698         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44699         * m4/acl.m4 (AC_FUNC_ACL):
44700         * m4/backupfile.m4 (gl_BACKUPFILE):
44701         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44702         * m4/canon-host.m4 (gl_CANON_HOST):
44703         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44704         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44705         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44706         * m4/cloexec.m4 (gl_CLOEXEC):
44707         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44708         * m4/closeout.m4 (gl_CLOSEOUT):
44709         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44710         * m4/dirname.m4 (gl_DIRNAME):
44711         * m4/exclude.m4 (gl_EXCLUDE):
44712         * m4/exitfail.m4 (gl_EXITFAIL):
44713         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44714         * m4/file-type.m4 (gl_FILE_TYPE):
44715         * m4/filemode.m4 (gl_FILEMODE):
44716         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44717         * m4/fpending.m4 (gl_FUNC_FPENDING):
44718         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44719         * m4/fts.m4 (gl_FUNC_FTS):
44720         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44721         * m4/getdate.m4 (gl_GETDATE):
44722         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44723         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44724         * m4/getpass.m4 (gl_FUNC_GETPASS):
44725         * m4/gettime.m4 (gl_GETTIME):
44726         * m4/getugroups.m4 (gl_GETUGROUPS):
44727         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44728         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44729         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44730         * m4/hash.m4 (gl_HASH):
44731         * m4/idcache.m4 (gl_IDCACHE):
44732         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44733         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44734         * m4/long-options.m4 (gl_LONG_OPTIONS):
44735         * m4/lstat.m4 (gl_FUNC_LSTAT):
44736         * m4/md5.m4 (gl_MD5):
44737         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44738         * m4/memcoll.m4 (gl_MEMCOLL):
44739         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44740         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44741         * m4/memxor.m4 (gl_MEMXOR):
44742         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44743         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44744         * m4/modechange.m4 (gl_MODECHANGE):
44745         * m4/mountlist.m4 (gl_MOUNTLIST):
44746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44747         * m4/openat.m4 (gl_FUNC_OPENAT):
44748         * m4/pathmax.m4 (gl_PATHMAX):
44749         * m4/physmem.m4 (gl_PHYSMEM):
44750         * m4/posixtm.m4 (gl_POSIXTM):
44751         * m4/posixver.m4 (gl_POSIXVER):
44752         * m4/quote.m4 (gl_QUOTE):
44753         * m4/quotearg.m4 (gl_QUOTEARG):
44754         * m4/readtokens.m4 (gl_READTOKENS):
44755         * m4/readutmp.m4 (gl_READUTMP):
44756         * m4/regex.m4 (gl_REGEX):
44757         * m4/safe-read.m4 (gl_SAFE_READ):
44758         * m4/safe-write.m4 (gl_SAFE_WRITE):
44759         * m4/same.m4 (gl_SAME):
44760         * m4/save-cwd.m4 (gl_SAVE_CWD):
44761         * m4/savedir.m4 (gl_SAVEDIR):
44762         * m4/settime.m4 (gl_SETTIME):
44763         * m4/sha1.m4 (gl_SHA1):
44764         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44765         * m4/stat-macros.m4 (gl_STAT_MACROS):
44766         * m4/stat-time.m4 (gl_STAT_TIME):
44767         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44768         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44769         * m4/strdup.m4 (gl_FUNC_STRDUP):
44770         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44771         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44772         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44773         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44774         * m4/time_r.m4 (gl_TIME_R):
44775         * m4/timespec.m4 (gl_TIMESPEC):
44776         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44777         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44778         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44779         * m4/userspec.m4 (gl_USERSPEC):
44780         * m4/utimecmp.m4 (gl_UTIMECMP):
44781         * m4/utimens.m4 (gl_UTIMENS):
44782         * m4/xalloc.m4 (gl_XALLOC):
44783         * m4/xgetcwd.m4 (gl_XGETCWD):
44784         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44785         * m4/xreadlink.m4 (gl_XREADLINK):
44786         * m4/xstrtod.m4 (gl_XSTRTOD):
44787         * m4/yesno.m4 (gl_YESNO):
44788         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44789         to get the necessary .h files and whatnot.
44790
44791 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44792             Bruno Haible  <bruno@clisp.org>
44793
44794         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44795         /bin/sh understanding of '!' conditional negation.
44796
44797 2006-08-21  Jim Meyering  <jim@meyering.net>
44798
44799         * modules/openat (Depends-on): Really alphabetize.
44800
44801         * modules/acl (Depends-on): Add error and quote.
44802
44803         * check-module (find_included_lib_files): Add at-func.c to the
44804         ok-to-include-more-than-once white list.
44805
44806         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44807
44808 2006-08-21  Bruno Haible  <bruno@clisp.org>
44809
44810         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44811         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44812         Reported by Martin Lambers <marlam@marlam.de>.
44813
44814 2006-08-21  Bruno Haible  <bruno@clisp.org>
44815
44816         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44817         specify an installation location, don't emit a noinst_LIBRARIES or
44818         noinst_LTLIBRARIES assignment.
44819
44820 2006-08-21  Bruno Haible  <bruno@clisp.org>
44821
44822         BeOS portability.
44823         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44824         BeOS has mbrtowc() but no <wctype.h>.
44825
44826 2006-08-21  Bruno Haible  <bruno@clisp.org>
44827
44828         BeOS portability.
44829         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44830         exist.
44831
44832 2006-08-21  Bruno Haible  <bruno@clisp.org>
44833
44834         BeOS portability.
44835         * lib/mbchar.h: Include <wctype.h> only if it exists.
44836
44837 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44838
44839         Remove files that are no longer needed by their respective modules.
44840         * m4/obstack.m4: Remove.
44841         * m4/strerror_r.m4: Remove.
44842         * m4/uint32_t.m4: Remove.
44843         * m4/uintptr_t.m4: Remove.
44844         * m4/ullong_max.m4: Remove.
44845         * m4/xstrtoimax.m4: Remove.
44846         * m4/xstrtoumax.m4: Remove.
44847
44848         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44849         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44850         dependencies now capture this.
44851
44852         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44853         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44854         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44855         * m4/human.m4 (gl_HUMAN): Likewise.
44856         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44857         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44858
44859         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44860
44861         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44862         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44863         stdint.
44864         * m4/human.m4 (gl_HUMAN): Likewise.
44865         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44866         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44867         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44868         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44869         * m4/xstrtol (gl_XSTRTOL): Likewise.
44870
44871         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44872         AC_TYPE_LONG_LONG_INT.
44873         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44874         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44875         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44876         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44877
44878         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44879         on stdbool.
44880
44881         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44882         (gl_PREREQ_XSTRTOUL): Remove.
44883
44884         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44885
44886         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44887         mode.
44888
44889 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44890
44891         Add and change modules to make it easier for coreutils to use
44892         gnulib-tool.
44893         * modules/backupfile (Files): Remove m4/d-ino.m4.
44894         (Depends-on): Add d-ino.
44895         * modules/cycle-check (Depends-on): Add stdint.
44896         (lib_SOURCES): Add cycle-check.h.
44897         * modules/d-ino: New module.
44898         * modules/d-type: New module.
44899         * modules/error (Files): Remove m4/strerror_r.m4.
44900         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44901         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44902         m4/inttypes_h.m4, m4/uintmax_t.m4.
44903         (Depends-on): Add stdint.
44904         (lib_SOURCES): Add fsusage.h.
44905         * modules/getcwd (Files): Remove d-ino.m4.
44906         (Depends-on): Add d-ino.
44907         * modules/getndelim2 (Depends-on): Add stdint.
44908         * modules/glob (Files): Remove m4/d-type.m4.
44909         (Depends-on): Add d-type.
44910         * modules/host-os: New module.
44911         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44912         m4/inttypes_h.m4, m4/uintmax_t.m4.
44913         * Depends-on: Add stdint.
44914         (lib_SOURCES): Add human.h.
44915         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44916         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44917         m4/uintmax_t.m4, m4/ulonglong.m4.
44918         (Depends-on): Add stdint.
44919         (EXTRA_DIST): Add inttostr.h.
44920         * modules/lchmod: New module.
44921         * modules/link-follow: New module.
44922         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44923         (Depends-on): Add lchmod.
44924         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44925         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44926         (Depends-on): Add stdint.
44927         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44928         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44929         (Depends-on): Add stdint.
44930         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44931         * modules/perl: New module.
44932         * modules/regex (Depends-on): Add stdint.
44933         * modules/rmdir-errno: New module.
44934         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44935         m4/intmax_t.m4.
44936         (Depends-on): Add stdint.
44937         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44938         m4/uintmax_t.m4.
44939         (Depends-on): Add stdint.
44940         * modules/unlink-busy: New module.
44941         * modules/utimecmp (Depends-on): Add stdint.
44942         * modules/uptime: New module.
44943         * modules/winsz-ioctl: New module.
44944         * modules/winsz-termios: New module.
44945         * modules/xnanosleep (Depends-on): Add nanosleep.
44946         * modules/ullong_max: Remove.
44947         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44948         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44949         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44950         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44951         (Depends-on): Add inttypes.
44952         (lib_SOURCES): Add xstrtol.h.
44953         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44954         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44955         * MODULES.html.sh: Move 'assert' into the assert section.
44956         Move 'dummy' into the linking section.
44957         Remove ullong_max.
44958         Add section for compatibility checks for POSIX:2001 functions,
44959         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44960         winsz-ioctl, and winsz-termios into it.
44961         Add lchmod.
44962         Add top-level Misc section and put host-os, perl, and uptime
44963         into it.
44964
44965 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44966
44967         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44968         now assume the stdint module.  Do not include inttypes.h.
44969         * lib/fsusage.h: Likewise.
44970         * lib/getndelim2.c: Likewise.
44971         * lib/human.h: Likewise.
44972         * lib/inttostr.h: Likewise.
44973         * lib/obstack.c: Likewise.
44974         * lib/regex_internal.h: Likewise.
44975         * lib/tempname.c: Likewise.
44976         * lib/utimecmp.c: Likewise.
44977         * lib/xstrtol.h: Likewise.
44978
44979         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44980
44981         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44982         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44983         * lib/xtime.h: Likewise.
44984
44985 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44986
44987         * modules/openat (Files): Add lib/fchmodat.c.
44988         Fixes problem reported by Jay Youngman.
44989
44990 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44991
44992         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44993         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44994
44995 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44996             Bruno Haible  <bruno@clisp.org>
44997
44998         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44999         and is a script that invokes bison. Tighten the code. Add comments.
45000
45001 2006-08-18  Jim Meyering  <jim@meyering.net>
45002
45003         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
45004         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
45005         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
45006         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
45007
45008 2006-08-18  Bruno Haible  <bruno@clisp.org>
45009
45010         * modules/bison-i18n: New file.
45011         * MODULES.html.sh (Internationalization functions): Add it.
45012
45013 2006-08-18  Bruno Haible  <bruno@clisp.org>
45014
45015         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
45016         sys/statvfs.h. When getmntinfo was found, check its declaration and
45017         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
45018
45019 2006-08-18  Bruno Haible  <bruno@clisp.org>
45020
45021         * m4/bison-i18n.m4: New file, from bison.
45022
45023 2006-08-18  Bruno Haible  <bruno@clisp.org>
45024
45025         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
45026         (ME_DUMMY): Treat "kernfs" as a dummy.
45027         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
45028
45029 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45030
45031         Update from coreutils.
45032
45033         2006-08-15  Jim Meyering  <jim@meyering.net>
45034
45035         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
45036
45037         2006-01-17  Jim Meyering  <jim@meyering.net>
45038
45039         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
45040
45041         2006-01-11  Jim Meyering  <jim@meyering.net>
45042
45043         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
45044         Check for the lchmod function.
45045
45046 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45047
45048         Update from coreutils.
45049
45050         * lib/__fpending.h: Add copyright notice.
45051         * lib/fprintftime.h: Likewise.
45052         * lib/savedir.c: Use (C) in copyright notice.
45053         * lib/savedir.h: Likewise.
45054
45055         2006-08-15  Jim Meyering  <jim@meyering.net>
45056
45057         * lib/at-func.c: New file, with the logic of all emulated at-functions.
45058         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
45059         in support of the EXPECTED_ERRNO macro.
45060         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
45061         definitions.  Instead, define the appropriate symbols and include
45062         "at-func.c".
45063         * lib/mkdirat.c (mkdirat): Likewise.
45064         * lib/fchmodat.c (fchmodat): Likewise.
45065         (ENOSYS): Remove definition.
45066         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
45067         it.  Don't include "unistd--.h" -- it wasn't ever used.
45068
45069         2006-01-17  Jim Meyering  <jim@meyering.net>
45070
45071         Rewrite fts.c not to change the current working directory,
45072         by using openat, fstatat, fdopendir, etc..
45073
45074         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
45075         (HAVE_OPENAT_SUPPORT): Define.
45076         [_LIBC] (fchdir): Don't undef or define; no longer used.
45077         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
45078         Now, this `function' always succeeds, and consumes its file descriptor
45079         parameter -- so callers must not close such FDs.  Update callers.
45080         (diropen_fd, opendirat, cwd_advance_fd): New functions.
45081         (diropen): Add parameter, SP.  Adjust all callers.
45082         Implement using diropen_fd, rather than open.
45083         (fts_open): Initialize new member, fts_cwd_fd.
45084         Remove fts_rft-setting code.
45085         (fts_close): Close fts_cwd_fd, if necessary.
45086         (__opendir2): Define in terms of opendir or opendirat,
45087         depending on whether the FST_NOCHDIR flag is set.
45088         (fts_build): Since fts_safe_changedir consumes its FD, and since
45089         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
45090         and close the dup'd file descriptor upon failure.
45091         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45092         (fts_safe_changedir): Tweak semantics to reflect that this function
45093         now calls cwd_advance_fd and hence consumes its FD argument.
45094         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45095         [struct FTS] (fts_rft): Remove now-unused member.
45096         [struct FTS] (fts_cycle.state): Improve comment.
45097
45098         * lib/openat.c (openat_needs_fchdir): New function.
45099         * lib/openat.h (openat_needs_fchdir): Declare it.
45100
45101 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45102
45103         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45104         Problem and fix reported by Pádraig Brady in
45105         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45106
45107 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45108
45109         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45110
45111 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45112
45113         * lib/memcoll.c (memcoll): Optimize for the common case where the
45114         arguments are bytewise equal.
45115
45116 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45117
45118         * doc/regexprops-generic.texi: Add a copyright notice.
45119
45120 2006-08-15  Bruno Haible  <bruno@clisp.org>
45121
45122         * modules/tmpdir (License): Change to LGPL.
45123
45124 2006-08-15  Bruno Haible  <bruno@clisp.org>
45125
45126         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45127         module.
45128
45129 2006-08-14  Simon Josefsson  <jas@extundo.com>
45130
45131         * config/srclist.txt: Add gnupload.
45132
45133 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45134
45135         Change copyright notice from LGPL 2 to GPL 2, since that's the
45136         standard form used in the gnulib repository.
45137         * tests/test-lock.c: Likewise.
45138         * tests/test-stdint.c: Likewise.
45139         * tests/test-tls.c: Likewise.
45140
45141         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45142         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45143         Add copyright notice.
45144
45145         * check-module: Add copyright notice.  Output a copyright
45146         notice if "--version" is specified.
45147         * modules/COPYING: New file.
45148         * tests/test-getaddrinfo.c: Add copyright notice.
45149         * tests/test-verify.c: Likewise.
45150
45151 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45152
45153         Change copyright notice from LGPL 2 to GPL 2, since that's the
45154         standard form used in the gnulib repository.
45155         * lib/lock.c: LGPL -> GPL.
45156         * lib/lock.h: Likewise.
45157         * lib/strnlen1.c: Likewise.
45158         * lib/strnlen1.h: Likewise.
45159         * lib/tls.c: Likewise.
45160         * lib/tls.h: Likewise.
45161         * lib/tmpdir.c: Likewise.
45162
45163         * lib/TODO: Remove; this belongs only in coreutils.
45164
45165 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45166
45167         Add copyright notices to long-enough files that lack them, since
45168         otherwise the files aren't clearly free.  Use the same notice that
45169         getdate.texi already uses.
45170         * doc/alloca-opt.texi: Add copyright notice.
45171         * doc/alloca.texi: Likewise.
45172         * doc/ctime.texi: Likewise.
45173         * doc/functions.texi: Likewise.
45174         * doc/gcd.texi: Likewise.
45175         * doc/gnulib-tool.texi: Likewise.
45176         * doc/inet_ntoa.texi: Likewise.
45177         * doc/visibility.texi: Likewise.
45178
45179         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45180         * doc/quote.texi: Add copyright notice.
45181
45182         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45183         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45184         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45185         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45186         is now obsolete, and give a pointer to the Sun list.
45187         Add copyright notice.
45188
45189 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45190
45191         * config/srclistvars.sh: Add copyright notice.
45192
45193 2006-08-14  Eric Blake  <ebb9@byu.net>
45194
45195         Import the following change from libc:
45196
45197         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45198
45199         Upstream bug 2997.
45200         * lib/misc/error.c: Add space between program name and message if file
45201         name is missing.
45202
45203 2006-08-12  Karl Berry  <karl@gnu.org>
45204
45205         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45206         remove, these originate in gnulib now.
45207
45208 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45209
45210         * doc/Makefile (standards.info standards.html standards.dvi):
45211         Also depend on make-stds.texi.
45212
45213 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45214
45215         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45216         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45217
45218         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45219         in wchar_t.  Problem reported by Eric Blake.
45220
45221         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45222         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45223         Also, help the compiler to keep LEN in a register.
45224
45225 2006-08-11  Eric Blake  <ebb9@byu.net>
45226
45227         * users.txt: Sort.  Add tar.
45228
45229 2006-08-11  Bruno Haible  <bruno@clisp.org>
45230
45231         * users.txt: New file.
45232
45233 2006-08-11  Bruno Haible  <bruno@clisp.org>
45234
45235         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45236         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45237
45238 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45239
45240         * modules/snprintf (Depends-on): Remove minmax.
45241         (Maintainer): Add self and Bruno.
45242
45243 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45244
45245         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45246         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45247         (EOVERFLOW): Define if the system does not.
45248         Do not include "minmax.h"; it wasn't used.
45249         (snprintf): Don't assume size_t promotes to an unsigned type.
45250         Fix bug when generated string was too long for the buffer: the
45251         buffer's contents are supposed to be the initial prefix of the
45252         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45253         exceeds INT_MAX; do the check ourselves.
45254
45255         Import the following changes from libc:
45256
45257         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45258
45259         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45260         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45261         set wc to the byte which couldn't be converted.
45262         (re_string_reconstruct): Don't clear valid_raw_len before calling
45263         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45264         tip_context using re_string_context_at.
45265
45266         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45267
45268         * lib/posix/regex.h: g++ still cannot handled [restrict].
45269
45270         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45271
45272         * lib/posix/regex.h: Remove special handling for VMS.
45273
45274 2006-08-10  Jim Meyering  <jim@meyering.net>
45275
45276         * modules/same-inode: New module.
45277         * modules/dev-ino: New module.
45278         * modules/cycle-check: Depend on these modules, rather than simply
45279         including their .h files.
45280         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45281         required via m4/cycle-check.m4.
45282         * modules/same: Depend on new same-inode module, rather than
45283         including same-inode.h.
45284         * modules/chdir-safer: New file.
45285
45286         * modules/chown (Depends-on): Add stat-macros.
45287
45288 2006-08-10  Jim Meyering  <jim@meyering.net>
45289
45290         * m4/cycle-check.m4: New file.
45291         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45292         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45293
45294 2006-08-10  Eric Blake  <ebb9@byu.net>
45295
45296         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45297         in from original proposal.
45298
45299 2006-08-10  Eric Blake  <ebb9@byu.net>
45300         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45301
45302         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45303         namespace.
45304
45305 2006-08-10  Bruno Haible  <bruno@clisp.org>
45306
45307         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45308         as well.
45309
45310 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45311
45312         Sync from coreutils.
45313
45314         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45315
45316         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45317         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45318
45319 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45320
45321         * modules/restrict: Remove; no longer needed now that we assume
45322         Autoconf 2.59 or later.
45323         * MODULES.html.sh: Remove 'restrict'.
45324         * modules/argp (Depends-on): Remove 'restrict'.
45325         * modules/base64 (Depends-on): Likewise.
45326         * modules/gc (Depends-on): Likewise.
45327         * modules/getaddrinfo (Depends-on): Likewise.
45328         * modules/glob (Depends-on): Likewise.
45329         * modules/inet_ntop (Depends-on): Likewise.
45330         * modules/inet_pton (Depends-on): Likewise.
45331         * modules/memxor (Depends-on): Likewise.
45332         * modules/regex (Depends-on): Likewise.
45333         * modules/strtok_r (Depends-on): Likewise.
45334         * modules/time_r (Depends-on): Likewise.
45335
45336 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45337
45338         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45339         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45340         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45341         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45342         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45343         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45344         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45345         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45346
45347         Merge from coreutils.
45348         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45349         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45350         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45351         * m4/time_r.m4 (gl_TIME_R): Likewise.
45352
45353 2006-08-09  Karl Berry  <karl@gnu.org>
45354
45355         * config/srclist.txt: no more gettext-tools, per Bruno.
45356
45357 2006-08-08  Eric Blake  <ebb9@byu.net>
45358
45359         * modules/verror: New module.
45360         * MODULES.html.sh: Document it.
45361
45362 2006-08-08  Eric Blake  <ebb9@byu.net>
45363
45364         * lib/verror.h, lib/verror.c: New files.
45365
45366 2006-08-08  Eric Blake  <ebb9@byu.net>
45367
45368         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45369         verror_at_line output complies with GNU Coding Standards even when
45370         file is NULL.
45371
45372 2006-08-07  Bruno Haible  <bruno@clisp.org>
45373
45374         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45375         versions of AIX.
45376         Reported by Ralf Wildenhues.
45377
45378 2006-08-07  Bruno Haible  <bruno@clisp.org>
45379
45380         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45381         in an AC_DEFUN. Needed so that the autoconf snippets can use
45382         AC_REQUIRE.
45383
45384 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45385
45386         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45387         Initialize pkgdata_DATA.
45388         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45389         overriding it.
45390
45391 2006-08-06  Eric Blake  <ebb9@byu.net>
45392
45393         * lib/error.h: Fold in some upstream changes from glibc.
45394         * lib/error.c: Likewise.
45395
45396 2006-08-04  Bruno Haible  <bruno@clisp.org>
45397
45398         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45399         Make the mostlyclean-local rule depend on mostlyclean-generic.
45400         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45401
45402 2006-07-31  Bruno Haible  <bruno@clisp.org>
45403
45404         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45405         <stdlib.h>, <string.h>.
45406
45407 2006-07-30  Bruno Haible  <bruno@clisp.org>
45408
45409         * modules/readlink (License): Change to LGPL.
45410
45411 2006-07-30  Bruno Haible  <bruno@clisp.org>
45412
45413         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45414         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45415         set PKGDATADIR to point to it.
45416
45417 2006-07-30  Bruno Haible  <bruno@clisp.org>
45418
45419         * modules/csharpexec (configure.ac): Comment out macro invocation.
45420         * modules/javaexec (configure.ac): Likewise.
45421         * modules/javacomp-script (configure.ac): Likewise.
45422
45423         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45424
45425 2006-07-30  Bruno Haible  <bruno@clisp.org>
45426
45427         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45428         linked-list.
45429
45430 2006-07-30  Bruno Haible  <bruno@clisp.org>
45431
45432         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45433
45434 2006-07-30  Bruno Haible  <bruno@clisp.org>
45435
45436         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45437         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45438         get removed.
45439
45440 2006-07-29  Bruno Haible  <bruno@clisp.org>
45441
45442         Make it possible for gnulib-tool to work with locally modified or
45443         augmented gnulib repositories.
45444         * gnulib-tool (func_usage): Document --local-dir option.
45445         (local_gnulib_dir): New variable.
45446         Handle --local-dir option.
45447         (func_lookup_file): New function.
45448         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45449         (func_get_description, func_get_filelist, func_get_description,
45450         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45451         func_get_automake_snippet, func_get_include_directive,
45452         func_get_license, func_get_maintainer): Use func_lookup_file.
45453         (func_import, func_create_testdir): Use func_lookup_file.
45454
45455 2006-07-29  Bruno Haible  <bruno@clisp.org>
45456
45457         * modules/setenv (Depends-on): Add unistd.
45458
45459 2006-07-29  Bruno Haible  <bruno@clisp.org>
45460
45461         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45462
45463 2006-07-29  Bruno Haible  <bruno@clisp.org>
45464
45465         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45466
45467 2006-07-29  Bruno Haible  <bruno@clisp.org>
45468
45469         * gnulib-tool (import, update): If there is no Makefile.am, look at
45470         aclocal.m4, instead of bailing out.
45471
45472 2006-07-29  Bruno Haible  <bruno@clisp.org>
45473
45474         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45475         Categorize the options by when they are useful.
45476
45477 2006-07-29  Bruno Haible  <bruno@clisp.org>
45478
45479         * gnulib-tool (func_usage): Document option --no-libtool.
45480         Handle option --no-libtool.
45481         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45482         for changed semantics of $libtool variable.
45483         (func_import): Likewise. If libtool is not used, show this through
45484         an option --no-libtool.
45485         (func_create_testdir): Update.
45486
45487 2006-07-29  Bruno Haible  <bruno@clisp.org>
45488
45489         * gnulib-tool (func_import): Extend error message about missing
45490         --doc-base.
45491
45492 2006-07-29  Bruno Haible  <bruno@clisp.org>
45493
45494         * gnulib-tool (func_import): Don't create the $docbase directory if
45495         there is no file to store there.
45496
45497 2006-07-29  Bruno Haible  <bruno@clisp.org>
45498
45499         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45500         relevant, look for configure.ac there, not in the current directory.
45501         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45502
45503 2006-07-29  Bruno Haible  <bruno@clisp.org>
45504
45505         * gnulib-tool (SORT): New variable.
45506         (func_usage): Undocument --assume-autoconf option.
45507         Remove --assume-autoconf option handling.
45508         (autoconf_minversion): Determine from the contents of configure.ac.
45509         (func_import): Remove autoconf_minversion handling.
45510         Suggested by Eric Blake.
45511
45512 2006-07-29  Bruno Haible  <bruno@clisp.org>
45513
45514         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45515
45516 2006-07-29  Bruno Haible  <bruno@clisp.org>
45517
45518         * config/srclist.txt (*setenv.[ch]): Remove rules.
45519
45520 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45521
45522         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45523
45524 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45525
45526         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45527         arpa/inet.h.
45528
45529 2006-07-28  Simon Josefsson  <jas@extundo.com>
45530
45531         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45532         * modules/inet_pton (Depends-on): Likewise.
45533
45534 2006-07-28  Simon Josefsson  <jas@extundo.com>
45535
45536         * m4/netinet_in_h.m4: New file.
45537
45538 2006-07-28  Simon Josefsson  <jas@extundo.com>
45539
45540         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45541         #include's.
45542
45543 2006-07-28  Simon Josefsson  <jas@extundo.com>
45544
45545         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45546         #include's.
45547
45548 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45549
45550         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45551         setgid on directories only if they set these bits.
45552         * lib/modechange.h: Remove obsolete comment about masks.
45553
45554 2006-07-28  Eric Blake  <ebb9@byu.net>
45555
45556         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45557         macro expansion.
45558
45559 2006-07-28  Bruno Haible  <bruno@clisp.org>
45560
45561         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45562
45563 2006-07-28  Bruno Haible  <bruno@clisp.org>
45564
45565         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45566
45567 2006-07-28  Bruno Haible  <bruno@clisp.org>
45568
45569         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45570         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45571         Define fallbacks.
45572         Avoids link error on FreeBSD 4.x.
45573         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45574
45575         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45576         encoding.
45577         * lib/mbswidth.c (iswcntrl): Likewise.
45578
45579 2006-07-27  Bruno Haible  <bruno@clisp.org>
45580
45581         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45582         test.
45583
45584 2006-07-27  Bruno Haible  <bruno@clisp.org>
45585
45586         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45587         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45588         defined.
45589
45590 2006-07-26  Eric Blake  <ebb9@byu.net>
45591
45592         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45593
45594 2006-07-26  Eric Blake  <ebb9@byu.net>
45595
45596         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45597         like mingw that lack mkstemp.
45598         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45599         avoid compilation warning on mingw.
45600
45601 2006-07-26  Bruno Haible  <bruno@clisp.org>
45602
45603         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45604         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45605         INT_FAST*_MIN, INTPTR_MIN.
45606
45607 2006-07-25  Bruno Haible  <bruno@clisp.org>
45608
45609         * modules/version-etc (Depends-on): Add stdarg.
45610
45611 2006-07-25  Bruno Haible  <bruno@clisp.org>
45612
45613         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45614         complex commands.
45615
45616 2006-07-25  Bruno Haible  <bruno@clisp.org>
45617
45618         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45619         defined in <stdarg.h> or config.h.
45620
45621 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45622
45623         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45624         (gl_STDIO_SAFER): Remove.
45625
45626 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45627
45628         * MODULES.html.sh (File stream based Input/Output):
45629         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45630         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45631         * modules/fopen-safer, modules/tmpfile-safer: New files.
45632         * modules/stdio-safer: Remove.
45633
45634 2006-07-24  Bruno Haible  <bruno@clisp.org>
45635
45636         * modules/tmpdir: New file.
45637         * MODULES.html.sh (File system functions): Add it.
45638
45639 2006-07-24  Bruno Haible  <bruno@clisp.org>
45640
45641         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45642         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45643
45644 2006-07-24  Bruno Haible  <bruno@clisp.org>
45645
45646         * modules/clean-temp: New file.
45647
45648 2006-07-24  Bruno Haible  <bruno@clisp.org>
45649
45650         * m4/tmpdir.m4: New file, from GNU gettext.
45651
45652 2006-07-24  Bruno Haible  <bruno@clisp.org>
45653
45654         * lib/tmpdir.h: New file, from GNU gettext.
45655         * lib/tmpdir.c: New file, from GNU gettext.
45656
45657 2006-07-24  Bruno Haible  <bruno@clisp.org>
45658
45659         * lib/clean-temp.h: New file, from GNU gettext.
45660         * lib/clean-temp.c: New file, from GNU gettext.
45661
45662 2006-07-23  Eric Blake  <ebb9@byu.net>
45663
45664         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45665         (Depends-on): Add binary-io.
45666
45667 2006-07-23  Eric Blake  <ebb9@byu.net>
45668
45669         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45670
45671 2006-07-23  Eric Blake  <ebb9@byu.net>
45672
45673         * lib/tmpfile-safer.c: New file.
45674         * lib/stdio-safer.h (fopen_safer): Add prototype.
45675         * lib/stdio--.h (tmpfile): Make safer.
45676
45677 2006-07-23  Bruno Haible  <bruno@clisp.org>
45678
45679         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45680         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45681         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45682         gl_linked_remove_at): Use it.
45683
45684 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45685         and Simon Josefsson <jas@extundo.com>
45686
45687         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45688
45689         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45690
45691 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45692
45693         * modules/close-stream: New file.
45694         * modules/closeout (Description): Make it clear that it exits
45695         with a diagnostic on error.
45696         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45697         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45698
45699 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45700
45701         * m4/close-stream.m4: New file.
45702
45703 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45704
45705         * lib/close-stream.c, lib/close-stream.h: New files.
45706
45707 2006-07-22  Bruno Haible  <bruno@clisp.org>
45708
45709         Merge from GNU gettext 0.15.
45710
45711         2006-05-01  Bruno Haible  <bruno@clisp.org>
45712
45713                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45714
45715         2006-07-22  Bruno Haible  <bruno@clisp.org>
45716
45717                 * modules/javaversion: New file.
45718                 * MODULES.html.sh (Java): Add javaversion.
45719
45720         2006-03-12  Bruno Haible  <bruno@clisp.org>
45721
45722                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45723
45724         2005-12-04  Bruno Haible  <bruno@clisp.org>
45725
45726                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45727                 (untested).
45728
45729         2006-06-21  Bruno Haible  <bruno@clisp.org>
45730
45731                 Avoid warnings from recent versions of mcs.
45732                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45733                 -o, -L, -r any more. Use options documented since mcs-1.0
45734                 instead. Similarly for -g.
45735
45736         2005-12-04  Bruno Haible  <bruno@clisp.org>
45737
45738                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45739                 .resources, not .resource.
45740
45741         2005-07-09  Bruno Haible  <bruno@clisp.org>
45742
45743                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45744                 add a .dll suffix.
45745                 Reported by Mark Junker <mjscod@gmx.de>.
45746
45747         2006-07-22  Bruno Haible  <bruno@clisp.org>
45748
45749                 * modules/gettext: Upgrade to gettext-0.15.
45750                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45751                 m4/visibility.m4.
45752                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45753
45754 2006-07-22  Bruno Haible  <bruno@clisp.org>
45755
45756         Merge from GNU gettext 0.15.
45757
45758         2006-03-25  Bruno Haible  <bruno@clisp.org>
45759
45760                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45761
45762         2006-07-21  Bruno Haible  <bruno@clisp.org>
45763
45764                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45765                 "1.1".
45766
45767         2006-05-09  Bruno Haible  <bruno@clisp.org>
45768
45769                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45770                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45771                 for the conftestver execution.
45772
45773         2006-05-01  Bruno Haible  <bruno@clisp.org>
45774
45775                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45776                 optional target-version argument. Verify that the compiler
45777                 groks source of the specified source-version, or add -source
45778                 option as necessary. Verify that the compiler produces
45779                 bytecode in the specified target-version, or add -target and
45780                 -source options as necessary. Make the result of the test
45781                 available as variable CONF_JAVAC. Also log error output in
45782                 config.log.
45783
45784         2006-03-11  Bruno Haible  <bruno@clisp.org>
45785
45786                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45787
45788         2006-05-09  Bruno Haible  <bruno@clisp.org>
45789
45790                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45791                 CLASSPATH_SEPARATOR to a semicolon.
45792
45793         2006-03-12  Bruno Haible  <bruno@clisp.org>
45794
45795                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45796                 available as variable CONF_JAVA, for subsequent autoconf
45797                 tests. Also log error output in config.log.
45798
45799         2006-07-19  Bruno Haible  <bruno@clisp.org>
45800
45801                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45802                 that getline works on glibc2 systems. Needed to avoid trouble
45803                 in relocatable.c.
45804                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45805
45806         2005-12-04  Bruno Haible  <bruno@clisp.org>
45807
45808                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45809                 launcher (untested).
45810
45811         2005-12-04  Bruno Haible  <bruno@clisp.org>
45812
45813                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45814
45815         2006-07-22  Bruno Haible  <bruno@clisp.org>
45816
45817                 * gettext.m4: Update from GNU gettext-0.15.
45818                 * nls.m4: Likewise.
45819                 * po.m4: Likewise.
45820                 * inttypes-pri.m4: Likewise.
45821                 * inttypes-h.m4: Renamed from inttypes.m4.
45822                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45823
45824 2006-07-22  Bruno Haible  <bruno@clisp.org>
45825
45826         Merge from GNU gettext 0.15.
45827
45828         2005-07-05  Bruno Haible  <bruno@clisp.org>
45829
45830                 * printf-args.c (printf_fetchargs): Work around broken
45831                 definition of wint_t on mingw.
45832
45833         2005-02-12  Bruno Haible  <bruno@clisp.org>
45834
45835                 * xallocsa.h: Add extern "C" for C++.
45836
45837         2006-05-17  Bruno Haible  <bruno@clisp.org>
45838
45839                 Cygwin portability.
45840                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45841
45842         2006-04-30  Bruno Haible  <bruno@clisp.org>
45843
45844                 * progreloc.c: Include <mach-o/dyld.h> if available.
45845                 (find_executable): Use _NSGetExecutablePath when possible.
45846
45847         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45848
45849                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45850                 function.
45851
45852         2005-12-29  Bruno Haible  <bruno@clisp.org>
45853
45854                 * progreloc.c (set_program_name_and_installdir): Fix
45855                 compilation error.
45856
45857         2005-12-04  Bruno Haible  <bruno@clisp.org>
45858
45859                 Cygwin portability.
45860                 * progreloc.c: Include <windows.h> also on Cygwin.
45861                 (find_executable): Add support for Cygwin.
45862                 (set_program_name_and_installdir): Handle also platforms with
45863                 nonempty EXEEXT.
45864
45865         2006-07-11  Bruno Haible  <bruno@clisp.org>
45866
45867                 * javacomp.c: Fix a comment.
45868                 Reported by Jim Meyering.
45869
45870         2006-04-30  Bruno Haible  <bruno@clisp.org>
45871
45872                 * javacomp.h (compile_java_class): Add source_version,
45873                 target_version arguments.
45874                 * javacomp.c: Rewritten to choose only a compiler that
45875                 respects the specified source_version and target_version.
45876
45877         2006-06-27  Bruno Haible  <bruno@clisp.org>
45878
45879                 Assume correct S_ISDIR macro.
45880                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45881
45882         2006-07-22  Bruno Haible  <bruno@clisp.org>
45883
45884                 * javaversion.h: New file, from GNU gettext.
45885                 * javaversion.c: New file, from GNU gettext.
45886                 * javaversion.java: New file, from GNU gettext.
45887                 * javaversion.class: New file, from GNU gettext.
45888
45889         2006-05-17  Bruno Haible  <bruno@clisp.org>
45890
45891                 Cygwin portability.
45892                 * javaexec.c (execute_java_class): Test for jview program
45893                 also on Cygwin.
45894
45895         2006-04-09  Bruno Haible  <bruno@clisp.org>
45896
45897                 * fatal-signal.c: Don't include string.h.
45898                 (at_fatal_signal): Use a copying loop instead of memcpy.
45899
45900         2005-12-04  Bruno Haible  <bruno@clisp.org>
45901
45902                 * csharpexec.c: Add support for 'clix' launcher (untested).
45903                 (execute_csharp_using_sscli): New function.
45904                 (execute_csharp_program): Call it.
45905
45906         2006-06-21  Bruno Haible  <bruno@clisp.org>
45907
45908                 Avoid warnings from recent versions of mcs.
45909                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45910                 -o, -L, -r any more. Use options documented since mcs-1.0
45911                 instead. Similarly for -g.
45912
45913         2005-07-09  Bruno Haible  <bruno@clisp.org>
45914
45915                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45916                 add a .dll suffix.
45917                 Reported by Mark Junker <mjscod@gmx.de>.
45918
45919         2006-06-17  Bruno Haible  <bruno@clisp.org>
45920
45921                 * config.charset: Update for NetBSD 3.0.
45922
45923         2006-05-17  Bruno Haible  <bruno@clisp.org>
45924
45925                 Cygwin portability.
45926                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45927
45928         2006-05-16  Bruno Haible  <bruno@clisp.org>
45929
45930                 * localcharset.c [CYGWIN]: Include <windows.h>.
45931                 (get_charset_aliases): For Cygwin, return the same CPxxx
45932                 aliases list as under WIN32.
45933                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45934                 the environment variables. Fall back to GetACP().
45935
45936         2006-04-05  Bruno Haible  <bruno@clisp.org>
45937
45938                 * config.charset: Update Juan Manuel Guerrero's address.
45939
45940         2005-02-12  Bruno Haible  <bruno@clisp.org>
45941
45942                 * allocsa.h: Add extern "C" for C++.
45943
45944         2005-02-10  Bruno Haible  <bruno@clisp.org>
45945
45946                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45947                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45948
45949         2006-07-22  Bruno Haible  <bruno@clisp.org>
45950
45951                 * gettext.h: Update to GNU gettext-0.15.
45952
45953 2006-07-22  Bruno Haible  <bruno@clisp.org>
45954
45955         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45956         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45957         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45958
45959 2006-07-21  Eric Blake  <ebb9@byu.net>
45960
45961         * modules/stdlib-safer: New file.
45962         * MODULES.html.sh (File stream based Input/Output): Add
45963         stdlib-safer.
45964
45965 2006-07-21  Eric Blake  <ebb9@byu.net>
45966
45967         * lib/stdlib-safer.h: New file from coreutils, required by
45968         stdlib--.h.
45969
45970 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45971
45972         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45973
45974 2006-07-20  Bruno Haible  <bruno@clisp.org>
45975
45976         * gnulib-tool: Recognize new option --assume-autoconf.
45977         (autoconf_minversion): New variable.
45978         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45979
45980 2006-07-20  Bruno Haible  <bruno@clisp.org>
45981
45982         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45983
45984 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45985
45986         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45987         Reindent and repaginate.
45988
45989 2006-07-19  Derek Price  <derek@ximbiot.com>
45990
45991         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45992         Correct grammar.
45993
45994 2006-07-17  Bruno Haible  <bruno@clisp.org>
45995
45996         * modules/list: New file.
45997         * modules/array-list: New file.
45998         * modules/carray-list, modules/carray-list-tests: New files.
45999         * modules/linked-list, modules/linked-list-tests: New files.
46000         * modules/avltree-list, modules/avltree-list-tests: New files.
46001         * modules/rbtree-list, modules/rbtree-list-tests: New files.
46002         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
46003         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
46004         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
46005         * modules/oset: New file.
46006         * modules/array-oset: New file.
46007         * modules/avltree-oset, modules/avltree-oset-tests: New files.
46008         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
46009         * tests/test-carray_list.c: New file.
46010         * tests/test-linked_list.c: New file.
46011         * tests/test-avltree_list.c: New file.
46012         * tests/test-rbtree_list.c: New file.
46013         * tests/test-linkedhash_list.c: New file.
46014         * tests/test-avltreehash_list.c: New file.
46015         * tests/test-rbtreehash_list.c: New file.
46016         * tests/test-avltree_oset.c: New file.
46017         * tests/test-rbtree_oset.c: New file.
46018         * MODULES.html.sh (Container data structures): New section.
46019
46020 2006-07-17  Bruno Haible  <bruno@clisp.org>
46021
46022         * m4/gl_list.m4: New file.
46023
46024 2006-07-17  Bruno Haible  <bruno@clisp.org>
46025
46026         * lib/gl_list.h: New file.
46027         * lib/gl_list.c: New file.
46028         * lib/gl_array_list.h: New file.
46029         * lib/gl_array_list.c: New file.
46030         * lib/gl_carray_list.h: New file.
46031         * lib/gl_carray_list.c: New file.
46032         * lib/gl_linked_list.h: New file.
46033         * lib/gl_linked_list.c: New file.
46034         * lib/gl_anylinked_list1.h: New file.
46035         * lib/gl_anylinked_list2.h: New file.
46036         * lib/gl_avltree_list.h: New file.
46037         * lib/gl_avltree_list.c: New file.
46038         * lib/gl_anyavltree_list1.h: New file.
46039         * lib/gl_anyavltree_list2.h: New file.
46040         * lib/gl_rbtree_list.h: New file.
46041         * lib/gl_rbtree_list.c: New file.
46042         * lib/gl_anyrbtree_list1.h: New file.
46043         * lib/gl_anyrbtree_list2.h: New file.
46044         * lib/gl_anytree_list1.h: New file.
46045         * lib/gl_anytree_list2.h: New file.
46046         * lib/gl_linkedhash_list.h: New file.
46047         * lib/gl_linkedhash_list.c: New file.
46048         * lib/gl_anyhash_list1.h: New file.
46049         * lib/gl_anyhash_list2.h: New file.
46050         * lib/gl_avltreehash_list.h: New file.
46051         * lib/gl_avltreehash_list.c: New file.
46052         * lib/gl_rbtreehash_list.h: New file.
46053         * lib/gl_rbtreehash_list.c: New file.
46054         * lib/gl_anytreehash_list1.h: New file.
46055         * lib/gl_anytreehash_list2.h: New file.
46056
46057         * lib/gl_oset.h: New file.
46058         * lib/gl_oset.c: New file.
46059         * lib/gl_array_oset.h: New file.
46060         * lib/gl_array_oset.c: New file.
46061         * lib/gl_avltree_oset.h: New file.
46062         * lib/gl_avltree_oset.c: New file.
46063         * lib/gl_rbtree_oset.h: New file.
46064         * lib/gl_rbtree_oset.c: New file.
46065         * lib/gl_anytree_oset.h: New file.
46066
46067 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46068
46069         * m4/mkancesdirs.m4: New file.
46070         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
46071         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
46072         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
46073         it.
46074
46075 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46076
46077         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
46078         * lib/mkancesdirs.h: New files.
46079         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
46080         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
46081         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
46082         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
46083         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
46084         callers changed.  Revamp internals significantly, by not
46085         attempting to create directories that are temporarily more
46086         permissive than the final results.  Do not attempt to use
46087         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
46088         This removes some race conditions, fixes some bugs, and simplifies
46089         things.  Use new dirchownmod function to do owner and mode changes.
46090         * lib/mkdir-p.h: Likewise.
46091         * lib/modechange.c (octal_to_mode): New function.
46092         (struct mode_change): New member mentioned.
46093         (make_node_op_equals): New arg mentioned.  All callers changed.
46094         (mode_compile): Keep track of which mode bits the user has explicitly
46095         mentioned.
46096         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46097         New arg PMODE_BITS, to keep track of which mode bits the user
46098         mentioned; it treats S_ISUID and S_ISGID speciall.
46099         All callers changed.
46100         * lib/modechange.h: Likewise.
46101
46102 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46103
46104         * MODULES.html.sh: Add mkancestors.
46105         * modules/mkancesdirs: New module.
46106         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46107         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46108         The chdir-safer and afs files are now orphans; I'll remove them
46109         unless someone speaks up.
46110         Add lib/dirchownmod.c, lib/dirchownmod.h.
46111         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46112         Add lchown, mkancesdirs.
46113         (Maintainer): Add self.
46114
46115 2006-07-15  Karl Berry  <karl@gnu.org>
46116
46117         * gnulib-tool: help message wording/arrangement.
46118
46119 2006-07-14  Simon Josefsson  <jas@extundo.com>
46120
46121         * doc/gnulib.texi (Libtool and Windows): New section.
46122
46123 2006-07-12  Simon Josefsson  <jas@extundo.com>
46124
46125         * modules/gendocs (License): Fix license, approved by Karl.
46126
46127 2006-07-12  Eric Blake  <ebb9@byu.net>
46128
46129         * MODULES.html.sh: Add gendocs.
46130
46131 2006-07-11  Eric Blake  <ebb9@byu.net>
46132
46133         * modules/fdl: New module, to install doc/fdl.texi.
46134         * MODULES.html.sh: Add new section for documentation modules.
46135         * gnulib-tool: Avoid space-tab.
46136         (--doc-base): New option, to manage files from doc.
46137
46138 2006-07-11  Eric Blake  <ebb9@byu.net>
46139
46140         * m4/absolute-header.m4: Fix comments to match recent change.
46141
46142 2006-07-11  Eric Blake  <ebb9@byu.net>
46143
46144         * gnulib-tool: List --doc-base before --tests-base.
46145
46146 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46147
46148         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46149
46150 2006-07-11  Bruno Haible  <bruno@clisp.org>
46151
46152         * README: Mention where to put documentation.
46153
46154 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46155
46156         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46157
46158 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46159
46160         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46161         to stdint.m4.
46162
46163 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46164
46165         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46166         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46167         "no/such/file/stdint.h" when there is no such file, so that
46168         the resulting C code can be parsed by dodgy compilers.
46169         Problems reported by Bob Proulx.
46170
46171 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46172
46173         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46174         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46175         macros into the GNU _D_EXACT_NAMLEN.
46176         * lib/savedir.c:  Likewise.
46177         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46178
46179 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46180         and Paul Eggert  <eggert@cs.ucla.edu>
46181
46182         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46183         * m4/savedir.m4:
46184         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46185         macros into the GNU _D_EXACT_NAMLEN.
46186
46187 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46188
46189         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46190         around the absolute name, to work around a problem with the HP-UX
46191         11.23 native C compiler, reported by Bob Proulx.
46192
46193 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46194
46195         * doc/maintain.texi, make-stds.texi: Sync from
46196         <http://savannah.gnu.org/projects/gnustandards>.
46197
46198 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46199
46200         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46201
46202 2006-07-09  Jim Meyering  <jim@meyering.net>
46203
46204         * m4/glob.m4: Remove a doubled word in a comment.
46205
46206 2006-07-09  Jim Meyering  <jim@meyering.net>
46207
46208         * lib/argp-pv.c: Remove a doubled word in a comment.
46209         * lib/check-version.c (check_version): Likewise.
46210         * lib/javacomp.c (compile_java_class): Likewise.
46211
46212 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46213
46214         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46215         for the benefit of people using Autoconf 2.60.  If you want to
46216         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46217         (or m4/onceonly.m4, if pre-2.57) manually.
46218
46219 2006-07-08  Jim Meyering  <jim@meyering.net>
46220
46221         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46222         comment.
46223         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46224         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46225         comment.
46226
46227 2006-07-08  Jim Meyering  <jim@meyering.net>
46228
46229         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46230
46231 2006-07-07  Simon Josefsson  <jas@extundo.com>
46232
46233         * tests/test-crc.c: Change expected crc value, the test vector
46234         were probably computed using the old broken crc.c?
46235
46236 2006-07-06  Simon Josefsson  <jas@extundo.com>
46237
46238         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46239         now the canonical place for the M4 file).
46240
46241         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46242         from the sys_socket dependency now.
46243
46244         * modules/inet_pton (Files): Ditto.
46245
46246         * modules/inet_ntop (Files): Ditto.
46247
46248 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46249
46250         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46251         not gl_PREREQ_GETUSERSHELL.
46252
46253 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46254
46255         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46256         with only one argument, for Autoconf 2.60.
46257         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46258         expand to nothing, so add a shell command to avoid syntax error.
46259         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46260
46261 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46262
46263         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46264
46265 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46266
46267         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46268         no longer needed.  Check for isblank decl.
46269         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46270         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46271         of existence.
46272
46273 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46274
46275         * lib/getloadavg.c: Use __VMS, not VMS.
46276         * lib/getopt.c: Likewise.
46277         * lib/getpagesize.h: Likewise.
46278         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46279         and probably does not work.
46280
46281 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46282
46283         * lib/.cppi-disable: Add wcwidth.
46284         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46285         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46286         (ISGRAPH): Remove.  All uses changed to isgraph.
46287         (FOLD) [!defined _LIBC]: Remove special case.
46288         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46289         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46290         HAVE_ISBLANK.
46291         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46292         case.
46293
46294 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46295
46296         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46297         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46298         brackets.  Other minor changes to suppress some compiler
46299         warnings.
46300
46301 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46302         and Paul Eggert  <eggert@cs.ucla.edu>
46303
46304         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46305         of invoking obsolescent AC_HEADER_DIRENT macro.
46306         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46307         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46308         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46309         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46310         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46311         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46312         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46313         * m4/readdir.m4: Remove; no longer needed.
46314
46315 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46316         and Paul Eggert  <eggert@cs.ucla.edu>
46317
46318         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46319         Don't worry about this obsolete case any more.
46320         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46321         directories.
46322         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46323         worry about this obsolete case any more.
46324         * lib/fts.c: Likewise.
46325         * lib/getcwd.c: Likewise.
46326         * lib/glob.h: Likewise.
46327         * lib/savedir.c: Likewise.
46328
46329 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46330
46331         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46332         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46333         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46334         needed.
46335         All uses removed.
46336         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46337         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46338         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46339         needed.
46340         * m4/getdate.m4 (gl_GETDATE): Likewise.
46341         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46342         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46343         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46344         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46345         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46346         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46347         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46348         needed.
46349
46350 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46351
46352         * lib/memcasecmp.c: Include <limits.h>.
46353         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46354         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46355         Don't assume isdigit succeeds only on '0' through '9'.
46356
46357 2006-07-05  Eric Blake  <ebb9@byu.net>
46358
46359         * modules/getaddrinfo (Depends-on): Add snprintf.
46360
46361 2006-07-05  Eric Blake  <ebb9@byu.net>
46362
46363         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46364         to avoid 'header present but could not be compiled' on cygwin.
46365
46366 2006-07-05  Eric Blake  <ebb9@byu.net>
46367
46368         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46369         missing from netdb.h.
46370         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46371
46372 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46373
46374         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46375         no longer needed.
46376         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46377         * m4/getdate.m4 (gl_GETDATE): Likewise.
46378         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46379         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46380         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46381         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46382         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46383
46384 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46385
46386         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46387         All uses of is_space replaced by isspace.
46388         * lib/exit.h: Don't talk about STDC_HEADERS.
46389         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46390         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46391         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46392         replaced by isprint etc.
46393         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46394         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46395         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46396         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46397         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46398         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46399
46400 2006-07-05  Bruno Haible  <bruno@clisp.org>
46401
46402         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46403         the function exists, before testing against AIX.
46404         Reported by Martin Lambers <marlam@marlam.de>.
46405
46406 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46407
46408         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46409         From Mark D. Baushke.
46410
46411 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46412
46413         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46414         to the absolute name, not just one, to bypass Sun C 5.8's
46415         "warning: #include of /usr/include/... may be non-portable".
46416
46417 2006-07-04  Eric Blake  <ebb9@byu.net>
46418
46419         * modules/dirname-tests: New test module.
46420         * tests/test-dirname.c: New file, replacing dirname.c
46421         TEST_DIRNAME section that was recently deleted.
46422
46423 2006-07-04  Bruno Haible  <bruno@clisp.org>
46424
46425         Assume ANSI C header files and <ctype.h> functions.
46426         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46427         (mbsnwidth): Use isprint, iscntrl instead.
46428
46429 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46430
46431         Merge from coreutils.
46432         * MODULES.html.sh: Add xstrtold.
46433         * modules/xstrtold: New file.
46434         * modules/cycle-check (Files): Add lib/same-inode.h.
46435         * modules/dirname (Files): Add m4/double-slash-root.m4.
46436         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46437         * modules/mkdir-p (Files): Add lib/same-inode.h.
46438         * modules/same (Files): Add lib/same-inode.h.
46439
46440 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46441
46442         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46443         This is to keep the terminology clean; POSIX talks about
46444         "absolute pathnames", not "full pathnames", but the GNU
46445         Coding Standards say to use "path" for something else;
46446         so use "absolute" to keep both sides happy.
46447         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46448         Set gl_absolute_header, not gl_full_header_path.
46449         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46450         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46451         All uses changed.
46452
46453         Merge from coreutils.
46454
46455         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46456
46457         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46458         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46459         want to require the building of c-strtod.o.
46460         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46461         needs -lm directly.
46462         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46463
46464         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46465
46466         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46467         --as-needed option if available.  Problem reported by Albert Chin in
46468         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46469         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46470         cc merely issues a bunch of annoying warnings for --as-needed
46471         (this problem was reported by Bob Proulx).  Also, try linking with
46472         -lm to detect a bug in binutils 2.16 (this problem was reported
46473         by Ralf Wildenhues).
46474
46475         2006-06-18  Jim Meyering  <jim@meyering.net>
46476
46477         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46478         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46479         macro.
46480         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46481         also check for glibc-2.4's abort-inducing bug.
46482
46483         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46484         Low-probability clean-up should be to use rmdir to get rid of
46485         the just-created directory, not unlink.
46486
46487         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46488         configure fail, and request a bug report to inform us about it.
46489         Add a comment that, barring reports to the contrary, in 2007 we'll
46490         assume ftruncate is universally available.
46491
46492         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46493
46494         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46495
46496         2006-03-12  Jim Meyering  <jim@meyering.net>
46497
46498         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46499         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46500         * m4/same.m4 (gl_SAME): Likewise.
46501         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46502
46503         2006-03-11  Eric Blake  <ebb9@byu.net>
46504
46505         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46506         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46507         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46508         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46509
46510 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46511
46512         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46513         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46514         reported by Mark D. Baushke, one in
46515         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46516
46517         Merge from coreutils.
46518
46519         * lib/.cppi-disable: Add stdint_.h.
46520         * lib/.cvsignore: Add stdint.h.
46521
46522         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46523
46524         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46525         both double and long double versions.
46526         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46527         * lib/xstrtold.c: New file.
46528         * lib/xstrtod.h (xstrtold): New decl.
46529
46530         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46531
46532         * lib/filemode.c (setst): Remove.
46533         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46534         (arguably) clearer, and the generated code is a bit smaller on my
46535         Debian GNU/Linux stable x86 host.
46536
46537         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46538
46539         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46540         Assume that filemode.h includes sys/types.h and sys/stat.h.
46541         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46542         (ftypelet): Reorder to put common cases first, for efficiency.
46543         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46544         to do 'M'.
46545         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46546         of 10, for compatibility with FreeBSD.  All callers changed.
46547         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46548         types that can't be deduced solely from st_mode.  First arg is now a
46549         const pointer.
46550         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46551         (strmode): Renamed from mode_string.
46552         (filemodestring): New decl.
46553         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46554         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46555         needed.
46556         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46557
46558         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46559
46560         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46561         fsusage.h now does that.  Include fsusage.h first, to test interface.
46562         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46563         at most one method (the old code could have generated decls that
46564         didn't conform to C89, not that this was ever exercised).
46565         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46566
46567         2006-03-19  Jim Meyering  <jim@meyering.net>
46568
46569         Work even in a chroot where d_ino values for entries in "/"
46570         don't match the stat.st_ino values for the same names.
46571         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46572         number, iterate through all entries again, using lstat instead.
46573         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46574         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46575
46576         * lib/getcwd.c (__getcwd): Clarify a comment.
46577         Use memcpy in place of a call to strcpy.
46578
46579         2006-03-12  Jim Meyering  <jim@meyering.net>
46580
46581         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46582         matches that of the current directory (which we're about to chdir ".."
46583         out of), then save the dev-ino of the parent, instead.
46584
46585         * lib/same-inode.h (SAME_INODE): New file/macro.
46586         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46587         Include "same-inode.h", instead.
46588         * lib/same.c: Likewise.
46589         * lib/cycle-check.h: Include "same-inode.h".
46590         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46591         * lib/cycle-check.c (SAME_INODE): Remove definition.
46592         * lib/root-dev-ino.h: Include "same-inode.h".
46593
46594         2006-03-11  Eric Blake  <ebb9@byu.net>
46595
46596         * lib/same.c (same_name): s/base_name/last_component/
46597         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46598         * lib/filenamecat.c (file_name_concat): Likewise.
46599
46600         2006-03-11  Eric Blake  <ebb9@byu.net>,
46601                     Paul Eggert  <eggert@cs.ucla.edu>
46602
46603         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46604         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46605         drive prefix.
46606         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46607         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46608         (last_component): New method.
46609         * lib/dirname.c (dir_len): Determine when drive letters need a
46610         subsequent slash.  Preserve // when it is special.
46611         (dir_name): Don't append dot when drive letter is absolute.
46612         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46613         * lib/basename.c (base_name): New semantics - malloc the result.
46614         Preserve // when it is special.  Preserve relative files that look
46615         like drive letters.
46616         (base_len): Preserve // when it is special.
46617         (last_component): New method, similar to old base_name semantics.
46618         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46619         base_name.  Strip redundant slashes from ///.
46620
46621 2006-07-03  Jim Meyering  <jim@meyering.net>
46622
46623         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46624         macro is used before the first cycle_check call.
46625
46626 2006-07-03  Eric Blake  <ebb9@byu.net>
46627
46628         * modules/dirname (Depends-on): Add xstrndup.
46629
46630 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46631
46632         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46633         test cases, so that config.log is a bit easier to follow.
46634
46635 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46636
46637         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46638         both are 64 bits, since this seems to be the tradition, and this
46639         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46640         we ever run into a host that prefers long long to long in this
46641         case, we'll need another configure-time test.  Problem reported by
46642         Jim Meyering.
46643
46644 2006-07-02  Eric Blake  <ebb9@byu.net>
46645
46646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46647
46648 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46649
46650         * modules/inttypes (Depends-on): No longer depends on stdint.
46651         * modules/stdint (Description): Say more about assumptions.
46652         Say that the fast types might differ.  Say macros are used.
46653         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46654         (Makefile.am): Revise list of substituted symbols to match
46655         new stdint.m4.
46656         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46657         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46658         * tests/test-stdint.c (verify_same_types)
46659         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46660         the code conforms to C99/C89.
46661         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46662         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46663
46664 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46665
46666         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46667         but fix a bug, by requiring at least 64 bits.
46668         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46669         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46670         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46671         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46672
46673         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46674         changes.  Make 2.59 a prerequisite.  Check and substitute for
46675         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46676         inttypes.h.  Do not use special include files; just use the
46677         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46678         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46679         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46680         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46681         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46682         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46683         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46684         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46685         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46686         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46687         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46688         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46689         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46690         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46691         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46692         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46693         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46694         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46695         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46696         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46697         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46698         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46699         not check for things that C99 does not require, e.g., int8_t.  If
46700         a test isn't needed unless <stdint.h> isn't working, and is
46701         unlikely to be needed for any other reason, then don't do it
46702         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46703         size_t, since we assume C89 freestanding at least.  Do not check
46704         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46705         the right thing even if the types are not defined.  Instead use:
46706         (gl_STDINT_TYPE_PROPERTIES): New macro.
46707         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46708         testing whether <sys/types.h> clashes, as Autoconf does this for
46709         us now.  All uses removed.
46710         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46711         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46712         (gl_CHECK_TYPE_SAME):
46713         Remove; no longer needed.
46714         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46715         exists, since we'll return 0 anyway in that case.
46716         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46717
46718 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46719
46720         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46721         possible collision with system files.
46722         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46723         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46724         WCHAR_MIN and WCHAR_MAX in this case.
46725         (<stddef.h>): Do not include; no longer needed.
46726         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46727         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46728         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46729         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46730         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46731         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46732         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46733         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46734         !defined(__c99))]: Include in this case too, since it's harmless
46735         now.
46736         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46737         dangerous to do so.
46738         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46739         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46740         (_STDINT_MIN, _STDINT_MAX): New macros.
46741         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46742         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46743         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46744         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46745         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46746         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46747         macros, not typedefs; this simplifies things quite a bit.
46748         Use long int for all types narrower than int64_t.
46749         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46750         Define in terms of long long int or int64_t or long int,
46751         not int64_t or int32_t.  This saves some compile-time testing.
46752         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46753         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46754         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46755         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46756         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46757         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46758         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46759         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46760         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46761         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46762         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46763         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46764         undef any previous version and define our own version, for
46765         simplicity and consistency with the new macros for types.
46766         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46767         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46768         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46769         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46770         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46771         @WINT_T_SUFFIX@ to keep things simple here.
46772         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46773         Simplify by assuming typical 8/16/32/64 host, since we're
46774         already doing that elsewhere anyway.
46775         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46776         and assume long long int is 64 bits if available.  This
46777         speeds up 'configure'.
46778
46779 2006-07-01  Eric Blake  <ebb9@byu.net>
46780
46781         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46782         Reported by Andreas Buening.
46783
46784 2006-07-01  Eric Blake  <ebb9@byu.net>
46785
46786         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46787
46788 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46789
46790         * lib/getaddrinfo.c: fixed typo
46791
46792 2006-06-29  Jim Meyering  <jim@meyering.net>
46793
46794         * modules/strftime (Maintainer): Add my name, since with the
46795         FPRINTFTIME changes strftime.c has forked from glibc.
46796
46797 2006-06-29  Eric Blake  <ebb9@byu.net>
46798
46799         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46800
46801 2006-06-29  Eric Blake  <ebb9@byu.net>
46802
46803         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46804
46805 2006-06-29  Eric Blake  <ebb9@byu.net>
46806
46807         * lib/stat_.h: New file.
46808
46809 2006-06-29  Eric Blake  <ebb9@byu.net>
46810
46811         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46812         unused static function.
46813
46814 2006-06-29  Eric Blake  <ebb9@byu.net>
46815
46816         * doc/functions.texi (Function Portability): Document missing lstat
46817         on mingw.
46818
46819 2006-06-29  Eric Blake  <ebb9@byu.net>
46820
46821         * MODULES.html.sh: Add sys_stat.
46822         * modules/sys_stat: New module.
46823         * modules/mkstemp (Depends-on): Add sys_stat.
46824
46825 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46826
46827         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46828
46829 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46830
46831         * m4/c-bs-a.m4: Removed.
46832
46833 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46834
46835         * lib/strftime.c: Assume strftime() exists.
46836
46837 2006-06-29  Derek Price  <derek@ximbiot.com>
46838
46839         * modules/c-bs-a: Removed - \a is C89.
46840         * MODULES.html.sh: Remove c-bs-a.
46841
46842 2006-06-29  Bruno Haible  <bruno@clisp.org>
46843
46844         * modules/wcwidth (License): Change to LGPL.
46845
46846 2006-06-28  Simon Josefsson  <jas@extundo.com>
46847
46848         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46849         on _WIN32.
46850
46851         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46852         getnameinfo.
46853
46854 2006-06-28  Simon Josefsson  <jas@extundo.com>
46855
46856         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46857
46858 2006-06-28  Simon Josefsson  <jas@extundo.com>
46859
46860         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46861         functions there.  It will succeed on Windows XP, but on Windows
46862         2000 and (presumably) earlier, it will fail, and use the internal
46863         re-implementation.
46864         (use_win32_p): New function.
46865         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46866         Support AI_NUMERICSERV to disable getservbyname.
46867         (getnameinfo): New function, only supports
46868         NI_NUMERICHOST|NI_NUMERICSERV for now.
46869
46870         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46871         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46872         getnameinfo.
46873
46874 2006-06-28  Eric Blake  <ebb9@byu.net>
46875
46876         * modules/wcwidth: New file.
46877         * modules/mbchar (Depends-on): Add wcwidth.
46878         * modules/mbswidth (Depends-on): Add wcwidth.
46879         * MODULES.html.sh: Add wcwidth.
46880
46881 2006-06-28  Eric Blake  <ebb9@byu.net>
46882
46883         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46884         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46885
46886 2006-06-28  Eric Blake  <ebb9@byu.net>
46887
46888         * lib/xvasprintf.h: Fix comments.
46889
46890 2006-06-28  Eric Blake  <ebb9@byu.net>
46891
46892         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46893         * lib/mbswidth.c (wcwidth): Move from here...
46894         * lib/wcwidth.h: ...to this new file.
46895
46896 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46897
46898         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46899
46900         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46901         it's obsolete.
46902         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46903
46904 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46905
46906         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46907         Autoconf 2.60 says this stuff was obsolete.
46908
46909 2006-06-28  Bruno Haible  <bruno@clisp.org>
46910
46911         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46912
46913 2006-06-28  Bruno Haible  <bruno@clisp.org>
46914
46915         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46916         gt_TYPE_WCHAR_T.
46917
46918 2006-06-28  Bruno Haible  <bruno@clisp.org>
46919
46920         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46921         declaration for wcwidth.
46922         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46923
46924 2006-06-28  Bruno Haible  <bruno@clisp.org>
46925
46926         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46927         (mkdir): Define using _mkdir.
46928
46929 2006-06-28  Bruno Haible  <bruno@clisp.org>
46930
46931         * lib/getaddrinfo.h: Fix POSIX URL.
46932         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46933         _WIN32.
46934         (use_win32_p): Make static.
46935         (getaddrinfo): Reject service name if it is empty or does not consist
46936         solely of decimal digits, or if its value is > 65535.
46937         (getnameinfo): Remove useless casts.
46938
46939 2006-06-27  Simon Josefsson  <jas@extundo.com>
46940
46941         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46942         Eggert and Martin Lambers.
46943
46944 2006-06-27  Simon Josefsson  <jas@extundo.com>
46945
46946         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46947         Eggert and Martin Lambers.
46948
46949 2006-06-27  Bruno Haible  <bruno@clisp.org>
46950
46951         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46952         result to 0, not to empty.
46953         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46954
46955 2006-06-27  Bruno Haible  <bruno@clisp.org>
46956
46957         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46958
46959 2006-06-26  Simon Josefsson  <jas@extundo.com>
46960
46961         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46962         present.
46963
46964 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46965
46966         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46967         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46968         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46969
46970 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46971
46972         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46973
46974 2006-06-26  Bruno Haible  <bruno@clisp.org>
46975
46976         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46977
46978 2006-06-26  Bruno Haible  <bruno@clisp.org>
46979
46980         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46981
46982 2006-06-26  Bruno Haible  <bruno@clisp.org>
46983
46984         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46985         SGI C compiler in pre-C99 mode.
46986         Suggested by Mark D. Baushke and Larry Jones.
46987
46988 2006-06-26  Bruno Haible  <bruno@clisp.org>
46989
46990         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46991         WCHAR_MAX.
46992         Reported by Mark D. Baushke and Larry Jones.
46993
46994 2006-06-26  Bruno Haible  <bruno@clisp.org>
46995
46996         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46997         in pre-C99 mode.
46998         Suggested by Mark D. Baushke and Larry Jones.
46999
47000 2006-06-23  Simon Josefsson  <jas@extundo.com>
47001             Bruno Haible  <bruno@clisp.org>
47002
47003         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
47004         Emit mostlyclean-local rule.
47005         (func_emit_tests_Makefile_am): Likewise.
47006         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
47007
47008 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
47009
47010         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
47011
47012 2006-06-23  Bruno Haible  <bruno@clisp.org>
47013
47014         * tests/test-stdint.c: Update to match ISO C 99 Technical
47015         Corrigendum 1.
47016
47017 2006-06-23  Bruno Haible  <bruno@clisp.org>
47018
47019         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
47020
47021 2006-06-23  Bruno Haible  <bruno@clisp.org>
47022
47023         * lib/stdint_.h: Treat IRIX like OpenBSD.
47024
47025 2006-06-23  Bruno Haible  <bruno@clisp.org>
47026
47027         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
47028         ISO C 99 Technical Corrigendum 1.
47029
47030 2006-06-22  Simon Josefsson  <jas@extundo.com>
47031
47032         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
47033         MinGW.
47034
47035 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47036
47037         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
47038         needed.  Some compiler complained about some of them.  Problem reported
47039         by Larry Jones in
47040         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
47041
47042 2006-06-21  Simon Josefsson  <jas@extundo.com>
47043
47044         * tests/test-getaddrinfo.c: New file.
47045
47046         * modules/getaddrinfo-tests: New file.
47047
47048         * MODULES.html.sh: Add inet_pton.
47049
47050         * modules/inet_pton: New file.
47051
47052 2006-06-21  Simon Josefsson  <jas@extundo.com>
47053
47054         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
47055         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
47056         of using the (limited) gnulib implementation on Windows XP.
47057
47058         * m4/inet_pton.m4: New file.
47059
47060 2006-06-21  Simon Josefsson  <jas@extundo.com>
47061
47062         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
47063         variable.
47064
47065         * lib/socket_.h: Don't define WINVER.
47066
47067         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
47068         slightly modified to work in gnulib.
47069
47070 2006-06-21  Simon Josefsson  <jas@extundo.com>
47071
47072         * doc/gnulib.texi (Windows sockets): Add.
47073
47074 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47075
47076         * lib/read-file.c (fread_file): Start with buffer allocation of
47077         0 bytes rather than 1 byte; this simplifies the code.
47078         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
47079         code to free buffer and save/restore errno.
47080         (internal_read_file): Remove unused local.
47081
47082 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47083
47084         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
47085         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
47086         Problem reported by Denis Excoffier in
47087         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
47088
47089 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47090
47091         * modules/sys_socket, modules/socklen: Include sys/types since
47092         FreeBSD 4.x's sys/socket.h needs it.
47093
47094 2006-06-19  Simon Josefsson  <jas@extundo.com>
47095
47096         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47097
47098 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47099
47100         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47101
47102 2006-06-19  Bruno Haible  <bruno@clisp.org>
47103
47104         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47105         and FULL_PATH_INTTYPES_H in angle brackets.
47106         Reported by Mark D. Baushke <mdb@gnu.org>.
47107
47108 2006-06-17  Eric Blake  <ebb9@byu.net>
47109
47110         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47111         errno.
47112
47113 2006-06-17  Bruno Haible  <bruno@clisp.org>
47114
47115         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47116         <sys/inttypes.h>.
47117
47118 2006-06-17  Bruno Haible  <bruno@clisp.org>
47119
47120         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47121         whether errno is declared. Assume <errno.h> declares errno.
47122
47123 2006-06-17  Bruno Haible  <bruno@clisp.org>
47124
47125         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47126
47127 2006-06-17  Bruno Haible  <bruno@clisp.org>
47128
47129         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47130         problem on Solaris 2.5.1.
47131
47132 2006-06-16  Eric Blake  <ebb9@byu.net>
47133
47134         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47135         * lib/unicodeio.c [!defined errno]: Likewise.
47136         * lib/strtol.c [!defined errno]: Likewise.
47137         * lib/strtod.c [!defined errno]: Likewise.
47138
47139 2006-06-15  Eric Blake  <ebb9@byu.net>
47140
47141         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47142
47143 2006-06-15  Eric Blake  <ebb9@byu.net>
47144
47145         * config/srclist.txt (ssize_t.m4): Lose sync.
47146
47147 2006-06-15  Bruno Haible  <bruno@clisp.org>
47148
47149         * modules/stdint (Files): Include m4/full-header-path.m4,
47150         m4/size_max.m4, m4/wchar_t.m4.
47151         (Makefile.am): Many more substitutions.
47152         * modules/stdint-tests: New file.
47153         * tests/test-stdint.c: New file.
47154
47155 2006-06-15  Bruno Haible  <bruno@clisp.org>
47156
47157         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47158         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47159         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47160         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47161         gl_CHECK_TYPE_SAME): New macros.
47162
47163 2006-06-15  Bruno Haible  <bruno@clisp.org>
47164
47165         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47166
47167 2006-06-15  Bruno Haible  <bruno@clisp.org>
47168
47169         * lib/stdint_.h: Rewritten to be fully auto-configured.
47170         Fixes bug on HP-UX/IA64.
47171
47172 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47173
47174         * lib/getdate.y (__attribute__): Don't define if already defined.
47175         Problem reported by Larry Jones.
47176         * lib/utimens.c (__attribute__): Likewise.
47177
47178 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47179
47180         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47181         reported by Andreas Schwab.
47182
47183 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47184             Bruno Haible  <bruno@clisp.org>
47185
47186         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47187         check for the declaration of strnlen and a run test that exposes the
47188         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47189         rpl_strndup.
47190
47191 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47192             Bruno Haible  <bruno@clisp.org>
47193
47194         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47195
47196 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47197
47198         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47199         compile test, for Tru64 4.0D.
47200
47201 2006-05-28  Karl Berry  <karl@gnu.org>
47202
47203         * config/srclist.txt (printf-args.c): lose sync.
47204
47205 2006-05-26  Martin Lambers  <marlam@marlam.de>
47206
47207         * lib/getpass.c: Updates the test for the native W32 API, and adds
47208         missing includes, thus fixing compilation warnings.
47209
47210 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47211
47212         * lib/exclude.c (exclude_fnmatch): New function.
47213         (excluded_file_name): Call exclude_fnmatch.
47214         * lib/exclude.h (excluded_file_name): New prototype
47215
47216 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47217
47218         * lib/tempname.c (small_open, large_open): New macros.
47219         (__open, __open64) [!_LIBC]: Remove.
47220         (__gen_tempname): Use small_open and large_open instead of __open
47221         and __open64.  This fixes a portability bug on HP-UX 11.11i
47222         reported by Simon Wing-Tang in
47223         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47224
47225 2006-05-24  Bruno Haible  <bruno@clisp.org>
47226
47227         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47228         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47229         Reported by Thorsten Maerz <torte@netztorte.de> via
47230         Aaron Stone <aaron@serendipity.cx>.
47231
47232 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47233
47234         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47235         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47236         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47237         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47238         not really conditional on the cache.
47239         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47240
47241 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47242
47243         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47244         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47245         (my_usleep): Don't mishandle maximum value.
47246
47247 2006-05-19  Jim Meyering  <jim@meyering.net>
47248
47249         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47250
47251 2006-05-17  Bruno Haible  <bruno@clisp.org>
47252
47253         Cygwin portability.
47254         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47255
47256 2006-05-17  Bruno Haible  <bruno@clisp.org>
47257
47258         * lib/stdint_.h: Fix recognition of Cygwin.
47259
47260 2006-05-15  Bruno Haible  <bruno@clisp.org>
47261
47262         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47263         on libtool patch by Ralf Wildenhues.
47264
47265 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47266
47267         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47268         test for C99 conformance; (bool) 0.5 is an integer constant
47269         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47270         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47271
47272 2006-05-11  Simon Josefsson  <jas@extundo.com>
47273
47274         * m4/xvasprintf.m4: Fix obvious typo.
47275
47276 2006-05-11  Jim Meyering  <jim@meyering.net>
47277
47278         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47279         James Lemley.
47280
47281 2006-05-10  Simon Josefsson  <jas@extundo.com>
47282
47283         * lib/md4.c: Typo fix, update copyright years.
47284         (K1, K2): Don't use L because it turn computations into 64-bit on
47285         64-bit platforms.
47286
47287 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47288
47289         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47290         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47291         unwanted sign propagation, e.g., on hosts with 64-bit int.
47292         There still are some problems with reeelly weird theoretical hosts
47293         (e.g., 33-bit int) but it's not worth worrying about now.
47294         * lib/sha1.c (rol): Likewise.
47295         (K1, K2, K3, K4): Remove unnecessary L suffix.
47296
47297 2006-05-10  Bruno Haible  <bruno@clisp.org>
47298
47299         * lib/des.c: Cast to avoid warnings.
47300
47301 2006-05-09  Bruno Haible  <bruno@clisp.org>
47302
47303         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47304         (Depends-on): Depend also on xsize, stdarg.
47305         (configure.ac): Add gl_XVASPRINTF.
47306
47307 2006-05-09  Bruno Haible  <bruno@clisp.org>
47308
47309         * m4/xvasprintf.m4: New file.
47310
47311 2006-05-09  Bruno Haible  <bruno@clisp.org>
47312
47313         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47314         (EOVERFLOW): Define fallback value.
47315         (xstrcat): New function.
47316         (xvasprintf): Recognize the special case of a string concatenation.
47317
47318 2006-05-08  Eric Blake  <ebb9@byu.net>
47319
47320         * gnulib-tool (func_version): Base copyright year on CVS date.
47321         (func_emit_copyright_notice): New function.
47322         (func_emit_lib_Makefile_am): Use it.
47323         (func_emit_tests_Makefile_am): Likewise.
47324         (func_import): Likewise.
47325
47326 2006-05-08  Bruno Haible  <bruno@clisp.org>
47327
47328         * modules/stdarg: New file.
47329         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47330
47331 2006-05-08  Bruno Haible  <bruno@clisp.org>
47332
47333         * m4/stdarg.m4: New file, from GNU gettext.
47334
47335 2006-05-08  Bruno Haible  <bruno@clisp.org>
47336
47337         * config/srclist.txt (build-aux/config.rpath): different from latest
47338         release.
47339
47340 2006-05-08  Bruno Haible  <bruno@clisp.org>
47341
47342         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47343
47344 2006-05-05  Jim Meyering  <jim@meyering.net>
47345
47346         * m4/warning.m4: New file, derived from bison's file by the same name.
47347
47348 2006-05-03  Bruno Haible  <bruno@clisp.org>
47349
47350         * lib/stdint_.h: Shorter URL.
47351         * lib/inttypes.h: Likewise.
47352
47353 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47354
47355         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47356
47357 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47358
47359         * lib/verify.h: Document the internals better.  Most of this change
47360         was written by Bruno Haible.
47361
47362 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47363
47364         * doc/verify.texi: New file, partly based on a proposal by
47365         Bruno Haible.
47366
47367 2006-05-02  Bruno Haible  <bruno@clisp.org>
47368
47369         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47370         test from here...
47371         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47372
47373 2006-04-29  Bruno Haible  <bruno@clisp.org>
47374
47375         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47376         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47377
47378 2006-04-29  Bruno Haible  <bruno@clisp.org>
47379
47380         * gnulib-tool: Make --update option actually work.
47381
47382 2006-04-29  Bruno Haible  <bruno@clisp.org>
47383
47384         * doc/gcd.texi: New file.
47385         * doc/gnulib.texi: Include it.
47386
47387 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47388
47389         * lib/getdate.y (get_date): When adding relative date, start with the
47390         initial time, not with the result of the first mktime call.
47391
47392 2006-04-25  Bruno Haible  <bruno@clisp.org>
47393
47394         * gnulib-tool (func_import): Output the include directives in three
47395         blocks, sorted separately.
47396         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47397
47398 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47399
47400         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47401         to define main with arguments, for C++.  Reported by Eric Blake.
47402         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47403         Prefer 'int main ()' to 'int main (void)', for C++.
47404         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47405         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47406         for 'main', for C99 and C++.
47407
47408 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47409
47410         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47411         Don't assume that exit status -1 is valid.
47412         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47413         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47414         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47415         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47416         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47417         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47418         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47419         functions can be used without declaring them, or that you can
47420         exit with status -1.
47421         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47422
47423 2006-04-24  Karl Berry  <karl@gnu.org>
47424
47425         * config/srclist.txt (longdouble.m4): sync lost.
47426
47427 2006-04-24  Eric Blake  <ebb9@byu.net>
47428
47429         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47430
47431 2006-04-24  Bruno Haible  <bruno@clisp.org>
47432
47433         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47434         poll() implementation in AIX.
47435         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47436
47437 2006-04-24  Bruno Haible  <bruno@clisp.org>
47438
47439         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47440         assigned exactly once.
47441
47442 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47443             Bruno Haible  <bruno@clisp.org>
47444
47445         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47446         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47447         for AM_CPPFLAGS.
47448
47449 2006-04-23  Bruno Haible  <bruno@clisp.org>
47450
47451         * modules/copy-file: Depend on unistd.
47452         * modules/execute: Likewise.
47453         * modules/fatal-signal: Likewise.
47454         * modules/findprog: Likewise.
47455         * modules/mkdtemp : Likewise.
47456         * modules/pipe: Likewise.
47457         * modules/wait-process: Likewise.
47458
47459 2006-04-23  Bruno Haible  <bruno@clisp.org>
47460
47461         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47462         condition was already detected.
47463         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47464
47465 2006-04-23  Bruno Haible  <bruno@clisp.org>
47466
47467         * lib/copy-file.c: Include <unistd.h> unconditionally.
47468         * lib/execute.c: Likewise.
47469         * lib/fatal-signal.c: Likewise.
47470         * lib/findprog.c: Likewise.
47471         * lib/mkdtemp.c: Likewise.
47472         * lib/pipe.h: Likewise.
47473         * lib/pipe.c: Likewise.
47474         * lib/wait-process.h: Likewise.
47475
47476 2006-04-23  Bruno Haible  <bruno@clisp.org>
47477
47478         * gnulib-tool (func_usage): Fix --import description. Document
47479         --update.
47480         (func_import): Create temporary file in a temporary directory, if
47481         --dry-run is specified. Silence errors from 'grep' when there are no
47482         m4 files in $m4dir.
47483         (func_create_testdir): Silence errors from 'grep' when there are no
47484         m4 files in $m4dir.
47485         Reported by Karl Berry <karl@freefriends.org>.
47486
47487 2006-04-20  Bruno Haible  <bruno@clisp.org>
47488
47489         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47490         one argument, so that the code will be portable to Autoconf 2.60.
47491         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47492         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47493         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47494
47495 2006-04-19  Derek Price  <derek@ximbiot.com>
47496             Eric Blake  <ebb9@byu.net>
47497
47498         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47499         rather than "/full/path.h".  Update comment to match.  Shorten &
47500         generalize m4_translit call via AS_TR_CPP.
47501
47502 2006-04-19  Derek Price  <derek@ximbiot.com>
47503             Eric Blake  <ebb9@byu.net>
47504
47505         * lib/inttypes.h: Correct grammar in comment.
47506
47507 2006-04-18  Derek Price  <derek@ximbiot.com>
47508             Paul Eggert  <eggert@cs.ucla.edu>
47509
47510         * modules/inttypes: New file.
47511         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47512
47513 2006-04-18  Derek Price  <derek@ximbiot.com>
47514             Paul Eggert  <eggert@cs.ucla.edu>
47515
47516         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47517         New files.
47518
47519 2006-04-18  Derek Price  <derek@ximbiot.com>
47520             Paul Eggert  <eggert@cs.ucla.edu>
47521
47522         * lib/inttypes.h: New file.
47523         * lib/strtoimax.c: Assume <inttypes.h>.
47524
47525 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47526
47527         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47528         isn't mounted.  Problem reported by Kir Kolyshkin.
47529
47530 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47531
47532         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47533         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47534         Derek R. Price.
47535         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47536         implementation.
47537
47538 2006-04-12  Eric Blake  <ebb9@byu.net>
47539
47540         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47541         is now done automatically by the corresponding Autoconf macro.
47542
47543 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47544
47545         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47546         time_r.h.
47547
47548 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47549
47550         Merge regex changes from libc, removing some of our
47551         POSIX-conformance changes that were rejected and redoing them in a
47552         less-intrusive way.
47553
47554         * lib/regcomp.c (re_compile_internal, init_dfa):
47555         Length arg is now size_t, not Idx.  All uses changed.
47556         (peek_token): Forward decl now says internal_function.
47557         (__re_error_msgid, __re_error_msgid_idx):
47558         Now static rather than extern with attribute_hidden.
47559         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47560         For some reason libc prefers K&R style defns for external functions.
47561         (regerror) [!defined _LIBC]: Likewise.
47562         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47563         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47564         (build_range_exp, build_collating_symbol):
47565         Use K&R-style defn.
47566         (re_compile_fastmap): Use '\0' to memset, not 0.
47567         (utf8_sb_map): Make the calculations more obvious.
47568         (init_dfa, parse_bracket_exp, build_charclass_op):
47569         Call calloc and cast result, as glibc does.
47570         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47571         (build_range_exp, build_collating_symbol):
47572         Now internal functions.
47573
47574         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47575
47576         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47577         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47578         Don't depend on VMS; depend on __VMS instead, for POSIX
47579         namespace cleanness.
47580         (regoff_t): Define to ssize_t, not long int.
47581
47582         Remove the REG_ macros named below.  Instead, make the old names
47583         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47584         __USE_GNU_REGEX.
47585         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47586         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47587         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47588         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47589         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47590         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47591         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47592         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47593         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47594         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47595         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47596         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47597         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47598         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47599         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47600         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47601         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47602         (REG_NREGS):
47603         Remove.  All uses replaced by the old RE_* names.
47604         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47605         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47606         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47607         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47608         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47609         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47610         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47611         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47612         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47613         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47614         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47615         Don't bother having these macros be independent of each others'
47616         values, since they no longer exist in the POSIX name space.
47617
47618         Rename the following member names back to their old names,
47619         unless !__USE_GNU_REGEX.  All uses changed back.
47620         (buffer): Renamed from re_buffer.
47621         (allocated): Renamed from re_allocated.
47622         (used): Renamed from re_used.
47623         (syntax): Renamed from re_syntax.
47624         (fastmap): Renamed from re_fastmap.
47625         (translate): Renamed from re_translate.
47626         (can_be_null): Renamed from re_can_be_null.
47627         (regs_allocated): Renamed from re_regs_allocated.
47628         (fastmap_accurate): Renamed from re_fastmap_accurate.
47629         (no_sub): Renamed from re_no_sub.
47630         (not_bol): Renamed from re_not_bol.
47631         (not_eol): Renamed from re_not_eol.
47632         (newline_anchor): Renamed from re_newline_anchor.
47633         (num_regs): Renamed from rm_num_regs.
47634         (start): Renamed from rm_start.
47635         (end): Renamed from rm_end.
47636
47637         (free_state): Move up a bit.
47638
47639         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47640         #define to be empty.
47641         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47642         when that is what is intended.
47643         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47644         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47645         (MAX): New macro.
47646         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47647         All uses changed back to re_malloc, etc.  It's now the caller's
47648         responsibility to check for overflow; all callers changed.
47649         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47650         (re_x2nrealloc): Remove.
47651         (free_state): Remove decl.
47652
47653         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47654         (re_set_registers, re_exec):
47655         Use K&R-style defn.
47656
47657         2006-01-31  Roland McGrath  <roland@redhat.com>
47658
47659         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47660         Reported by Mike Frysinger <vapier@gentoo.org>.
47661
47662         2006-01-15  Andreas Jaeger  <aj@suse.de>
47663
47664         [BZ #1950]
47665         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47666         build_wcs_upper_buffer change.
47667         (build_wcs_upper_buffer): Change return type.
47668
47669         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47670
47671         * lib/regex_internal.h: Include <stdint.h> if available.
47672
47673         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47674
47675         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47676
47677         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47678
47679         * lib/regcomp.c: Adjust for changed secondary hash function.
47680
47681         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47682
47683         * lib/regex.h: Pretty printing.
47684         Clean up namespace a bit.
47685
47686         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47687
47688         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47689         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47690
47691         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47692                     Ulrich Drepper  <drepper@redhat.com>
47693
47694         [BZ #1302]
47695         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47696         changed.
47697         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47698
47699         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47700
47701         [BZ #281]
47702         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47703         * lib/regcomp.c: Remove unnecessary uses of
47704         unsigned RE_TRANSLATE_TYPE.
47705         * lib/regex_internal.h: Likewise.
47706         * lib/regex_internal.c: Likewise.
47707         * lib/regexec.c: Likewise.
47708         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47709
47710         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47711
47712         * lib/regexec.c (find_recover_state): Remove unnecessary
47713         initialization.
47714         (transit_state_bkref): Make DFA a const pointer.
47715         (get_subexp): Likewise.
47716         (check_arrival): Likewise.
47717         (update_cur_sifted_state): Likewise.
47718         (re_search_internal): Likewise.
47719         (prune_impossible_nodes): Likewise.
47720         (acquire_init_state_context): Likewise.
47721         (proceed_next_node): Likewise.
47722         (set_regs): Likewise.
47723         (free_fail_stack_return): Likewise.
47724         (check_arrival_expand_ecl): Mark DFA parameter as const.
47725         (check_arrival_expand_ecl_sub): Likewise.
47726         (check_subexp_limits): Likewise.
47727         (sub_epsilon_src_nodes):  Likewise.
47728         (add_epsilon_src_nodes):  Likewise.
47729         (merge_state_array): Likewise.
47730         (update_regs): Likewise.
47731         (build_trtable): Likewise.
47732         (sift_states_backward): Mark MCTX parameter as const.
47733         (build_sifted_states): Likewise.
47734         (update_cur_sifted_state): Likewise.
47735         (sift_states_mkref): Likewise.
47736         (check_arrival_expand_ecl): Mark eclosure as const.
47737         (check_dst_limits_calc_pos_1): Likewise.
47738         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47739         pointer.
47740
47741         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47742
47743         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47744         (transit_state_sb): Likewise.
47745         (transit_state_mb): Likewise.
47746         (sift_states_iter_mb): Likewise.
47747         (check_arrival_add_next_nodes): Likewise.
47748         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47749         [_LIBC] (re_search_2_stub): Use mempcpy.
47750
47751         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47752         mbrtowc for very simple UTF-8 case.
47753
47754         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47755         a pointer-to-const.
47756         (re_acquire_state_context): Likewise.
47757         * lib/regex_internal.h: Adjust prototypes.
47758
47759         * lib/regex.c: Prevent using C++ compilers.
47760
47761         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47762         (re_acquire_state_context): Likewise.
47763
47764 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47765
47766         * modules/regex (Depends-on): Add ssize_t.
47767
47768 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47769
47770         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47771         translation table.
47772
47773 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47774
47775         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47776
47777 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47778             Bruno Haible  <bruno@clisp.org>
47779
47780         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47781         <sys/types.h> and <inttypes.h>.
47782
47783 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47784
47785         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47786         `__error_t_defined', so argp.h will not typedef the former.
47787
47788 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47789
47790         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47791         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47792         glibc names.  Even if glibc is changed to conform to POSIX, the
47793         traditional names will be available anyway, since regex depends on
47794         the extensions module.  Also, fix a longstanding typo in the
47795         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47796         reported by Emanuele Giaquinta.  Also, change sense of cached
47797         variable, so that the message makes sense.
47798
47799 2006-03-24  Simon Josefsson  <jas@extundo.com>
47800
47801         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47802         including some doc fixes.
47803         (base64_encode_alloc): Fix +1 bug on allocation failures.
47804
47805 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47806
47807         * lib/base64.c (base64_encode): Do not read past end of array with
47808         unsanitized input on systems with CHAR_BIT > 8.
47809
47810 2006-03-24  Eric Blake  <ebb9@byu.net>
47811
47812         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47813
47814 2006-03-22  Karl Berry  <karl@gnu.org>
47815
47816         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47817         * config/srclistvars.sh (COREUTILS): new var.
47818
47819 2006-03-17  Jim Meyering  <jim@meyering.net>
47820
47821         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47822         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47823
47824 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47825
47826         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47827         no longer needs it.  Instead, check that regoff_t is as least
47828         as wide as ptrdiff_t.
47829
47830         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47831         so that our regex.h stays compatible with the installed regex.
47832         This is helpful for installers who configure --without-included-regex.
47833         Problem reported by Emanuele Giaquinta.
47834
47835 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47836
47837         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47838         Typedef to long int, not to off_, as POSIX will likely change
47839         in that direction.
47840
47841 2006-03-15  Eric Blake  <ebb9@byu.net>
47842
47843         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47844
47845 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47846
47847         * lib/argp-help.c (validate_uparams): Fix typo
47848         * lib/argp-parse.c (argp_default_options): Consistently begin help
47849         messages with a lowercase letter.
47850
47851 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47852
47853         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47854         overrun buffers and shouldn't be used (much as gets shouldn't be
47855         used).
47856         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47857
47858 2006-03-08  Simon Josefsson  <jas@extundo.com>
47859
47860         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47861         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47862
47863 2006-03-08  Simon Josefsson  <jas@extundo.com>
47864
47865         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47866         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47867
47868 2006-03-08  Simon Josefsson  <jas@extundo.com>
47869
47870         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47871         signal that configure disabled the device.
47872
47873 2006-03-08  Simon Josefsson  <jas@extundo.com>
47874
47875         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47876         languages.
47877
47878 2006-03-07  Simon Josefsson  <jas@extundo.com>
47879
47880         * modules/getopt (Depends-on): Add unistd.
47881
47882         * modules/unistd: New file.
47883
47884 2006-03-07  Simon Josefsson  <jas@extundo.com>
47885
47886         * modules/gc-random: New file.
47887
47888 2006-03-07  Simon Josefsson  <jas@extundo.com>
47889
47890         * m4/unistd_h.m4: New file.
47891
47892 2006-03-07  Simon Josefsson  <jas@extundo.com>
47893
47894         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47895         test to be side-effect free by storing the result in the cache
47896         variable gl_cv_lib_readline, and moving the assignment of
47897         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47898         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47899
47900 2006-03-07  Simon Josefsson  <jas@extundo.com>
47901
47902         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47903         error on missing devices (the functions will return an error).
47904
47905         * m4/gc.m4: Move random stuff to gc-random.m4
47906
47907 2006-03-07  Simon Josefsson  <jas@extundo.com>
47908
47909         * lib/unistd_.h: New file.
47910
47911 2006-03-07  Simon Josefsson  <jas@extundo.com>
47912
47913         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47914
47915 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47916
47917         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47918         Problem reported by Juan Manuel Guerrero.
47919
47920 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47921
47922         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47923         the unistd module.
47924         * lib/getlogin_r.c: Likewise.
47925         * lib/getlogin_r.h: Likewise.
47926         * lib/glob.c: Likewise.
47927         * lib/pagealign_alloc.c: Likewise.
47928         * lib/unistd_.h: Remove; no longer needed.
47929
47930 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47931
47932         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47933         Add unistd.
47934         * modules/c-stack (Depends-on): Add unistd.
47935         * modules/getlogin_r: Likewise.
47936         * modules/glob: Likewise.
47937         * modules/pagealign_alloc: Likewise.
47938         * modules/unistd (Files): Remove lib/unistd_.h.
47939         (EXTRA_DIST): Remove.
47940         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47941         need unistd_.h.
47942         (MOSTLYCLEANFILES): Remove unistd.h-t.
47943
47944 2006-03-03  Simon Josefsson  <jas@extundo.com>
47945
47946         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47947
47948 2006-03-03  Simon Josefsson  <jas@extundo.com>
47949
47950         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47951         libidn and bison.
47952
47953 2006-03-03  Simon Josefsson  <jas@extundo.com>
47954
47955         * build-aux/maint.mk: Add indent target.
47956
47957 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47958
47959         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47960         our replacement poll.h in any case, to avoid a differing
47961         declaration from a system header.  Seen on AIX.
47962
47963 2006-03-01  Simon Josefsson  <jas@extundo.com>
47964
47965         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47966         <kasal@ucw.cz>.
47967
47968 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47969
47970         * modules/gettime (Depends-on): Add extensions module.
47971         * modules/nanosleep (Depends-on): Likewise.
47972         * modules/settime (Depends-on): Likewise.
47973
47974 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47975
47976         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47977         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47978         pedantically.
47979         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47980         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47981
47982         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47983         not "==".  Reported by Ralf Wildenhues.
47984
47985 2006-03-01  Karl Berry  <karl@gnu.org>
47986
47987         * doc/Copyright/request-*: new files, synced from gnuorg.
47988
47989 2006-03-01  Karl Berry  <karl@gnu.org>
47990
47991         * config/srclist.txt (Copyright/*): new entries.
47992
47993 2006-02-28  Simon Josefsson  <jas@extundo.com>
47994
47995         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47996
47997 2006-02-27  Simon Josefsson  <jas@extundo.com>
47998
47999         * lib/base64.h: Indent #define's.  From Jim Meyering
48000         <jim@meyering.net>.
48001
48002 2006-02-27  Jim Meyering  <jim@meyering.net>
48003
48004         Revert the change of 2006-02-24, so these files can continue
48005         to be sync'd from gettext.
48006         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
48007         of `config.h'.
48008
48009 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
48010
48011         * modules/intprops: New file.
48012         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48013         Add intprops.
48014         * modules/getloadavg (Files): Remove lib/intprops.h.
48015         (Depends-on): Add intprops.
48016         * modules/human: Likewise.
48017         * modules/inttostr: Likewise.
48018         * modules/openat: Likewise.
48019         * modules/sig2str: Likewise.
48020         * modules/userspec: Likewise.
48021         * modules/utimecmp: Likewise.
48022         * modules/xnanosleep: Likewise.
48023         * modules/xstrtol: Likewise.
48024
48025 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
48026
48027         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
48028         * modules/lock-tests (TESTS): Use $(EXEEXT).
48029         * modules/tls-tests: Likewise.
48030         * modules/argp-tests: Likewise.
48031         (check_PROGRAMS): New var, replacing...
48032         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
48033
48034 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48035
48036         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
48037         `config.h'.
48038
48039 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48040
48041         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
48042
48043 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48044
48045         Sync from coreutils.
48046         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
48047         gl_CHDIR_SAFER.
48048
48049 2006-02-22  Jim Meyering  <jim@meyering.net>
48050
48051         Sync from coreutils.
48052         * m4/chdir-safer.m4: New file.
48053
48054 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48055
48056         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
48057         AT_FDCWD exceeds INT_MAX.
48058         * lib/openat.h (AT_FDCWD): Likewise.
48059
48060 2006-02-17  Eric Blake  <address@hidden>
48061
48062         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
48063
48064 2006-02-16  Simon Josefsson  <jas@extundo.com>
48065
48066         * modules/getaddrinfo (Depends-on): Add sys_socket.
48067
48068 2006-02-15  Simon Josefsson  <jas@extundo.com>
48069
48070         * build-aux/maint.mk: Add dsyntax-check rule.
48071
48072 2006-02-15  Eric Blake  <ebb9@byu.net>
48073
48074         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
48075         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
48076         'present but cannot compile' warnings on cygwin.
48077         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
48078         use ws2tcpip.h if sys/socket.h works.
48079         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
48080         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
48081
48082 2006-02-14  Simon Josefsson  <jas@extundo.com>
48083
48084         * modules/maintainer-makefile (Files): Rename.
48085
48086         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
48087         and (the local) Makefile.cfg to maint-cfg.mk.
48088
48089         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
48090         to the latter.
48091
48092         * modules/maintainer-makefile: New module.
48093
48094         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48095         severaly stripped to make it possible to build it up from scratch
48096         with reliable tests.
48097
48098         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48099         fixes to permit overriding the default actions when configure and
48100         makefile are not available.
48101
48102 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48103
48104         Sync from coreutils.
48105         * modules/lstat (Depends-on): Don't depend on xalloc.
48106         (License): Change from GPL to LGPL, since this is now simply a
48107         replacement for a libc function.
48108
48109 2006-02-14  Jim Meyering  <jim@meyering.net>
48110
48111         Sync from coreutils.
48112
48113         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48114         failure on deficient systems, and simplify gnulib lgpl dependencies.
48115         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48116         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48117
48118         * lib/xalloc-die.c: Remove unused definition of N_.
48119
48120 2006-02-14  Jim Meyering  <jim@meyering.net>
48121
48122         Sync from coreutils.
48123         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48124         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48125         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48126         double-quote uses of that variable, to accommodate the rare case in
48127         which getmntent is available in none of the libraries checked.  This
48128         happens at least on FreeBSD 5.0.
48129
48130 2006-02-13  Simon Josefsson  <jas@extundo.com>
48131
48132         * gnulib-tool (Usage): Fix --import, from
48133         karl@freefriends.org (Karl Berry).
48134
48135 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48136
48137         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48138
48139 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48140
48141         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48142         "autoupdate" on 2005-12-12.
48143
48144 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48145
48146         * modules/closeout (Depends-on): Remove atexit.
48147
48148 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48149
48150         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48151         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48152
48153 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48154
48155         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48156         __EXTENSIONS__ if this causes compilation to fail.  Problem
48157         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48158         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48159
48160 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48161
48162         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48163         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48164         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48165         All uses changed.
48166
48167 2006-01-26  Simon Josefsson  <jas@extundo.com>
48168
48169         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48170         prototype is visible on mingw32.
48171
48172         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48173         for mingw32.
48174
48175         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48176         mingw32).
48177
48178 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48179
48180         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48181         attempt to open for write; this always fails, at least on POSIX
48182         hosts.  This reinstates the 2006-01-09 change, which was
48183         inadvertently removed.
48184
48185 2006-01-26  Bruno Haible  <bruno@clisp.org>
48186
48187         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48188         Reported by Paul Eggert.
48189
48190 2006-01-26  Bruno Haible  <bruno@clisp.org>
48191             Paul Eggert  <eggert@cs.ucla.edu>
48192
48193         * lib/stdbool_.h (_Bool)
48194         [(! (defined __cplusplus || defined __BEOS__)
48195           && !defined __GNUC__
48196           && !(defined __HP_cc || defined __xlc__
48197                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48198                || defined __sgi))]:
48199         #define to signed char in these cases too; this simplifies
48200         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48201         etc., separately) and makes it more conservative.
48202
48203 2006-01-25  Simon Josefsson  <jas@extundo.com>
48204
48205         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48206         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48207         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48208
48209 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48210
48211         * lib/argp-namefrob.h: Bugfix. Remove stray #
48212
48213 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48214
48215         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48216         so that we test the test.
48217         Check for yet another HP-UX cc bug involving *bool |= bool.
48218
48219 2006-01-25  Karl Berry  <karl@gnu.org>
48220
48221         * config/srclist.txt (vasnprintf.c): sync lost.
48222
48223 2006-01-25  Jim Meyering  <jim@meyering.net>
48224
48225         Sync from the stable (b5) branch of coreutils:
48226
48227         * lib/fts.c (fts_children): Don't let close() clobber errno from
48228         failed fchdir().
48229
48230         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48231         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48232         a dangling symlink.  That can also happen at least for ELOOP.
48233         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48234         FYI, this bug predates the inclusion of fts.c in coreutils.
48235
48236         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48237         in their own block, so pre-c99 compilers don't object.
48238
48239         Avoid the double-free (first in fts_read, second in fts_close) that
48240         would occur when an `active' directory is made inaccessible (e.g.,
48241         via chmod a-x) during a traversal.
48242         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48243         before returning.  Reproduce this failure by
48244         mkdir -p a/b; cd a; chmod a-x . b
48245         Reported by Stavros Passas.
48246
48247 2006-01-25  Jim Meyering  <jim@meyering.net>
48248
48249         * lib/fileblocks.c: Remove more useless parentheses.
48250         * lib/readutmp.h: Likewise.
48251
48252 2006-01-25  Bruno Haible  <bruno@clisp.org>
48253
48254         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48255         warnings.
48256         Reported by Paul Eggert.
48257
48258 2006-01-25  Bruno Haible  <bruno@clisp.org>
48259
48260         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48261         rid of a trap command. For Solaris sh.
48262         Reported by Mark D. Baushke <mdb@gnu.org>.
48263
48264 2006-01-24  Simon Josefsson  <jas@extundo.com>
48265
48266         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48267         Bruno.
48268
48269 2006-01-24  Karl Berry  <karl@gnu.org>
48270
48271         * config/srclist.txt (argp-namefrob.h): sync lost.
48272
48273 2006-01-24  Jim Meyering  <jim@meyering.net>
48274
48275         * modules/openat (Files): Add lib/intprops.h.
48276         From Mark D. Baushke.
48277
48278 2006-01-24  Jim Meyering  <jim@meyering.net>
48279
48280         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48281         Reported by Mark D. Baushke.
48282
48283 2006-01-24  Jim Meyering  <jim@meyering.net>
48284
48285         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48286
48287 2006-01-24  Bruno Haible  <bruno@clisp.org>
48288
48289         * modules/strnlen (Maintainer): Change from glibc to all.
48290
48291 2006-01-24  Bruno Haible  <bruno@clisp.org>
48292
48293         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48294         Patch by Paul Eggert.
48295
48296 2006-01-24  Bruno Haible  <bruno@clisp.org>
48297
48298         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48299         already has it.
48300         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48301         2005-11-26.
48302
48303         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48304         'signed char' to avoid problems with the built-in _Bool type.
48305         Reported by Paul Eggert on 2005-11-26.
48306
48307 2006-01-24  Bruno Haible  <bruno@clisp.org>
48308
48309         * gnulib-tool (func_import): Avoid constructing complicated sed
48310         expressions inside backquote.
48311         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48312
48313 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48314
48315         These changes imported from libc.
48316         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48317         test and two separate function calls.
48318         * lib/strndup.c (__strndup): Add libc_hidden_def.
48319
48320 2006-01-23  Simon Josefsson  <jas@extundo.com>
48321
48322         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48323         Remove the test_*_SOURCES variable: automake infers it by default.
48324         * modules/tls-tests: Likewise.
48325
48326 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48327
48328         Work around porting bugs reported by Dieter in
48329         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48330         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48331         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48332         Include "getopt.h" first, to check interface.
48333         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48334         !HAVE_DECL_GETENV.
48335         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48336         (__strndup): Revert to K&R-style function dfns, the glibc style.
48337         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48338         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48339         Include strnlen.h first, to get prototype properly.
48340         (strnlen): Renamed from __strnlen.
48341         Remove weak alias.
48342
48343 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48344
48345         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48346
48347 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48348
48349         * config/srclist.txt: Adjust to reflect glibc reorganization.
48350         This affects only comments.
48351
48352 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48353
48354          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48355          Reported by Bruce Korb <bkorb@gnu.org>.
48356
48357 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48358
48359         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48360         to pacify gcc -Wswitch-default.
48361
48362 2006-01-22  Bruno Haible  <bruno@clisp.org>
48363
48364         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48365         temporary buffer for sprintf, take into account the precision also
48366         for 'd', 'i', 'u', 'o', 'x', 'X'.
48367
48368 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48369
48370         * modules/argp-tests: New module
48371         * tests/test-argp.c: New file
48372         * tests/test-argp-2.sh: New file
48373
48374 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48375
48376         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48377         (__argp_base_name): Removed
48378         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48379         typo.
48380         (__argp_base_name): Provide macro definition or extern declaration
48381         depending on the configuration
48382
48383 2006-01-20  Simon Josefsson  <jas@extundo.com>
48384
48385         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48386
48387 2006-01-20  Simon Josefsson  <jas@extundo.com>
48388
48389         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48390
48391 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48392
48393         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48394         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48395         Suggested by Bruno Haible.
48396
48397 2006-01-20  Karl Berry  <karl@gnu.org>
48398
48399         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48400         until changes propagate, I guess.
48401
48402 2006-01-19  Simon Josefsson  <jas@extundo.com>
48403
48404         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48405
48406 2006-01-19  Simon Josefsson  <jas@extundo.com>
48407
48408         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48409
48410 2006-01-19  Simon Josefsson  <jas@extundo.com>
48411
48412         * gnulib-tool: Set check_PROGRAMS.
48413
48414         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48415         modules/des-tests, modules/gc-arcfour-tests,
48416         modules/gc-arctwo-tests, modules/gc-des-tests,
48417         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48418         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48419         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48420         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48421         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48422         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48423         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48424         test_*_SOURCES.
48425
48426 2006-01-18  Simon Josefsson  <jas@extundo.com>
48427
48428         * modules/socklen (Depends-on): Depend on sys_socket.
48429
48430 2006-01-18  Simon Josefsson  <jas@extundo.com>
48431
48432         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48433         modules/des-tests, modules/gc-arcfour-tests,
48434         modules/gc-arctwo-tests, modules/gc-des-tests,
48435         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48436         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48437         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48438         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48439         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48440         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48441         $(EXEEXT) to automake TESTS variable, for mingw32.
48442
48443 2006-01-17  Simon Josefsson  <jas@extundo.com>
48444
48445         * modules/socklen (Include): Need sys/socket.h.
48446
48447 2006-01-17  Bruno Haible  <bruno@clisp.org>
48448
48449         * modules/ssize_t (Include): Add <sys/types.h>.
48450
48451 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48452
48453         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48454         it's not portable and it doesn't work with cross-compiles.
48455         Problem reported by Bruno Haible.  Fix missing-$ typo in
48456         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48457         -zignore from being used with Sun's C compiler.
48458
48459 2006-01-12  Simon Josefsson  <jas@extundo.com>
48460
48461         * lib/base64.c: Fix warning, reported by Bruno Haible
48462         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48463
48464 2006-01-12  Bruno Haible  <bruno@clisp.org>
48465
48466         * modules/ldd: New file.
48467         * build-aux/ldd.sh.in: New file.
48468         * MODULES.html.sh (Support for building libraries and executables): Add
48469         ldd.
48470
48471 2006-01-12  Bruno Haible  <bruno@clisp.org>
48472
48473         * m4/ldd.m4: New file.
48474
48475 2006-01-12  Bruno Haible  <bruno@clisp.org>
48476
48477         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48478         endless loop while replacing $auxdir with build-aux.
48479
48480 2006-01-11  Simon Josefsson  <jas@extundo.com>
48481
48482         * lib/stdint_.h (SIZE_MAX): Add missing (.
48483
48484 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48485
48486         Sync from coreutils.
48487         * lib/md5.c: Fix commentary typos.
48488         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48489         * lib/md5.h (__attribute__): Remove; unused.
48490         * lib/sha1.c: Fix commentary to match md5 better.
48491         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48492         so that we don't need to worry about alignment.  All uses changed.
48493         This merges the 2005-10-28 md5 change into sha1.
48494
48495 2006-01-11  Jim Meyering  <jim@meyering.net>
48496
48497         Sync from coreutils.
48498         * lib/md5.c (OP): Fix spacing.
48499
48500 2006-01-11  Bruno Haible  <bruno@clisp.org>
48501
48502         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48503         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48504         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48505
48506 2006-01-11  Bruno Haible  <bruno@clisp.org>
48507
48508         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48509         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48510         the "early" section as well.
48511
48512 2006-01-11  Bruno Haible  <bruno@clisp.org>
48513
48514         Avoid "ar: no archive members specified" error on MacOS X.
48515         * gnulib-tool (func_modules_add_dummy): New function.
48516         (func_import, func_create_testdir): Invoke it.
48517
48518 2006-01-11  Bruno Haible  <bruno@clisp.org>
48519
48520         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48521         with $auxdir in AC_CONFIG_FILES statements.
48522
48523 2006-01-11  Bruno Haible  <bruno@clisp.org>
48524
48525         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48526         Initialize also noinst_HEADERS to empty.
48527
48528 2006-01-11  Bruno Haible  <bruno@clisp.org>
48529
48530         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48531         variables.
48532         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48533         autoreconf.
48534
48535 2006-01-11  Bruno Haible  <bruno@clisp.org>
48536
48537         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48538         overridable by the user.
48539         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48540
48541 2006-01-10  Simon Josefsson  <jas@extundo.com>
48542
48543         * modules/sys_socket: New file.
48544
48545 2006-01-10  Simon Josefsson  <jas@extundo.com>
48546
48547         * m4/sys_socket_h.m4: New file.
48548
48549 2006-01-10  Simon Josefsson  <jas@extundo.com>
48550
48551         * lib/socket_.h: New file.
48552
48553 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48554
48555         * modules/readutmp (Maintainer): Add myself.
48556
48557 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48558
48559         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48560         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48561         People who are still concerned with buggy memcmp implementations
48562         can invoke gl_FUNC_MEMCMP themselves.
48563
48564 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48565
48566         * lib/regex_internal.h (BITSET_WORD_BITS):
48567         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48568         preprocessor mishandles large unsigned values as if they were signed.
48569         Problem reported by Claudio Fontana in
48570         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48571
48572 2006-01-10  Jim Meyering  <jim@meyering.net>
48573
48574         Avoid the double-free (first in fts_read, second in fts_close) that
48575         would occur when an `active' directory is made inaccessible (e.g.,
48576         via chmod a-x) during a traversal.
48577         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48578         before returning.  Reproduce this failure by
48579         mkdir -p a/b; cd a; chmod a-x . b
48580         Reported by Stavros Passas.
48581
48582         Sync from coreutils.
48583         * lib/sha1.c: Tweak grammar in a comment.
48584
48585 2006-01-10  Jim Meyering  <jim@meyering.net>
48586
48587         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48588         Patch by Joerg Sonnenberger.
48589
48590 2006-01-10  Bruno Haible  <bruno@clisp.org>
48591
48592         * modules/readutmp: Depend on module free.
48593         * modules/strtok_r: Depend on module restrict.
48594
48595 2006-01-10  Bruno Haible  <bruno@clisp.org>
48596
48597         * modules/gettext (configure.ac): Add an invocation of
48598         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48599
48600 2006-01-10  Bruno Haible  <bruno@clisp.org>
48601
48602         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48603         Reported by Werner Lemberg <wl@gnu.org>.
48604
48605 2006-01-10  Bruno Haible  <bruno@clisp.org>
48606
48607         * lib/localcharset.c: Update from GNU gettext.
48608
48609 2006-01-10  Bruno Haible  <bruno@clisp.org>
48610
48611         * lib/argp.h (__const): Remove macro. Use const instead.
48612         * lib/argp-fmtstream.h (__const): Likewise.
48613         * lib/glob_.h (__const): Remove macro.
48614         * lib/glob-libc.h: Use const instead of __const.
48615
48616 2006-01-10  Bruno Haible  <bruno@clisp.org>
48617
48618         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48619         variable.
48620         Needed to avoid an automake error regarding the 'gettext' module.
48621
48622 2006-01-09  Simon Josefsson  <jas@extundo.com>
48623
48624         * modules/inet_ntop (Depends-on): Add restrict.
48625
48626 2006-01-09  Simon Josefsson  <jas@extundo.com>
48627
48628         * modules/gc-rijndael-tests (License): Put under LGPL.
48629
48630         * modules/gc-des-tests (License): Likewise.
48631
48632         * modules/gc-arcfour-tests (License): Likewise.
48633
48634         * modules/gc-arctwo-tests (License): Likewise.
48635
48636         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48637
48638         * modules/gc-hmac-sha1-tests (Files): Likewise.
48639
48640         * modules/gc-hmac-md5-tests (License): Likewise.
48641
48642         * modules/gc-sha1-tests (License): Likewise.
48643
48644         * modules/gc-md5-tests (License): Likewise.
48645
48646         * modules/gc-md4-tests (License): Likewise.
48647
48648         * modules/gc-md2-tests (License): Likewise.
48649
48650         * modules/gc-tests (License): Likewise.
48651
48652         * modules/des-tests (License): Likewise.
48653
48654         * modules/md4-tests (License): Likewise.
48655
48656         * modules/md2-tests (License): Likewise.
48657
48658 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48659
48660         Sync from coreutils:
48661
48662         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48663         * modules/lib-ignore: New file.
48664         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48665         chdir-safer.m4, lchmod.m4.
48666         * modules/openat: Add mkdirat.c, openat-priv.h.
48667
48668 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48669
48670         Sync from coreutils.
48671         * m4/lib-ignore.m4: New file.
48672         * m4/lchmod.m4: New file.
48673
48674 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48675
48676         Sync from coreutils.
48677         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48678         for write access: POSIX says that must fail.
48679         * lib/fts.c (diropen): Likewise.
48680         * lib/save-cwd.c (save_cwd): Likewise.
48681         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48682         well, for minor improvements on hosts that lack O_DIRECTORY.
48683         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48684         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48685         Fall back on chown if open failed with EACCES.
48686
48687         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48688         Report an error at compile-time if only a 1-second nominal clock
48689         resolution is found.
48690
48691         * lib/lchmod.h: New file.
48692         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48693         (make_dir_parents): Use lchown rather than chown, and
48694         lchmod rather than chmod.
48695
48696         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48697         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48698         "proc" reported by n0dalus.
48699
48700         * lib/mountlist.c: Include <limits.h>.
48701         (dev_from_mount_options)
48702         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48703         New function.  It no longer assumes "dev=" has the System V meaning
48704         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48705         (read_file_system_list)
48706         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48707         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48708         dev= in that case.
48709
48710         * lib/posixtm.h (PDS_PRE_2000): New macro.
48711         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48712         allow_century.  All usages changed.  Reject dates outside the range
48713         1969-1999 if PDS_PRE_2000 is used.
48714
48715 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48716
48717         Sync from coreutils.
48718         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48719         (Time of day items): Mention the possibility of leap seconds.
48720         Problem reported by Dr. David Alan Gilbert.
48721
48722 2006-01-09  Jim Meyering  <jim@meyering.net>
48723
48724         Sync from coreutils.
48725
48726         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48727
48728         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48729
48730         * lib/modechange.c (mode_compile): Reject an invalid mode string
48731         that starts with an octal digit.  From Andreas Gruenbacher.
48732
48733         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48734         and dup to open_safer and dup_safer, respectively.
48735         (openat_permissive): Fix typo in comment.
48736
48737         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48738         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48739         (_): Remove; no longer needed.
48740         (openat): Renamed from rpl_openat; no need for rpl_openat
48741         since openat.h renames openat for us.
48742         Replace most of the body with a call to openat_permissive,
48743         to avoid duplicate code.
48744         Port to (probably hypothetical) environments were mode_t is
48745         wider than int.
48746         (openat_permissive): Require mode arg, so that we can check
48747         types better.  Put it just after flags.  Change cwd failure
48748         indicator from pointer-to-bool to pointer-to-errno-value.
48749         All callers changed.
48750         Invoke openat_save_fail and/or openat_restore_fail if
48751         cwd_errno is null, so that openat can call us.
48752         (openat_permissive, fdopendir, fstatat, unlinkat):
48753         Simplify errno handling to avoid some duplicate code,
48754         as it's OK to set errno on success.
48755         * lib/openat.h: Revamp code so that function macros depend on
48756         __OPENAT_PREFIX only, not also on AT_FDCWD.
48757         (openat_ro): Remove.  Caller changed to use openat_permissive.
48758         (openat_permissive): Now a macro, if not a function.
48759         (openat_restore_fail, openat_save_fail): Now always functions,
48760         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48761
48762         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48763         and openat.c.
48764         * lib/mkdirat.c: Include openat-priv.h.
48765         Remove definitions of macros defined therein.
48766         * lib/openat.c: Likewise.
48767
48768         * lib/mkdirat.c (mkdirat): New file and function.
48769         * lib/openat.h (mkdirat): Declare.
48770
48771         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48772
48773         * lib/openat.h (openat_permissive): Declare.
48774         (openat_ro): Define.
48775
48776         * lib/openat.c (EXPECTED_ERRNO): New macro.
48777         (openat_permissive): New function -- used in remove.c rewrite.
48778         (all functions): Set errno just before returning, only if there
48779         was an actual failure.
48780         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48781
48782         Emulate openat-family functions using Linux's procfs, if possible.
48783         Idea and some code based on Ulrich Drepper's glibc changes.
48784
48785         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48786         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48787         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48788         before falling back on save_cwd and restore_cwd.
48789         (fdopendir, fstatat, unlinkat): Likewise.
48790
48791         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48792         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48793
48794         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48795         as second argument to va_arg.  Otherwise, some versions of gcc
48796         warn that `if this code is reached, the program will abort'.
48797
48798 2006-01-09  Jim Meyering  <jim@meyering.net>
48799
48800         Sync from coreutils.
48801         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48802         Require openat-priv.h.
48803
48804 2006-01-09  Bruno Haible  <bruno@clisp.org>
48805
48806         * modules/strnlen (Include): Use strnlen.h.
48807
48808 2006-01-09  Bruno Haible  <bruno@clisp.org>
48809
48810         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48811
48812 2006-01-09  Bruno Haible  <bruno@clisp.org>
48813
48814         * lib/sysexit_.h (EX_OK): New macro.
48815         Suggested by Martin Lambers <marlam@marlam.de>.
48816
48817 2006-01-09  Bruno Haible  <bruno@clisp.org>
48818
48819         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48820         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48821
48822 2006-01-09  Bruno Haible  <bruno@clisp.org>
48823
48824         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48825         numbers.
48826
48827 2006-01-09  Bruno Haible  <bruno@clisp.org>
48828
48829         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48830         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48831         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48832         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48833
48834 2006-01-09  Bruno Haible  <bruno@clisp.org>
48835
48836         * build-aux/javacomp.sh.in: New file, moved from lib/.
48837         * modules/javacomp-script (Files): Update.
48838         (configure.ac): Add AC_CONFIG_FILES invocation.
48839         (EXTRA_DIST): Remove variable.
48840
48841         * build-aux/javaexec.sh.in: New file, moved from lib/.
48842         * modules/javaexec (Files): Update.
48843         (configure.ac): Add AC_CONFIG_FILES invocation.
48844         (EXTRA_DIST): Remove javaexec.sh.in.
48845
48846         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48847         * modules/csharpcomp-script (Files): Update.
48848         (configure.ac): Add AC_CONFIG_FILES invocation.
48849         (EXTRA_DIST): Remove variable.
48850
48851         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48852         * modules/csharpexec (Files): Update.
48853         (configure.ac): Add AC_CONFIG_FILES invocation.
48854         (EXTRA_DIST): Remove csharpexec.sh.in.
48855
48856 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48857
48858         Sync from coreutils.
48859
48860         Add POSIX ACL support
48861         * lib/acl.h (copy_acl, set_acl): Add declarations.
48862         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48863         systems other than Linux.
48864         (chmod_or_fchmod): New function: use fchmod when possible,
48865         and chmod otherwise.
48866         (file_has_acl): Add a POSIX ACL implementation, with a
48867         Linux-specific subcase.
48868         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48869         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48870         acls are unsupported.
48871         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48872         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48873         are unsupported.
48874
48875 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48876
48877         Sync from coreutils.
48878         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48879
48880 2006-01-07  Bruno Haible  <bruno@clisp.org>
48881
48882         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48883         gl_EARLY.
48884
48885 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48886
48887         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48888         Problem reported for Mingw by Mark Junker.
48889
48890 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48891
48892         * README: Gnulib normally doesn't generate a tarball.
48893
48894 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48895
48896         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48897         long int, not int, for nanosecond counts, so that people who are
48898         used to POSIX struct timespec won't be surprised.  Reported by Jim
48899         Meyering.
48900
48901 2005-12-28  Bruno Haible  <bruno@clisp.org>
48902
48903         * build-aux/config.rpath: Update from GNU gettext.
48904
48905 2005-12-16  Jim Meyering  <jim@meyering.net>
48906
48907         * modules/fprintftime: New module.
48908         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48909
48910 2005-12-16  Jim Meyering  <jim@meyering.net>
48911
48912         * m4/fprintftime.m4: New file.
48913
48914 2005-12-16  Jim Meyering  <jim@meyering.net>
48915
48916         * lib/fprintftime.c, lib/fprintftime.h: New files.
48917
48918 2005-12-15  Simon Josefsson  <jas@extundo.com>
48919
48920         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48921         new m4/socklen.m4.
48922
48923 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48924
48925         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48926         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48927
48928 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48929
48930         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48931         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48932         struct uparams is valid. Fall back to the default values if it is
48933         not.
48934
48935 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48936
48937         * modules/argp (Files): Add argp-pin.c
48938         (Depends-on): dirname
48939         (lib_SOURCES): Add argp-pin.c
48940
48941 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48942
48943         * m4/argp.m4:  Check if program_invocation_name and
48944         program_invocation_short_name are declared and define appropriate
48945         macros if they are not.
48946
48947 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48948
48949         * lib/argp-help.c (__argp_base_name): New function
48950         (__argp_short_program_name): Rewrite using __argp_base_name
48951         * lib/argp-namefrob.h: Define program_invocation_name and
48952         program_invocation_short_name if requested
48953         (__argp_base_name): Add prototype
48954         * lib/argp-parse.c (argp_def): Use gettext wrappers
48955         (argp_default_parser): Use __argp_base_name
48956         * lib/argp-pin.c: New file. Defines program_invocation_name and
48957         program_invocation_short_name on systems that lack them.
48958
48959 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48960
48961         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48962         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48963         porting problem reported by Georg Schwarz in
48964         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48965
48966 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48967
48968         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48969         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48970         porting problem reported by Georg Schwarz in
48971         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48972
48973 2005-12-05  Bruno Haible  <bruno@clisp.org>
48974
48975         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48976         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48977         Reported by Mark Junker <mjscod@gmx.de>.
48978
48979 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48980
48981         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48982         Use implementation from Albert Chin, with some
48983         comments/corrections by Stepan Kasal and myself.
48984
48985 2005-12-02  Bruno Haible  <bruno@clisp.org>
48986
48987         * gnulib-tool (func_import): Accept GPLed build tool modules when
48988         --lgpl is given.
48989         * modules/csharpcomp-script: New file.
48990         * modules/csharpcomp: Depend on it.
48991         * modules/javacomp-script: New file.
48992         * modules/javacomp: Depend on it.
48993         Suggested by Simon Josefsson.
48994
48995 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48996
48997         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48998         statement, to work around an HP-UX 10.20 compiler bug reported by
48999         Peter O'Gorman.
49000
49001 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49002
49003         * modules/savedir (Depends-on): Add openat.
49004
49005 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49006
49007         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
49008         (uintmax_t) [defined uintmax_t]: Do not declare.
49009         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
49010         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
49011         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
49012         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
49013         sake of portability to weird hosts that C allows (though we don't
49014         know of any practical examples).
49015
49016         * lib/savedir.h (fdsavedir): New decl.
49017         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
49018         contains most of the former guts of savedir.
49019         (savedir): Use savedirstream.
49020         Include "openat.h".
49021
49022 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49023
49024         * modules/obstack (Files): Add m4/ulonglong.m4.
49025         Problem reported by Davide Angelocola.
49026
49027 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49028
49029         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
49030         coreutils no longer futzes with rounding modes.
49031
49032 2005-11-14  Jim Meyering  <jim@meyering.net>
49033
49034         * lib/mkstemp-safer.c: Include <config.h>, required for possible
49035         replacement of mkstemp.
49036
49037 2005-11-10  Simon Josefsson  <jas@extundo.com>
49038
49039         * lib/readline.c: Remove EOL.
49040
49041 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49042
49043         * modules/gethrxtime (Depends-on): Add gettime.
49044
49045 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49046
49047         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
49048         or gettimeofday; no longer needed.
49049
49050 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49051
49052         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
49053         time business.
49054         (gethrxtime) [! (HAVE_NANOUPTIME
49055         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
49056         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
49057         our own approximation.
49058
49059 2005-11-08  Eric Blake  <ebb9@byu.net>
49060
49061         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49062
49063 2005-11-08  Eric Blake  <ebb9@byu.net>
49064
49065         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49066
49067 2005-11-04  Bruno Haible  <bruno@clisp.org>
49068
49069         * gnulib-tool: Implement --update mode.
49070
49071 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49072
49073         Fix porting problem reported by Theodoros V. Kalamatianos.
49074         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
49075         Don't assume that futimes failing means we must fail.
49076
49077 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49078
49079         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
49080         variables to suggest the intended function of the PATH_MAX check.
49081
49082 2005-10-30  Kean Johnston  <jkj@sco.com>
49083
49084         Trivial changes to support SCO systems.
49085         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
49086         as PATH_MAX.
49087         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
49088         where __ptr is null when no I/O is pending.
49089
49090 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49091
49092         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49093         leave errno alone.  Problem reported by Dmitry V. Levin.
49094
49095 2005-10-28  Simon Josefsson  <jas@extundo.com>
49096
49097         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49098         Test more.
49099
49100         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49101
49102         * modules/md2, modules/md2-tests: New files.
49103
49104 2005-10-28  Simon Josefsson  <jas@extundo.com>
49105
49106         * m4/inet_ntop.m4: More tests.
49107
49108         * m4/gc-md2.m4, md2.m4: New file.
49109
49110 2005-10-28  Simon Josefsson  <jas@extundo.com>
49111
49112         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49113         "restrict" keywords, as per POSIX.  Protect the function
49114         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49115         Don't use K&R prototypes.  Check the sprintf return values.
49116         Re-define EAFNOSUPPORT if not present.  Indent.
49117
49118         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49119         suggested by Bruno Haible <bruno@clisp.org>.
49120
49121         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49122
49123         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49124
49125         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49126         libgcrypt).
49127
49128         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49129
49130         * lib/md2.h, lib/md2.c: New files.
49131
49132 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49133
49134         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49135         errno alone.  Problem reported by Frederic Jolliton.
49136
49137 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49138
49139         * modules/verify (License): Change from GPL to LGPL.  This is a
49140         tiny module and there are apparently near-equivalents that are
49141         under the BSD license.
49142
49143 2005-10-24  Simon Josefsson  <jas@extundo.com>
49144
49145         * modules/sha1: Relicense to LGPL.
49146
49147 2005-10-24  Simon Josefsson  <jas@extundo.com>
49148
49149         * lib/md4.h: Shrink buffer size, now that we changed the type.
49150
49151 2005-10-23  Simon Josefsson  <jas@extundo.com>
49152
49153         * gnulib-tool (func_import): Fix --tests-base.
49154
49155 2005-10-22  Simon Josefsson  <jas@extundo.com>
49156
49157         * modules/arcfour (Depends-on): Need stdint.
49158
49159 2005-10-22  Simon Josefsson  <jas@extundo.com>
49160
49161         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49162         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49163
49164 2005-10-22  Simon Josefsson  <jas@extundo.com>
49165
49166         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49167         suggested by Bruno Haible <bruno@clisp.org>.
49168
49169 2005-10-22  Simon Josefsson  <jas@extundo.com>
49170
49171         * lib/crc.h: Include stddef.h, for size_t.
49172
49173 2005-10-22  Simon Josefsson  <jas@extundo.com>
49174
49175         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49176         arcfour_context struct (simplify test vector testing in GNU
49177         Shishi).
49178
49179 2005-10-21  Simon Josefsson  <jas@extundo.com>
49180
49181         * modules/des, modules/des-tests: New files.
49182
49183         * modules/gc-des, modules/gc-des-tests: New files.
49184
49185         * tests/test-des.c, tests/test-gc-des.c: New file.
49186
49187 2005-10-21  Simon Josefsson  <jas@extundo.com>
49188
49189         * modules/arctwo, modules/arctwo-tests: New files.
49190
49191         * tests/test-arctwo.c: New file.
49192
49193         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49194
49195         * tests/test-gc-arctwo.c: New file.
49196
49197 2005-10-21  Simon Josefsson  <jas@extundo.com>
49198
49199         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49200         Bruno Haible <bruno@clisp.org>.
49201
49202         * m4/gc-des.m4: New file.
49203
49204 2005-10-21  Simon Josefsson  <jas@extundo.com>
49205
49206         * m4/arctwo.m4: New file.
49207
49208         * m4/gc-arctwo.m4: New file.
49209
49210 2005-10-21  Simon Josefsson  <jas@extundo.com>
49211
49212         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49213         block.
49214
49215 2005-10-21  Simon Josefsson  <jas@extundo.com>
49216
49217         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49218         <bruno@clisp.org>.
49219
49220         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49221
49222         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49223         Bruno Haible <bruno@clisp.org>.
49224
49225         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49226         <bruno@clisp.org>.
49227
49228 2005-10-21  Simon Josefsson  <jas@extundo.com>
49229
49230         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49231
49232 2005-10-21  Simon Josefsson  <jas@extundo.com>
49233
49234         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49235
49236 2005-10-21  Simon Josefsson  <jas@extundo.com>
49237
49238         * lib/des.h, lib/des.c: New files.
49239
49240         * lib/gc-gnulib.c: Support DES.c
49241
49242 2005-10-21  Simon Josefsson  <jas@extundo.com>
49243
49244         * lib/arctwo.h, lib/arctwo.c: New files.
49245
49246         * lib/gc-gnulib.c: Support ARCTWO.
49247
49248 2005-10-21  Simon Josefsson  <jas@extundo.com>
49249
49250         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49251         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49252
49253 2005-10-21  Simon Josefsson  <jas@extundo.com>
49254
49255         * gnulib-tool (func_import, func_create_testdir): Define automake
49256         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49257         Makefile.am snippet),
49258         suggested by Bruno Haible <bruno@clisp.org>.
49259
49260         * modules/gc (Makefile.am): Use it.
49261
49262 2005-10-21  Bruno Haible  <bruno@clisp.org>
49263
49264         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49265         patch.
49266
49267 2005-10-19  Simon Josefsson  <jas@extundo.com>
49268
49269         * tests/test-gc-rijndael.c: New file.
49270
49271         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49272
49273 2005-10-19  Simon Josefsson  <jas@extundo.com>
49274
49275         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49276         interface too.
49277
49278 2005-10-19  Simon Josefsson  <jas@extundo.com>
49279
49280         * tests/test-gc-arcfour.c: New file.
49281
49282         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49283
49284 2005-10-19  Simon Josefsson  <jas@extundo.com>
49285
49286         * modules/gc-md4, modules/gc-md4-tests: New file.
49287
49288         * tests/test-gc-md4.c: New file.
49289
49290 2005-10-19  Simon Josefsson  <jas@extundo.com>
49291
49292         * m4/gc-md4.m4: New file.
49293
49294 2005-10-19  Simon Josefsson  <jas@extundo.com>
49295
49296         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49297         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49298         <kasal@ucw.cz>.
49299
49300 2005-10-19  Simon Josefsson  <jas@extundo.com>
49301
49302         * m4/gc-arcfour.m4: New file.
49303
49304         * m4/gc-rijndael.m4: New file.
49305
49306 2005-10-19  Simon Josefsson  <jas@extundo.com>
49307
49308         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49309
49310 2005-10-19  Simon Josefsson  <jas@extundo.com>
49311
49312         * lib/gc-gnulib.c: Support ARCFOUR.
49313
49314 2005-10-19  Simon Josefsson  <jas@extundo.com>
49315
49316         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49317         support.
49318
49319         * lib/gc.h: Add ECB enum type.
49320
49321         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49322
49323 2005-10-18  Simon Josefsson  <jas@extundo.com>
49324
49325         * tests/test-md5.c: New file.
49326
49327         * modules/md5-tests: New file.
49328
49329 2005-10-18  Simon Josefsson  <jas@extundo.com>
49330
49331         * tests/test-md4.c: New file.
49332
49333         * modules/md4, modules/md4-tests: New files.
49334
49335 2005-10-18  Simon Josefsson  <jas@extundo.com>
49336
49337         * m4/md4.m4: New file.
49338
49339 2005-10-18  Simon Josefsson  <jas@extundo.com>
49340
49341         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49342
49343 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49344
49345         * gnulib-tool (func_create_testdir): Omit the second check whether
49346         BUILT_SOURCES in nonempty.
49347
49348 2005-10-17  Simon Josefsson  <jas@extundo.com>
49349
49350         * tests/test-rijndael.c: New file.
49351
49352 2005-10-17  Simon Josefsson  <jas@extundo.com>
49353
49354         * modules/sha1: Depend on stdint instead of md5.
49355
49356         * modules/md5: Depend on stdint, remove uint32_t.
49357
49358 2005-10-17  Simon Josefsson  <jas@extundo.com>
49359
49360         * modules/gc-sha1-tests: New file.
49361
49362         * tests/test-gc-sha1.c: New file.
49363
49364 2005-10-17  Simon Josefsson  <jas@extundo.com>
49365
49366         * m4/md5.m4: Remove call to uint32_t.m4.
49367
49368 2005-10-17  Simon Josefsson  <jas@extundo.com>
49369
49370         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49371
49372         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49373         md5.h.
49374
49375         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49376
49377         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49378
49379 2005-10-17  Simon Josefsson  <jas@extundo.com>
49380
49381         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49382
49383 2005-10-17  Simon Josefsson  <jas@extundo.com>
49384
49385         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49386
49387 2005-10-17  Simon Josefsson  <jas@extundo.com>
49388
49389         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49390
49391         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49392
49393 2005-10-17  Bruno Haible  <bruno@clisp.org>
49394
49395         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49396         that it can also be used in a test.
49397
49398 2005-10-16  Bruno Haible  <bruno@clisp.org>
49399
49400         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49401         TESTS_ENVIRONMENT, so that individual tests can augment it.
49402
49403         * gnulib-tool (func_create_testdir): Use an intermediate target for
49404         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49405         macros, like $(ALLOCA_H), which cannot be passed through the command
49406         line.
49407
49408 2005-10-15  Simon Josefsson  <jas@extundo.com>
49409
49410         * modules/rijndael-tests: New file.
49411
49412         * modules/rijndael: New file.
49413
49414 2005-10-15  Simon Josefsson  <jas@extundo.com>
49415
49416         * m4/rijndael.m4: New file.
49417
49418 2005-10-15  Simon Josefsson  <jas@extundo.com>
49419
49420         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49421
49422         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49423
49424 2005-10-14  Simon Josefsson  <jas@extundo.com>
49425
49426         * tests/test-arcfour.c: New file.
49427
49428         * modules/arcfour, modules/arcfour-tests: New files.
49429
49430 2005-10-14  Simon Josefsson  <jas@extundo.com>
49431
49432         * m4/arcfour.m4: New file.
49433
49434 2005-10-14  Simon Josefsson  <jas@extundo.com>
49435
49436         * lib/arcfour.h, lib/arcfour.c: New files.
49437
49438 2005-10-14  Roland McGrath  <roland@redhat.com>
49439
49440         Import from libc.  [BZ #1331]
49441         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49442         macro argument.
49443         Reported by Matej Vela <vela@debian.org>.
49444
49445 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49446
49447         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49448         include <wchar.h>; no longer needed.
49449
49450 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49451
49452         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49453
49454 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49455         and  Ulrich Drepper  <drepper@redhat.com>
49456
49457         Import from libc.
49458         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49459         instead of inline stream orientation test and two separate
49460         function calls.  Pay no attention to USE_IN_LIBIO.
49461
49462 2005-10-13  Simon Josefsson  <jas@extundo.com>
49463
49464         * modules/gc-hmac-md5-tests: New file.
49465
49466         * tests/test-gc-hmac-sha1.c: New file.
49467
49468         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49469
49470         * modules/gc-hmac-md5-tests: New file.
49471
49472         * tests/test-gc-md5.c: New file.
49473
49474         * modules/gc-md5-tests: New file.
49475
49476 2005-10-13  Simon Josefsson  <jas@extundo.com>
49477
49478         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49479         Move memory allocation outside of loop.
49480
49481 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49482
49483         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49484         intermediate directory is in a read-only file system.  Problem
49485         reported by Eric Blake.
49486
49487 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49488
49489         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49490
49491 2005-10-12  Simon Josefsson  <jas@extundo.com>
49492
49493         * tests/test-hmac-sha1.c: New file.
49494
49495         * modules/hmac-sha1-tests: New file.
49496
49497         * modules/hmac-sha1: New file.
49498
49499 2005-10-12  Simon Josefsson  <jas@extundo.com>
49500
49501         * modules/gc-sha1: New file.
49502
49503 2005-10-12  Simon Josefsson  <jas@extundo.com>
49504
49505         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49506
49507         * tests/test-gc-pbkdf2-sha1.c: New file.
49508
49509 2005-10-12  Simon Josefsson  <jas@extundo.com>
49510
49511         * modules/gc-md5, modules/gc-hmac-md5: New files.
49512
49513         * modules/gc (Files): Remove md5, memxor and hmac files.
49514
49515 2005-10-12  Simon Josefsson  <jas@extundo.com>
49516
49517         * m4/gc-pbkdf2-sha1.m4: New file.
49518
49519         * m4/gc-hmac-sha1.m4: New file.
49520
49521         * m4/gc-sha1: New file.
49522
49523         * m4/hmac-sha1.m4: New file.
49524
49525 2005-10-12  Simon Josefsson  <jas@extundo.com>
49526
49527         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49528
49529         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49530
49531 2005-10-12  Simon Josefsson  <jas@extundo.com>
49532
49533         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49534         suggested by Bruno Haible <bruno@clisp.org>.
49535
49536 2005-10-12  Simon Josefsson  <jas@extundo.com>
49537
49538         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49539
49540 2005-10-12  Simon Josefsson  <jas@extundo.com>
49541
49542         * lib/gc-pbkdf2-sha1.c: New file.
49543
49544         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49545
49546 2005-10-12  Simon Josefsson  <jas@extundo.com>
49547
49548         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49549
49550         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49551
49552 2005-10-12  Simon Josefsson  <jas@extundo.com>
49553
49554         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49555         GC_USE_HMAC_MD5, respectively.
49556
49557         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49558         (gc_md5): Fix typo.
49559
49560         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49561
49562         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49563
49564         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49565
49566 2005-10-12  Bruno Haible  <bruno@clisp.org>
49567
49568         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49569         Reported by Stepan Kasal <kasal@ucw.cz>.
49570
49571 2005-10-11  Simon Josefsson  <jas@extundo.com>
49572
49573         * tests/test-crc.c: New file.
49574
49575         * modules/crc, modules/crc-tests: New files.
49576
49577 2005-10-11  Simon Josefsson  <jas@extundo.com>
49578
49579         * m4/crc.m4: New file.
49580
49581 2005-10-11  Simon Josefsson  <jas@extundo.com>
49582
49583         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49584
49585         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49586
49587         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49588
49589 2005-10-11  Simon Josefsson  <jas@extundo.com>
49590
49591         * lib/crc.h, lib/crc.c: New files.
49592
49593         * lib/gc.h (gc_hash_buffer): Add doc.
49594
49595 2005-10-11  Bruno Haible  <bruno@clisp.org>
49596
49597         * modules/c-strcasestr: New file.
49598         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49599
49600 2005-10-11  Bruno Haible  <bruno@clisp.org>
49601
49602         * modules/c-strcase: New file.
49603         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49604
49605 2005-10-11  Bruno Haible  <bruno@clisp.org>
49606
49607         * lib/strcasecmp.c: Include limits.h.
49608         (strcasecmp): Avoid integer overflow on exotic platforms.
49609         * lib/strncasecmp.c: Include limits.h.
49610         (strncasecmp): Avoid integer overflow on exotic platforms.
49611         Reported by Paul Eggert.
49612
49613 2005-10-11  Bruno Haible  <bruno@clisp.org>
49614
49615         * lib/c-strcasestr.h: New file, from GNU gettext.
49616         * lib/c-strcasestr.c: New file, from GNU gettext.
49617
49618 2005-10-11  Bruno Haible  <bruno@clisp.org>
49619
49620         * lib/c-strcase.h: New file, from GNU gettext.
49621         * lib/c-strcasecmp.c: New file, from GNU gettext.
49622         * lib/c-strncasecmp.c: New file, from GNU gettext.
49623
49624 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49625
49626         * modules/mempcpy (License): GPL -> LGPL.
49627         * modules/strchrnul (License): Likewise.
49628         * modules/sysexits (License): Likewise.
49629
49630 2005-10-08  Simon Josefsson  <jas@extundo.com>
49631
49632         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49633
49634 2005-10-07  Simon Josefsson  <jas@extundo.com>
49635
49636         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49637
49638 2005-10-06  Simon Josefsson  <jas@extundo.com>
49639
49640         * tests/test-hmac-md5.c: New file.
49641
49642         * modules/hmac-md5-tests: New file.
49643
49644         * modules/hmac-md5: New file.
49645
49646 2005-10-06  Simon Josefsson  <jas@extundo.com>
49647
49648         * m4/hmac-md5.m4: New file.
49649
49650         * m4/memxor.m4: Require gl_C_RESTRICT.
49651
49652 2005-10-06  Simon Josefsson  <jas@extundo.com>
49653
49654         * lib/memxor.c (memxor): Avoid casts and warnings.
49655
49656 2005-10-06  Simon Josefsson  <jas@extundo.com>
49657
49658         * lib/hmac-md5.c: New file.
49659
49660         * lib/hmac.h: New file.
49661
49662 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49663
49664         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49665         promotes to int, not unsigned int, to catch the AIX 5.3
49666         compiler bug.
49667
49668 2005-10-05  Simon Josefsson  <jas@extundo.com>
49669
49670         * modules/memxor: New file.
49671
49672         * modules/iconv (Files): Move config.rpath to havelib, it is used
49673         there.
49674
49675         * modules/havelib (Files): Add config.rpath.
49676
49677 2005-10-05  Simon Josefsson  <jas@extundo.com>
49678
49679         * m4/memxor.m4: New file.
49680
49681 2005-10-05  Simon Josefsson  <jas@extundo.com>
49682
49683         * lib/memxor.c (memxor): Fix compiler error.
49684
49685         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49686         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49687
49688         * lib/memxor.h, lib/memxor.c: New files.
49689
49690         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49691         we assume all systems have it, suggested by Jim Meyering
49692         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49693         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49694         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49695         same reasons.
49696
49697 2005-10-05  Simon Josefsson  <jas@extundo.com>
49698
49699         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49700
49701 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49702
49703         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49704         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49705         needed, since the source code now assumes these .h files.
49706
49707 2005-10-05  Derek Price  <derek@ximbiot.com>
49708
49709         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49710
49711 2005-10-05  Bruno Haible  <bruno@clisp.org>
49712
49713         * modules/stdint (License): Change to LGPL.
49714
49715 2005-10-04  Simon Josefsson  <jas@extundo.com>
49716
49717         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49718         D. Baushke" <mdb@gnu.org>.
49719
49720 2005-10-04  Bruno Haible  <bruno@clisp.org>
49721
49722         * lib/verify.h (verify_true): Provide alternative definition for C++.
49723
49724 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49725
49726         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49727         (SSIZE_MAX): New macro, if not already defined.
49728         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49729         than 2 GiB.
49730
49731 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49732
49733         Sync from coreutils.
49734         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49735         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49736         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49737         ULLONG_MAX doesn't work with 2.7.2.1.
49738
49739 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49740
49741         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49742         From Ben Pfaff.
49743
49744         * modules/exclude (Depends-on): Depend on verify.
49745         * modules/strtoimax (Depends-on): Likewise.
49746         * modules/utimecmp (Depends-on): Likewise.
49747
49748 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49749
49750         * lib/exclude.c: Include verify.h.
49751         (verify): Remove.  All callers changed to use verify.h's version.
49752         * lib/strtoimax.c: Likewise.
49753         * lib/utimecmp.c: Likewis.e
49754
49755         Sync from coreutils.
49756         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49757         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49758         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49759         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49760         bother returning ENOSYS if settimeofday or stime fails; just let
49761         them return whatever errno they want to return.
49762         * lib/utimens.c: Include unistd.h, for dup2.
49763         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49764         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49765
49766 2005-10-02  Jim Meyering  <jim@meyering.net>
49767
49768         Sync from coreutils.
49769         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49770         from glibc-2.2.5 that fails for read-only files.
49771
49772 2005-10-02  Jim Meyering  <jim@meyering.net>
49773
49774         Sync from coreutils.
49775         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49776         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49777         `#if HAVE_CONFIG_H'.
49778         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49779         Remove AT_FDCWD test.
49780         Do not consume the fd unless successful.
49781         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49782         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49783         block, so that we don't even try to compile it if settimeofday is
49784         available.  This works around a compilation failure on OSF1 V5.1,
49785         due to stime requiring a `long int*' while tv_sec is `int'.
49786
49787 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49788
49789         Sync from coreutils.
49790         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49791         against `yes', rather than just testing for nonempty.
49792
49793 2005-10-01  Simon Josefsson  <jas@extundo.com>
49794
49795         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49796         and Darwin.
49797
49798         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49799         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49800         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49801         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49802         Check if struct addrinfo is declared.
49803
49804 2005-10-01  Simon Josefsson  <jas@extundo.com>
49805
49806         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49807         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49808         AI_* and EAI_* definitions.  Protect function declarations.
49809
49810 2005-10-01  Jim Meyering  <jim@meyering.net>
49811
49812         Sync from coreutils.
49813
49814         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49815         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49816         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49817         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49818         in the inet and nsl libraries.  Required on Solaris 5.7.
49819
49820 2005-10-01  Jim Meyering  <jim@meyering.net>
49821
49822         Sync from coreutils.
49823         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49824         in the inet and nsl libraries.  Required on Solaris 5.7.
49825
49826 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49827
49828         * lib/getdelim.c (getdelim): Remove unused variables.
49829
49830 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49831
49832         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49833         so that the code works even with ancient cpp.  Portability problem
49834         with GCC 2.7.2.1 reported by Thomas M.Ott.
49835
49836 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49837
49838         * modules/regex (Depends-on): Add strcase.
49839
49840         * modules/gethostname (Licence): Change from GPL to LGPL, since
49841         gethostname.c is a trivial implementation of a standard library
49842         function.
49843         * modules/poll (License): Change from GPL to LGPL, since it's
49844         derived from LGPL code.
49845
49846 2005-09-27  Jim Meyering  <jim@meyering.net>
49847
49848         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49849         HAVE_CONFIG_H.
49850
49851         * lib/intprops.h (signed_type_or_expr__): Define.
49852         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49853         for unsigned types.
49854
49855 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49856
49857         * lib/verify.h (verify_expr): Remove, replacing with:
49858         (verify_true): New macro that returns true instead of void.
49859         (verify_type__): Remove.
49860         (verify): Use verify_true rather than verify_type__.
49861
49862 2005-09-26  Bruno Haible  <bruno@clisp.org>
49863
49864         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49865         is necessary.
49866         (lib_SOURCES): Remove mbchar.c.
49867         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49868         (Files): Add m4/mbrtowc.m4.
49869         * modules/mbiter: Likewise.
49870         * modules/mbuiter: Likewise.
49871
49872 2005-09-26  Bruno Haible  <bruno@clisp.org>
49873
49874         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49875         compile mbchar.c if they are not both present.
49876         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49877         * m4/mbiter.m4 (gl_MBITER): Likewise.
49878         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49879         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49880         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49881
49882 2005-09-25  Jim Meyering  <jim@meyering.net>
49883
49884         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49885         also uses socklen_t.
49886
49887 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49888
49889         * lib/utimens.c (ENOSYS): Define if not already defined.
49890         (futimens): Support having a null PATH if the file descriptor
49891         is nonnegative.
49892
49893         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49894         Remove.
49895         (__attribute): Define to empty unless GCC 3.1 or later.
49896         This works around a core dump on OpenBSD 3.4, which has GCC
49897         2.95.3, which dumps core when given __attribute__(()).  It also
49898         simplifies other tests, since we really don't want to bother with
49899         worrying about which ancient version of GCC supported what.
49900         Original problem reported by Yoann Vandoorselaere, with part of
49901         the fix suggested by Derek Price.
49902
49903 2005-09-24  Jim Meyering  <jim@meyering.net>
49904
49905         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49906         so we can once again use a positive bitfield width of 1 -- now we
49907         don't have to explain why we were using a bitfield width of 2.
49908
49909 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49910
49911         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49912         and similarly for the other external symbols.  Problem reported
49913         by James Gallager.
49914
49915         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49916         bug reported by Jim Meyering.
49917
49918         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49919         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49920         not needed, since socklen is a prerequisite module.
49921
49922 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49923
49924         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49925         Problem reported by Eric Blake.
49926         (getaddrinfo): Initialize se so that it's not garbage.
49927         Redo internal storage allocation so that it doesn't make unportable
49928         assumptions about alignment.
49929         Fix a memory leak.
49930
49931         * lib/utimens.c (futimens): Use futimesat if available.
49932         Prefer it to futimes since it doesn't have the futimes bug.
49933
49934         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49935         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49936         Instead, declare a function that returns a pointer to an array,
49937         and use verify_type__ to declare the size of the array.
49938         Problem and germ of a solution reported by Bruno Haible.
49939         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49940         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49941
49942 2005-09-23  Jim Meyering  <jim@meyering.net>
49943
49944         Sync from coreutils.
49945         Correct build failure (socklen_t not defined) on at least
49946         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49947         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49948
49949 2005-09-23  Jim Meyering  <jim@meyering.net>
49950
49951         * modules/getaddrinfo (Depends-on): Add socklen.
49952
49953 2005-09-23  Bruno Haible  <bruno@clisp.org>
49954
49955         * tests/test-verify.c: New file.
49956
49957 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49958
49959         Sync from coreutils.
49960
49961         * modules/argmatch (Depends-on): Add verify.
49962         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49963         unistd-safer.
49964         * modules/save-cwd (Depends-on): Likewise.
49965
49966         * modules/openat (Files): Add lib/openat-die.c.
49967         (Depends-on): Remove error, exitfail.
49968         Add dirname.
49969
49970         * modules/verify: New file.
49971         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49972         with "verify" module.
49973
49974 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49975
49976         Sync from coreutils.
49977
49978         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49979         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49980         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49981         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49982         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49983         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49984         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49985         Don't bother checking for string.h, stdlib.h, unistd.h.
49986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49987         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49988         module's job.
49989         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49990         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49991
49992         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49993         (gl_GETDATE): Use it.
49994
49995         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49996
49997 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49998
49999         Sync from coreutils.
50000
50001         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
50002         stat-time.h.
50003         * lib/argmatch.h: Include verify.h
50004         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
50005         (ARGMATCH_ASSERT): Remove; unused.
50006         * lib/canonicalize.c: Assume STDC_HEADERS.
50007         * lib/exclude.c: Include "strcase.h".
50008         * lib/regex_internal.h [!defined _LIBC]: Likewise.
50009         * lib/getusershell.c: Include stdio--.h rather than stdio.h
50010         and stdio-safer.h.
50011         (getusershell): Call fopen, not fopen_safer.
50012         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
50013         Do not include unistd-safer.h.
50014         (save_cwd): Don't call fd_safer; no longer needed
50015         now that we include fcntl--.h.
50016
50017         * lib/getdate.y (relative_time): New type.
50018         (RELATIVE_TIME_0): New constant.
50019         (parser_control): Use relative_time instead of doing it ourselves.
50020         (%union): Add new relative_time rel member.
50021         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
50022         Now typeless.
50023         (relunit, relunit_snumber): Now of type rel.
50024         (zone, rel, relunit, get_date): Adjust to above changes.
50025
50026         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
50027         Do not include unistd-safer.h.
50028         (getloadavg): Don't call fd_safer; no longer needed
50029         now that we include fcntl--.h.
50030
50031         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
50032         (make_dir_parents): Treat ENOSYS like EEXIST.
50033
50034         Improve quality of diagnostics on restore_cwd failure.
50035         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
50036         (make_dir_parents): Last arg is now int * (for errno), not bool *.
50037         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
50038         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
50039         each time through the loop.  Do not diagnose restore_cwd failure;
50040         that is the caller's job (and perhaps the caller does not care).
50041
50042         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
50043         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
50044         If the file already exists but is not a directory, don't bother
50045         to try to make its parents.
50046         Close potential file descriptor leak if we can't chdir("/") (!).
50047         Don't always return true if chdir($PWD) fails; return true only
50048         if the requested action was done successfully (except for the
50049         chdir($PWD)).
50050         Don't log final directory unless we actually made it.
50051         Refactor to avoid duplicate code to fix up permissions.
50052         Don't attempt to fix up parent permissions if chdir($PWD) fails.
50053
50054         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
50055         to make it a bit faster and (I hope) clearer.
50056         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
50057         Fix bug in formats like %2N.
50058
50059         * lib/verify.h: New file.
50060
50061 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50062
50063         Sync from coreutils.
50064         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
50065
50066 2005-09-22  Jim Meyering  <jim@meyering.net>
50067
50068         Sync from coreutils.
50069
50070         * m4/lstat.m4 (gl_FUNC_LSTAT):
50071         Use AC_LIBSOURCES to require lstat.c and lstat.h.
50072         Remove obsolete comment.
50073         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
50074         * m4/xstrtod.m4: Likewise.
50075
50076         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
50077
50078 2005-09-22  Jim Meyering  <jim@meyering.net>
50079
50080         Sync from coreutils.
50081
50082         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
50083
50084         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
50085         the .tm_year member, since otherwise gcc-4.0 would now warn about
50086         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
50087
50088         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
50089         order to avoid an unsuppressible warning from gcc on 64-bit systems.
50090
50091         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50092         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50093         when run in a time zone for which daylight savings time is in effect
50094         for the starting date.
50095
50096         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50097         stop us from restricting permissions of just-created absolute-named
50098         directories.
50099         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50100         to restore initial working directory.
50101         * lib/mkdir-p.c (make_dir_parents): New parameter:
50102         different_working_dir, to tell caller if/when we change the working
50103         directory and are unable to return to the initial one.
50104         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50105         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50106         `return false'.  This fixes a bug introduced on 2004-07-30.
50107
50108         * lib/openat.c (fdopendir): Be sure to close the supplied
50109         file descriptor before returning.  This makes our replacement
50110         implementation a little closer to Solaris's, where fdopendir
50111         ties the file descriptor to the returned DIR* pointer.
50112         * lib/openat.c (unlinkat): New function.
50113         * lib/openat.h (unlinkat): Add prototype.
50114         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50115         (openat_restore_fail): Rename from openat_restore_die.
50116         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50117
50118         Provide an alternative to exiting immediately upon save_cwd or
50119         restore_cwd failure.  Now, an application can arrange e.g.,
50120         to perform a longjump in that case.
50121         * lib/openat.c: Include dirname.h.
50122         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50123         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50124         and openat_restore_die rather than calling error directly.
50125         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50126
50127         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50128         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50129         define.
50130
50131         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50132         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50133                             int utc, int nanoseconds);
50134         Background:
50135         date should not have to allocate a megabyte of virtual memory to
50136         handle a format argument like +%1048575T.  When implemented with
50137         strftime, it must allocate such a buffer, use strftime to fill it
50138         in, print it, then free it.
50139         With fprintftime, it simply prints everything and exits.
50140         With no need for memory allocation, that's one fewer way to fail.
50141         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50142         optional field width, not before, so we accept %9:z, not %:9z.
50143         (my_strftime): Be sure to use L_('x') for literals.
50144
50145         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50146         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50147         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50148         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50149         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50150         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50151         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50152         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50153         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50154         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50155         * lib/xgethostname.c, lib/xreadlink.c:
50156         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50157
50158         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50159         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50160         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50161         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50162         and don't include <sys/file.h>).
50163
50164 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50165
50166         Sync from coreutils.
50167
50168         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50169         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50170         [!LDAV_DONE]: Avoid unused variable warning.
50171
50172 2005-09-21  Bruno Haible  <bruno@clisp.org>
50173
50174         * lib/unicodeio.h (unicode_to_mb): New declaration.
50175
50176 2005-09-20  Derek Price  <derek@ximbiot.com>
50177
50178         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50179         getaddrinfo.h.
50180
50181 2005-09-20  Bruno Haible  <bruno@clisp.org>
50182
50183         * gnulib-tool: Remove trailing slashes from the values specified for
50184         --source-base, --m4-base, --tests-base, --aux-dir.
50185         Suggested by Simon Josefsson <jas@extundo.com>.
50186
50187 2005-09-20  Bruno Haible  <bruno@clisp.org>
50188
50189         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50190         func_modules_to_filelist, func_import, func_create_testdir): Make all
50191         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50192         change when gnulib-tool is invoked in a different locale.
50193
50194 2005-09-19  Simon Josefsson  <jas@extundo.com>
50195
50196         * m4/socklen.m4: Fix typo.
50197
50198 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50199
50200         Use a consistent style for including <config.h>.
50201         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50202         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50203         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50204         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50205         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50206         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50207         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50208         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50209         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50210         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50211         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50212         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50213         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50214         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50215         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50216         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50217         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50218         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50219         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50220         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50221         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50222         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50223         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50224         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50225         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50226         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50227         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50228         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50229         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50230         lib/xstrtoumax.c, lib/yesno.c:
50231         Standardize inclusion of config.h.
50232         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50233         lib/inttostr.h:  Removed inclusion of config.h from header files.
50234         * lib/inttostr.c:  Adjusted in-tree users.
50235         * lib/timespec.h: Remove superfluous warning to include config.h.
50236         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50237         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50238         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50239         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50240         config.h with HAVE_CONFIG_H.
50241
50242 2005-09-19  Jim Meyering  <jim@meyering.net>
50243
50244         * modules/pathmax (License): Change to LGPL.
50245
50246 2005-09-19  Derek Price  <derek@ximbiot.com>
50247
50248         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50249
50250 2005-09-19  Bruno Haible  <bruno@clisp.org>
50251
50252         * gnulib-tool (import): Provide default for --tests-base.
50253
50254 2005-09-19  Bruno Haible  <bruno@clisp.org>
50255
50256         * doc/quote.texi: New file, extracted from gnulib.texi.
50257         * doc/ctime.texi: New file, extracted from gnulib.texi.
50258         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50259         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50260         * doc/gnulib.texi: Include them.
50261
50262 2005-09-18  Bruno Haible  <bruno@clisp.org>
50263
50264         Portability fix.
50265         * gnulib-tool (func_readlink): New function.
50266         (func_ln_if_changed): Use it.
50267
50268 2005-09-18  Bruno Haible  <bruno@clisp.org>
50269
50270         * gnulib-tool: Support --with-tests also with --import.
50271         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50272         (func_import): Use variables $testsbase and $inctests. Emit a
50273         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50274         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50275         SUBDIRS += $testsdir.
50276         (func_create_testdir): Update.
50277
50278 2005-09-18  Bruno Haible  <bruno@clisp.org>
50279
50280         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50281         instead of $dry_run.
50282         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50283         (func_ln_if_changed): Don't handle dry-run here.
50284         (func_import): In dry-run mode, detect more precisely which actions
50285         would be performed, and don't use "...ing" verbs.
50286
50287 2005-09-18  Bruno Haible  <bruno@clisp.org>
50288
50289         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50290         (func_import): Use join on two temporary files instead of three nested
50291         loops, in order to determine which files are new or old.
50292
50293 2005-09-18  Bruno Haible  <bruno@clisp.org>
50294
50295         * gnulib-tool (func_import): Comment out code that spits out the
50296         new files with --dry-run.
50297
50298 2005-09-18  Bruno Haible  <bruno@clisp.org>
50299
50300         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50301
50302 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50303
50304         * lib/stat-time.h: New file.
50305         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50306         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50307         in a different way.
50308         (timespec_cmp): New function.
50309         * lib/utimecmp.c: Include stat-time.h.
50310         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50311         members exist, not on the obsolescent ST_MTIM_NSEC.
50312         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50313
50314 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50315
50316         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50317
50318 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50319
50320         * MODULES.html.sh (File system functions): Add stat-time.
50321         * modules/stat-time: New file.
50322         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50323         is now done in a different way, by the stat-time module.
50324         * modules/utimecmp (Depends-on): Add stat-time.
50325
50326 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50327
50328         * m4/st_mtim.m4: Remove.  Superseded by...
50329         * m4/stat-time.m4: New file.
50330         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50331         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50332
50333 2005-09-15  Derek Price  <derek@ximbiot.com>
50334
50335         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50336
50337 2005-09-15  Derek Price  <derek@ximbiot.com>
50338
50339         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50340         * lib/regex_internal.c: Ditto, using this...
50341         (__GNUC_PREREQ): ...new macro.
50342         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50343         using...
50344         (__GNUC_PREREQ): ...this new macro.
50345
50346         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50347
50348 2005-09-15  Derek Price  <derek@ximbiot.com>
50349             Paul Eggert  <eggert@cs.ucla.edu>
50350
50351         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50352         changes, consolidating in...
50353         * lib/regex_internal.h: ...this file.
50354
50355 2005-09-13  Jim Meyering  <jim@meyering.net>
50356
50357         * lib/canon-host.c: Filter through gnu indent and reword comments
50358         slightly.
50359         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50360
50361 2005-09-13  Derek Price  <derek@ximbiot.com>
50362
50363         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50364         failure.
50365         Reported by Jim Meyering  <jim@meyering.net>.
50366
50367 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50368
50369         * lib/base64.c: Typo.
50370         (base64_encode): Put b64str in initialized data section.
50371
50372 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50373
50374         Merge glibc and coreutils changes into gnulib, plus a few
50375         extra fixes.
50376         * lib/md5.c: Use #error rather than a string.
50377         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50378         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50379         (__attribute__): Define to empty for non recent-GCC.
50380         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50381         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50382         Renamed from their non-__ counterparts, with new macros replacing
50383         them if not _LIBC.  Add __THROW attribute.
50384         (rol): Remove.
50385         (struct md5_ctx): Align buffer if using GCC.
50386         * lib/sha1.h (struct sha1_ctx): Likewise.
50387         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50388         The old name was backwards.
50389         (NOTSWAP): Remove; not used.
50390         (rol): New macro, moved here from md5.h.
50391         (sha1_process_block): Remove a FIXME that doesn't make sense.
50392
50393 2005-09-12  Derek Price  <derek@ximbiot.com>
50394
50395         Return usable errors from canon-host.
50396         * lib/canon-host.h: New file.
50397         * lib/canon-host.c (canon_host): Wrap...
50398         (canon_host_r): ...this new function, which now relies exclusively on
50399         getaddrinfo.
50400         (ch_strerror): New function.
50401         (last_cherror): New global.
50402         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50403         interface.
50404         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50405         void *.
50406         (freeaddrinfo): Free ai->ai_canonname when set.
50407
50408 2005-09-12  Derek Price  <derek@ximbiot.com>
50409
50410         Make canon-host require getaddrinfo.
50411         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50412         AC_LIBSOURCE canon-host.h.  Call...
50413         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50414         gl_GETADDRINFO.
50415         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50416
50417 2005-09-12  Derek Price  <derek@ximbiot.com>
50418
50419         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50420         LGPL.
50421         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50422
50423 2005-09-12  Derek Price  <derek@ximbiot.com>
50424
50425         * lib/gai_strerror.c: Include config.h when available.  Include
50426         getaddrinfo.h before other headers to test interface.
50427         Reported by Larry Jones <lawrence.jones@ugs.com>.
50428
50429 2005-09-12  Derek Price  <derek@ximbiot.com>
50430             Paul Eggert  <eggert@cs.ucla.edu>
50431
50432         * modules/glob (Files): Add glob-libc.h.
50433
50434 2005-09-12  Derek Price  <derek@ximbiot.com>
50435             Paul Eggert  <eggert@cs.ucla.edu>
50436
50437         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50438         glob_.h, glob-libc.h.
50439         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50440
50441 2005-09-12  Derek Price  <derek@ximbiot.com>
50442             Paul Eggert  <eggert@cs.ucla.edu>
50443
50444         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50445         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50446         protecting things that should be done only in gnulib contexts.
50447         * lib/glob_.h: New file, containing only the glob things needed for
50448         gnulib.
50449         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50450         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50451         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50452         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50453         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50454         and to respect the namespace rules better.
50455
50456 2005-09-08  Simon Josefsson  <jas@extundo.com>
50457
50458         * modules/socklen: New file.
50459
50460 2005-09-08  Simon Josefsson  <jas@extundo.com>
50461
50462         * m4/socklen.m4: New file.
50463
50464 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50465
50466         * modules/utimens (Files): Add m4/utimbuf.m4, since
50467         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50468         Reported by Sergey Poznyakoff.
50469
50470 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50471
50472         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50473         definitions, since that's the preferred style in glibc.
50474         Fix a minor spacing issue, and update copyright notice to match
50475         glibc's.
50476
50477 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50478
50479         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50480
50481 2005-09-06  Simon Josefsson  <jas@extundo.com>
50482
50483         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50484         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50485
50486 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50487
50488         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50489         warning.
50490
50491 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50492
50493         * config/srclist.txt: Add glibc bug 1302.
50494
50495 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50496
50497         Change bitset word type from unsigned int to unsigned long int,
50498         as this has better performance on typical 64-bit hosts.
50499         Port bitset code to hosts with unusual word sizes.
50500         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50501         (build_collating_symbol):
50502         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50503         argument is a bitset.  This is merely a style issue, but it makes
50504         it clearer that an entire array is expected.
50505         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50506         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50507         Port to the case where bitset_word is not the same as unsigned int.
50508         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50509         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50510         Likewise.
50511         * lib/regexec.c (check_dst_limits_calc_pos_1,
50512         check_subexp_matching_top):
50513         (build_trtable, group_nodes_into_DFAstates):
50514         Likewise.
50515         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50516         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50517         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50518         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50519         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50520         * lib/regcomp.c (optimize_subexps, lower_subexp):
50521         Work even if bitset_word has holes in its bitwise representation.
50522         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50523         * lib/regexec.c (check_dst_limits_calc_pos_1,
50524         check_subexp_matching_top):
50525         Likewise.
50526         * lib/regex_internal.c (re_string_reconstruct):
50527         Don't assume UCHAR_MAX == 255.
50528         * lib/regex_internal.h (bitset_set_all): Likewise.
50529         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50530         All uses changed.
50531         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50532         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50533         All uses changed.
50534         (BITSET_WORD_MAX): New macro.
50535         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50536         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50537         (bitset_empty, bitset_copy):
50538         Prefer sizeof (bitset) to multiplying it out ourselves.
50539         (bitset_not_merge): Remove; unused.
50540         (bitset_contain): Return bool, not unsigned int with one bit on.
50541         All callers changed.
50542         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50543         alignment than re_node_set; do this by defining a new internal
50544         type struct dests_alloc and using it to allocate memory.
50545
50546 2005-09-05  Bruno Haible  <bruno@clisp.org>
50547
50548         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50549         links.
50550
50551 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50552
50553         * modules/size_max (Makefile.am): Add size_max.h
50554
50555 2005-09-04  Derek Price  <derek@ximbiot.com>
50556
50557         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50558
50559 2005-09-03  Simon Josefsson  <jas@extundo.com>
50560
50561         * gnulib-tool: Fix typo.
50562
50563 2005-09-03  Simon Josefsson  <jas@extundo.com>
50564
50565         * config/srclist.txt: Add glibc bug 1293.
50566
50567 2005-09-03  Derek Price  <derek@ximbiot.com>
50568
50569         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50570         From Larry Jones <lawrence.jones@ugs.com>.
50571
50572 2005-09-02  Simon Josefsson  <jas@extundo.com>
50573
50574         * modules/socklen: New file.
50575
50576 2005-09-02  Simon Josefsson  <jas@extundo.com>
50577
50578         * modules/havelib: New module.
50579
50580         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50581         Use havelib.
50582
50583 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50584
50585         Check for arithmetic overflow when calculating sizes, to prevent
50586         some buffer-overflow issues.  These patches are conservative, in the
50587         sense that when I couldn't determine whether an overflow was possible,
50588         I inserted a run-time check.
50589         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50590         macros.
50591         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50592         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50593         (re_xnrealloc, re_x2nrealloc): New inline functions.
50594         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50595         parse_bracket_exp):
50596         (build_equiv_class, build_charclass): Check for arithmetic overflow
50597         in size expression calculations.
50598         * lib/regex_internal.c (re_string_realloc_buffers):
50599         (build_wcs_upper_buffer, re_node_set_add_intersect):
50600         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50601         (re_dfa_add_node, register_state): Likewise.
50602         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50603         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50604         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50605         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50606
50607 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50608
50609         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50610         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50611
50612 2005-09-02  Bruno Haible  <bruno@clisp.org>
50613
50614         Support for lib vs. lib64 distinction on biarch platforms.
50615         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50616         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50617         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50618
50619 2005-09-02  Bruno Haible  <bruno@clisp.org>
50620
50621         * gnulib-tool (import): In the other first-use case, provide defaults
50622         as well.
50623
50624 2005-09-02  Bruno Haible  <bruno@clisp.org>
50625
50626         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50627         patches not yet found in the latest gettext release.
50628
50629 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50630
50631         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50632         to avoid a collision with bits/local_lim.h in glibc.
50633         All uses changed.  Problem reported by Dmitry V. Levin in
50634         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50635
50636         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50637         bugs in int versus size_t comparisons.
50638         (re_string_context_at): Fix bug where the code assumed that
50639         Idx is signed.
50640
50641         Use bool where appropriate.
50642         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50643         All callers changed.
50644         (calc_eclosure_iter): Likewise, for ROOT arg.
50645         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50646         (build_charclass_op): Likewise, for NON_MATCH arg.
50647         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50648         (re_string_construct_common): Likewise, for ICASE arg.
50649         * lib/regexec.c (re_search_2_stub, re_search_stub):
50650         Likewise, for RET_LEN arg.
50651         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50652         (set_regs): Likewise, for FL_BACKTRACK arg.
50653         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50654         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50655         (calc_eclosure_iter, parse_bracket_exp):
50656         Use bool for internal variables that are booleans.
50657         * lib/regexec.c (re_search_internal, check_matching,
50658         proceed_next_node):
50659         (set_regs, build_sifted_states, sift_states_bkref):
50660         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50661         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50662         (find_collation_sequence_value):
50663         Likewise.
50664         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50665         (re_node_set_compare):
50666         Return bool, not int. All callers changed.
50667         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50668         (build_trtable, check_node_accept): Likewise.
50669         * lib/regex_internal.h: Include stdbool.h.
50670
50671         Fix bugs uncovered when converting to bool.
50672         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50673         failure instead of charging ahead blindly.
50674         * lib/regex_internal.c (register_state): Likewise.
50675         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50676         for freeing internal storage.
50677         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50678         bitset pieces used as boolean, to avoid undefined behavior
50679         on hosts that do int overflow checking.
50680
50681 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50682
50683         * config/srclist.txt: Add glibc bugs 1285-1287.
50684
50685 2005-09-01  Jim Meyering  <jim@meyering.net>
50686
50687         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50688         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50689         Require gl_STAT_MACROS, too.
50690
50691 2005-09-01  Bruno Haible  <bruno@clisp.org>
50692
50693         * gnulib-tool (import): In the first-use case, provide defaults.
50694
50695 2005-09-01  Bruno Haible  <bruno@clisp.org>
50696
50697         * gnulib-tool (func_import): Remove the .tmp files.
50698
50699 2005-09-01  Bruno Haible  <bruno@clisp.org>
50700
50701         * gnulib-tool (func_import): Fix handling of symbolic links.
50702
50703 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50704
50705         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50706         old glibc regex code mishandles strings longer than 2**31 bytes.
50707         This patch fixes this when the regex code is used in gnulib
50708         (i.e., outside glibc).
50709
50710         This patch should not affect the use of the regex code inside
50711         glibc.  No doubt this problem also needs to be handled for glibc
50712         as well, but the result will be an incompatible change to the
50713         glibc ABI, and the old ABI will have to be supported too.  That
50714         can be the the subject for another patch.
50715
50716         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50717         governing whether the rest of this patch is active.  By default,
50718         the macro is disabled and the patch has no effect.
50719         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50720         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50721         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50722         (re_match_2, re_set_registers): Use the new types.
50723         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50724         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50725         New macros.
50726         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50727         (re_string_context_at, bin_tree_t, re_dfastate_t):
50728         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50729         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50730         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50731         (re_string_char_size_at, re_string_wchar_at):
50732         (re_string_elem_size_at):
50733         Use the new types and macros to port to 64-bit hosts.
50734         Use unsigned types for internal values, so that the code
50735         mostly works even for arrays larger than SSIZE_MAX.
50736         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50737         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50738         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50739         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50740         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50741         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50742         (calc_inveclosure, parse_dup_op, build_range_exp):
50743         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50744         (fetch_number, create_token_tree, mark_opt_subexp):
50745         Likewise.
50746         * lib/regex_internal.c (re_string_construct_common,
50747         create_ci_newstate):
50748         (create_cd_newstate, re_string_allocate, re_string_construct):
50749         (re_string_realloc_buffers, build_wcs_upper_buffer):
50750         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50751         (re_string_reconstruct, re_string_peek_byte_case):
50752         (re_string_fetch_byte_case, re_string_context_at):
50753         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50754         (re_node_set_init_copy, re_node_set_add_intersect):
50755         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50756         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50757         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50758         (re_acquire_state, re_acquire_state_context, register_state):
50759         Likewise.
50760         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50761         search_cur_bkref_entry):
50762         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50763         (re_search_internal, re_search_2_stub, re_search_stub)
50764         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50765         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50766         (update_cur_sifted_state, check_dst_limits):
50767         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50768         (check_subexp_limits, sift_states_bkref, merge_state_array):
50769         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50770         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50771         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50772         (expand_bkref_cache, check_node_accept_bytes):
50773         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50774         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50775         (acquire_init_state_context, check_halt_node_context):
50776         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50777         (sift_states_backward, clean_state_log_if_needed):
50778         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50779         (find_recover_state, transit_state_sb, transit_state_mb):
50780         (transit_state_bkref, build_trtable, match_ctx_clean):
50781         Likewise.
50782         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50783         to work around an assumption that REG_MISSING is negative.
50784
50785         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50786         (seek_collating_symbol_entry) [defined _LIBC]:
50787         (lookup_collation_sequence_value) [defined _LIBC]:
50788         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50789         Use prototypes rather than old-style function definitions.
50790         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50791         (transit_state_sb) [0]:
50792         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50793
50794         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50795         rm_eo.
50796
50797         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50798         (optimize_subexps, lower_subexp):
50799         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50800         since the signed shift might overflow.  Use 1u<<31 instead.
50801         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50802         Likewise.
50803         * lib/regexec.c (check_dst_limits_calc_pos_1,
50804         check_subexp_matching_top): Likewise.
50805
50806         * lib/regcomp.c (optimize_subexps, lower_subexp):
50807         Use CHAR_BIT rather than 8, for clarity.
50808         * lib/regexec.c (check_dst_limits_calc_pos_1):
50809         (check_subexp_matching_top): Likewise.
50810         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50811         have to worry about portability issues when shifting it left.
50812         Remove no-longer-needed test for table_size > 0.
50813         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50814         in a word, as the resulting behavior is undefined.
50815         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50816         in one case, a <= should have been an <, and in another case the
50817         whole test was missing.
50818         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50819         the standard name CHAR_BIT.
50820         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50821         this is not true on one's complement and signed-magnitude hosts.
50822
50823         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50824         next_last_offset.
50825         (struct re_dfa_t): Remove unused member states_alloc.
50826         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50827
50828 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50829
50830         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50831         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50832         and large-file glibc and in 32-bit large-file Solaris.
50833
50834 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50835
50836         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50837         lengths fit in regoff_t; this isn't true if regoff_t is the same
50838         width as size_t.
50839         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50840         (= START + RANGE) instead of RANGE.  This avoids overflow
50841         problems when regoff_t is the same width as size_t.
50842         All callers changed.
50843         (re_search_2_stub): Check for overflow when adding the
50844         sizes of the two strings.
50845         (re_search_stub): Check for overflow when adding START
50846         to RANGE; if it occurs, substitute the extreme value.
50847
50848 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50849
50850         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50851
50852 2005-08-31  Jim Meyering  <jim@meyering.net>
50853
50854         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50855         a pointer-to-const.
50856         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50857         (register_state): Likewise.
50858         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50859         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50860         (group_nodes_into_DFAstates): Likewise.
50861
50862 2005-08-31  Jim Meyering  <jim@meyering.net>
50863
50864         * check-module: Add a FIXME comment.
50865
50866 2005-08-31  Eric Blake  <ebb9@byu.net>
50867
50868         * modules/unistd-safer (Files): Add unistd--.h.
50869         * modules/stdio-safer (Files): Add stdio--.h.
50870
50871 2005-08-31  Derek Price  <derek@ximbiot.com>
50872
50873         * lib/getdelim.c (getdelim): Return EOF on EOF.
50874         Reported by Larry Jones <lawrence.jones@ugs.com>.
50875
50876 2005-08-31  Bruno Haible  <bruno@clisp.org>
50877
50878         Avoid unnecessary diffs in the generated lib/Makefile.am.
50879         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50880         the generated files.
50881         (func_import): Don't set cmd.
50882
50883 2005-08-31  Bruno Haible  <bruno@clisp.org>
50884
50885         * lib/strstr.c: Include <stddef.h>, for NULL.
50886         * lib/strcasestr.c: Likewise.
50887         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50888
50889 2005-08-31  Bruno Haible  <bruno@clisp.org>
50890
50891         * gnulib-tool: New option --macro-prefix.
50892         (func_import): Use macro_prefix.
50893         (import): Handle option --macro-prefix.
50894
50895 2005-08-31  Bruno Haible  <bruno@clisp.org>
50896
50897         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50898         Also use new variables cached_lgpl, cached_libtool.
50899
50900 2005-08-31  Bruno Haible  <bruno@clisp.org>
50901
50902         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50903         always instantiating them.
50904
50905 2005-08-31  Bruno Haible  <bruno@clisp.org>
50906
50907         * gnulib-tool (func_import): Read the previous cached settings
50908         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50909         earlier added by gnulib but are now dropped. Warn when a gnulib file
50910         overwrites a non-gnulib file.
50911
50912 2005-08-31  Bruno Haible  <bruno@clisp.org>
50913
50914         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50915         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50916         projects that don't keep autogenerated files in CVS. Put into
50917         actioncmd only the specified modules, not the transitive closure.
50918
50919 2005-08-31  Bruno Haible  <bruno@clisp.org>
50920
50921         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50922         Create directories that shall be filled.
50923         (import): Don't look for gl_* macros in configure.ac. Recurse across
50924         all directories containing a gnulib-cache.m4 files, if meaningful.
50925
50926 2005-08-31  Bruno Haible  <bruno@clisp.org>
50927
50928         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50929         (import): Set seen_libtool when we see gl_LIBTOOL.
50930
50931 2005-08-31  Bruno Haible  <bruno@clisp.org>
50932
50933         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50934         declaration macro definitions from generated gnulib.m4.
50935
50936 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50937
50938         * lib/iconvme.h: Add prototype for iconv_alloc.
50939
50940 2005-08-29  Simon Josefsson  <jas@extundo.com>
50941
50942         * lib/iconvme.c: Fix errno.
50943
50944 2005-08-29  Bruno Haible  <bruno@clisp.org>
50945
50946         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50947         that it works when the directory contains spaces.
50948
50949 2005-08-29  Bruno Haible  <bruno@clisp.org>
50950
50951         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50952
50953 2005-08-29  Bruno Haible  <bruno@clisp.org>
50954
50955         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50956         Emit more advice.
50957
50958 2005-08-29  Bruno Haible  <bruno@clisp.org>
50959         and Stepan Kasal  <kasal@ucw.cz>
50960
50961         * check-module: If more parameters are given, check each of them
50962         separately; add more exceptions, as noted by Jim Meyering.
50963         (check_module): New procedure.
50964         (%exempt_header): Now contains all exceptions.
50965
50966 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50967
50968         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50969
50970 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50971
50972         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50973
50974 2005-08-28  Bruno Haible  <bruno@clisp.org>
50975
50976         * m4/gnulib-tool.m4: New file.
50977
50978 2005-08-27  Jim Meyering  <jim@meyering.net>
50979
50980         * modules/unistd-safer (Files): Add pipe-safer.c.
50981         * modules/fcntl-safer (Files): Add creat-safer.c.
50982
50983 2005-08-27  Jim Meyering  <jim@meyering.net>
50984
50985         * m4/stdlib-safer.m4: New file.  From coreutils.
50986         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50987         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50988         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50989         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50990         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50991
50992 2005-08-27  Jim Meyering  <jim@meyering.net>
50993
50994         * lib/fopen-safer.c: Merge minor changes from coreutils.
50995         * lib/dup-safer.c: Likewise.
50996         * lib/fd-safer.c: Likewise.
50997
50998         Merge from coreutils.
50999         * lib/stdio--.h: New file.
51000         * lib/stdlib--.h: New file.
51001         * lib/mkstemp-safer.c: New file.
51002
51003         GNU tar needs these.
51004         * lib/pipe-safer.c: New file.
51005         * lib/creat-safer.c: New file.
51006         * lib/fcntl--.h (creat): Define to creat_safer.
51007         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
51008         * lib/unistd--.h (pipe): Define to pipe_safer.
51009         * lib/unistd-safer.h: Declare pipe_safer.
51010
51011 2005-08-26  Simon Josefsson  <jas@extundo.com>
51012
51013         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
51014         Haible <bruno@clisp.org>.
51015
51016 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
51017
51018         * lib/regex_internal.h: Remove all references to
51019         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
51020         or better.
51021         (bitset_not, bitset_merge, bitset_not_merge):
51022         (bitset_mask, re_string_allocate, re_string_construct):
51023         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
51024         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
51025         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
51026         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
51027         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51028         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51029         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
51030         (re_acquire_state_context):
51031         Remove unnecessary forward decls.
51032         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
51033         Put __attribute at function definition,
51034         now that the function decl has been removed.
51035         * lib/regex_internal.c (re_string_peek_byte_case):
51036         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
51037         Likewise.
51038
51039 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
51040
51041         * m4/regex.m4: Add AC_PREREQ(2.50).
51042         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
51043
51044 2005-08-25  Simon Josefsson  <jas@extundo.com>
51045
51046         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
51047         __fsetlocking.
51048
51049 2005-08-25  Simon Josefsson  <jas@extundo.com>
51050
51051         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
51052         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
51053         GLIBC specific code.
51054
51055 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51056
51057         Make regex safe for g++.  This fixes one real bug (an "err"
51058         that should have been "*err").  g++ problem reported by
51059         Sam Steingold.
51060         * lib/regex_internal.h (re_calloc): New macro, consistent with
51061         re_malloc etc.  All callers of calloc changed to use re_calloc.
51062         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
51063         not int.  All callers changed.
51064         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
51065         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
51066         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
51067         (find_recover_state): Change "err" to "*err"; this fixes what
51068         appears to be a real bug.
51069         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
51070         versus int.
51071
51072 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51073
51074         * modules/regex (Depends-on): Add malloc, since the code
51075         assumes that !malloc(0) means failure.
51076
51077 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51078
51079         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
51080
51081         alloca modernization/simplification for regex.
51082         * lib/regex.c: Remove portability cruft for alloca.  This no longer
51083         needs to be at the start of the file, and can be moved into
51084         regex_internal.h and simplified.
51085         * lib/regex_internal.h: Include <alloca.h>.
51086         (__libc_use_alloca) [!defined _LIBC]: New macro.
51087         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
51088         now works outside glibc.
51089
51090 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51091
51092         * config/srclist.txt: Add glibc bugs 1241, 1245.
51093
51094 2005-08-25  Jim Meyering  <jim@meyering.net>
51095
51096         * lib/open-safer.c: Include <config.h>.
51097         Otherwise, we'd lose LARGEFILE support in any file using
51098         e.g. "fcntl--.h"
51099
51100 2005-08-25  Bruno Haible  <bruno@clisp.org>
51101
51102         * m4/minmax.m4: Require autoconf 2.52.
51103         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51104         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51105         alternatives of translit over the alphabet.
51106         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51107
51108 2005-08-24  Simon Josefsson  <jas@extundo.com>
51109
51110         * tests/test-getpass.c: New file.
51111
51112 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51113
51114         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51115         for GNU regex features.
51116
51117 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51118
51119         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51120         * lib/regex.h (regerror): Likewise.
51121
51122         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51123         requires this.  (The code never needed it.)
51124
51125         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51126         All uses of recently-renamed identifiers changed to use the new,
51127         POSIX-compliant names.  The code will build and run just fine
51128         without these changes, but it's better to eat our own dog food
51129         and use the standard-conforming names.
51130
51131         * lib/regex.h: Fix a multitude of POSIX name space violations.
51132         These changes have an effect only for programs that define
51133         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51134         do not change anything for programs compiled in the normal way.
51135         Also, there is no effect on the ABI.
51136
51137         (_REGEX_SOURCE): New macro.
51138         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51139         defined and _GNU_SOURCE is not; this fixes a name space violation.
51140
51141         Rename the following macros to obey POSIX requirements.
51142         The old names are still visible as macros if _REGEX_SOURCE is defined.
51143         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51144         RE_BACKSLASH_ESCAPE_IN_LISTS.
51145         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51146         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51147         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51148         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51149         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51150         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51151         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51152         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51153         (REG_INTERVALS): renamed from RE_INTERVALS.
51154         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51155         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51156         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51157         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51158         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51159         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51160         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51161         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51162         RE_UNMATCHED_RIGHT_PAREN_ORD.
51163         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51164         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51165         (REG_DEBUG): renamed from RE_DEBUG.
51166         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51167         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51168         unusual, since we can't clash with the POSIX REG_ICASE.
51169         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51170         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51171         (REG_NO_SUB): renamed from RE_NO_SUB.
51172         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51173         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51174         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51175         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51176         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51177         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51178         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51179         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51180         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51181         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51182         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51183         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51184         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51185         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51186         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51187         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51188         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51189         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51190         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51191         (REG_FIXED): Renamed from REGS_FIXED.
51192         (REG_NREGS): Renamed from RE_NREGS.
51193
51194         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51195         of other REG_* macros, since POSIX says the user is allowed to
51196         #undef these macros selectively.
51197
51198         (reg_errcode_t): Update comment stating what other tables need
51199         to be consistent.
51200
51201         Rename the following enum values to obey POSIX requirements.
51202         The old names are still visible as macros.
51203         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51204         is not defined, since GNU is supposed to be a superset of POSIX as
51205         much as possible, and since we want reg_errcode_t to be a signed
51206         type for implementation consistency.
51207         (_REG_NOERROR): Renamed from REG_NOERROR.
51208         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51209         (_REG_BADPAT): Renamed from REG_BADPAT.
51210         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51211         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51212         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51213         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51214         (_REG_EBRACK): Renamed from REG_EBRACK.
51215         (_REG_EPAREN): Renamed from REG_EPAREN.
51216         (_REG_EBRACE): Renamed from REG_EBRACE.
51217         (_REG_BADBR): Renamed from REG_BADBR.
51218         (_REG_ERANGE): Renamed from REG_ERANGE.
51219         (_REG_ESPACE): Renamed from REG_ESPACE.
51220         (_REG_BADRPT): Renamed from REG_BADRPT.
51221         (_REG_EEND): Renamed from REG_EEND.
51222         (_REG_ESIZE): Renamed from REG_ESIZE.
51223         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51224         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51225         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51226         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51227         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51228
51229         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51230         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51231         changed.  But support the old name if the new one is not defined
51232         and if _REGEX_SOURCE.
51233
51234         Change the following member names in struct re_pattern_buffer.
51235         The old names are still supported if !_REGEX_SOURCE.
51236         The new names are always supported, regardless of _REGEX_SOURCE.
51237         (re_buffer): Renamed from buffer.
51238         (re_allocated): Renamed from allocated.
51239         (re_used): Renamed from used.
51240         (re_syntax): Renamed from syntax.
51241         (re_fastmap): Renamed from fastmap.
51242         (re_translate): Renamed from translate.
51243         (re_can_be_null): Renamed from can_be_null.
51244         (re_regs_allocated): Renamed from regs_allocated.
51245         (re_fastmap_accurate): Renamed from fastmap_accurate.
51246         (re_no_sub): Renamed from no_sub.
51247         (re_not_bol): Renamed from not_bol.
51248         (re_not_eol): Renamed from not_eol.
51249         (re_newline_anchor): Renamed from newline_anchor.
51250
51251         Change the following member names in struct re_registers.
51252         The old names are still supported if !_REGEX_SOURCE.
51253         The new names are always supported, regardless of _REGEX_SOURCE.
51254         (rm_num_regs): Renamed from num_regs.
51255         (rm_start): Renamed from start.
51256         (rm_end): Renamed from end.
51257
51258         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51259         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51260         Prepend __ to parameter names.
51261
51262         Undo yesterday's changes.
51263
51264 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51265
51266         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51267         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51268         lib/regex.c.
51269
51270 2005-08-24  Jim Meyering  <jim@meyering.net>
51271
51272         Sync from coreutils.
51273         * m4/fcntl-safer.m4: New file.
51274
51275         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51276         and object files for this module.
51277
51278 2005-08-24  Jim Meyering  <jim@meyering.net>
51279
51280         Sync from coreutils.
51281         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51282
51283 2005-08-24  Jim Meyering  <jim@meyering.net>
51284
51285         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51286         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51287
51288 2005-08-24  Jim Meyering  <jim@meyering.net>
51289
51290         * modules/fcntl-safer: New module.
51291         * modules/fts (Depends-on): Add fcntl-safer.
51292         * MODULES.html.sh (File descriptor based Input/Output):
51293         Add fcntl-safer.
51294
51295 2005-08-24  Bruno Haible  <bruno@clisp.org>
51296
51297         Support for unit test modules.
51298         * modules/README: Mention tests modules.
51299         * modules/TEMPLATE-TESTS: New file.
51300         * gnulib-tool: New options --extract-tests-module, --with-tests and
51301         --tests-base (unused for the moment).
51302         (testsbase, inctests): New variables.
51303         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51304         (func_verify_module): Exclude TEMPLATE-TESTS.
51305         (func_verify_nontests_module, func_verify_tests_module): New functions.
51306         (func_get_dependencies): Add implicit dependency for tests modules.
51307         (func_get_tests_module): New function.
51308         (func_modules_transitive_closure): When --with-tests was specified,
51309         include the unit tests as well, unless explicitly avoided.
51310         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51311         (func_emit_tests_Makefile_am): New function.
51312         (func_create_testdir): When --with-tests was specified, emit a
51313         tests/ directory.
51314         * MODULES.html.sh (Future developments): Update.
51315
51316 2005-08-24  Bruno Haible  <bruno@clisp.org>
51317
51318         * modules/tls-tests: New file.
51319         * tests/test-tls.c: New file, from GNU gettext.
51320
51321 2005-08-24  Bruno Haible  <bruno@clisp.org>
51322
51323         * modules/lock-tests: New file.
51324         * tests/test-lock.c: New file, from GNU gettext.
51325
51326 2005-08-24  Bruno Haible  <bruno@clisp.org>
51327
51328         * lib/lock.h: Add multiple inclusion guard.
51329         * lib/tls.h: Add multiple inclusion guard.
51330
51331 2005-08-24  Bruno Haible  <bruno@clisp.org>
51332
51333         * gnulib-tool: Add support for the --aux-dir option to
51334         --create-testdir, --create-megatestdir, --test, --megatest.
51335         (func_create_testdir, func_create_megatestdir): Optionally emit a
51336         AC_CONFIG_AUX_DIR directive.
51337         (create-testdir, create-megatestdir, test, megatest): Provide a
51338         default value for $auxdir.
51339
51340 2005-08-24  Bruno Haible  <bruno@clisp.org>
51341
51342         * gnulib-tool (import): Use compound statement instead of subshell
51343         where possible.
51344
51345 2005-08-24  Bruno Haible  <bruno@clisp.org>
51346
51347         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51348
51349 2005-08-24  Bruno Haible  <bruno@clisp.org>
51350
51351         * gnulib-tool (func_version): Update.
51352
51353 2005-08-24  Bruno Haible  <bruno@clisp.org>
51354
51355         * gnulib-tool (func_import, func_create_testdir,
51356         func_create_megatestdir): Quote all autoconf macro arguments.
51357
51358 2005-08-24  Bruno Haible  <bruno@clisp.org>
51359
51360         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51361         option --force, because --force causes the aclocal.m4 of each
51362         subdirectory to be newer than the corresponding config.h.in.
51363
51364 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51365
51366         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51367         All contents moved to gl_REGEX.
51368         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51369         assume that it does.
51370
51371 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51372
51373         * lib/regex.h (REG_NOSYS)
51374         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51375         Define, since POSIX requires it as of 2001.
51376         (_REG_ENOSYS)
51377         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51378         New private symbol, used to keep the enum signed in all cases.
51379         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51380         Youngman in
51381         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51382
51383         * lib/regex_internal.c (re_string_skip_chars, register_state):
51384         (calc_state_hash):
51385         Remove forward decls; no longer needed now that we use prototypes.
51386         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51387         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51388         (clean_state_log_if_needed): Likewise.
51389
51390 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51391
51392         * config/srclist.txt: Add glibc bugs 1231-1233.
51393
51394 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51395
51396         Fix problems reported by Sam Steingold in
51397         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51398         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51399         assumed that reg_errcode_t is a signed type, which is not
51400         necessarily true if _XOPEN_SOURCE is not defined.
51401         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51402         since some compilers warn about it otherwise.
51403
51404 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51405
51406         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51407         (init_word_char, create_initial_state, duplicate_node_closure):
51408         (fetch_token, peek_token_bracket, build_range_exp):
51409         (build_collating_symbol): Remove forward decls; no longer needed
51410         now that we use prototypes.
51411
51412         * lib/regcomp.c:
51413         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51414         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51415         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51416         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51417         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51418         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51419         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51420         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51421         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51422         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51423         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51424         (build_charclass, build_charclass_op, fetch_number, create_tree):
51425         (create_token_tree, mark_opt_subexp, duplicate_tree):
51426         Use prototypes rather than old-style definitions.
51427
51428         * lib/regex_internal.c:
51429         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51430         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51431         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51432         (re_string_reconstruct, re_string_peek_byte_case):
51433         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51434         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51435         (re_node_set_init_copy, re_node_set_add_intersect):
51436         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51437         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51438         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51439         (re_acquire_state, re_acquire_state_context, register_state):
51440         (create_ci_newstate, create_cd_newstate, free_state):
51441         Likewise.
51442         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51443         re_search_2):
51444         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51445         (re_search_internal, prune_impossible_nodes):
51446         (acquire_init_state_context, check_matching, static):
51447         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51448         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51449         (update_regs, sift_states_backward, build_sifted_states):
51450         (clean_state_log_if_needed, merge_state_array):
51451         (update_cur_sifted_state, add_epsilon_src_nodes):
51452         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51453         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51454         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51455         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51456         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51457         (check_arrival, check_arrival_add_next_nodes):
51458         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51459         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51460         (check_node_accept_bytes, check_node_accept, extend_buffers):
51461         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51462         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51463         (sift_ctx_init):
51464         Likewise.
51465
51466         * lib/regex_internal.h:
51467         (re_string_allocate, re_string_construct, re_string_reconstruct):
51468         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51469         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51470         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51471         (re_string_context_at, re_string_peek_byte_case):
51472         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51473         is defined, since we now use prototypes always.
51474
51475         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51476         C89 or better.  All uses removed.
51477
51478 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51479
51480         * config/srclist.txt: Add glibc bugs 1220-1227.
51481
51482 2005-08-20  Jim Meyering  <jim@meyering.net>
51483
51484         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51485         of unused local, dfa.
51486
51487 2005-08-20  Bruno Haible  <bruno@clisp.org>
51488
51489         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51490
51491 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51492
51493         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51494         (re_node_set_insert_last, re_dfa_add_node):
51495         Rename local variables to avoid GCC shadowing warnings.
51496
51497 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51498
51499         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51500         [defined lint]: Suppress bogus uninitialized-variable warnings.
51501
51502         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51503         and let the caller return REG_ESPACE if out of space.  This
51504         removes an uninitialied-variable warning with GCC 4.0.1, and also
51505         avoids taking the address of a local variable.  All callers
51506         changed.
51507
51508 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51509
51510         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51511         $LIBCSRC/posix/regexec.c.
51512         Add glibc bug 1217 for regcomp.c.
51513
51514 2005-08-19  Jim Meyering  <jim@meyering.net>
51515
51516         * lib/regexec.c (proceed_next_node): Redo local variables to
51517         avoid GCC shadowing warnings.
51518
51519 2005-08-18  Bruno Haible  <bruno@clisp.org>
51520
51521         * lib/strstr.c (strstr): Fix return value in multibyte case.
51522         * lib/strcasestr.c (strcasestr): Likewise.
51523
51524 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51525
51526         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51527
51528 2005-08-17  Jim Meyering  <jim@meyering.net>
51529
51530         Make the %s format (seconds since the epoch) work for a negative
51531         number and when used with a zero-padded field width, e.g. %015s.
51532
51533         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51534         label so that it precedes the code to set `digits'.  Otherwise,
51535         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51536         print `00-22'.  Now, it prints `-0022', as it should.
51537
51538 2005-08-17  Bruno Haible  <bruno@clisp.org>
51539
51540         * modules/strstr (Files): Add m4/mbrtowc.m4.
51541         (Depends-on): Add mbuiter.
51542
51543 2005-08-17  Bruno Haible  <bruno@clisp.org>
51544
51545         * modules/strcasestr: New file.
51546         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51547         strcasestr.
51548
51549 2005-08-17  Bruno Haible  <bruno@clisp.org>
51550
51551         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51552
51553 2005-08-17  Bruno Haible  <bruno@clisp.org>
51554
51555         * modules/mbuiter: New file.
51556         * MODULES.html.sh (Extended multibyte and wide character utilities):
51557         Add mbuiter.
51558
51559 2005-08-17  Bruno Haible  <bruno@clisp.org>
51560
51561         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51562         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51563
51564 2005-08-17  Bruno Haible  <bruno@clisp.org>
51565
51566         * m4/strcasestr.m4: New file.
51567
51568 2005-08-17  Bruno Haible  <bruno@clisp.org>
51569
51570         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51571         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51572
51573 2005-08-17  Bruno Haible  <bruno@clisp.org>
51574
51575         * lib/strcasestr.h: New file.
51576         * lib/strcasestr.c: New file.
51577
51578 2005-08-17  Bruno Haible  <bruno@clisp.org>
51579
51580         * lib/strcasecmp.c: Use mbuiter.h.
51581
51582 2005-08-17  Bruno Haible  <bruno@clisp.org>
51583
51584         * lib/mbuiter.h: New file.
51585
51586 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51587
51588         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51589         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51590         and gl_GETOPT are both invoked via different paths (as happens
51591         with GNU tar CVS because it uses both argp and getopt), the former
51592         wins.
51593
51594 2005-08-16  Bruno Haible  <bruno@clisp.org>
51595
51596         * modules/tls: New file.
51597         * MODULES.html.sh (Multithreading): Add tls.
51598
51599 2005-08-16  Bruno Haible  <bruno@clisp.org>
51600
51601         * modules/strnlen1: New file.
51602         * MODULES.html.sh (String handling): Add strnlen1.
51603
51604 2005-08-16  Bruno Haible  <bruno@clisp.org>
51605
51606         * modules/strcase (Files): Add m4/mbrtowc.m4.
51607         (Depends-on): Add strnlen1, mbchar.
51608
51609 2005-08-16  Bruno Haible  <bruno@clisp.org>
51610
51611         * modules/mbiter: New file.
51612         * MODULES.html.sh (Extended multibyte and wide character utilities):
51613         Add mbiter.
51614
51615 2005-08-16  Bruno Haible  <bruno@clisp.org>
51616
51617         * modules/mbfile: New file.
51618         * MODULES.html.sh (Extended multibyte and wide character utilities):
51619         Add mbfile.
51620
51621 2005-08-16  Bruno Haible  <bruno@clisp.org>
51622
51623         * modules/mbchar: New file.
51624         * MODULES.html.sh (Extended multibyte and wide character utilities):
51625         New section.
51626
51627 2005-08-16  Bruno Haible  <bruno@clisp.org>
51628
51629         * m4/tls.m4: New file, from GNU gettext.
51630
51631 2005-08-16  Bruno Haible  <bruno@clisp.org>
51632
51633         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51634         always.
51635         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51636
51637 2005-08-16  Bruno Haible  <bruno@clisp.org>
51638
51639         * m4/mbiter.m4: New file.
51640
51641 2005-08-16  Bruno Haible  <bruno@clisp.org>
51642
51643         * m4/mbfile.m4: New file.
51644
51645 2005-08-16  Bruno Haible  <bruno@clisp.org>
51646
51647         * m4/mbchar.m4: New file.
51648
51649 2005-08-16  Bruno Haible  <bruno@clisp.org>
51650
51651         * lib/tls.h: New file, from GNU gettext.
51652         * lib/tls.c: New file, from GNU gettext.
51653
51654 2005-08-16  Bruno Haible  <bruno@clisp.org>
51655
51656         * lib/strnlen1.h: New file.
51657         * lib/strnlen1.c: New file.
51658
51659 2005-08-16  Bruno Haible  <bruno@clisp.org>
51660
51661         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51662         (mbi_init): Update.
51663         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51664         NUL byte, not after it.
51665
51666 2005-08-16  Bruno Haible  <bruno@clisp.org>
51667
51668         * lib/strcase.h (strcasecmp): Add note in comments.
51669         * lib/strncasecmp.c: Use code from strcasecmp.c.
51670         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51671         (strcasecmp): Work correctly in multibyte locales.
51672
51673 2005-08-16  Bruno Haible  <bruno@clisp.org>
51674
51675         * lib/mbiter.h: New file.
51676
51677 2005-08-16  Bruno Haible  <bruno@clisp.org>
51678
51679         * lib/mbfile.h: New file.
51680
51681 2005-08-16  Bruno Haible  <bruno@clisp.org>
51682
51683         * lib/mbchar.h: New file.
51684         * lib/mbchar.c: New file.
51685
51686 2005-08-16  Bruno Haible  <bruno@clisp.org>
51687
51688         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51689         the valid ones. Makes the comparison operations transitive:
51690         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51691         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51692
51693 2005-08-15  Simon Josefsson  <jas@extundo.com>
51694
51695         * modules/ssize_t (License): Change to 'unlimited'.
51696
51697         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51698
51699 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51700
51701         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51702         Add comments for each pending glibc patch.
51703
51704 2005-08-15  Bruno Haible  <bruno@clisp.org>
51705
51706         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51707         __cplusplus is defined.
51708
51709 2005-08-14  Jim Meyering  <jim@meyering.net>
51710
51711         Sync from coreutils.
51712
51713         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51714         Use the hash-table-based cycle-detection code not just when
51715         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51716         Reported by James Youngman in
51717         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51718         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51719         FTS_TIGHT_CYCLE_CHECK.
51720         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51721         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51722         once again.
51723         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51724         * lib/fts.c (fd_safer): Remove decl.
51725         Include fcntl--.h rather than unistd-safer.h
51726         (fts_safe_changedir): Don't call fd_safer; no longer needed
51727         now that we include fcntl--.h.
51728
51729 2005-08-12  Simon Josefsson  <jas@extundo.com>
51730
51731         * modules/getndelim2: Use ssize_t module.
51732         * modules/getnline: Likewise.
51733         * modules/safe-read: Likewise.
51734         * modules/xreadlink: Likewise.
51735
51736         * modules/ssize_t: New file.
51737
51738 2005-08-12  Simon Josefsson  <jas@extundo.com>
51739
51740         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51741
51742 2005-08-12  Simon Josefsson  <jas@extundo.com>
51743
51744         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51745         ssize_t.
51746
51747 2005-08-12  Simon Josefsson  <jas@extundo.com>
51748
51749         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51750         readline, getdelim and check_version.
51751         (Support for systems lacking ISO C 99: Sizes of integer types):
51752         Add size_max.
51753
51754 2005-08-12  Bruno Haible  <bruno@clisp.org>
51755
51756         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51757
51758 2005-08-11  Simon Josefsson  <jas@extundo.com>
51759
51760         * modules/readline: New file.
51761
51762         * modules/strnlen (Files): Add strnlen.h.
51763
51764 2005-08-11  Simon Josefsson  <jas@extundo.com>
51765
51766         * m4/readline.m4: New file.
51767
51768 2005-08-11  Simon Josefsson  <jas@extundo.com>
51769
51770         * lib/readline.h, readline.c: New file.
51771
51772 2005-08-11  Simon Josefsson  <jas@extundo.com>
51773
51774         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51775         gl_AVOID.
51776
51777 2005-08-11  Bruno Haible  <bruno@clisp.org>
51778
51779         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51780
51781 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51782
51783         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51784
51785 2005-08-10  Simon Josefsson  <jas@extundo.com>
51786
51787         * tests/test-iconvme.c: New file.
51788
51789 2005-08-10  Simon Josefsson  <jas@extundo.com>
51790
51791         * m4/strnlen.m4: New file.
51792
51793         * m4/strndup.m4: Don't check for strnlen declaration, done in
51794         strnlen.m4.
51795
51796 2005-08-10  Simon Josefsson  <jas@extundo.com>
51797
51798         * lib/strndup.c: Use strnlen.h.
51799
51800         * lib/strnlen.h: New file.
51801
51802 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51803
51804         * README: Typos.
51805
51806 2005-08-02  Simon Josefsson  <jas@extundo.com>
51807
51808         * modules/readline: New file.
51809
51810 2005-08-02  Simon Josefsson  <jas@extundo.com>
51811
51812         * modules/getdelim: New file.
51813
51814         * modules/getline: Rewrite, don't use getndelim2.
51815
51816 2005-08-02  Simon Josefsson  <jas@extundo.com>
51817
51818         * m4/getline.m4: Separate out getdelim stuff into separate module.
51819
51820         * m4/getdelim.m4: New file.
51821
51822 2005-08-02  Simon Josefsson  <jas@extundo.com>
51823
51824         * lib/getline.h, getline.c: Rewrite.
51825
51826         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51827
51828 2005-07-31  Bruno Haible  <bruno@clisp.org>
51829
51830         * lib/lock.h (gl_lock_initializer): New macro.
51831         (gl_lock_define_initialized): Use it.
51832         (gl_rwlock_initializer): New macro.
51833         (gl_rwlock_define_initialized): Use it.
51834         (gl_recursive_lock_initializer): New macro.
51835         (gl_recursive_lock_define_initialized): Use it.
51836
51837 2005-07-30  Karl Berry  <karl@gnu.org>
51838
51839         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51840         Report from Ben Pfaff, regarding getopt.
51841
51842 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51843
51844         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51845         normal way.
51846         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51847         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51848         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51849         (gl_GETOPT): Use the new macros.  Most of the implementation
51850         is moved to the new macros.  This is for programs like Emacs
51851         that don't want all the functionality of gl_GETOPT.
51852
51853 2005-07-26  Bruno Haible  <bruno@clisp.org>
51854
51855         * m4/lock.m4: Update from GNU gettext.
51856
51857 2005-07-26  Bruno Haible  <bruno@clisp.org>
51858
51859         * lib/lock.h: Update from GNU gettext.
51860         * lib/lock.c: Update from GNU gettext.
51861
51862 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51863
51864         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51865         obsolescent AC_TRY_RUN.  Include the default includes files, for
51866         'exit'.
51867
51868 2005-07-24  Bruno Haible  <bruno@clisp.org>
51869
51870         * modules/visibility: New file.
51871         * MODULES.html.sh (Misc): Add visibility.
51872
51873 2005-07-24  Bruno Haible  <bruno@clisp.org>
51874
51875         * m4/visibility.m4: New file.
51876
51877 2005-07-24  Bruno Haible  <bruno@clisp.org>
51878
51879         * doc/visibility.texi: New file.
51880
51881 2005-07-22  Bruno Haible  <bruno@clisp.org>
51882
51883         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51884         $(ALLOCA_H), redundant through BUILT_SOURCES.
51885         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51886         redundant through BUILT_SOURCES.
51887         * modules/byteswap (Makefile.am): Remove explicit dependency on
51888         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51889         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51890         $(FNMATCH_H), redundant through BUILT_SOURCES.
51891         * modules/getopt (Makefile.am): Remove explicit dependency on
51892         $(GETOPT_H), redundant through BUILT_SOURCES.
51893         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51894         redundant through BUILT_SOURCES.
51895         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51896         redundant through BUILT_SOURCES.
51897         * modules/stdbool (Makefile.am): Remove explicit dependency on
51898         $(STDBOOL_H), redundant through BUILT_SOURCES.
51899         * modules/stdint (Makefile.am): Remove explicit dependency on
51900         $(STDINT_H), redundant through BUILT_SOURCES.
51901         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51902         Remove explicit dependency on $(SYSEXITS_H).
51903         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51904
51905 2005-07-18  Simon Josefsson  <jas@extundo.com>
51906
51907         * lib/check-version.c (check_version): Accept identical versions too.
51908
51909 2005-07-18  Bruno Haible  <bruno@clisp.org>
51910
51911         * modules/lock: New file.
51912         * MODULES.html.sh (Multithreading): New section.
51913
51914 2005-07-18  Bruno Haible  <bruno@clisp.org>
51915
51916         * m4/lock.m4: New file, from GNU gettext.
51917
51918 2005-07-18  Bruno Haible  <bruno@clisp.org>
51919
51920         * lib/lock.h: New file, from GNU gettext.
51921         * lib/lock.c: New file, from GNU gettext.
51922
51923 2005-07-18  Bruno Haible  <bruno@clisp.org>
51924
51925         * lib/lock.h (gl_once_t): New type.
51926         (gl_once_define, gl_once): New macros.
51927         * lib/lock.c (fresh_once): New variable.
51928         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51929         functions.
51930
51931 2005-07-16  Simon Josefsson  <jas@extundo.com>
51932
51933         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51934         workaround, suggested by Bruno.
51935
51936 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51937
51938         * modules/xalloc (Depends-on): Add xalloc-die.
51939         * modules/xvasprintf (Depends-on): Add xalloc-die.
51940
51941 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51942
51943         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51944         with a minor change.
51945
51946 2005-07-15  Bruno Haible  <bruno@clisp.org>
51947
51948         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51949         When using lib/poll.c, define poll as rpl_poll.
51950
51951 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51952
51953         * modules/argp (Depends-on): Remove unlocked-io.
51954
51955 2005-07-14  Derek Price  <derek@ximbiot.com>
51956
51957         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51958         for glob symlink bug.
51959
51960 2005-07-14  Bruno Haible  <bruno@clisp.org>
51961
51962         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51963         Instead, test for *_unlocked function declarations directly.
51964
51965 2005-07-11  Simon Josefsson  <jas@extundo.com>
51966
51967         * modules/size_max: New file.
51968
51969         * modules/xsize: Depend on size_max module for size_max.m4.
51970
51971 2005-07-11  Simon Josefsson  <jas@extundo.com>
51972
51973         * lib/size_max.h: New file.
51974
51975 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51976
51977         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51978         copyright symbol and the year.
51979         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51980         (version_etc_va): Use parameterized copyright notice.
51981         Reword to conform to the current GNU coding standards.
51982
51983 2005-07-11  Karl Berry  <karl@gnu.org>
51984
51985         * doc/gnulib.texi (Quoting): new node.
51986         (Initial import): more info, from Patrice.
51987
51988 2005-07-11  Bruno Haible  <bruno@clisp.org>
51989
51990         * gnulib-tool (func_usage): Document option --avoid.
51991         (Command line options): Handle --avoid.
51992         (func_acceptable): New function.
51993         (func_modules_transitive_closure): Use it.
51994
51995 2005-07-11  Bruno Haible  <bruno@clisp.org>
51996
51997         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51998         Reported by Jim Meyering.
51999
52000 2005-07-10  Bruno Haible  <bruno@clisp.org>
52001
52002         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
52003         Needed when size_t is smaller than 'unsigned int'.
52004         Reported by Paul Eggert.
52005
52006 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52007
52008         * modules/argp (Depends-on): Add unlocked-io
52009
52010 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52011
52012         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
52013         block of defines.
52014
52015 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52016
52017         * config/srclist.txt: Comment out regcomp.c, since we have a porting
52018         fix now.
52019
52020 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
52021         and Paul Eggert  <eggert@cs.ucla.edu>
52022
52023         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
52024         in wint_t, not wchar_t.  Remove now-unnecessary cast.
52025
52026 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52027
52028         * modules/regex (Files): Add lib/regex_internal.c,
52029         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
52030         (Depends-on): Add extensions.
52031         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
52032
52033 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52034
52035         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
52036         pathconf.
52037         * m4/same.m4 (gl_SAME): Likewise.
52038         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
52039
52040         * m4/regex.m4: Adjust to new libc regex implementation.
52041         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
52042         all the .c and .h parts of (the new) regex.
52043         Quote the m4 stuff better.
52044         Check for RE_ICASE bug of old gnulib.
52045         Check for REG_STARTEND of recent libc.
52046         Rename local variables from jm_* to gl_*.
52047         Quote operand of "test -f".
52048         Say "recent enough" version of libc, not "version 2".
52049         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
52050         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
52051         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
52052         Remove check for btowc, isascii.
52053         Require AM_LANGINFO_CODESET.
52054
52055 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52056
52057         * lib/regex.c, regex.h: Sync from libc.
52058         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
52059         * lib/regexec.c:
52060         New files, synced from libc, except that regex_internal.h
52061         currently has a small porting fix.
52062
52063 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52064
52065         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
52066         regex_internal.c, regexec.c.
52067         Add regex_internal.h too, but as a comment, since the libc version
52068         is currently broken in gnulib mode.
52069
52070 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52071
52072         Support programs like Emacs that use gnulib but not gettext.
52073         * MODULES.html.sh (Internationalization functions): Add gettext-h.
52074         * modules/gettext-h: New file.
52075         * modules/gettext (Files): Remove lib/gettext.h.
52076         (Depends-on): Add gettext-h.
52077         (Makefile.am): Remove lib_SOURCES.
52078         * modules/argmatch, modules/c-stack, modules/closeout:
52079         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
52080         * modules/execute, modules/file-type, modules/getaddrinfo:
52081         * modules/getopt, modules/human, modules/javacomp:
52082         * modules/javaexec, modules/mkdir-p, modules/obstack:
52083         * modules/openat, modules/pagealign_alloc, modules/pipe:
52084         * modules/quotearg, modules/regex, modules/rpmatch:
52085         * modules/unicodeio, modules/userspec, modules/version-etc:
52086         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
52087         * modules/xsetenv:
52088         Depend on gettext-h, not gettext.
52089
52090 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52091
52092         * gnulib-tool (func_import): Add support for 'public domain' license.
52093         * modules/alloca, modules/atexit, modules/memmove:
52094         Now public domain, not GPL.
52095         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52096         * modules/realloc, modules/strerror, modules/strtod:
52097         Now LGPL, not GPL.
52098
52099 2005-07-05  Bruno Haible  <bruno@clisp.org>
52100
52101         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52102         autoconf CVS. Needed for mingw.
52103
52104 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52105
52106         Remove the dependency of the strftime module on the tzset module.
52107         * modules/strftime (Depends-on): Remove dependency on tzset.
52108
52109 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52110
52111         Remove the dependency of the strftime module on the tzset module.
52112         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52113         gl_FUNC_TZSET_CLOBBER.
52114
52115 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52116
52117         Remove the dependency of the strftime module on the tzset module.
52118         * lib/strftime.c (my_strftime)
52119         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52120         Copy the input structure, to work around some of the bug with
52121         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52122         Solaris releases, you should also use the tzset module, but we won't
52123         require it as a dependency any more since we don't want LGPLed code
52124         to depend on GPLed code.
52125
52126 2005-07-02  Jim Meyering  <jim@meyering.net>
52127
52128         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52129         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52130         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52131         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52132
52133 2005-07-02  Jim Meyering  <jim@meyering.net>
52134
52135         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52136
52137 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52138
52139         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52140         declares only 'struct timespec;' (!).
52141
52142 2005-07-01  Jim Meyering  <jim@meyering.net>
52143
52144         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52145         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52146         * lib/save-cwd.c, tempname.c:
52147         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52148         and don't include <sys/file.h>).
52149
52150 2005-06-29  Jim Meyering  <jim@meyering.net>
52151
52152         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52153         type name.  Use the variable name instead.
52154         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52155         Likewise.
52156
52157 2005-06-28  Simon Josefsson  <jas@extundo.com>
52158
52159         * modules/check-version (Files): Add check-version.m4.
52160
52161 2005-06-28  Simon Josefsson  <jas@extundo.com>
52162
52163         * m4/check-version.m4: New file, suggested by Jim Meyering
52164         <jim@meyering.net>.
52165
52166 2005-06-28  Simon Josefsson  <jas@extundo.com>
52167
52168         * lib/check-version.h, lib/check-version.c: New files.
52169
52170 2005-06-28  Simon Josefsson  <jas@extundo.com>
52171
52172         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52173         collision with global variable.  Better indentation.  Don't
52174         increment buffer pointer beyond buffer end.  Based on comments
52175         from Paul Eggert <eggert@cs.ucla.edu>.
52176
52177         * lib/base64.h: Indent.
52178
52179 2005-06-28  Simon Josefsson  <jas@extundo.com>
52180
52181         * doc/gnulib.texi (Library version handling): New section.
52182
52183 2005-06-28  Jim Meyering  <jim@meyering.net>
52184
52185         * check-module (find_included_lib_files): Hard-code another
52186         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52187         but modules/fts-lgpl (correctly) does not list those files.
52188
52189         * modules/canonicalize (Files): Add lib/pathmax.h.
52190
52191 2005-06-25  Simon Josefsson  <jas@extundo.com>
52192
52193         * modules/check-version: New file.
52194
52195 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52196
52197         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52198         initializer of struct addrinfo, as an indication that we don't
52199         care how many members the structure has.
52200
52201 2005-06-24  Derek Price  <derek@ximbiot.com>
52202         and Bruno Haible  <bruno@clisp.org>
52203
52204         Remove stat module & update lstat.
52205         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52206         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52207         * m4/stat.m4: Remove this file.
52208
52209 2005-06-24  Derek Price  <derek@ximbiot.com>
52210         and Bruno Haible  <bruno@clisp.org>
52211
52212         Remove stat module & update lstat.
52213         * lib/stat.c: Remove this file...
52214         (slash_aware_lstat): ...moving this content and its support...
52215         * lib/lstat.c (rpl_lstat): ...into here.
52216         * lib/lstat.h: New file.
52217
52218 2005-06-24  Derek Price  <derek@ximbiot.com>
52219         and Bruno Haible  <bruno@clisp.org>
52220
52221         Remove stat module & update lstat.
52222         * config/srclist.txt (libc sources): Remove stat.
52223
52224 2005-06-24  Derek Price  <derek@ximbiot.com>
52225         and Bruno Haible  <bruno@clisp.org>
52226
52227         Remove stat module & update lstat.
52228         * MODULES.html.sh (stat): Remove.
52229         * MODULES.html: Regenerated.
52230         * modules/lstat (Description): Correct function name.
52231         (Files): Add "lstat.h".
52232         (Depends-on): Remove stat, add xalloc, stat-macros.
52233         * modules/stat: Remove this file.
52234         (Include): Add "lstat.h", remove <sys/stat.h>.
52235
52236 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52237
52238         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52239         (ranged_convert): Don't save conversion in a temporary struct.
52240         This causes a warning with GCC 4.0.0, and anyway in the typical
52241         case it's not worth the extra 100 bytes or so of code.
52242         (ranged_convert, __mktime_internal): When calling a function via a
52243         pointer P, use P () rather than (*P) (), as we now assume C89 or
52244         better.
52245
52246 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52247
52248         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52249         "who -r" failed to give output.  Problem reported by Tim Waugh.
52250
52251         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52252         (xcalloc): Use it to avoid needless tests.
52253         Problem reported by Jim Meyering.
52254
52255 2005-06-20  Derek Price  <derek@ximbiot.com>
52256
52257         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52258         unnecessary for Autoconfs > 2.59c.
52259
52260 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52261
52262         * lib/argp.h (__option_is_short): Check upper limit of
52263         __key. Isprint() requires its argument to have the value
52264         of an unsigned char or EOF.
52265
52266 2005-06-16  Jim Meyering  <jim@meyering.net>
52267
52268         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52269         when either N or S is zero.
52270
52271 2005-06-16  Derek Price  <derek@ximbiot.com>
52272
52273         * m4/bison.m4: Declare YACC & YFLAGS precious.
52274
52275 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52276
52277         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52278         multibyte string or pattern, fall back on unibyte matching.
52279         Problem reported by James Youngman.
52280
52281 2005-06-08  Bruno Haible  <bruno@clisp.org>
52282
52283         * modules/csharpcomp: New file.
52284         * MODULES.html.sh (C#): Add csharpcomp.
52285
52286 2005-06-08  Bruno Haible  <bruno@clisp.org>
52287
52288         * m4/csharpcomp.m4: New file, from GNU gettext.
52289
52290 2005-06-08  Bruno Haible  <bruno@clisp.org>
52291
52292         * lib/csharpcomp.h: New file, from GNU gettext.
52293         * lib/csharpcomp.c: New file, from GNU gettext.
52294         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52295
52296 2005-06-08  Bruno Haible  <bruno@clisp.org>
52297
52298         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52299         warning on mingw.
52300
52301 2005-06-07  Derek Price  <derek@ximbiot.com>
52302
52303         Sync from CVS.
52304         * lib/glob_.h: Indent nested #ifdef.
52305
52306 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52307
52308         Sync from coreutils.
52309         Use "file name" when talking about file names, instead of "filename"
52310         or "path", as per the GNU coding standards.
52311         * lib/mkdir-p.c: Renamed from makepath.c.
52312         (make_dir_parents): Renamed from make_path.  All callers changed.
52313         * lib/mkdir-p.h: Likewise.  All includers changed.
52314         * lib/filenamecat.c: Renamed from path-concat.c.
52315         (file_name_concat): Renamed from path_concat.  All callers changed.
52316         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52317         * lib/filenamecat.h: Likewise.  All includers changed.
52318         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52319         in comments or local variable names.
52320         * lib/basename.c: Likewise.
52321         * lib/canonicalize.c, canonicalize.h: Likewise.
52322         * lib/dirname.c, dirname.h: Likewise.
52323         * lib/euidaccess.c: Likewise.
52324         * lib/exclude.c: Likewise
52325         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52326         * lib/fsusage.c, fsuage.h: Likewise.
52327         * lib/fts.c, fts_.h: Likewise.
52328         * lib/getcwd.c: Likewise.
52329         * lib/getloadavg.c: Likewise.
52330         * lib/mkstemp.c: Likewise.
52331         * lib/mountlist.c, mountlist.h: Likewise.
52332         * lib/openat.c, openat.h: Likewise.
52333         * lib/readlink-stub.c: Likewise.
52334         * lib/readutmp.c, readutmp.h: Likewise.
52335         * lib/rename.c: Likewise.
52336         * lib/rmdir.c: Likewise.
52337         * lib/same.c: Likewise.
52338         * lib/savedir.c: Likewise.
52339         * lib/stripslash.c: Likewise.
52340         * lib/tempname.c: Likewise.
52341         * lib/xreadlink.c: Likewise.
52342         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52343         All uses changed.
52344         * lib/exclude.h: Likewise.
52345
52346         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52347         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52348         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52349         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52350         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52351         files have been getting away with it for years (MORE/BSD 4.3
52352         is extinct now).
52353         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52354         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52355
52356         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52357         Define to 256, not 255, as per modern POSIX.
52358
52359 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52360
52361         Sync from coreutils.
52362         Use "file name" when talking about file names, instead of "filename"
52363         or "path", as per the GNU coding standards.
52364         * MODULES.html.sh: mkdir-p renamed from makepath.
52365         filenamecat renamed from path-concat.
52366         * modules/filenamecat: Renamed from modules/path-concat.
52367         (Files): filenamecat.h and filenamecat.c renamed from
52368         path-concat.h and path-concat.c.
52369         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52370         (Include): filenamecat.h, not path-concat.h.
52371         * modules/mkdir-p: Renamed from modules/makepath.
52372         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52373         makepath.c.
52374         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52375         (Include): mkdir-p.h, not makepath.h.
52376
52377 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52378
52379         Sync from coreutils.
52380         * m4/mkdir-p.m4: Renamed from makepath.m4.
52381         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52382         Rename files from makepath.c to mkdir-p.c, and from
52383         makepath.h to mkdir-p.h.
52384         * m4/filenamecat.m4: Renamed from path-concat.m4.
52385         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52386         Rename files from path-concat.c to filenamecat.c,
52387         and from path-concat.h to filenamecat.h.
52388         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52389         "file name" in local variables or comments.
52390         * m4/rename.m4: Likewise.
52391
52392 2005-06-01  Bruno Haible  <bruno@clisp.org>
52393
52394         * modules/csharpexec: New file.
52395         * MODULES.html.sh (C#): New section.
52396
52397 2005-06-01  Bruno Haible  <bruno@clisp.org>
52398
52399         * m4/csharp.m4: New file, from GNU gettext.
52400         * m4/csharpexec.m4: New file, from GNU gettext.
52401
52402 2005-06-01  Bruno Haible  <bruno@clisp.org>
52403
52404         * lib/csharpexec.h: New file, from GNU gettext.
52405         * lib/csharpexec.c: New file, from GNU gettext.
52406         * lib/csharpexec.sh.in: New file, from GNU gettext.
52407
52408 2005-05-31  Derek Price  <derek@ximbiot.com>
52409             Paul Eggert  <eggert@cs.ucla.edu>
52410
52411         Sync from cvs.
52412         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52413
52414 2005-05-31  Derek Price  <derek@ximbiot.com>
52415             Paul Eggert  <eggert@cs.ucla.edu>
52416
52417         Sync from cvs.
52418         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52419
52420 2005-05-29  Derek Price  <derek@ximbiot.com>
52421
52422         * config/srclist.txt (glob_.h, glob.c): Add these files.
52423
52424 2005-05-29  Derek Price  <derek@ximbiot.com>
52425
52426         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52427         * modules/glob: New file.
52428         * modules/getlogin_r: Add link to POSIX spec in description.
52429
52430 2005-05-29  Derek Price  <derek@ximbiot.com>
52431             Paul Eggert  <eggert@cs.ucla.edu>
52432
52433         * m4/glob.m4: New file.
52434
52435 2005-05-29  Derek Price  <derek@ximbiot.com>
52436             Paul Eggert  <eggert@cs.ucla.edu>
52437
52438         * lib/glob_.h, lib/glob.c: New files.
52439
52440 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52441
52442         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52443         * modules/fts-lgpl (Depends-on): Remove gettext.
52444
52445 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52446
52447         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52448         and don't require gt_INTTYPES_PRI.
52449
52450 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52451
52452         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52453
52454         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52455         the configuration hassle isn't worth it.
52456         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52457         (LONGEST_MODIFIER, PRIuMAX): Remove.
52458
52459 2005-05-27  Bruno Haible  <bruno@clisp.org>
52460
52461         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52462
52463 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52464
52465         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52466         _POSIX_PTHREAD_SEMANTICS for Solaris.
52467
52468 2005-05-25  Derek Price  <derek@ximbiot.com>
52469
52470         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52471
52472 2005-05-25  Derek Price  <derek@ximbiot.com>
52473             Paul Eggert  <eggert@cs.ucla.edu>
52474
52475         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52476         * lib/getlogin_r.c, getlogin_r.h: New files.
52477
52478 2005-05-25  Bruno Haible  <bruno@clisp.org>
52479             Derek Price  <derek@ximbiot.com>
52480
52481         * lib/getlogin_r.h: Simplify API documentation.
52482
52483 2005-05-23  Derek Price  <derek@ximbiot.com>
52484
52485         * modules/minmax (Files): Add m4/minmax.m4.
52486         (configure.ac): Add gl_MINMAX.
52487
52488 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52489
52490         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52491         so that unistd-safer.h (GPL'ed code) need not be included.
52492
52493 2005-05-22  Bruno Haible  <bruno@clisp.org>
52494
52495         * m4/minmax.m4: New file.
52496         Based on a patch by Derek Price <derek@ximbiot.com>.
52497
52498 2005-05-22  Bruno Haible  <bruno@clisp.org>
52499
52500         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52501         (INT64_MIN): Fix definition.
52502         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52503
52504         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52505         NEED_SIGNED_INT_TYPES.
52506
52507         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52508         HAVE_SYSTEM_INTTYPES.
52509
52510 2005-05-22  Bruno Haible  <bruno@clisp.org>
52511
52512         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52513         Also include <sys/param.h> if it defines MIN, MAX.
52514         Based on a patch by Derek Price <derek@ximbiot.com>.
52515
52516 2005-05-21  Jim Meyering  <jim@meyering.net>
52517
52518         * modules/fts (Files): Add m4/inttypes-pri.m4.
52519         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52520
52521 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52522
52523         New fts module.
52524         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52525         (setup_dir, free_dir): New functions.
52526         (enter_dir, leave_dir): Define trivial
52527         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52528         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52529         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52530         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52531         Move to fts-cycle.c.
52532         (fts_open): Use setup_dir.
52533         (fts_close): Use free_dir.
52534         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52535         This adds a label and some gotos, but the alternatives were messier.
52536         Check for memory allocation failure when entering a dir.
52537         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52538         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52539         (FTS): New member fts_cycle, that is a union that contains the
52540         old active_dir_ht and cycle_state.  All uses changed to mention
52541         fts_cycle.ht and fts_cycle.state.
52542         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52543         fts.c, with the following changes:
52544         (setup_dir, free_dir): New functions.
52545         (enter_dir): Now returns bool.  Return true if successful, false
52546         if memory exhausted.  All callers changed.
52547         Do not bother partly cleaning up on
52548         memory allocation failure; that is free_dir's job.
52549         However, free ad if hash_insert fails, to avoid memory leak.
52550         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52551         fts->fts_options to see which union member to use.
52552
52553 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52554
52555         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52556         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52557
52558 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52559
52560         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52561
52562 2005-05-20  Jim Meyering  <jim@meyering.net>
52563
52564         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52565         Now a macro, to pacify GCC.
52566
52567 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52568
52569         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52570         of -1.
52571
52572 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52573
52574         * lib/chown.c (rpl_chown): Return -1 on failure.
52575
52576 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52577
52578         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52579         Don't check for stddef.h.
52580         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52581         don't use its results.
52582         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52583         since we include them unconditionally.  Don't require
52584         AM_STDBOOL_H, since stdbool is a prerequisite.
52585         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52586         since we assume C89 or better.
52587         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52588         as we don't use their results.
52589         Don't check for fchdir, memmove, memset, strrchr, as we use
52590         them unconditionally.
52591         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52592         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52593
52594 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52595
52596         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52597         Include <stddef.h> unconditionally, since we assume C89 now.
52598         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52599         * lib/fts.c: Include fts_.h first, to check interface.
52600         Do not include intprops.h; no longer needed.
52601         Include cycle-check.h and hash.h, since fts_.h no longer does.
52602         Remove unnecessary casts of closedir to void.
52603         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52604         decide whether to decrement nlinks.
52605         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52606         (FTS): Use struct hash_table * instead of Hash_table, so that
52607         we no longer need to include hash.h here.
52608
52609 2005-05-18  Jim Meyering  <jim@meyering.net>
52610
52611         * modules/dirfd (License): Change to LGPL.  Most of the code
52612         is already in the public domain.
52613
52614 2005-05-18  Jim Meyering  <jim@meyering.net>
52615
52616         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52617         Reported by Yoann Vandoorselaere.
52618
52619 2005-05-17  Jim Meyering  <jim@meyering.net>
52620
52621         * m4/fts.m4: New file, from coreutils.
52622
52623 2005-05-17  Jim Meyering  <jim@meyering.net>
52624
52625         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52626
52627 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52628
52629         Sync from coreutils.
52630         * m4/unlinkdir.m4: New file.
52631
52632 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52633
52634         Sync from coreutils.
52635         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52636         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52637         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52638         White space changes only.
52639         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52640         special.
52641         * lib/yesno.c: Include getline.h, not ctype.h.
52642         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52643         Use getline to remove arbitrary restriction on response length.
52644
52645 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52646
52647         * config/srclist-update: Spell out "Street" in FSF postal
52648         mail address; this is the style the FSF seems to prefer.
52649
52650         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52651         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52652         this updates FSF postal mail address.
52653
52654         Sync from coreutils.
52655         * modules/unlinkdir: New file.
52656         * modules/yesno (Depends-on): Add getline.
52657         * MODULES.html.sh (File system functions): Add unlinkdir.
52658
52659 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52660
52661         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52662         lib/strsep.h:
52663         Change the initial comment to refer to GPL, not LGPL.
52664         gnulib-tool will change it to LGPL as needed.
52665
52666         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52667         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52668         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52669         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52670         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52671         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52672         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52673         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52674         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52675         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52676         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52677         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52678         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52679         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52680         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52681         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52682         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52683         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52684         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52685         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52686         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52687         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52688         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52689         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52690         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52691         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52692         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52693         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52694         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52695         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52696         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52697         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52698         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52699         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52700         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52701         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52702         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52703         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52704         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52705         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52706         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52707         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52708         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52709         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52710         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52711         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52712         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52713         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52714         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52715         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52716         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52717         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52718         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52719         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52720         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52721         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52722         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52723         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52724         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52725         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52726         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52727         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52728         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52729         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52730         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52731         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52732         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52733         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52734         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52735         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52736         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52737         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52738         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52739         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52740         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52741         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52742         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52743         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52744         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52745         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52746         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52747         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52748         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52749         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52750         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52751         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52752         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52753         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52754         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52755         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52756         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52757         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52758         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52759         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52760         lib/yesno.c, lib/yesno.h:
52761         Update FSF postal mail address.
52762
52763 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52764
52765         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52766         tests/test-memmem.c, tests/test-stpncpy.c:
52767         Update FSF postal mail address.
52768
52769 2005-05-13  Bruno Haible  <bruno@clisp.org>
52770
52771         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52772         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52773         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52774         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52775         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52776         Add support for 64-bit integers in the MSVC compiler.
52777
52778 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52779
52780         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52781
52782 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52783
52784         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52785
52786 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52787
52788         * doc/getdate.texi (General date syntax): Don't say that date
52789         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52790         Problem reported by Nic Ferrier.
52791
52792 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52793
52794         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52795         specified in ai_socktype. Fix invalid ai_protocol
52796         check. ai_protocol is usually set to 0 or depending on
52797         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52798         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52799         ai_socktype / ai_protocol in the returned addrinfo structure.
52800
52801 2005-05-10  Simon Josefsson  <jas@extundo.com>
52802
52803         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52804         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52805
52806 2005-05-10  Karl Berry  <karl@gnu.org>
52807
52808         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52809         (from http://www.gnu.org/licenses).
52810         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52811         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52812         fdl.texi suffices.
52813
52814 2005-05-10  Karl Berry  <karl@gnu.org>
52815
52816         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52817         (COPYING.DOC): remove.
52818
52819         * config/srclist-update: new FSF address.
52820
52821 2005-05-10  Derek Price  <derek@ximbiot.com>
52822
52823         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52824         possible.
52825
52826 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52827             Bruno Haible  <bruno@clisp.org>
52828
52829         * modules/inet_ntop: New file.
52830         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52831         inet_ntop.
52832
52833 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52834             Bruno Haible  <bruno@clisp.org>
52835
52836         * m4/inet_ntop.m4: New file.
52837
52838 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52839             Bruno Haible  <bruno@clisp.org>
52840
52841         * lib/inet_ntop.h: New file.
52842         * lib/inet_ntop.c: New file, from glibc with modifications.
52843
52844 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52845
52846         * modules/time_r (License): Change to LGPL.
52847         * modules/extensions (License): Change to LGPL.  Actually,
52848         the license is more permissive than that, but currently gnulib-tool
52849         doesn't know how to handle more-permissive licenses.
52850
52851         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52852         Problem reported by Dave Love.
52853
52854 2005-05-08  Jim Meyering  <jim@meyering.net>
52855
52856         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52857         blank.
52858
52859 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52860
52861         * modules/argmatch (Depends-on): Add stdbool.
52862         * modules/backupfile (Depends-on): Likewise.
52863         * modules/chdir-long (Depends-on): Likewise.
52864         * modules/closeout (Depends-on): Likewise.
52865         * modules/cycle-check (Depends-on): Likewise.
52866         * modules/dirname (Depends-on): Likewise.
52867         * modules/fnmatch (Depends-on): Likewise.
52868         * modules/fsusage (Depends-on): Likewise.
52869         * modules/fwriteerror (Depends-on): Likewise.
52870         * modules/getcwd (Depends-on): Likewise.
52871         * modules/getloadavg (Depends-on): Likewise.
52872         * modules/hard-locale (Depends-on): Likewise.
52873         * modules/makepath (Depends-on): Likewise.
52874         * modules/mountlist (Depends-on): Likewise.
52875         * modules/nanosleep (Depends-on): Likewise.
52876         * modules/posixtm (Depends-on): Likewise.
52877         * modules/quotearg (Depends-on): Likewise.
52878         * modules/readtokens (Depends-on): Likewise.
52879         * modules/readtokens0 (Depends-on): Likewise.
52880         * modules/readutmp (Depends-on): Likewise.
52881         * modules/save-cwd (Depends-on): Likewise.
52882         * modules/strftime (Depends-on): Likewise.
52883         * modules/userspec (Depends-on): Likewise.
52884         * modules/utimecmp (Depends-on): Likewise.
52885         * modules/xgetcwd (Depends-on): Likewise.
52886         * modules/xnanosleep (Depends-on): Likewise.
52887         * modules/xstrtod (Depends-on): Likewise.
52888         * modules/yesno (Depends-on): Likewise.
52889
52890 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52891
52892         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52893         needless checks.
52894
52895 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52896
52897         Merge from coreutils.  Among other things,
52898         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52899         * lib/fd-safer.c: New file.
52900         * lib/fcntl-safer.h, open-safer.c: Remove.
52901         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52902         * lib/dup-safer.c: Include unistd-safer.h first.
52903         Don't include errno.h.
52904         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52905         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52906         * lib/file-type.c: Rely on file-type.h change.
52907         * lib/getloadavg.c: Include unistd-safer.h.
52908         (getloadavg): Use safer open.
52909         * lib/getusershell.c: Include "stdio-safer.h".
52910         (getusershell): Use safer fopen.
52911         * lib/long-options.c (long_options): Use NULL rather than 0.
52912         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52913         'free'.
52914         * lib/modechange.c: Likewise.
52915         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52916         (MODE_DONE): New constant.
52917         (struct mode_change): Remove 'next' member.
52918         (make_node_op_equals): New function; like the old one of the
52919         same name, except it allocates an array.
52920         (mode_compile, mode_create_from_ref): Use it.
52921         (mode_compile): Allocate result as an array, not a linked list.
52922         Parse octal string ourself, so that we catch mistakes like "+0".
52923         (mode_adjust): Arg is an array, not a linked list.
52924         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52925         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52926         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52927         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52928         Remove.  This is now stat-macros.h's job.
52929         (talloc): Remove.  All callers replaced by xalloc, so that
52930         our invokers don't have to worry about reporting memory failures.
52931         (make_node_op_equals): Remove.
52932         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52933         New constants.
52934         (struct mode_change): Moved here from modechange.h.
52935         (mode_append_entry): Remove.
52936         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52937         apps to have incorrect behavior.  Use simpler algorithm for head
52938         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52939         Detect more invalid usages rather than having somewhat-random behavior.
52940         Don't insert an "a=" action, as that leads to incorrect behavior.
52941         (mode_compile, mode_create_from_ref): Return NULL on error instead
52942         of an enum, since now there's only one way to have an error.  All
52943         callers changed.
52944         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52945         at the correct time.  Simplify calculation of "+u" and its ilk.
52946         Don't mishandle "+X".
52947         (mode_free): Remove "register" and localize decls.
52948         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52949         (struct mode_change): Move to modechange.c; callers don't
52950         need to see this stuff.
52951         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52952         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52953         (mode_change, mode_adjust): Reflect the new signatures noted above.
52954         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52955         that might redefine system include files.
52956         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52957         (my_usleep): Use NULL rather than (void *) 0.
52958         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52959         Use siginterrupt to specify that system calls should be interrupted.
52960         (rpl_nanosleep): Move initialization of suspended closer to call of
52961         my_usleep.
52962         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52963         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52964         (desirable_utmp_entry): New function.
52965         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52966         using x2nrealloc, to simplify logic.
52967         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52968         size calculation.  Do not assume utmp file is a regular file.
52969         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52970         (READ_UTMP_CHECK_PIDS): New constant.
52971         * lib/save-cwd.c: Include unistd-safer.h.
52972         (save_cwd): Use fd_safer.
52973         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52974         [!_LIBC] Include "stat-macros.h" instead.
52975         * lib/unistd-safer.h (fd_safer): New decl.
52976
52977 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52978
52979         * modules/getloadavg (Depends-on): Add unistd-safer.
52980         * modules/getusershell (Depends-on): Add stdio-safer.
52981         * modules/lstat (Depends-on): Remove xalloc.
52982         * modules/mkstemp (Depends-on): Add stat-macros.
52983         * modules/modechange (Depends-on): Remove xstrtol.
52984         Add stat-macros, xalloc.
52985         * modules/save-cwd (Depends-on): Add unistd-safer.
52986         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52987         * modules/unistd-safer (Files): Add lib/fd-safer.c
52988         (Makefile.am): Remove lib_SOURCES.
52989
52990         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52991         Remove fcntl-safer; unistd-safer supersedes it.
52992
52993 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52994
52995         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52996         AC_HEADER_STAT.
52997         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52998         (gl_PREREQ_CHOWN): Remove.
52999         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
53000         it.  Don't require AC_HEADER_STAT.
53001         (gl_PREREQ_LSTAT): Remove.
53002         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
53003         Don't require AC_HEADER_STAT.
53004         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
53005         (gl_PREREQ_RMDIR): Remove.
53006         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
53007         mention stat-macros.h or AC_HEADER_STAT, since we'll make
53008         the stat-macros module a prerequisite.
53009         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
53010         * m4/filemode.m4 (gl_FILEMODE): Likewise.
53011         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
53012         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
53013         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
53014         variable names.
53015         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
53016         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
53017         variable prefixes.
53018         * m4/fcntl-safer.m4: Remove.
53019         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
53020         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
53021         Invoke gl_PREREQ_FD_SAFER.
53022         (gl_PREREQ_FD_SAFER): New macro.
53023         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
53024         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
53025         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
53026         Remove duplicate call to AC_LIBOBJ(readutmp).
53027         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
53028
53029         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
53030         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
53031
53032 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53033
53034         * MODULES.html.sh (Misc): Add byteswap.
53035
53036 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53037
53038         * modules/getcwd (Depends-on): Add extensions.
53039         * modules/openat (Depends-on): Likewise.
53040
53041 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53042
53043         * modules/byteswap: New file.
53044
53045 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53046
53047         * m4/byteswap.m4: New file.
53048
53049 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53050
53051         * lib/byteswap_.h: New file.
53052
53053 2005-04-25  Karl Berry  <karl@gnu.org>
53054
53055         * m4/gettext.m4: Update from GNU gettext 0.14.4.
53056
53057 2005-04-25  Albert Chin  <china@thewrittenword.com>
53058
53059         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
53060         Toolkit C bug.
53061
53062 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
53063
53064         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
53065         (func_ln_if_changed) Remove forcibly for no error message
53066         in case file does not exist.
53067
53068 2005-04-19  Simon Josefsson  <jas@extundo.com>
53069
53070         * gnulib-tool (Options): Make --symlink mean --symbolic.
53071
53072 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
53073
53074         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
53075
53076 2005-04-16  Simon Josefsson  <jas@extundo.com>
53077
53078         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
53079
53080 2005-04-15  Simon Josefsson  <jas@extundo.com>
53081
53082         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
53083
53084 2005-04-15  Simon Josefsson  <jas@extundo.com>
53085
53086         * gnulib-tool: Rename --symlink to --symbolic.
53087
53088 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
53089
53090         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53091         symbolic links to files instead of copying/moving.  Add --aux-dir,
53092         specifying directory relative --dir where auxiliary build tools
53093         are placed.
53094
53095 2005-04-14  Bruno Haible  <bruno@clisp.org>
53096
53097         * modules/allocsa (License): Change to LGPL.
53098         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53099
53100 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53101
53102         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53103         that "UTC +1 second" continues to work.  Problem reported
53104         by Dmitry V. Levin.
53105         (relunit_snumber): New rule.
53106         (relunit): Use it.
53107
53108 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53109
53110         * lib/getdate.y (universal_time_zone_table): New constant.
53111         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53112         universal_time_zone_table.
53113         (lookup_zone): Prefer universal_time_zone_table to
53114         local_time_zone_table, so that "GMT" time stamps are allowed in
53115         London during the summer.  Problem reported by Ian Abbott.
53116
53117 2005-04-12  Jim Meyering  <jim@meyering.net>
53118
53119         * lib/human.c (humblock): Set *options even when returning due to
53120         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53121         warning from gcc-4.
53122
53123 2005-04-09  Jim Meyering  <jim@meyering.net>
53124
53125         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53126         -Wuninitialized: initialize tm0.tm_year.
53127
53128 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53129
53130         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53131         count, since there's no maximum.  All uses changed.
53132         Add member dsts_seen.
53133         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53134         not being INT_MAX.
53135         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53136         Use pc_rels_seen to decide whther a date is absolute.
53137
53138         * lib/getdate.y (number): Don't overwrite year.
53139         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53140         check.
53141
53142 2005-04-02  Simon Josefsson  <jas@extundo.com>
53143
53144         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53145         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53146
53147 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53148
53149         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53150         where no absolute path name can be longer than PATH_MAX.
53151
53152 2005-03-27  Jim Meyering  <jim@meyering.net>
53153
53154         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53155
53156 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53157
53158         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53159         "one's complement" -> "ones' complement" in comment, as per Knuth.
53160         "value of type" -> "type or expression" in comment.
53161         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53162
53163 2005-03-26  Jim Meyering  <jim@meyering.net>
53164
53165         Comment nits.
53166         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53167         Correct typos: s/or/of/.
53168
53169 2005-03-26  Jim Meyering  <jim@meyering.net>
53170
53171         * modules/check-include-files: Move to ../ and rename to...
53172         * check-module: ...this.
53173
53174 2005-03-25  Jim Meyering  <jim@meyering.net>
53175
53176         * modules/xvasprintf (Files): Add xalloc.h.
53177
53178 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53179
53180         * modules/gettext (Files): config/config.rpath ->
53181         build-aux/config.rpath
53182         * modules/iconv (Files): Likewise.
53183         Problem reported by Oskar Liljeblad.
53184
53185 2005-03-23  Jim Meyering  <jim@meyering.net>
53186
53187         * modules/check-include-files: New script to check for
53188         missing dependencies, multiple includes, etc.
53189
53190         * modules/c-strtold (Depends-on): Add xalloc.
53191         * modules/c-strtod (Depends-on): Add xalloc.
53192         * modules/hash (Depends-on): Add xalloc.
53193         (Files): Remove lib/xalloc.h.
53194
53195         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53196         * modules/userspec (Files): Add lib/inttostr.h.
53197
53198 2005-03-23  Jim Meyering  <jim@meyering.net>
53199
53200         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53201
53202 2005-03-22  Jim Meyering  <jim@meyering.net>
53203
53204         * modules/stat-macros: New module.
53205         * modules/canonicalize, modules/euidaccess, modules/file-type,
53206         * modules/filemode, modules/lchown, modules/makepath,
53207         * modules/rmdir, modules/stat: Depend on new stat-macros module
53208         rather than listing lib/stat-macros.h manually.
53209         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53210
53211 2005-03-22  Jim Meyering  <jim@meyering.net>
53212
53213         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53214
53215 2005-03-22  Bruno Haible  <bruno@clisp.org>
53216
53217         * config/srclist.txt: Replace target directory 'config' with
53218         'build-aux'.
53219         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53220         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53221         ../build-aux/.
53222
53223 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53224
53225         * modules/chdir-long (Depends-on): Add mempcpy.
53226
53227         * modules/acl, modules/backupfile, modules/c-strtod,
53228         modules/c-strtold, modules/canon-host, modules/canonicalize,
53229         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53230         modules/exclude, modules/exitfail, modules/file-type,
53231         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53232         modules/getdate, modules/getline, modules/getpagesize,
53233         modules/getpass, modules/getugroups, modules/group-member,
53234         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53235         modules/inttostr, modules/long-options, modules/makepath,
53236         modules/md5, modules/memcasecmp, modules/memcoll,
53237         modules/modechange, modules/mountlist, modules/path-concat,
53238         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53239         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53240         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53241         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53242         modules/strftime, modules/strndup, modules/strverscmp,
53243         modules/timespec, modules/unlocked-io, modules/userspec,
53244         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53245         modules/yesno:
53246         Remove lib_SOURCES line from Makefile.am section, as this is now
53247         done automatically by the corresponding Autoconf macro.
53248
53249 2005-03-21  Jim Meyering  <jim@meyering.net>
53250
53251         Changes imported from coreutils.
53252
53253         * lib/cycle-check.c: Don't include xalloc.h.
53254
53255         * lib/path-concat.c: Don't include assert.h.
53256         (path_concat): Remove assertion that would have triggered
53257         for ABASE starting with more than one slash.
53258         Reported by Andreas Schwab.
53259
53260         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53261         properly when ABASE is an absolute file name.
53262         Correct the description of this function.
53263         Include <assert.h>.
53264         Add an assertion and a test driver.
53265         This fixes a bug introduced on 2004-07-02.
53266         Andreas Schwab reported the resulting failure of cp --parents:
53267         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53268
53269 2005-03-21  Jim Meyering  <jim@meyering.net>
53270
53271         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53272         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53273
53274 2005-03-21  Jim Meyering  <jim@meyering.net>
53275         and  Paul Eggert  <eggert@cs.ucla.edu>
53276
53277         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53278         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53279         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53280         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53281         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53282         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53283         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53284         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53285         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53286         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53287         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53288         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53289         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53290         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53291         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53292         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53293         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53294         for these modules.
53295
53296 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53297
53298         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53299         (which shouldn't happen), generate nothing instead of returning 0
53300         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53301
53302 2005-03-16  Bruno Haible  <bruno@clisp.org>
53303
53304         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53305         HAVE_LONGLONG_64BIT.
53306
53307 2005-03-16  Bruno Haible  <bruno@clisp.org>
53308
53309         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53310         HAVE_LONGLONG_64BIT.
53311
53312 2005-03-16  Bruno Haible  <bruno@clisp.org>
53313
53314         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53315         HAVE_LONGLONG_64BIT.
53316
53317 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53318
53319         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53320         reliably distinguish strftime failure from empty output on POSIX
53321         hosts.
53322
53323 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53324
53325         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53326         (iconv_string): Don't guess a size-zero buffer, as that might cause
53327         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53328         result would be 'too large', where 'too large' is (heuristically)
53329         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53330         overflow concerns.  This will prevent some unwanted malloc failures
53331         when the inputs are very large.
53332
53333 2005-03-15  Karl Berry  <karl@gnu.org>
53334
53335         * config/srclist.txt (config.rpath): from gettext.
53336         * config/config.rpath: update.
53337
53338 2005-03-15  Bruno Haible  <bruno@clisp.org>
53339
53340         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53341         to 'negate'.
53342
53343         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53344         variable.
53345
53346         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53347         results.
53348
53349 2005-03-14  Simon Josefsson  <jas@extundo.com>
53350
53351         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53352         <fx@gnu.org>.
53353
53354 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53355
53356         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53357         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53358         intprops.h.
53359         * lib/strtol.c: Likewise.
53360
53361 2005-03-14  Jim Meyering  <jim@meyering.net>
53362
53363         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53364         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53365         to be nonzero so that we (and caller) can detect the difference
53366         between a valid zero-length expansion and an error return, even
53367         when the underlying strftime fails before writing anything into
53368         that location.
53369
53370 2005-03-14  Bruno Haible  <bruno@clisp.org>
53371
53372         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53373         Update from GNU gettext 0.14.3.
53374
53375 2005-03-10  Jim Meyering  <jim@meyering.net>
53376
53377         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53378
53379 2005-03-10  Jim Meyering  <jim@meyering.net>
53380
53381         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53382         so that this module works on systems without fchdir.
53383
53384 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53385
53386         Factor int-properties macros into a single file, except for
53387         glibc-related files.
53388         * lib/intprops.h: New file.
53389         * lib/getloadavg.c: Include it instead of limits.h.
53390         (INT_STRLEN_BOUND): Remove.
53391         * lib/human.c: Include intprops.h.
53392         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53393         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53394         302/1000.
53395         * lib/inttostr.h: Include intprops.h instead of limits.h.
53396         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53397         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53398         for consistency with intprops.h.
53399         (time_t_is_integer, twos_complement_arithmetic): Use them.
53400         * lib/sig2str.h: Include <signal.h>, intprops.h.
53401         (INT_STRLEN_BOUND): Remove.
53402         * lib/strftime.c (TYPE_SIGNED): Remove.
53403         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53404         * lib/strtol.c: Adjust comments to match intprops.h.
53405         * lib/userspec.c: Include intprops.h.
53406         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53407         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53408         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53409         instead of rolling our own expressions.
53410         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53411
53412         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53413         instead of int.
53414         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53415         the right thing even if adding 1900 would overflow.  Similarly
53416         for tm_mon + 1 and tm_yday + 1.
53417         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53418         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53419         (DO_SIGNED_NUMBER): New macro.
53420         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53421
53422 2005-03-07  Bruno Haible  <bruno@clisp.org>
53423
53424         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53425
53426 2005-03-07  Bruno Haible  <bruno@clisp.org>
53427
53428         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53429
53430 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53431
53432         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53433         (func_import): Only replace files via --import when they have actually
53434         changed.
53435
53436 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53437
53438         * m4/mmap-anon.m4: New file.
53439         * m4/pagealign_alloc.m4: New file.
53440
53441 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53442             Bruno Haible  <bruno@clisp.org>
53443
53444         * modules/pagealign_alloc: New file.
53445         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53446
53447 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53448             Bruno Haible  <bruno@clisp.org>
53449
53450         * lib/pagealign_alloc.h: New file.
53451         * lib/pagealign_alloc.c: New file.
53452
53453 2005-03-03  Bruno Haible  <bruno@clisp.org>
53454
53455         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53456         Use an all-permissive copyright notice, recommended by RMS.
53457
53458 2005-03-02  Bruno Haible  <bruno@clisp.org>
53459
53460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53461         of AIX, the replacement has to be done only after <string.h> is
53462         included, therefore not in config.h. stpncpy.h does the replacement,
53463         and stpncpy.c uses it.
53464
53465 2005-03-02  Bruno Haible  <bruno@clisp.org>
53466
53467         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53468         stpncpy.c uses it.
53469
53470 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53471
53472         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53473         The workaround isn't strictly needed for POSIX conformance, and
53474         it's too much of a pain to configure and maintain.  We'll ask
53475         people to fix their kernels instead.
53476         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53477         (NANOSLEEP_BUG_WORKAROUND): Remove.
53478         (xnanosleep): Remove the workaround.
53479
53480 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53481
53482         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53483         Reported by Derek Price.
53484         (Include): Add "timespec.h".
53485
53486         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53487
53488 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53489
53490         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53491         to detect nanosleep bug.
53492
53493 2005-03-01  Bruno Haible  <bruno@clisp.org>
53494
53495         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53496
53497 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53498
53499         * modules/gethrxtime: New file.
53500         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53501         (Depends-on): Add gethrxtime.
53502         (configure.ac): Add gl_XNANOSLEEP.
53503         (Makefile.am): Remove lib_SOURCES line.
53504
53505 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53506
53507         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53508         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53509
53510 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53511
53512         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53513         * lib/timespec.h (gettime): Return void, since it always
53514         succeeds now.  All uses changed.
53515         * lib/gettime.c (gettime) Likewise.
53516         [HAVE_NANOTIME]: Prefer nanotime.
53517         Assume gettimeofday succeeds, as POSIX requires.
53518         Assime time () succeeds, since other code already does.
53519         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53520         (timespec_subtract): Remove.
53521         (NANOSLEEP_BUG_WORKAROUND): New constant.
53522         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53523         things considerably.  Use it only on GNU/Linux hosts, since the
53524         workaround shouldn't be needed elsewhere.
53525
53526 2005-02-24  Bruno Haible  <bruno@clisp.org>
53527
53528         * modules/gettext (Files): Add m4/glibc2.m4.
53529
53530 2005-02-24  Bruno Haible  <bruno@clisp.org>
53531
53532         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53533         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53534         * m4/progtest.m4:
53535         Update from GNU gettext 0.14.2.
53536         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53537
53538 2005-02-24  Bruno Haible  <bruno@clisp.org>
53539
53540         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53541         * lib/config.charset: Update from GNU gettext 0.14.2.
53542
53543 2005-02-24  Bruno Haible  <bruno@clisp.org>
53544
53545         * lib/gettext.h: Update from GNU gettext 0.14.2.
53546
53547 2005-02-23  Simon Josefsson  <jas@extundo.com>
53548
53549         * m4/iconvme.m4: New file.
53550
53551 2005-02-23  Jim Meyering  <jim@meyering.net>
53552
53553         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53554         change.
53555         Thanks to Bruno Haible for catching it.
53556
53557 2005-02-22  Simon Josefsson  <jas@extundo.com>
53558
53559         * modules/iconvme: New file.
53560
53561         * MODULES.html.sh: Add iconvme.
53562
53563 2005-02-22  Simon Josefsson  <jas@extundo.com>
53564
53565         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53566
53567 2005-02-22  Simon Josefsson  <jas@extundo.com>
53568
53569         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53570
53571 2005-02-22  Jim Meyering  <jim@meyering.net>
53572
53573         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53574         s/ifndef/ifdef/.
53575
53576 2005-02-20  Neil Conway  <neilc@samurai.com>
53577
53578         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53579         returned by OSX/Darwin if the specified buffer is not large
53580         enough for the hostname.
53581
53582 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53583
53584         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53585         pass it to _help, otherwise the latter coredumps trying to
53586         dereference state.root_argp.
53587
53588 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53589
53590         * modules/chdir-long (Depends-on): Add memrchr.
53591         * modules/memrchr (Files): Add lib/memrchr.h.
53592         (Include): "memrchr.h".
53593
53594 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53595
53596         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53597
53598 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53599
53600         * lib/memrchr.h: New file.
53601         * lib/chdir-long.c: Include it.
53602         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53603         Don't bother including stddef.h.
53604
53605 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53606
53607         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53608         inclusion.
53609         Include <sys/types.h>, for dev_t.
53610         (ME_DUMMY, ME_REMOTE): Move from here....
53611         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53612         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53613         Dmitry V. Levin.
53614         Include mountlist.h first, to test the interface.
53615
53616 2005-01-29  Bruno Haible  <bruno@clisp.org>
53617
53618         * lib/progname.c (program_name): Initialize.
53619         Needed when linking statically on MacOS X.
53620
53621 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53622
53623         Sync from coreutils.
53624         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53625         (Depends-on): Add c-strtod.
53626         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53627
53628 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53629
53630         Sync from coreutils.
53631         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53632
53633         Remove files that are specific to coreutils.
53634         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53635
53636 2005-01-28  Bruno Haible  <bruno@clisp.org>
53637
53638         * modules/javacomp: New file.
53639         * MODULES.html.sh (Java): Add javacomp.
53640
53641 2005-01-28  Bruno Haible  <bruno@clisp.org>
53642
53643         * m4/javacomp.m4: New file, from GNU gettext.
53644
53645 2005-01-28  Bruno Haible  <bruno@clisp.org>
53646
53647         * lib/javacomp.sh.in: New file, from GNU gettext.
53648         * lib/javacomp.h: New file, from GNU gettext.
53649         * lib/javacomp.c: New file, from GNU gettext.
53650
53651 2005-01-26  Simon Josefsson  <jas@extundo.com>
53652
53653         * lib/gai_strerror.c: Use GPL in header.
53654
53655 2005-01-26  Bruno Haible  <bruno@clisp.org>
53656
53657         * modules/javaexec: New file.
53658         * MODULES.html.sh (Java): Add javaexec.
53659
53660 2005-01-26  Bruno Haible  <bruno@clisp.org>
53661
53662         * m4/javaexec.m4: New file, from GNU gettext.
53663
53664 2005-01-26  Bruno Haible  <bruno@clisp.org>
53665
53666         * lib/javaexec.sh.in: New file, from GNU gettext.
53667         * lib/javaexec.h: New file, from GNU gettext.
53668         * lib/javaexec.c: New file, from GNU gettext.
53669
53670 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53671
53672         * modules/lchown (Depends-on): Remove lchown.h
53673
53674 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53675
53676         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53677         must be defined if the header file was not found, in order
53678         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53679
53680 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53681
53682         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53683         initializers for struct pentry_state.
53684         (__argp_error): Check return value of __asprintf
53685         (__argp_failure): Translate error message
53686
53687         * lib/argp-parse.c: Removed braces around the expansion of N_()
53688
53689 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53690
53691         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53692         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53693         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53694         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53695         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53696         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53697         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53698         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53699         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53700         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53701         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53702         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53703         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53704         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53705         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53706         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53707         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53708         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53709         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53710         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53711         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53712         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53713         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53714         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53715         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53716         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53717         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53718         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53719         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53720         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53721         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53722         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53723         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53724         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53725         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53726         Use an all-permissive copyright notice, recommended by RMS.
53727
53728 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53729
53730         * modules/chdir-long (Depends-on): Remove mempcpy.
53731
53732 2005-01-21  Jim Meyering  <jim@meyering.net>
53733
53734         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53735         same value as for Solaris 9.
53736
53737         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53738         component length.  This included changing the parameter to be
53739         of type `char *' rather than `char const *'.
53740         * lib/chdir-long.h (chdir_long): Update prototype.
53741
53742         * lib/openat.c (fdopendir, fstatat): New functions.
53743         * lib/openat.h: Include headers required for use of DIR and struct
53744         stat.
53745         [AT_SYMLINK_NOFOLLOW]: Define.
53746         (fdopendir, fstatat): Add prototypes.
53747
53748 2005-01-21  Bruno Haible  <bruno@clisp.org>
53749
53750         * modules/classpath: New file.
53751         * MODULES.html.sh (Java): Add classpath.
53752
53753 2005-01-21  Bruno Haible  <bruno@clisp.org>
53754
53755         * lib/classpath.h: New file, from GNU gettext.
53756         * lib/classpath.c: New file, from GNU gettext.
53757
53758 2005-01-20  Simon Josefsson  <jas@extundo.com>
53759
53760         * modules/version-etc-fsf: New file.
53761
53762 2005-01-20  Simon Josefsson  <jas@extundo.com>
53763
53764         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53765         * lib/version-etc.c: Remove version_etc_copyright.
53766         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53767         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53768
53769 2005-01-20  Simon Josefsson  <jas@extundo.com>
53770
53771         * lib/base64.h (isbase64): Add.
53772
53773         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53774         using a unsigned prototype, don't inline.
53775         (base64_decode): Use it.
53776
53777 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53778
53779         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53780         it.
53781
53782 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53783
53784         * lib/save-cwd.c (save_cwd): Remove code to support the case
53785         where fchdir is missing or flaky.
53786
53787 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53788
53789         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53790
53791 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53792
53793         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53794         AC_LIBSOURCES now does this.
53795         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53796         with new ullong_max module.
53797
53798 2005-01-19  Bruno Haible  <bruno@clisp.org>
53799
53800         * modules/sh-quote: New file.
53801         * MODULES.html.sh (Executing programs): Add sh-quote.
53802
53803 2005-01-19  Bruno Haible  <bruno@clisp.org>
53804
53805         * lib/sh-quote.h: New file, from GNU gettext.
53806         * lib/sh-quote.c: New file, from GNU gettext.
53807
53808 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53809
53810         Merge from coreutils.
53811         * m4/ullong_max.m4: New file.
53812         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53813         (gl_MACROS): Assume localeconv exists.
53814
53815 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53816
53817         Merge changes from coreutils, as described below in several
53818         changelogs dated today.
53819
53820         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53821         (O_DIRECTORY): Remove; not needed here, since "." must be
53822         a directory.  All uses removed.
53823         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53824         universal on Suns, and we also need to test for IRIX.
53825         Revamp code to use 'if' rather than '#if'.
53826         Avoid unnecessary comparison of cwd->desc to 0.
53827
53828         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53829         for known valid error numbers rather than observed invalid ones.
53830
53831 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53832
53833         * modules/ullong_max: New file.
53834
53835         * modules/chdir-long, modules/openat: New files.
53836         * modules/save-cwd (Depends-on): Depend on chdir-long.
53837         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53838
53839 2005-01-18  Jim Meyering  <jim@meyering.net>
53840
53841         Merge from coreutils.
53842         * m4/chdir-long.m4, m4/openat.m4: New files.
53843         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53844         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53845         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53846         is sane and DOES follow symlinks.  Besides, testing 20 different
53847         systems found no broken chown implementations.
53848         Prompted by a change in rsync's copy of this macro.
53849         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53850
53851         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53852
53853         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53854         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53855         NULL-means-set-to-current-time semantics.
53856         Remove temporary file immediately, rather than waiting
53857         for configure's at-exit trap code to do it.
53858
53859 2005-01-18  Jim Meyering  <jim@meyering.net>
53860
53861         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53862
53863         * lib/utimens.c (futimens): Account for the fact that futimes
53864         can also fail with errno == ENOSYS or errno == ENOENT.
53865         Patch from Dmitry V. Levin.
53866
53867         Change the name of the robust chdir function from chdir to chdir_long.
53868         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53869         (restore_cwd): Use chdir_long, not chdir.
53870         * lib/chdir-long.c: Renamed from chdir.c.
53871         * lib/chdir-long.h: Renamed from chdir.h.
53872         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53873         Hurd.
53874
53875 2005-01-18  Bruno Haible  <bruno@clisp.org>
53876
53877         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53878         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53879         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53880         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53881         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53882         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53883         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53884         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53885         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53886         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53887         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53888         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53889         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53890         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53891         Use an all-permissive copyright notice, recommended by RMS.
53892
53893 2005-01-18  Bob Proulx  <bob@proulx.com>
53894
53895         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53896         simplify offsetof() macro construct to avoid compile failure with
53897         native HP-UX 11.0 ANSI C compiler.
53898
53899 2005-01-17  Bruno Haible  <bruno@clisp.org>
53900
53901         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53902         redundant because stpncpy.m4 takes care of it.
53903
53904 2005-01-17  Bruno Haible  <bruno@clisp.org>
53905
53906         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53907
53908 2005-01-17  Bruno Haible  <bruno@clisp.org>
53909
53910         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53911         used.
53912
53913 2005-01-17  Bruno Haible  <bruno@clisp.org>
53914
53915         * lib/fwriteerror.h (fwriteerror): Change specification to include
53916         fclose.
53917         * lib/fwriteerror.c: Include <stdbool.h>.
53918         (fwriteerror): At the end, close the file stream. Record whether
53919         stdout was already closed.
53920
53921 2005-01-17  Bruno Haible  <bruno@clisp.org>
53922
53923         * lib/execute.c (environ): Declare if needed.
53924         * lib/pipe.c (environ): Likewise.
53925         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53926
53927 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53928
53929         * modules/argp: Depend on vsnprintf
53930
53931 2005-01-10  Jim Meyering  <jim@meyering.net>
53932
53933         * modules/closeout (Depends-on): Add atexit.
53934
53935 2005-01-06  Bruno Haible  <bruno@clisp.org>
53936
53937         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53938
53939 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53940
53941         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53942         definitions to be after all include files, to avoid collisions.
53943         Problem reported by Bob Proulx.
53944
53945 2005-01-04  Jim Meyering  <jim@meyering.net>
53946
53947         Changes imported from coreutils.
53948         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53949         as the mkstemp template, use a temporary directory and an
53950         8.3-friendly template to avoid trouble on systems like DJGPP.
53951         Reported by Juan M. Guerrero via Stepan Kasal.
53952         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53953         close. Remove the temporary directory right away, rather than waiting
53954         for configure's at-exit trap code to do it.
53955         Suggestion from Stepan Kasal.
53956
53957 2005-01-01  Simon Josefsson  <jas@extundo.com>
53958
53959         * gnulib-tool: Print #include directives when --import'ing.
53960
53961 2004-12-28  Simon Josefsson  <jas@extundo.com>
53962
53963         * tests/test-base64.c: Include required header files.  Remove
53964         unused variables.
53965
53966 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53967
53968         * modules/error (Depends-on): Remove gettext.
53969
53970 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53971
53972         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53973         not needed.  This removes a dependency on the gettext module.
53974         [defined _LIBC]: Do not include <libintl.h>; not needed.
53975
53976 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53977
53978         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53979         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53980
53981 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53982
53983         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53984         HAVE_DECL_STRTOLD.
53985
53986 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53987
53988         * modules/getdate (Depends-on): Remove alloca-opt.
53989
53990 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53991
53992         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53993
53994 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53995
53996         * lib/argp-parse.c: Include <stddef.h>.
53997         (alignof, alignto): New macros.
53998         (parser_init): Don't assume that void * is aligned sufficiently
53999         for struct option.
54000
54001         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
54002         need to extend the stack.
54003         (YYINITDEPTH): New macro, so that the initial stack isn't overly
54004         large.
54005
54006 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54007
54008         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
54009
54010 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54011
54012         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
54013         (2004-10-24) change.  Apparently this was a false alarm.
54014
54015         * modules/getdate: Depend on alloca-opt, not alloca.
54016
54017 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54018
54019         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
54020         Remove now-obsolete comment about AIX.
54021         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
54022         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
54023         (YYMAXDEPTH): New macro.
54024
54025 2004-12-18  Simon Josefsson  <jas@extundo.com>
54026
54027         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
54028
54029 2004-12-18  Bruno Haible  <bruno@clisp.org>
54030
54031         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
54032
54033 2004-12-18  Bruno Haible  <bruno@clisp.org>
54034
54035         * lib/fatal-signal.c (fatal_signals): Make non-const.
54036         (init_fatal_signals): New function.
54037         (uninstall_handlers, install_handlers): Ignore signals that were set to
54038         SIG_IGN.
54039         (at_fatal_signal): Call init_fatal_signals.
54040         (init_fatal_signal_set): Likewise. Ignore signals that were set to
54041         SIG_IGN.
54042         Reported by Paul Eggert.
54043
54044 2004-12-18  Bruno Haible  <bruno@clisp.org>
54045
54046         * doc/alloca.texi: New file.
54047         * doc/alloca-opt.texi: New file.
54048
54049 2004-12-17  Jim Meyering  <jim@meyering.net>
54050
54051         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
54052         Otherwise, install-sh could exit with improper exit status when
54053         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
54054
54055 2004-12-16  Simon Josefsson  <jas@extundo.com>
54056
54057         * tests/test-base64.c: Add license.
54058
54059 2004-12-15  Stepan Kasal  <address@hidden>
54060
54061         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
54062
54063 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
54064
54065         * modules/getcwd (Files): Add m4/d-ino.m4.
54066         Suggested by Mark D. Baushke.
54067
54068 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54069
54070         * lib/getdate.y (textint): New member "negative".
54071         (time_zone_hhmm): New function.
54072         Expect 14 shift-reduce conflicts, not 13.
54073         (o_colon_minutes): New rule.
54074         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
54075         (yylex): Set the "negative" member of signed numbers.
54076
54077 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54078
54079         * doc/getdate.texi (Time of day items, Time zone items):
54080         Describe new formats +00:00, UTC+00:00.
54081
54082 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54083
54084         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
54085         spurious "-l"s.  Problem reported by Stepan Kasal.
54086
54087 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
54088
54089         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
54090         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54091
54092 2004-12-04  Simon Josefsson  <jas@extundo.com>
54093
54094         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54095         Vandoorselaere <yoann@prelude-ids.org>.
54096
54097 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54098
54099         Changes imported from coreutils.
54100         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54101         exist.
54102         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54103
54104 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54105
54106         Changes imported from coreutils.
54107         * lib/hard-locale.c: Assume <locale.h> exists.
54108         Include "strdup.h".
54109         (GLIBC_VERSION): New macro.
54110         (hard_locale): Assume setlocale exists.
54111         Rewrite to avoid #ifdef.
54112         Use strdup rather than malloc + strcpy.
54113         * lib/human.c: Assume <locale.h> exists.
54114         (human_readable): Assume localeconv exists.
54115
54116 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54117
54118         * modules/hard-locale (Depends-on): Add strdup.
54119
54120 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54121
54122         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54123         convert T2, not T.  (Imported from libc.)
54124
54125 2004-11-30  Simon Josefsson  <jas@extundo.com>
54126
54127         * modules/restrict (License): Change to LGPL.
54128
54129 2004-11-30  Simon Josefsson  <jas@extundo.com>
54130
54131         * m4/restrict.m4: Add copyright and copying conditions.
54132
54133 2004-11-30  Simon Josefsson  <jas@extundo.com>
54134
54135         * m4/base64.m4: New file.
54136
54137 2004-11-30  Simon Josefsson  <jas@extundo.com>
54138
54139         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54140         base64.
54141
54142         * tests/test-base64.c: New file.
54143
54144         * modules/base64: New file.
54145
54146 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54147
54148         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54149         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54150
54151         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54152
54153 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54154
54155         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54156         (__getcwd.c): Don't restore errno; glibc doesn't.
54157         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54158         first, falling back to our code only if its results look suspicious.
54159         Ensure that the resulting buffer is only as large as necessary.
54160
54161         * lib/readutmp.c: Include readutmp.h first.
54162         Include <errno.h>, since readutmp.h no longer does that.
54163         * lib/readutmp.h: Don't include <errno.h>,
54164         <sys/param.h>, <time.h>; not needed to establish interface.
54165         (errno): Remove decl.
54166         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54167         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54168         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54169
54170 2004-11-28  Simon Josefsson  <jas@extundo.com>
54171
54172         * lib/base64.h, base64.c: New file.
54173
54174 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54175
54176         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54177
54178 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54179
54180         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54181         (Depends-on): Remove pathmax, same.  Add mempcpy.
54182         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54183         (Makefile.am): Append getcwd.h to lib_SOURCES.
54184         (Include): Add getcwd.h.
54185         (Maintainer): Change from Jim Meyering to "all, glibc",
54186         since getdate now uses intended-for-glibc code.
54187         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54188         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54189
54190 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54191
54192         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54193         HP's ANSI C compiler.
54194         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54195         Declaring int functions causes warnings on some modern systems and
54196         shouldn't be needed to compile on ancient ones.
54197         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54198         defined.
54199
54200         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54201         with the following changes.
54202         (__set_errno): Parenthesize properly.
54203         Include <stdbool.h>.
54204         (MIN, MAX, MATCHING_INO): New macros.
54205         (__getcwd): Define with prototype, not K&R form.
54206         Use heuristics to allocate default buffer on stack if possible.
54207         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54208         behavior, and to avoid the PATH_MAX limit when computing
54209         ../../../../...
54210         Use MATCHING_INO to compare inode number to file.
54211         Check for arithmetic overflow in size calculations.
54212         Fix bug in reallocation of dot array that caused getcwd to fail
54213         on directories nested deeper than 75.
54214         Be more careful about saving errno on error.
54215         Do not use realloc; use only free+malloc, as this is a bit
54216         more flexible and avoids a needless copy operation.
54217         Do not inspect st_dev and st_ino for symbolic links; POSIX
54218         doesn't specify the latter.
54219         Check for closedir errors.
54220         Avoid needless casts.
54221         Use "#ifdef weak_alias" around weak_alias, to be like other
54222         glibc code.
54223         The following changes to getcwd.c have effect only when used in
54224         gnulib; they have no effect inside glibc proper.
54225         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54226         as alloca isn't used.
54227         (alloca, __alloca): Likewise.
54228         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54229         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54230         unconditionally, as gnulib assumes C89 or better.
54231         Do not include <sys/param.h>.
54232         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54233         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54234         better.
54235         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54236         Include <dirent.h> in a way that is compatible with modern Autoconf.
54237         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54238         New macros, if not already defined.
54239         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54240         Use "_LIBC", not "defined _LIBC", for consistency.
54241         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54242         a mempcpy module.
54243         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54244         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54245         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54246         credit only to Jim Meyering and adjust the copyright dates.
54247         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54248         <stdlib.h>, <unistd.h>, "pathmax.h".
54249         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54250         (INITIAL_BUFFER_SIZE): Remove.
54251         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54252
54253 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54254
54255         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54256         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54257         Use the _ONCE methods, for efficiency.
54258         Check for fcntl.h.  In test program, include <errno.h>
54259         and <fcntl.h> if available.  Remove old K&R cruft from
54260         test program.  Check for common errors in GNU/Linux,
54261         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54262         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54263         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54264         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54265         name accordingly.
54266         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54267         accommodate new getcwd.c.
54268         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54269         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54270         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54271         that's all we need now.
54272
54273 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54274
54275         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54276         argp-parse.c depends on getopt internals, that means we should
54277         always use our getopt, to be on the safe side.
54278         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54279         order not to spoil the result of an eventual previous invocation
54280         of gl_GETOPT_SUBSTITUTE.
54281
54282 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54283
54284         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54285         redefinition warnings. To avoid them, include the defines
54286         in `#if !defined __need_getopt ... #endif'. The only place
54287         where __getopt_argv_const is used is in definitions
54288         of getopt_long and getopt_long_only below, which are as well
54289         protected by `#ifndef __need_getopt'.
54290         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54291         __need_getopt after including <stdio.h> and <unistd.h> These
54292         headers might have defined it.
54293
54294 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54295
54296         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54297
54298 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54299
54300         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54301         (futimens): New function, which uses futimes if available.
54302         (futimens, utimens): Support timespec==NULL, with same semantics
54303         as utime and utimens.
54304         * lib/utimens.h (futimens): New decl.
54305
54306 2004-11-23  Jim Meyering  <jim@meyering.net>
54307
54308         * lib/getopt_.h: Remove trailing blanks.
54309
54310 2004-11-23  Jim Meyering  <jim@meyering.net>
54311
54312         * lib/__fpending.c: Add comment.
54313
54314 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54315
54316         * modules/canonicalize (Depends-on): Add xreadlink.
54317         Problem reported by James Youngman.
54318
54319 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54320
54321         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54322         New macros.
54323         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54324         optopt): Use them instead of invoking ## directly; otherwise, the
54325         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54326
54327 2004-11-19  Bruno Haible  <bruno@clisp.org>
54328
54329         * lib/strtok_r.c: Move comments from here...
54330         * lib/strtok_r.h: ... to here.
54331
54332 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54333
54334         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54335         implementations that mishandle size_t overflow.
54336
54337 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54338
54339         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54340         might fail.  Problem reported by Yoann Vandoorselaere.
54341         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54342         implementations that mishandle size_t overflow.
54343
54344 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54345
54346         * modules/canon-host (Depends-on): Add strdup.
54347
54348 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54349
54350         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54351
54352 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54353
54354         * lib/canon-host.c: Include "strdup.h".
54355         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54356         Use strdup instead of malloc/strcpy to duplicate strings.
54357
54358         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54359         (human_space_before_unit): New constant.
54360         * lib/human.c (human_readable): Support it.
54361
54362         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54363         (xgetcwd): Set errno correctly when failing.
54364         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54365         the failure is actually due to a PATH_MAX problem.
54366
54367         Further getopt changes to make it more likely that glibc will
54368         buy the changes back.
54369         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54370         (getopt): Use it, so to preserve glibc semantic
54371         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54372         when compiling for libc.
54373         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54374         (getopt_long, getopt_long_only): Use it.
54375
54376         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54377         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54378         (getopt): Argv is now char * const *, as per standard.
54379         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54380         not char *__getopt_argv_const *.
54381         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54382         _getopt_long_only_r): Likewise.
54383         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54384         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54385         _getopt_long_r, _getopt_long_only_r): Likewise.
54386         * lib/getopt_.h (__getopt_argv_const): Remove.
54387         (getopt): Argv is now char * const *, as per standard.
54388
54389         * lib/getdate.y (tORDINAL): New token.
54390         (day, relunit): Allow it for relative times.
54391         (relative_time_table): Use tORDINAL for ordinals.
54392
54393 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54394
54395         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54396         Document that "second" isn't allowed as an ordinal number.
54397
54398 2004-11-16  Jim Meyering  <jim@meyering.net>
54399
54400         * modules/closeout (Depends-on): Add fpending.
54401
54402 2004-11-15  Jim Meyering  <jim@meyering.net>
54403
54404         * lib/closeout.c: Include "__fpending.h" once again.
54405         Include <stdbool.h>.
54406         (close_stdout): Don't fail just because stdout was closed initially,
54407         since some programs don't write to stdout in the normal course of
54408         operation (other than --version and --help), and we don't want this
54409         function to make e.g. `touch file >&-' fail.
54410         But do fail if it was closed and someone has tried to write to it.
54411         E.g., `printf foo >&-' must fail.
54412
54413 2004-11-13  Jim Meyering  <jim@meyering.net>
54414
54415         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54416
54417 2004-11-12  Simon Josefsson  <jas@extundo.com>
54418
54419         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54420         small doc fix is still pending.
54421
54422 2004-11-11  Simon Josefsson  <jas@extundo.com>
54423
54424         * modules/strtok_r: New file.
54425
54426         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54427         strtok_r.
54428
54429 2004-11-11  Simon Josefsson  <jas@extundo.com>
54430
54431         * m4/strtok_r.m4: New file.
54432
54433         * m4/getopt.m4: Replace opterr.
54434
54435 2004-11-11  Simon Josefsson  <jas@extundo.com>
54436
54437         * lib/strtok_r.h, strtok_r.c: New file.
54438
54439 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54440
54441         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54442         of replacing opterr, getopt, etc.  This should handle the
54443         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54444
54445 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54446
54447         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54448         we can stop lying to compilers about the constness of argv when we
54449         are compiled outside glibc.
54450         (getopt, getopt_long, getopt_long_only): Use it.
54451         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54452         _getopt_internal, getopt): Likewise.
54453         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54454         _getopt_long_only_r): Likewise.
54455         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54456         _getopt_long_r, _getopt_long_only_r): Likewise.
54457
54458         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54459         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54460         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54461         the other external symbols.
54462         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54463         declaration, since the above renaming now works around collisions.
54464
54465 2004-11-11  Jim Meyering  <jim@meyering.net>
54466
54467         * lib/linebreak.c: Remove trailing blanks.
54468         * lib/alloca_.h: Likewise.
54469         * lib/acosl.c: Likewise.
54470         * lib/euidaccess.c: Likewise.
54471         * lib/allocsa.h: Likewise.
54472
54473 2004-11-10  Simon Josefsson  <jas@extundo.com>
54474
54475         * m4/getaddrinfo.m4: New file.
54476
54477 2004-11-10  Simon Josefsson  <jas@extundo.com>
54478
54479         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54480
54481 2004-11-10  Simon Josefsson  <jas@extundo.com>
54482
54483         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54484         getaddrinfo.
54485
54486         * modules/getaddrinfo: New file.
54487
54488 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54489
54490         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54491
54492 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54493
54494         * lib/mktime.c (SHR): New macro, which is a portable
54495         substitute for >> that should work even on Crays.
54496         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54497         Problem reported by Mark D. Baushke in
54498         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54499         * lib/getdate.y (SHR): Likewise.
54500         (tm_diff): Use it.
54501         * lib/strftime.c (SHR): Likewise.
54502         (tm_diff): Use it.
54503         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54504         quote_these_too, so that right shifts are well defined.  All uses
54505         changed.
54506
54507 2004-11-10  Jim Meyering  <jim@meyering.net>
54508
54509         Ensure that no close failure goes unreported.
54510         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54511         return early when it seems there's nothing to flush.
54512         Don't include __fpending.h.
54513
54514 2004-11-10  Jim Meyering  <jim@meyering.net>
54515
54516         * modules/closeout (Depends-on): Remove fpending.
54517
54518 2004-11-10  Jim Meyering  <jim@meyering.net>
54519
54520         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54521
54522 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54523
54524         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54525         gl_FUNC_STRFTIME.
54526         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54527         and AC_REQUIRE when possible, to avoid duplicate checks.
54528         Check for <wchar.h>.
54529
54530 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54531
54532         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54533
54534 2004-11-09  Bruno Haible  <bruno@clisp.org>
54535
54536         * m4/sockpfaf.m4: New file.
54537
54538 2004-11-05  Bruno Haible  <bruno@clisp.org>
54539
54540         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54541         Reported by Mark D. Baushke <mdb@cvshome.org>.
54542
54543 2004-11-04  Bruno Haible  <bruno@clisp.org>
54544
54545         2004-09-11  Bruno Haible  <bruno@clisp.org>
54546                 * allocsa.valgrind: New file.
54547         2004-02-06  Bruno Haible  <bruno@clisp.org>
54548                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54549                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54550                 Reported by Christopher Seip <chris.seip@hp.com>.
54551
54552 2004-11-04  Bruno Haible  <bruno@clisp.org>
54553
54554         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54555         (Makefile.am): Distribute it.
54556
54557 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54558
54559         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54560         with errno == ERANGE if the buffer is too small.
54561         Problem reported by Mark D. Baushke.
54562
54563 2004-11-03  Albert Chin  <china@thewrittenword.com>
54564             Paul Eggert  <eggert@cs.ucla.edu>
54565
54566         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54567         equivalent, substitute $ac_type for equivalent type rather than
54568         blindly using uint32_t *always* which won't work if uint32_t is not
54569         available.  Define _UINT32_T to work around typedef of uint32_t if
54570         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54571         2.5.1.
54572
54573 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54574
54575         * m4/jm-macros.m4: Sync from coreutils.
54576         (gl_MACROS): Check for mbrlen, for pathchk.
54577         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54578
54579 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54580
54581         * lib/xreadlink.c (MAXSIZE): New macro.
54582         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54583         size does not exceed MAXSIZE.  Avoid cast.
54584         As suggested by Mark D. Baushke in
54585         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54586         if readlink fails with buffer size just under MAXSIZE, try again
54587         with MAXSIZE.
54588
54589 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54590
54591         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54592
54593 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54594         and  Paul Eggert  <eggert@cs.ucla.edu>
54595
54596         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54597         (get_date): Overparenthesize to avoid GCC warning.
54598
54599 2004-11-02  Bruno Haible  <bruno@clisp.org>
54600
54601         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54602         returns void.
54603
54604 2004-11-02  Bruno Haible  <bruno@clisp.org>
54605
54606         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54607         function returns void.
54608
54609 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54610
54611         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54612         fflush_unlocked, flockfile, funlockfile, funlockfile,
54613         fputs_unlocked, putc_unlocked.
54614
54615 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54616
54617         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54618         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54619         already declared.
54620
54621 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54622
54623         * modules/getdate (Files): Add doc/getdate.texi.
54624         (Depends-on): Add setenv, xalloc.
54625
54626 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54627
54628         * lib/getdate.y: Add support for TZ="foo" within a date string.
54629         Fix some bugs near time_t boundaries.  Reject dates with
54630         out-of-range components, e.g., "Sept 31".
54631         Include <stdlib.h>, "setenv.h", "xalloc.h".
54632         (ISDIGIT_LOCALE): Remove; unused.
54633         Note that the TZ and time functions used here are not reentrant.
54634         (mktime_ok, get_tz): New functions.
54635         (TZBUFSIZE): New constant.
54636         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54637         This requires that we sometimes generate our own TZ="XXX..." setting.
54638
54639 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54640
54641         * doc/getdate.texi: New file, from coreutils with modifications for
54642         the new TZ parsing.
54643
54644 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54645
54646         * lib/mktime.c (not_equal_tm): Remove redundant check.
54647
54648 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54649
54650         * modules/regex (lib_SOURCES): Add regex.c.
54651         Reported by James Youngman in
54652         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54653
54654 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54655
54656         * lib/getdate.y: Use Bison 1.875 features, and some minor
54657         code cleanups.  This change does not affect semantics.
54658         Don't include <stdlib.h>; no longer needed.
54659         Don't include unlocked-io.h; only the "#if TEST" code uses
54660         stdio, and performance isn't crucial there.
54661         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54662         Bison 1.875 features as described below.
54663         All uses of "PC." replaced by "pc->".
54664         (YYSTYPE): Add a forward declaration.
54665         (yylex, yyerror): Use full prototypes in forward decls.
54666         Use "%pure-parser" rather than obsolescent "%pure_parser".
54667         Use %parse-param and %lex-param instead of obsolescent
54668         YYPARSE_PARAM and YYLEX_PARAM.
54669         (meridian_table, month_and_day_table, time_units_table,
54670         relative_time_table, time_zone_table, military_table,
54671         lookup_zone, lookup_word, get_date):
54672         Use NULL instead of 0 where appropriate.
54673         (to_hour): Avoid abort (), to avoid a dependency on
54674         stdlib.h.
54675         (yyerror, yylex): Now accepts parser_control * arg.
54676         (main) [TEST]: Use '\0' rather than 0 for char.
54677
54678 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54679
54680         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54681
54682 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54683
54684         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54685         It's now the caller's responsibility to handle the case where
54686         !HAVE_GETPAGESIZE && !defined getpagesize.
54687
54688         * lib/mktime.c (leapyear): Arg is long int, not int.
54689
54690 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54691
54692         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54693
54694 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54695
54696         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54697         missing.  Problem reported by James Youngman.
54698
54699 2004-10-16  Simon Josefsson  <jas@extundo.com>
54700
54701         * gnulib-tool: Fix comments.  Fix parse problem.
54702         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54703
54704 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54705
54706         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54707         implementation of getopt_long.  Problem reported by Alexander Taler in:
54708         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54709
54710 2004-10-15  Bruno Haible  <bruno@clisp.org>
54711
54712         * gnulib-tool: Untabify. Initialize supplied_libname.
54713         (func_usage): More homogenous output.
54714         (func_modules_transitive_closure, func_modules_to_filelist,
54715         func_emit_lib_Makefile_am): New functions.
54716         (func_import): New function, extracted from big case statement. Use
54717         func_get_license, func_modules_transitive_closure,
54718         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54719         opt_lgpl. Don't use test -a, as it's not portable.
54720         (func_create_testdir): Use func_modules_transitive_closure,
54721         func_modules_to_filelist, func_emit_lib_Makefile_am.
54722
54723 2004-10-15  Bruno Haible  <bruno@clisp.org>
54724
54725         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54726
54727 2004-10-15  Bruno Haible  <bruno@clisp.org>
54728
54729         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54730         the portions belonging to each module.
54731         Suggested by Derek Robert Price <derek@ximbiot.com>.
54732
54733 2004-10-12  Simon Josefsson  <jas@extundo.com>
54734
54735         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54736         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54737         to real functions.
54738
54739 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54740
54741         * modules/vsnprintf: New file.
54742
54743 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54744
54745         * m4/vsnprintf.m4: New file.
54746
54747 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54748
54749         * lib/vsnprintf.h: New file.
54750         * lib/vsnprintf.c: New file.
54751
54752 2004-10-11  Bruno Haible  <bruno@clisp.org>
54753
54754         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54755         vsnprintf.
54756
54757 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54758
54759         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54760
54761 2004-10-07  Bruno Haible  <bruno@clisp.org>
54762
54763         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54764         fits into the provided buffer.
54765
54766 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54767
54768         * lib/diacrit.c, diacrit.h: Add GPL notice.
54769
54770         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54771         notice.
54772         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54773         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54774         This avoids a potential constant-folding bug.
54775
54776 2004-10-05  Bruno Haible  <bruno@clisp.org>
54777
54778         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54779         for the declaration of strsep.
54780
54781 2004-10-05  Bruno Haible  <bruno@clisp.org>
54782
54783         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54784
54785 2004-10-04  Simon Josefsson  <jas@extundo.com>
54786
54787         * modules/memmem: New file.
54788         * tests/test-memmem.c: New file.
54789         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54790
54791 2004-10-04  Simon Josefsson  <jas@extundo.com>
54792
54793         * m4/memmem.m4: New file.
54794
54795 2004-10-04  Simon Josefsson  <jas@extundo.com>
54796
54797         * lib/memmem.h: New file.
54798         * lib/memmem.c: New file, taken from glibc.
54799
54800 2004-10-04  Simon Josefsson  <jas@extundo.com>
54801
54802         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54803         '#ifdef USE_UNLOCKED_IO'.
54804
54805 2004-10-04  Simon Josefsson  <jas@extundo.com>
54806
54807         * config/srclist.txt: Add memmem from glibc.
54808
54809 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54810
54811         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54812
54813         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54814         modules/exclude, modules/getdate, modules/getline,
54815         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54816         modules/getusershell, modules/linebuffer, modules/md5,
54817         modules/mountlist, modules/posixtm, modules/readtokens,
54818         modules/readutmp, modules/regex, modules/sha1,
54819         modules/version-etc, modules/yesno:
54820         Remove dependency on unlocked-io.
54821
54822 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54823
54824         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54825
54826         * m4/unlocked-io.m4: Add copyright notice.
54827         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54828
54829 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54830
54831         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54832         * lib/xmalloc.c (xmemdup): Likewise.
54833         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54834         XFREE): Remove these long-obsolescent macros.
54835         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54836         * lib/xstrdup.c: Remove.
54837
54838         * lib/regex.c (re_comp): Cast gettext return value to char *,
54839         Problem reported by Martin Neitzel via Mark D. Baushke.
54840
54841 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54842
54843         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54844         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54845         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54846         regex.c, sha1.c, version-etc.c, yesno.c:
54847         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54848         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54849         the includer's responsibility.
54850
54851         Sync from coreutils.
54852
54853         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54854         points to the start of a string, as the C Standard says the
54855         resulting behavior is undefined.
54856
54857         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54858         simple -> simple_backups, numbered_existing ->
54859         numbered_existing_backups, numbered -> numbered_backups
54860         to avoid shadowing problems.  All uses changed.
54861         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54862         * lib/backupfile.c (check_extension, numbered_backup):
54863         Rename locals to avoid shadowing 'basename'.
54864         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54865         once.
54866
54867         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54868         * lib/.cvsignore: Add getopt.h.
54869
54870 2004-10-04  Bruno Haible  <bruno@clisp.org>
54871
54872         * modules/README: New file.
54873         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54874         not a module.
54875
54876 2004-10-02  Jim Meyering  <jim@meyering.net>
54877
54878         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54879
54880 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54881
54882         * modules/strsep: New file.
54883
54884 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54885
54886         * m4/strsep.m4: New file.
54887
54888 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54889
54890         * lib/strsep.h: New file.
54891         * lib/strsep.c: New file.
54892
54893 2004-10-01  Simon Josefsson  <jas@extundo.com>
54894
54895         * lib/snprintf.c (snprintf): Handle size==0.
54896
54897 2004-10-01  Simon Josefsson  <jas@extundo.com>
54898             Bruno Haible  <bruno@clisp.org>
54899
54900         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54901         (snprintf): Declare 'args'.
54902
54903 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54904
54905         * lib/snprintf.c: Remove comments as to why each header is needed.
54906
54907 2004-10-01  Bruno Haible  <bruno@clisp.org>
54908
54909         * MODULES.html.sh: Add strsep.
54910
54911 2004-09-30  Simon Josefsson  <jas@extundo.com>
54912
54913         * modules/snprintf: New file.
54914
54915 2004-09-30  Simon Josefsson  <jas@extundo.com>
54916
54917         * m4/snprintf.m4: New file.
54918
54919 2004-09-30  Simon Josefsson  <jas@extundo.com>
54920
54921         * lib/snprintf.h, lib/snprintf.c: New files.
54922
54923 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54924
54925         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54926         (hol_entry_help): Never translate an empty string.
54927         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54928         * lib/argp.h (OPTION_NO_TRANS): New option.
54929
54930 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54931
54932         * modules/argp (Maintainer): Replace Simon Josefsson
54933         by Sergey Poznyakoff.
54934
54935 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54936
54937         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54938         changes merged back into glibc.
54939
54940 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54941
54942         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54943
54944 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54945
54946         * lib/xvasprintf.c: Include xalloc.h.
54947         (xvasprintf): Use xalloc_die, not xmalloc_die.
54948
54949 2004-09-29  Bruno Haible  <bruno@clisp.org>
54950
54951         * modules/alloca-opt: New file, derived from modules/alloca.
54952         * modules/allocsa: Depend on alloca-opt instead of alloca.
54953         * modules/setenv: Likewise.
54954         * modules/vasnprintf: Likewise.
54955         * MODULES.html.sh: Add alloca-opt.
54956
54957 2004-09-28  Simon Josefsson  <jas@extundo.com>
54958
54959         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54960         LGPL, and to replace license template from GPL to LGPL.
54961
54962 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54963
54964         * modules/dummy: Change license to LGPL.
54965
54966 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54967
54968         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54969
54970 2004-09-24  Simon Josefsson  <jas@extundo.com>
54971
54972         * modules/minmax (License): Change from GPL to LGPL.
54973
54974 2004-09-23  Simon Josefsson  <jas@extundo.com>
54975
54976         * gnulib-tool (--import): Typo.
54977
54978 2004-09-23  Simon Josefsson  <jas@extundo.com>
54979
54980         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54981
54982 2004-09-22  Bruno Haible  <bruno@clisp.org>
54983
54984         * modules/*: Add 'License' field.
54985         * gnulib-tool: Accept --extract-license option.
54986         (func_get_license): New function.
54987
54988 2004-09-21  Bruno Haible  <bruno@clisp.org>
54989
54990         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54991         Reported by Simon Josefsson.
54992
54993 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54994
54995         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54996         gl_AC_TYPE_LONG_LONG.
54997
54998 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54999
55000         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
55001
55002 2004-09-18  Simon Josefsson  <jas@extundo.com>
55003         and  Paul Eggert  <eggert@cs.ucla.edu>
55004
55005         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
55006         calls with autoreconf.  Define GL_LIB.
55007
55008 2004-09-14  Karl Berry  <karl@gnu.org>
55009
55010         * config/srclist.txt: unsync setenv.c, sigh.
55011
55012 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55013
55014         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
55015         Problem reported by Bruno Haible in:
55016         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
55017
55018 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55019
55020         * config/srclist.txt: Comment out argp-pvh.c.
55021
55022 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
55023
55024         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
55025         in case some system header has #define'd it.  Problem reported by
55026         Soeren D. Schulze in
55027         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
55028
55029 2004-09-09  Karl Berry  <karl@gnu.org>
55030
55031         * regex.[ch]: delete from the root.  These were supposed to be
55032                 synced with emacs cvs, but this has not happened for about
55033                 a year, and anyway nothing else uses emacs regex.[ch].
55034                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
55035                 lib/regex[.ch] is untouched.
55036
55037 2004-09-09  Bruno Haible  <bruno@clisp.org>
55038
55039         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
55040
55041 2004-09-09  Bruno Haible  <bruno@clisp.org>
55042
55043         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
55044         modifications.
55045         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
55046
55047 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55048
55049         * modules/xvasprintf: New file.
55050         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
55051
55052 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55053
55054         * lib/xvasprintf.h: New file.
55055         * lib/xvasprintf.c: New file.
55056         * lib/xasprintf.c: New file.
55057
55058 2004-09-08  Bruno Haible  <bruno@clisp.org>
55059
55060         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
55061
55062 2004-09-08  Bruno Haible  <bruno@clisp.org>
55063
55064         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
55065         length is > INT_MAX.
55066         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
55067         more.
55068
55069 2004-09-08  Bruno Haible  <bruno@clisp.org>
55070
55071         * lib/stdint_.h: New file, taken from GNU clisp.
55072
55073 2004-09-08  Bruno Haible  <bruno@clisp.org>
55074             Oskar Liljeblad  <oskar@osk.mine.nu>
55075
55076         * modules/stdint: New file.
55077         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
55078
55079 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55080
55081         Import from coreutils.
55082         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
55083         strings on unbounded length.  alloca's performance benefits aren't
55084         that important here.
55085         (V_STRDUP): Remove.
55086         (parse_with_separator): New function, with most of the internals
55087         of the old parse_user_spec.  Allow user to omit both user and group,
55088         for compatibility with FreeBSD.
55089         Clone only the user name, not the entire spec.
55090         Do not set *uid, *gid unless entirely successful.
55091         Avoid memory leak in some failing cases.
55092         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55093         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55094         (parse_user_spec): Rewrite to use parse_with_separator.
55095
55096 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55097
55098         * modules/userspec: Don't depend on alloca.
55099
55100 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55101
55102         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55103
55104 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55105
55106         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55107         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55108         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55109
55110 2004-08-16  Simon Josefsson  <jas@extundo.com>
55111
55112         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55113         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55114         Add --dry-run for --import.
55115         Let user provided command line parameters override configure.ac
55116         settings.
55117
55118 2004-08-12  Simon Josefsson  <jas@extundo.com>
55119
55120         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55121         as discussed with Paul Eggert in threads rooted at
55122         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55123         and
55124         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55125         Before, the test was empty, and relied on ELIDE_CODE in source
55126         code.)
55127         (gl_PREREQ_GETOPT): New macro.
55128         (gl_GETOPT): Use them.
55129
55130 2004-08-12  Simon Josefsson  <jas@extundo.com>
55131
55132         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55133         * lib/getopt_.h: Renamed from getopt.h.
55134
55135 2004-08-12  Simon Josefsson  <jas@extundo.com>
55136
55137         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55138         Change default library name from libfoo to libgnu.
55139         Now, if you have a configure.ac that says:
55140                 gl_SOURCE_BASE(gl)
55141                 gl_M4_BASE(gl/m4)
55142                 gl_MODULES(error getopt etcetera)
55143                 gl_INIT
55144         you can import all you need by running:
55145                 ../gnulib/gnulib-tool --import
55146
55147         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55148         (Makefile.am): Rewrite, use logic from argz.
55149         (Include): Use <getopt.h> instead of "getopt.h".
55150
55151 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55152
55153         * modules/argp (Files): Add m4/unlocked-io.m4.
55154         (Depends-on): Add extensions.
55155
55156 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55157
55158         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55159         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55160         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55161         Check for program_invocation_name, program_invocation_short_name,
55162         flockfile, funlockfile, features.h, _getopt_long_only_r.
55163
55164 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55165
55166         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55167         its complicated substitute.
55168         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55169         and program_invocation_name.
55170         (__argp_basename) [!_LIBC]: Remove; the only use was
55171         replaced by its body.
55172         (__argp_short_program_name): Change condition from
55173         !defined __argp_short_program_name to
55174         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55175         to match argp-namefrob.h.
55176         (__argp_failure): Don't assume strerror_r returns char *.
55177         * lib/argp-parse.c (N_): Define unconditionally.
55178         (argp_default_options): Fill out initializers with 0 to avoid
55179         gcc warnings.
55180
55181 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55182
55183         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55184         getopt1.c.
55185
55186 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55187
55188         Merge from coreutils.
55189
55190         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55191
55192         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55193         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55194
55195 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55196
55197         Merge from coreutils.
55198
55199         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55200         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55201         for Reliant Unix 5.43.
55202
55203         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55204         (union fooround): Use uintmax_t, not long int.
55205         The rest is a merge from libc:
55206         [defined _LIBC]: Include <shlib-compat.h>.
55207         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55208
55209         * lib/settime.c (settime): Recode to avoid warning with
55210         Sun Forte C 6U2.
55211
55212         * lib/strverscmp.c: Convert to UTF-8.
55213
55214 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55215
55216         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55217         m4/uintmax_t.m4.
55218
55219 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55220
55221         * modules/xalloc-die: New file.
55222         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55223
55224         * modules/md5 (Files): Add m4/uint32_t.m4.
55225         * modules/sha1: Renamed from modules/sha.
55226         (Files):
55227         Rename lib/sha.h to lib/sha1.h.
55228         Rename lib/sha.c to lib/sha1.c.
55229         Rename m4/sha.m4 to m4/sha1.m4.
55230         (lib_SOURCES): Likewise.
55231         (configure.ac): Rename gl_SHA to gl_SHA1.
55232         (Include): sha.h -> sha1.h.
55233
55234 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55235
55236         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55237         * m4/sha1.m4: Renamed from sha.m4.
55238         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55239
55240 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55241
55242         * lib/obstack.h (obstack_empty_p):
55243         Don't assume that chunk->contents is suitably aligned.
55244         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55245         Likewise. Problem reported by Benno in
55246         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55247
55248         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55249         readable.  This could be improved further but it'd take some work.
55250
55251 2004-08-08  Simon Josefsson  <jas@extundo.com>
55252
55253         * modules/xgethostname (Depends-on): Remove exit and error (not
55254         used).
55255
55256         * modules/getpass-gnu: Add getpass.h.
55257         (Depends-on): Add stdbool.
55258         * modules/getpass: Add getpass.h.
55259
55260 2004-08-08  Simon Josefsson  <jas@extundo.com>
55261
55262         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55263         Check getpass declaration.
55264
55265 2004-08-08  Simon Josefsson  <jas@extundo.com>
55266
55267         * lib/xgethostname.c: Don't include error.h (not used).
55268
55269         * lib/getpass.h: Add.
55270         * lib/getpass.c: Include getpass.h first.
55271
55272 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55273
55274         * lib/xalloc-die.c: New file.
55275         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55276         All uses removed.
55277         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55278         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55279         xalloc-die.c.
55280         (_, N_, xalloc_die): Move to xalloc-die.c.
55281         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55282         so that we needn't mess with xalloc_msg_memory_exhausted.
55283
55284         * lib/sha1.h: Renamed from sha.h.
55285         (SHA1_H): Renamed from _SHA_H.
55286         (sha1_ctx): Renamed from sha_ctx.
55287         (sha1_init_ctx): Renamed from sha_init_ctx.
55288         (sha1_process_block): Renamed from sha_process_block.
55289         (sha1_process_bytes): Renamed from sha_process_bytes.
55290         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55291         (sha1_read_ctx): Renamed from sha_read_ctx.
55292         (sha1_stream): Renamed from sha_stream.
55293         (sha1_buffer): Renamed from sha_buffer.
55294         * lib/sha1.c: Likewise; renamed from sha.c.
55295         Do not include <sys/types.h>.
55296         Include <stddef.h> rather than <stdlib.h>.
55297
55298 2004-08-08  Bruno Haible  <bruno@clisp.org>
55299
55300         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55301         FILESYSTEM_PREFIX_LEN.
55302         * lib/progreloc.c: Likewise.
55303         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55304
55305 2004-08-06  Simon Josefsson  <jas@extundo.com>
55306
55307         * modules/progname (Depends-on): Don't depend on stdbool.
55308
55309 2004-08-06  Simon Josefsson  <jas@extundo.com>
55310
55311         * modules/getsubopt: New file.
55312         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55313         getsubopt.
55314
55315 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55316
55317         More merge from coreutils.
55318
55319         * m4/utimens.m4, m4/utimecmp.m4: New files.
55320         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55321         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55322         prereq.m4, sha.m4: Import changes from coreutils.
55323
55324 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55325
55326         More merge from coreutils.
55327         * modules/raise, modules/readtokens0, modules/utimens:
55328         * modules/utimecmp, module/xnanosleep: New files.
55329         * modules/strftime: Add lib/strftime.h.
55330         Change include from <time.h> to "strftime.h".
55331         * modules/yesno: Add lib/yesno.h.
55332         * modules/backupfile: Remove lib/addext.c.
55333         * modules/euidaccess: Add stat-macros.h.
55334         * modules/canonicalize, modules/euidaccess,
55335         modules/filemode, modules/lchown, modules/makepath,
55336         modules/rmdir, modules/stat: Likewise.
55337
55338 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55339
55340         Merge from tar.
55341         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55342         SIZE_MAX is a valid preprocessor constant.
55343         (__argp_basename): Change from "#ifndef _LIBC"
55344         to "#ifndef __argp_short_program_name", so that
55345         we don't compile these functions for tar.
55346
55347         More merges from coreutils.
55348         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55349         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55350         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55351         * lib/addext.c: Remove; no longer needed.
55352         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55353         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55354         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55355         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55356         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55357         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55358         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55359         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55360         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55361         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55362         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55363         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55364         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55365         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55366         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55367         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55368         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55369         Import changes from coreutils.
55370
55371 2004-08-05  Simon Josefsson  <jas@extundo.com>
55372
55373         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55374
55375 2004-08-05  Simon Josefsson  <jas@extundo.com>
55376
55377         * m4/getsubopt.m4: New file.
55378
55379 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55380
55381         Merge from coreutils.
55382
55383         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55384         * m4/getcwd-path-max.m4: New files.
55385
55386         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55387         FILESYSTEM_PREFIX_LEN ->
55388         FILE_SYSTEM_PREFIX_LEN.
55389         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55390         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55391         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55392         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55393
55394         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55395         prerequisite modules now handle the DOS stuff.
55396         Don't check for unistd.h.
55397
55398 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55399
55400         Merge from coreutils.
55401
55402         * lib/.gdb-history: Remove; this doesn't belong here.
55403
55404         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55405         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55406         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55407         * lib/getcwd.c: New files.
55408
55409         * lib/dirname.h: Include <stdbool.h>.
55410         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55411         for consistency with POSIX terminology.  All uses changed.
55412         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55413         (strip_trailing_slashes): Use bool for booleans.
55414         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55415
55416         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55417         sometimes returns a positive errno value even when it succeeds.
55418         (print_errno_message) [!LIBC]: Fall back on strerror if
55419         __strerror_r fails.
55420
55421         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55422         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55423         (longest_relative_suffix): New function.
55424         (path_concat): Use it.  Assume first argument is not NULL.
55425         Port to DOS.  Omit redundant separators.
55426         Report an error instead of returning NULL.
55427         Use mempcpy instead of memcpy.
55428         (xpath_concat): Remove: not declared or used.
55429
55430         * lib/same.h: Include <stdbool.h>
55431         (same_name): Return bool, not int.
55432         * lib/same.c (same_name): Likewise.
55433         (errno): Don't declare; we assume C89 or better now.
55434
55435         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55436         if not already defined.
55437
55438         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55439         * lib/dup-safer.c (errno): Likewise.
55440
55441 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55442
55443         Merge from coreutils.
55444         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55445         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55446         * modules/path-concat: Don't depend on strdup.
55447
55448 2004-08-03  Simon Josefsson  <jas@extundo.com>
55449
55450         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55451         * lib/progname.h: Don't include stdbool.h.
55452
55453 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55454
55455         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55456         * MODULES.html.sh (func_all_modules): Remove fatal.
55457
55458 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55459
55460         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55461
55462 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55463
55464         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55465         working.
55466
55467 2004-08-02  Simon Josefsson  <jas@extundo.com>
55468
55469         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55470         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55471         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55472
55473 2004-08-01  Simon Josefsson  <jas@extundo.com>
55474
55475         * lib/xgetdomainname.c: Include stdlib.h, for free().
55476
55477 2004-07-19  Bruno Haible  <bruno@clisp.org>
55478
55479         * MODULES.html.sh (func_all_modules): Add dummy.
55480
55481 2004-07-16  Simon Josefsson  <jas@extundo.com>
55482
55483         * modules/dummy: New file.
55484
55485 2004-07-16  Simon Josefsson  <jas@extundo.com>
55486
55487         * lib/dummy.c: New file.
55488
55489 2004-07-16  Bruno Haible  <bruno@clisp.org>
55490
55491         * lib/backupfile.h: Add extern "C" for C++.
55492         * lib/closeout.h: Likewise.
55493         * lib/copy-file.h: Likewise.
55494         * lib/findprog.h: Likewise.
55495         * lib/full-write.h: Likewise.
55496         * lib/pathname.h: Likewise.
55497         * lib/progname.h: Likewise.
55498         * lib/stpcpy.h: Likewise.
55499         * lib/stpncpy.h: Likewise.
55500         * lib/strcase.h: Likewise.
55501         * lib/strstr.h: Likewise.
55502         * lib/xalloc.h: Likewise.
55503
55504         * lib/mbswidth.h: Add extern "C" for C++.
55505         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55506
55507 2004-07-13  Robert Millan  <robertmh@gnu.org>
55508
55509         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55510
55511 2004-07-09  Simon Josefsson  <jas@extundo.com>
55512
55513         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55514         failed without this.)
55515
55516 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55517
55518         * modules/chown (Files): Add lib/fchown-stub.c, since
55519         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55520
55521 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55522
55523         * lib/fchown-stub.c: New file.
55524
55525 2004-06-24  Jim Meyering  <jim@meyering.net>
55526
55527         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55528
55529 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55530
55531         * modules/argz: Omit "#include".
55532
55533         * MODULES.html.sh (func_all_modules): Add calloc, to match
55534         2004-06-01 addition of calloc module.
55535
55536 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55537
55538         * m4/argz.m4: New file, which is autoupdated from libtool.
55539
55540 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55541
55542         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55543         libtool.
55544
55545 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55546
55547         * config/srclist-update: Don't insist on "USA." before the
55548         close-comment, as libtool omits the period and puts the */ on a
55549         separate line.
55550         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55551         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55552
55553 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55554
55555         * modules/argz: New file.
55556         * MODULES.html.sh (func_all_modules): Add argz.
55557
55558 2004-06-12  Jim Meyering  <jim@meyering.net>
55559         and  Paul Eggert  <eggert@cs.ucla.edu>
55560
55561         * modules/hash (Files): Add lib/xalloc.h.
55562         * modules/pipe (Depends-on): Add wait-process.
55563         * modules/stat (Depends-on): Add xalloc.
55564         * modules/userspec (Files): Add lib/userspec.h.
55565         * modules/xstrto
55566
55567         Upgrade from gettext-0.13.
55568         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55569         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55570         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55571
55572 2004-06-10  Jim Meyering  <jim@meyering.net>
55573
55574         * lib/calloc.c: New file.
55575
55576 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55577
55578         * lib/getdate.y (yylex): Allow space between sign and number.
55579         Problem reported by Dan Jacobson.
55580
55581 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55582
55583         Merge from coreutils CVS.
55584
55585         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55586         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55587         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55588         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55589         xstrtol.m4: Fix copyright date and/or serial number.
55590
55591         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55592         See if we need an fchown replacement.
55593         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55594         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55595         and use the replacement function if we detect either defect.
55596
55597         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55598         gl_UTIMECMP.
55599
55600 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55601         and  Jim Meyering  <jim@meyering.net>
55602
55603         Merge from coreutils CVS.
55604
55605         * lib/stat-macros.h: New file, with contents from file-type.h
55606         and coreutils' system.h.
55607         * lib/file-type.c: Include "stat-macros.h".
55608         * lib/file-type.h (file_type): Move all macro definitions to new file,
55609         stat-macros.h.
55610
55611         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55612         Wrap old code with this conditional.
55613         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55614         function that does not dereference symlinks.
55615         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55616
55617         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55618         dependency problems.
55619         (xreadlink): Accept new arg SIZE, for efficiency.
55620         All decls and uses changed.
55621         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55622
55623         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55624         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55625
55626         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55627         sysexits.h.
55628
55629 2004-06-01  Jim Meyering  <jim@meyering.net>
55630
55631         * m4/calloc.m4: New file.
55632
55633 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55634
55635         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55636         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55637         Also, fix a typo in a diagnostic.
55638
55639 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55640
55641         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55642         or AC_FUNC_REALLOC.
55643
55644 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55645
55646         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55647         macros to be defined.
55648         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55649         the allocator returns NULL because the requested size is zero.
55650
55651 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55652
55653         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55654         var.  Add comment explaining why libc still defines it.  This
55655         merges the following patch from glibc:
55656         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55657
55658 2004-05-20  Andreas Schwab  <schwab@suse.de>
55659
55660         * m4/free.m4: Replace free if it not known to work, not the other
55661         way round.
55662
55663 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55664
55665         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55666         present in glibc since revision 1.1 of this file.
55667         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55668         obstack_alignment_mask, obstack_alloc, obstack_base,
55669         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55670         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55671         obstack_grow0, obstack_init, obstack_int_grow,
55672         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55673         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55674         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55675         nonexistent functions.
55676
55677 2004-05-18  Karl Berry  <karl@gnu.org>
55678
55679         * config/srclist.txt: break link for vasnprintf.c.
55680
55681 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55682
55683         Port obstack to the AS/400, where pointers are 16 bytes wide and
55684         you cannot cast an integer to a valid pointer.  This patch is
55685         currently waiting to be integrated into glibc; see
55686         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55687
55688         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55689         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55690         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55691         (struct obstack): temp member is now a union of a pointer and
55692         an integer, instead of an integer.  All integer uses changed.
55693         This does not affect the physical layout of struct obstack,
55694         except on hosts (like the AS/400) where the size or alignment of
55695         void * is greater than that of ptrdiff_t.
55696         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55697         __STDC__)]: Store temporary in pointer member of union, not
55698         integer member.
55699         * lib/obstack.c: Include <stddef.h>, for offsetof.
55700         (struct fooalign): Remove; it doesn't need a name.
55701         (union fooround): Change double to long double, and add void *.
55702         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55703         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55704         not a macro.  Hence the values are always int; so remove all
55705         casts-to-int in uses.
55706
55707 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55708
55709         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55710         we can get this patch merged into glibc.
55711
55712 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55713             Paul Eggert  <eggert@cs.ucla.edu>
55714
55715         * m4/argp: Depend on alloca.
55716
55717 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55718             Paul Eggert  <eggert@cs.ucla.edu>
55719
55720         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55721         freecoding.
55722
55723 2004-05-17  Bruno Haible  <bruno@clisp.org>
55724
55725         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55726         precision that consists of a '.' followed by an empty digit string.
55727         Patch by Tor Lillqvist <tml@iki.fi>.
55728
55729 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55730
55731         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55732         for backward compatibility with older code.  We need our own
55733         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55734         it under some other name, and our alloca.h will define it.
55735
55736 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55737             Derek Price  <derek@ximbiot.com>
55738
55739         * lib/alloca.c: Include <alloca.h>, to get our interface.
55740         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55741         include <alloca.h> first.  Use C89 prototype for alloca; this
55742         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55743         Use #elif for simplicity, since we can assume C89 now.
55744         Don't try to source the system alloca.h since it will not be found
55745         and to prevent recursively including its replacement.
55746         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55747         * lib/regex.c: Likewise.
55748
55749 2004-05-16  Derek Price  <derek@ximbiot.com>
55750             Paul Eggert  <eggert@cs.ucla.edu>
55751
55752         getline cleanup.  This changes the getndelim2 API: both order of
55753         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55754         no delimiter).
55755
55756         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55757         interface does that.
55758         (getline): Always use getdelim, so that we don't have two
55759         copies of this code.
55760         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55761         if available.
55762         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55763         (GETNDELIM2_MAXIMUM): New macro.
55764         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55765         instead of the old practice of delim2==0.  All callers changed.
55766         Return -1 on overflow, instead of returning junk.
55767         Do not set *linesize unless allocation succeeds.
55768         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55769         that we include sys/types.h.
55770         * lib/getnline.h: Likewise.
55771         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55772         (getndelim2): Reorder arguments.
55773         * lib/getnline.c (getnline, getndelim):
55774         Don't discard the NMAX argument.
55775         (getnline): Invoke getndelim, to avoid code duplication.
55776         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55777         of (size_t) -1 by callers of the getnline family.
55778
55779 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55780
55781         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55782         Check for gettimeofday.
55783         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55784         Check for settimeofday, stime.
55785
55786 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55787
55788         * lib/nanosleep.c (suspended): Change its type from int to
55789         sig_atomic_t volatile.
55790         (first_call): Make it private to rpl_nanosleep, and have it
55791         be zero initially as that's a bit faster.
55792         (my_usleep): Round up fractional times instead of truncating them,
55793         as this is the usual meaning for 'sleep'.
55794
55795         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55796         doesn't work.
55797         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55798         (ENOSYS): Define if not defined.
55799         (settime): Fall back on stime if it exists and settimeofday fails.
55800         But don't bother with fallbacks if a method fails with errno == EPERM.
55801
55802 2004-05-11  Jim Meyering  <jim@meyering.net>
55803
55804         Prior to this change, the save_cwd caller required read access to the
55805         current directory on most systems (ones with the fchdir function).
55806
55807         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55808         fails, try write-only, and finally, resort to using xgetcwd.
55809
55810 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55811
55812         * lib/obstack.c, obstack.h: Import changes from libc.
55813
55814 2004-04-28  Bruno Haible  <bruno@clisp.org>
55815
55816         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55817         also implicitly appends .exe to executables.
55818         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55819         accepts Windows pathnames.
55820         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55821         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55822         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55823         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55824         Reported by Derek Robert Price <derek@ximbiot.com>.
55825
55826 2004-04-21  Karl Berry  <karl@gnu.org>
55827
55828         * config/srclist.txt (localcharset.c): break sync.
55829
55830 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55831
55832         * m4/host-os.m4: Add a copyright notice.
55833
55834 2004-04-20  Jim Meyering  <jim@meyering.net>
55835
55836         Change UTILS_ to gl_ in AC_DEFINE'd names.
55837         Change utils_- and jm_-prefixed variables, too.
55838         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55839         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55840         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55841
55842         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55843         Don't emit trailing blanks.
55844         Also rename jm_-prefixed variables to have gl_ prefix.
55845
55846         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55847         Also rename jm_-prefixed variables to have gl_ prefix.
55848
55849         * m4/jm-macros.m4: Reflect the renamings.
55850         * m4/prereq.m4: Likewise.
55851
55852 2004-04-20  Jim Meyering  <jim@meyering.net>
55853
55854         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55855         memory.
55856
55857 2004-04-20  Jim Meyering  <jim@meyering.net>
55858             Bruno Haible  <bruno@clisp.org>
55859
55860         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55861         memory when realloc fails.
55862
55863 2004-04-19  Jim Meyering  <jim@meyering.net>
55864
55865         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55866         now that readutmp.c may call `free (0)'.
55867
55868 2004-04-19  Bruno Haible  <bruno@clisp.org>
55869
55870         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55871         * m4/inttypes_h.m4: Likewise.
55872         * m4/stdint_h.m4: Likewise.
55873         * m4/intmax_t.m4: Likewise.
55874         * m4/uintmax_t.m4: Likewise.
55875
55876 2004-04-18  Jim Meyering  <jim@meyering.net>
55877
55878         * m4/prereq.m4: Don't forbid jm_ prefix.
55879
55880         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55881         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55882         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55883         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55884         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55885         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55886         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55887         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55888         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55889         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55890         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55891         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55892         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55893         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55894         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55895         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55896         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55897         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55898         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55899
55900 2004-04-18  Jim Meyering  <jim@meyering.net>
55901
55902         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55903         failure, don't leak memory and do call END_UTMP_ENT.
55904
55905 2004-04-16  Jim Meyering  <jim@meyering.net>
55906
55907         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55908         coreutils' stat program.
55909         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55910
55911 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55912
55913         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55914         C89.
55915         (CHAR_BIT): Remove, since we assume C89.
55916         Include <stdint.h> if available, as per current Autoconf CVS advice.
55917
55918 2004-03-31  Jim Meyering  <jim@meyering.net>
55919
55920         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55921         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55922         * m4/xalloc.m4: Likewise.
55923
55924 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55925
55926         Merge from coreutils.
55927
55928         * m4/inttostr.m4: New file.
55929         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55930         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55931         Require gl_CLOCK_TIME.
55932         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55933
55934 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55935
55936         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55937         not bool, to be more consistent with Unix conventions.
55938         Suggested by Bruno Haible.
55939
55940         Merge from coreutils.
55941
55942         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55943         * lib/umaxtostr.c: New files.
55944
55945         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55946         the usual <time.h> dance.
55947         (get_date): Change signature to support fractional time stamps.
55948         All callers changed.
55949         * lib/getdate.y: Include "getdate.h" first, as we can now
55950         assume C89 and don't need to worry about 'const'.
55951         Similarly, include "unlocked-io.h" near start, not in middle.
55952         Include <limits.h>.
55953         (textint.value): Use long int rather than int.
55954         (textint.digits): Use size_t rather than int.
55955         (BILLION, LOG10_BILLION): New constants.
55956         (parser_control): New member rel_ns.  Members day_ordinal,
55957         time_zone, month, day, hour, minutes, rel_year, rel_month,
55958         rel_day, rel_hour, rel_minutes, rel_seconds
55959         are now long int, not int.  Member seconds is now struct timespec,
55960         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55961         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55962         not int.
55963         (%union.intval): Now long int, not int.
55964         New member timespec.
55965         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55966         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55967         (spec): Now is a timespec or an item list.
55968         (timespec, items): New nonterminals.
55969         (time, rel, relunit, number, get_date):
55970         Add support for fractional seconds.
55971         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55972         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55973         (to_hour): First arg is now long int, not int.
55974         (to_year): Returns long int, not int.
55975         Don't treat year -70 like 70.
55976         (tm_diff): Returns long int, not int.
55977         (lookup_word): Use bool instead of int when appropriate.
55978         (yylex): Use size_t for count, not int.
55979         Detect overflow when parsing large integer constants.
55980         Add support for fractions.
55981         (get_date): Make pointers 'const' if possible.
55982         Use more-portable code to detect integer overflow.
55983         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55984         Don't use ctime; it's not reliable if the year has >4 digits.
55985
55986         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55987         This is for compatibility with BSD.
55988
55989         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55990         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55991         From coreutils' system.h.
55992
55993         * lib/userspec.c: Don't include "posixver.h".
55994         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55995         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55996         compatible extension.  Simplify code by removing a boolean int
55997         that was always nonzero if a string was nonnull.
55998
55999 2004-03-30  Jim Meyering  <jim@meyering.net>
56000
56001         Merge from coreutils.
56002
56003         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
56004         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
56005         on some systems one must include <grp.h> before it.
56006         Reported by Christian Krackowizer.
56007
56008 2004-03-30  Jim Meyering  <jim@meyering.net>
56009
56010         Merge from coreutils.
56011
56012         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
56013
56014         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
56015         an empty input stream.
56016
56017         * lib/readtokens.c: Include <stdbool.h>.
56018         (readtoken): Use `size_t' rather than int/long.
56019         All callers adjusted.
56020         Use `bool' rather than `int' where appropriate.
56021         Use memset rather than an explicit loop.
56022         Use x2nrealloc rather than xrealloc.
56023         Allow the use of `\0' as a delimiter.
56024         (readtokens): Likewise.
56025         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
56026
56027 2004-03-30  Jim Meyering  <jim@meyering.net>
56028
56029         * m4/realloc.m4: Remove file, since now it does no more than
56030         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
56031         the `configure.ac' section of module/realloc.
56032         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
56033
56034 2004-03-30  Bruno Haible  <bruno@clisp.org>
56035
56036         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
56037         nonnull.
56038
56039 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56040
56041         Merge changes to getloadavg.c from coreutils and Emacs.
56042
56043         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
56044         Define to an expression, not to the empty string.
56045         Include cloexec.h and xalloc.h.
56046         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
56047         Use set_cloexec_flag rather than rolling our own.
56048         * lib/cloexec.c, lib/cloexec.h: New files.
56049
56050 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56051
56052         * m4/cloexec.m4: New file.
56053
56054 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56055
56056         * lib/getopt.h: Sync with libc CVS.
56057
56058 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56059             Bruno Haible  <bruno@clisp.org>
56060
56061         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
56062         mbswidth.
56063
56064 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56065             Bruno Haible  <bruno@clisp.org>
56066
56067         * lib/mbswidth.h: Include <wchar.h> only if
56068         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
56069         <wchar.h>.
56070         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
56071
56072 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56073
56074         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
56075         Sync with libc CVS.
56076         * lib/getopt_int.h: New file, also synced from libc.
56077
56078 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56079
56080         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
56081         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
56082         Bring back getopt.c, getopt.h, getopt1.c.
56083
56084 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56085
56086         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
56087         All uses changed.  Check for sa_sigaction member; this fixes
56088         a bug first reported by Jason Andrade in
56089         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56090
56091 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56092
56093         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56094         '#if' expressions.  Unlike the code it replaces, it does not
56095         depend on (defined _SC_PAGESIZE).  However, it does depend on
56096         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56097         first reported by Jason Andrade in
56098         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56099
56100 2004-02-25  Simon Josefsson  <jas@extundo.com>
56101
56102         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56103
56104 2004-02-25  Simon Josefsson  <jas@extundo.com>
56105
56106         * lib/strdup.h: New file.
56107         * lib/strdup.c: Include it.
56108         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56109         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56110
56111 2004-02-23  Karl Berry  <karl@gnu.org>
56112
56113         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56114         (from fencepost.gnu.org:/gd/gnuorg).
56115
56116 2004-02-23  Karl Berry  <karl@gnu.org>
56117
56118         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56119         * config/srclist.txt: add maintain/standards documents.
56120
56121 2004-02-18  Bruno Haible  <bruno@clisp.org>
56122
56123         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56124         Reported by Derek Robert Price <derek@ximbiot.com>.
56125
56126 2004-02-16  Karl Berry  <karl@gnu.org>
56127
56128         * config/mkinstalldirs, install-sh: update from automake.
56129
56130 2004-02-06  Karl Berry  <karl@gnu.org>
56131
56132         * m4/po.m4: update from gettext 0.14.1.
56133
56134 2004-02-06  Karl Berry  <karl@gnu.org>
56135
56136         * lib/config.charset: update from gettext 0.14.1.
56137
56138 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56139
56140         Add comments and code, prompted by suggestions from Bruno Haible
56141         for sh-quote.
56142         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56143         describing the enum quoting_style values.
56144         * lib/quotearg.c (quotearg_alloc): New function.
56145         (quotearg_buffer_restyled): Treat lone { and } as special.
56146         Treat = as special.  Work around bug with older shells
56147         that "see" a '\' that is really the 2nd byte of a multibyte char.
56148         Quote empty string with shell_quoting_style.
56149
56150 2004-02-03  Bruno Haible  <bruno@clisp.org>
56151
56152         * m4/pipe.m4: New file, from GNU gettext.
56153
56154 2004-02-03  Bruno Haible  <bruno@clisp.org>
56155
56156         * lib/pipe.h: New file, from GNU gettext.
56157         * lib/pipe.c: New file, from GNU gettext.
56158
56159 2004-01-27  Bruno Haible  <bruno@clisp.org>
56160
56161         * m4/execute.m4: New file, from GNU gettext.
56162
56163 2004-01-27  Bruno Haible  <bruno@clisp.org>
56164
56165         * lib/execute.h: New file, from GNU gettext.
56166         * lib/execute.c: New file, from GNU gettext.
56167         * lib/w32spawn.h: New file, from GNU gettext.
56168
56169 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56170
56171         Merge from diffutils.
56172
56173         * lib/file-type.c (file_type): Add typed memory objects.
56174         * lib/file-type.h (S_TYPEISTMO): New macro.
56175
56176         * lib/c-stack.h (c_stack_action): Remove argv argument.
56177         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56178         (die): Don't calculate message unless segv_action returns.
56179         (get_stack_location, min_address_from_argv, max_address_from_argv,
56180         volatile stack_base, volatile_stack_size): Remove.
56181         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56182         that every segmentation violation is a stack overflow.  (Ouch!)
56183         See Debian bug 136249 (still outstanding) for more info about why
56184         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56185
56186 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56187
56188         Exit-status fix from coreutils.
56189
56190         Use exit_failure consistently in place of EXIT_FAILURE,
56191         so that program exit statuses are consistent on failure.
56192
56193         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56194         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56195         * lib/argmatch.h: Comment fix to match the above.
56196         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56197         Now a macro referring to exit_failure, instead of a separate
56198         variable.  Include "exitfail.h" to get it.
56199         * lib/xstrtol.h: Include "exitfail.h".
56200         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56201
56202         * lib/long-options.c (parse_long_options): Use prototype
56203         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56204         for clarity.
56205
56206 2004-01-21  Jim Meyering  <jim@meyering.net>
56207
56208         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56209         so as not to conflict with a different-sized __mktime_internal
56210         function in GNU libc.
56211         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56212         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56213
56214 2004-01-20  Karl Berry  <karl@gnu.org>
56215
56216         * config/config.guess: update from config.
56217
56218         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56219
56220 2004-01-20  Bruno Haible  <bruno@clisp.org>
56221
56222         Safer stack allocation.
56223         * lib/setenv.c: Include allocsa.h.
56224         (alloca): Remove fallback definition.
56225         (freea): Remove macro.
56226         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56227         instead of freea.
56228
56229 2004-01-20  Bruno Haible  <bruno@clisp.org>
56230
56231         * m4/eealloc.m4: New file, from GNU gettext.
56232
56233 2004-01-20  Bruno Haible  <bruno@clisp.org>
56234
56235         * m4/allocsa.m4: New file, from GNU gettext.
56236
56237 2004-01-20  Bruno Haible  <bruno@clisp.org>
56238
56239         * lib/xallocsa.h: New file, from GNU gettext.
56240         * lib/xallocsa.c: New file, from GNU gettext.
56241
56242 2004-01-20  Bruno Haible  <bruno@clisp.org>
56243
56244         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56245
56246 2004-01-20  Bruno Haible  <bruno@clisp.org>
56247
56248         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56249         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56250         specially.
56251
56252 2004-01-20  Bruno Haible  <bruno@clisp.org>
56253
56254         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56255         patch.
56256
56257 2004-01-20  Bruno Haible  <bruno@clisp.org>
56258
56259         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56260
56261 2004-01-20  Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/eealloc.h: New file.
56264
56265 2004-01-20  Bruno Haible  <bruno@clisp.org>
56266
56267         * lib/binary-io.h: Avoid warnings on Cygwin.
56268
56269 2004-01-20  Bruno Haible  <bruno@clisp.org>
56270
56271         * lib/allocsa.h: New file, from GNU gettext.
56272         * lib/allocsa.c: New file, from GNU gettext.
56273
56274 2004-01-18  Karl Berry  <karl@gnu.org>
56275
56276         * doc/gpl.texi, doc/lgpl.texi: new files.
56277
56278 2004-01-18  Karl Berry  <karl@gnu.org>
56279
56280         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56281         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56282
56283 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56284
56285         Merge from coreutils.
56286
56287         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56288         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56289         (gl_DEFAULT_POSIX2_VERSION): Move
56290         the documentation from 'configure' into 'config.hin',
56291         so that 'configure --help' isn't burdened by it and
56292         we don't have to worry about its formatting there.
56293         Reword the documentation so that it's more succinct
56294         and can be run together into a single paragraph.
56295         * m4/same.m4 (gl_SAME): Check for pathconf.
56296
56297 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56298
56299         Merge from coreutils.
56300
56301         * lib/posixver.c: Include posixver.h.
56302
56303         * lib/same.c: Include <stdbool.h>, <limits.h>.
56304         (_POSIX_NAME_MAX): Define if not defined.
56305         (MIN): New macro.
56306         (same_name): If file names are silently truncated, report
56307         that the file names are the same if they are the same after
56308         the silent truncation.
56309
56310         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56311         conversion function.
56312         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56313         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56314         longer needed.
56315
56316 2004-01-15  Jim Meyering  <jim@meyering.net>
56317
56318         Merge from coreutils.
56319
56320         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56321         if no library is required.
56322         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56323         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56324         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56325         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56326         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56327         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56328         value, $ac_cv_search_crypt, if it's "none required".
56329         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56330         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56331         not gl_FUNC_GETLOADAVG.
56332         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56333         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56334
56335 2004-01-15  Jim Meyering  <jim@meyering.net>
56336
56337         Merge from coreutils.
56338
56339         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56340         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56341         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56342
56343         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56344         optional configure-time default.
56345
56346         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56347
56348         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56349
56350 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56351
56352         Merge from coreutils.
56353
56354         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56355         value, $ac_cv_search_nanosleep, if it's "none required".
56356
56357 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56358
56359         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56360         with like-named macro in fnmatch.c.
56361         (EXT): Use an internal constant instead.
56362
56363         Merge fnmatch patches from glibc.
56364         * lib/fnmatch.c (mbsinit): Remove define.
56365         Add libc_hidden_ver (__fnmatch, fnmatch).
56366         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56367         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56368
56369 2004-01-14  Karl Berry  <karl@gnu.org>
56370
56371         * config/install-sh: update from automake.
56372
56373 2004-01-13  Karl Berry  <karl@gnu.org>
56374
56375         * config/install-sh: update from automake.
56376
56377 2004-01-09  Karl Berry  <karl@gnu.org>
56378
56379         * config/install-sh: update from automake.
56380
56381 2004-01-05  Karl Berry  <karl@gnu.org>
56382
56383         * config/config.{sub,guess}: update from config.
56384
56385 2003-12-31  Karl Berry  <karl@gnu.org>
56386
56387         * config/depcomp: update from automake.
56388
56389 2003-12-14  Karl Berry  <karl@gnu.org>
56390
56391         * lib/config.charset: update from gettext-runtime.
56392
56393 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56394
56395         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56396         Bug reported by Alfred M. Szmidt.
56397
56398 2003-12-03  Bruno Haible  <bruno@clisp.org>
56399
56400         * m4/gettext.m4: Upgrade from gettext-0.13.
56401         * m4/po.m4: Upgrade from gettext-0.13.
56402         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56403         * m4/intmax.m4: New file, from gettext-0.13.
56404         * m4/printf-posix.m4: New file, from gettext-0.13.
56405
56406 2003-11-29  Karl Berry  <karl@gnu.org>
56407
56408         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56409
56410 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56411             Bruno Haible  <bruno@clisp.org>
56412
56413         * lib/printf-parse.h: Don't include sys/types.h.
56414         (ARG_NONE): New macro.
56415         (char_directive): Change type of *arg_index fields to size_t.
56416         * lib/printf-parse.c: Don't include sys/types.h.
56417         (SSIZE_MAX): Remove macro.
56418         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56419         Remove unnecessary overflow check.
56420         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56421         fields.
56422
56423 2003-11-25  Bruno Haible  <bruno@clisp.org>
56424
56425         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56426
56427 2003-11-25  Bruno Haible  <bruno@clisp.org>
56428
56429         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56430         gt_TYPE_SSIZE_T.
56431
56432 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56433
56434         * modules/alloca: Remove dependency on xalloc.
56435
56436 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56437
56438         * lib/alloca.c: Remove dependency on xalloc module.
56439         (xalloc_die): Remove.
56440         (memory_full) [!defined emacs]: New macro.
56441         [!defined emacs]: Don't include xalloc.h.
56442         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56443         address arithmetic overflows.  Change datatypes a bit to avoid
56444         unnecessary casts.
56445
56446 2003-11-22  Jim Meyering  <jim@meyering.net>
56447
56448         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56449         s/size/size_t/.
56450
56451 2003-11-21  Karl Berry  <karl@gnu.org>
56452
56453         * config/config.{sub,guess}: update from config.
56454
56455 2003-11-18  Karl Berry  <karl@gnu.org>
56456
56457         * config/config.{sub,guess}: update from config.
56458
56459         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56460
56461 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56462
56463         * README: Mention that S+T cannot overflow if S is the size of
56464         an existing object and T is sufficiently small.
56465
56466 2003-11-17  Jim Meyering  <jim@meyering.net>
56467
56468         On systems without utime and without a utimes function capable of
56469         dealing with a NULL struct utimbuf* argument, this utime replacement
56470         could -- in unusual circumstances -- leak a file descriptor.
56471         * lib/utime.c: Include <unistd.h> and <errno.h>.
56472         (utime_null): Be sure to close `fd' and to preserve errno.
56473         Reported by Geoff Collyer via Arnold Robbins.
56474
56475 2003-11-17  Bruno Haible  <bruno@clisp.org>
56476
56477         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56478         (Depends-on): Add xsize.
56479
56480 2003-11-17  Bruno Haible  <bruno@clisp.org>
56481
56482         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56483
56484 2003-11-17  Bruno Haible  <bruno@clisp.org>
56485
56486         * lib/vasnprintf.c (alloca): Remove fallback definition.
56487         (freea): Remove definition.
56488         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56489         Reported by Paul Eggert.
56490
56491 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56492             Bruno Haible  <bruno@clisp.org>
56493
56494         Protect against address arithmetic overflow.
56495         * lib/printf-args.h: Include stddef.h.
56496         (arguments): Change type of field 'count' to size_t.
56497         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56498         'unsigned int' where appropriate.
56499         * lib/printf-parse.h: Include sys/types.h.
56500         (char_directive): Change type of *arg_index fields to ssize_t.
56501         (char_directives): Change type of fields 'count', max_*_length to
56502         size_t.
56503         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56504         (SSIZE_MAX): Define fallback value.
56505         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56506         instead of 'int' where appropriate. Check a_allocated, d_allocated
56507         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56508         * lib/vasnprintf.c: Include xsize.h.
56509         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56510         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56511         overflow. Avoid wraparound when converting a width or precision from
56512         decimal to binary.
56513
56514 2003-11-16  Bruno Haible  <bruno@clisp.org>
56515
56516         Update from GNU gettext.
56517         * lib/printf-parse.c: Generalize to it can be compiled for wide
56518         strings.
56519         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56520         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56521         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56522         SNPRINTF): New macros.
56523         Don't include <alloca.h> if the file is used inside libintl.
56524         (local_wcslen): New function, for Solaris 2.5.1.
56525         (VASNPRINTF): Use it instead of wcslen.
56526
56527 2003-11-16  Bruno Haible  <bruno@clisp.org>
56528
56529         * lib/xsize.h (xmax): New function.
56530         (xsum, xsum3, xsum4): Declare as "pure" functions.
56531
56532 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56533
56534         * modules/xalloc (Files): Undo latest change, since xalloc.h
56535         no longer needs SIZE_MAX or PTRDIFF_MAX.
56536
56537 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56538
56539         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56540         gl_PTRDIFF_MAX.
56541
56542 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56543
56544         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56545         "return", to pacify some unknown compiler.  Problem reported
56546         by Joerg Schilling.
56547
56548 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56549
56550         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56551         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56552         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56553         heuristic is just as accurate as far as we know, and it removes a
56554         dependency on size_max.m4 and ptrdiff_max.m4.
56555
56556 2003-11-11  Bruno Haible  <bruno@clisp.org>
56557
56558         * modules/xsize (Files): Add m4/size_max.m4.
56559         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56560
56561 2003-11-11  Bruno Haible  <bruno@clisp.org>
56562
56563         * m4/size_max.m4: New file.
56564         * m4/ptrdiff_max.m4: New file.
56565         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56566         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56567         (gl_XALLOC): Invoke it.
56568
56569 2003-11-11  Bruno Haible  <bruno@clisp.org>
56570
56571         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56572         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56573         defined.
56574
56575 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56576
56577         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56578         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56579         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56580         From Bruno Haible.
56581         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56582         not (size_t) -1, since it's defined here.
56583
56584 2003-11-09  Karl Berry  <karl@gnu.org>
56585
56586         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56587
56588 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56589
56590         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56591         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56592         Reject sizes of exactly SIZE_MAX bytes.
56593         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56594         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56595
56596 2003-11-05  Bruno Haible  <bruno@clisp.org>
56597
56598         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56599         SIZE_MAX defined in <limits.h> on Solaris.
56600
56601 2003-11-04  Jim Meyering  <jim@meyering.net>
56602
56603         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56604         variable names, rather than @VAR@.
56605         * modules/poll: Likewise.
56606
56607 2003-11-04  Bruno Haible  <bruno@clisp.org>
56608
56609         * modules/xsize: New file.
56610         * modules/linebreak: Depend on xsize.
56611         * MODULES.html.sh (func_all_modules): Add xsize.
56612
56613 2003-11-04  Bruno Haible  <bruno@clisp.org>
56614
56615         * m4/xsize.m4: New file.
56616
56617 2003-11-04  Bruno Haible  <bruno@clisp.org>
56618
56619         * lib/xsize.h: New file.
56620         * lib/linebreak.c: Include xsize.h.
56621         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56622         argument for overflow.
56623         Suggested by Paul Eggert.
56624
56625 2003-11-03  Karl Berry  <karl@gnu.org>
56626
56627         * config/config.{guess,sub}: update from config.
56628
56629 2003-11-03  Jim Meyering  <jim@meyering.net>
56630
56631         * modules/userspec (lib_SOURCES): Add userspec.h.
56632         (Include): Add "userspec.h".
56633         Improve description.
56634
56635 2003-11-03  Jim Meyering  <jim@meyering.net>
56636
56637         * lib/userspec.c: Include "userspec.h".
56638         * lib/userspec.h: New file.
56639
56640 2003-11-03  Bruno Haible  <bruno@clisp.org>
56641
56642         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56643
56644 2003-11-03  Bruno Haible  <bruno@clisp.org>
56645
56646         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56647         available, to avoid (extremely rare) race condition.
56648         Suggested by Paul Eggert.
56649
56650 2003-11-02  Karl Berry  <karl@gnu.org>
56651
56652         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56653
56654 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56655
56656         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56657         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56658         (read_filesystem_list): Set and use me_type_malloced.
56659         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56660         whatever the type happens to be), for brevity and consistency.
56661         Check for size calculation overflow on Alphas running OSF/1.
56662
56663 2003-10-31  Jim Meyering  <jim@meyering.net>
56664
56665         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56666
56667         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56668
56669 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56670             Bruno Haible  <bruno@clisp.org>
56671
56672         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56673         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56674
56675 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56676
56677         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56678         netbsd*-gnu*.  Suggested by Robert Millan.
56679
56680 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56681
56682         * modules/group-member: Depend on stdbool.
56683
56684 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56685
56686         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56687
56688 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56689
56690         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56691         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56692         after the 'gnu' in these cases.  This fixes some bugs in the
56693         previous change, and is based on suggestions by Robert Millan.
56694
56695 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56696
56697         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56698         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56699         no longer needed.
56700         * lib/quotearg.c (quotearg_n_options): Use it.
56701         * lib/group-member.c: Include <stdbool.h>.
56702         (free_group_info): Arg is now const *; don't free arg.
56703         (get_group_info): Now returns bool and accepts struct group_info *,
56704         rather than returning a malloc'ed struct group_info *.
56705         All uses changed.  Check for overflow in internal size calculation.
56706
56707         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56708         rather than xmalloc/xrealloc.
56709         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56710         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56711         conformance bug: the old code used a pointer after freeing the
56712         storage that it addressed.
56713         * lib/hash.c (hash_initialize): Simplify the code by using
56714         xalloc_oversized rather than doing it by hand.
56715         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56716         the buffer preserved.  Use free and xmalloc instead.
56717         * lib/quotearg.c (quotearg_n_options): Likewise.
56718         Use a simpler test for size overflow.  Don't use xalloc_oversized
56719         because unsigned int might be wider than size_t (!); this suggests
56720         that we should switch from unsigned int to size_t for slot numbers.
56721
56722 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56723
56724         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56725         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56726         NetBSD kernels.  Requested by Richard Stallman.
56727
56728 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56729
56730         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56731         to allocate the returned structure.  Do not allocate a subarray,
56732         as x2nrealloc will do that.
56733         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56734         instead of xnrealloc.
56735         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56736
56737 2003-10-27  Bruno Haible  <bruno@clisp.org>
56738
56739         * lib/stdbool_.h: Better support for BeOS.
56740
56741 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56742
56743         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56744         now uses inline.
56745
56746 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56747
56748         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56749         callers that want to do their own size-overflow checking.  Include
56750         <stdbool.h>, since xalloc_oversized returns bool.
56751         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56752         to use xalloc_oversized.
56753
56754         Add two functions x2realloc, x2nrealloc, for programs that grow
56755         arrays dynamically by doubling their sizes.
56756         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56757         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56758         New functions.
56759
56760         Port to C99 semantics for 'inline' of external functions.
56761         Bug reported by Bruno Haible.
56762         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56763         with the old contents of xnmalloc.
56764         (xnmalloc, xmalloc): Use it.
56765         (xnrealloc_inline): New static inline function,
56766         with the old contents of xnrealloc.
56767         (xnrealloc, xrealloc): Use it.
56768
56769         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56770         that.
56771
56772 2003-10-26  Karl Berry  <karl@gnu.org>
56773
56774         * config/srclist.txt (COPYING.DOC): no longer available from
56775         /gd/gnuorg; don't know where the ultimate source is.
56776
56777 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56778
56779         Fix several address-calculation bugs in the hash modules,
56780         plus some minor code cleanup.
56781
56782         * lib/hash.h: Include <stdbool.h>, for bool.
56783         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56784         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56785         hash_get_n_entries, hash_get_max_bucket_length,
56786         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56787         hash_rehash): Use size_t rather than unsigned.
56788         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56789         hash_get_n_buckets_used, hash_get_n_entries,
56790         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56791         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56792         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56793         Likewise.
56794         (SIZE_MAX): Define if not defined.
56795         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56796         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56797         hash_print):
56798         Use const * when possible.
56799         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56800         (check_tuning): Fix bug: if tuning parameters were very close to
56801         0 or 1, rounding errors could have caused subscript violations.
56802         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56803         (hash_initialize): Add 'fail:' label
56804         to free table and return NULL, and use it to simplify code.
56805         Use calloc rather than clearing the storage ourself.
56806         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56807         buffer size calculations.
56808         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56809         Include <stddef.h>, for size_t.
56810         * lib/hash-pjw.c (hash_pjw): Likewise.
56811         Switch to method described by Bruno Haible.
56812         Include <limits.h>, for CHAR_BIT.
56813         (SIZE_BITS): New macro.
56814
56815 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56816
56817         * m4/getline.m4 (AM_FUNC_GETLINE):
56818         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56819         hosts.  Problem reported by Derek Robert Price in
56820         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56821         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56822         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56823
56824 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56825
56826         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56827         ceiling the allocation at NMAX bytes rather than silently
56828         discarding input bytes before NMAX is reached.  This makes
56829         a difference only if NMAX exceeds SIZE_MAX / 2.
56830
56831         * lib/obstack.c: Merge from glibc.
56832         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56833         Add libc_hidden_def (_obstack_newchunk).
56834         (_obstack_free) [! defined _LIBC]: Remove.
56835         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56836         a clone of the function body.
56837         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56838         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56839
56840         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56841         glibc.
56842         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56843         arg to memcpy.
56844
56845         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56846         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56847         Don't use lvalue casts, as GCC plans to remove support for them
56848         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56849         was also present in the non-GCC version, indicating that this
56850         code had always been buggy and had never been widely used.
56851         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56852         Use the fast variant of each macro, rather than copying the
56853         definiens of the fast variant; that way, we'll be more likely to
56854         catch future bugs in the fast variants.
56855
56856 2003-10-20  Bruno Haible  <bruno@clisp.org>
56857
56858         * modules/wait-process: New file.
56859         * MODULES.html.sh (func_all_modules): Add wait-process.
56860
56861 2003-10-20  Bruno Haible  <bruno@clisp.org>
56862
56863         * m4/wait-process.m4: New file.
56864
56865 2003-10-20  Bruno Haible  <bruno@clisp.org>
56866
56867         * lib/wait-process.h: New file, from GNU gettext.
56868         * lib/wait-process.c: New file, from GNU gettext.
56869
56870 2003-10-19  Jim Meyering  <jim@meyering.net>
56871
56872         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56873         HPUX 10.20.
56874
56875 2003-10-18  Karl Berry  <karl@gnu.org>
56876
56877         * config/config.guess: update from config.
56878
56879 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56880
56881         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56882         (getgroups): First arg is int, not size_t.
56883         Don't let 'free' mangle errno.
56884
56885 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56886
56887         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56888
56889 2003-10-16  Karl Berry  <karl@gnu.org>
56890
56891         * config/config.{guess,sub}: update from config.
56892
56893 2003-10-16  Jim Meyering  <jim@meyering.net>
56894
56895         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56896         memcpy.
56897
56898 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56899
56900         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56901         (SIZE_MAX): Remove.
56902         (new_exclude, add_exclude_file): Initial size no longer needs to
56903         be a power of 2.
56904         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56905         our own address arithmetic overflow checking.
56906
56907         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56908         (fnmatch): Do not alloca more than 2000 wide characters;
56909         instead, use malloc for large buffers.
56910         Check for address arithmetic overflow, and return -1
56911         with errno set to ENOMEM in that case.
56912         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56913         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56914         instead, return -1.  Check for address arithmetic overflow.
56915
56916 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56917
56918         Handle invalid suffixes and overflow independently, so that
56919         callers can treat them independently as needed.  Fix some bugs in
56920         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56921         suffix for a human-readable blocksize.  The major caller-visible
56922         change is the addition of a new
56923         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56924         that both overflow and suffix chars were found.
56925
56926         * lib/human.c (humblock): Don't check separately for invalid suffix
56927         char; that is xstrtoumax's job (now that its bug is fixed).
56928         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56929         INTMAX_MAX]: New macros.
56930         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56931         TYPE_MAXIMUM): New macros.
56932         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56933         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56934         if overflow occurs, as it's what __strtol does and it's more useful
56935         in practice.
56936         (__xstrtol): If __strtol reports some error other than ERANGE,
56937         reflect it to the caller as LONGINT_INVALID.  If it reports
56938         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56939         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56940         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56941         value.
56942         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56943         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56944         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56945         [defined UINTMAX_MAX]: New macros.
56946
56947 2003-10-14  Bruno Haible  <bruno@clisp.org>
56948
56949         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56950
56951 2003-10-14  Bruno Haible  <bruno@clisp.org>
56952
56953         * m4/sig_atomic_t: New file, from GNU gettext.
56954         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56955
56956 2003-10-14  Bruno Haible  <bruno@clisp.org>
56957
56958         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56959         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56960         Also use volatile where needed.
56961
56962 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56963
56964         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56965         Change maintainer from Bruno Haible to 'all'.
56966
56967 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56968
56969         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56970
56971 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56972
56973         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56974         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56975         and define in terms of the other primitives.
56976         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56977         (SIZE_MAX): Define if not already defined.
56978         (array_size_overflow): New function.
56979         (xalloc_die): Abort instead of exiting if 'error' returns.
56980         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56981         (xmalloc, xrealloc): Use them.
56982         (xcalloc): Check for address arithmetic overflow.
56983         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56984         a bit faster than strcpy.
56985
56986 2003-10-10  Simon Josefsson  <jas@extundo.com>
56987
56988         * modules/argp (Depends-on): Add restrict and strcase.
56989
56990 2003-10-10  Simon Josefsson  <jas@extundo.com>
56991
56992         * m4/argp.m4: Add AC_C_INLINE.
56993
56994 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56995
56996         Merge getpass from libc, plus a few fixes.
56997
56998         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56999         Include <stdbool.h>.
57000         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
57001         __fsetlocking to empty.
57002         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
57003         do include <bits/libc-lock.h>.
57004         Do not include <fcntl.h>; not needed.
57005         [_LIBC]: Include <wchar.h>.
57006         (NOTCANCEL_MODE): New macro.
57007         (flockfile, funlockfile) [_LIBC]: New macros.
57008         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
57009         [!_LIBC]: New macros.
57010         (call_fclose): New function.
57011         (getpass): Use it.  Save tty stream separately; this simplifies the
57012         code and makes it more reliable if stdin happens to equal stdout.
57013         Invoke __fsetlocking on tty.
57014         Handle thread cancellation if needed.
57015         Namespace cleanup (use __tcgetattr, __getline).
57016         Use bool for Booleans.
57017         [USE_IN_LIBIO]: Handle wide streams.
57018         [!_LIBC]: Unconditionally do the fseek, since we don't know what
57019         stream might go where.
57020
57021         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
57022         doesn't have to include <stdio.h> before us.
57023         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
57024         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
57025         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
57026         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
57027         if not declared, so that we can use getpass.c code from libc without
57028         rewriting it.
57029         (flockfile, ftrylockfile, funlockfile): New macros.
57030
57031 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57032
57033         * modules/getpass: Depend on stdbool.
57034
57035 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57036
57037         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
57038
57039 2003-10-07  Karl Berry  <karl@gnu.org>
57040
57041         * config/config.{guess,sub}: update from config.
57042
57043 2003-10-06  Jim Meyering  <jim@meyering.net>
57044             Bruno Haible  <bruno@clisp.org>
57045
57046         This lets translators provide better translations for the
57047         "Written by ..." part of --version output.
57048         * lib/version-etc.h: Include stdarg.h.
57049         (version_etc_copyright): Declare as readonly.
57050         (version_etc): Make this function variadic with a NULL-terminated list
57051         of author name strings.
57052         (version_etc_va): New declaration.
57053         * lib/version-etc.c: Include stdarg.h, stdlib.h.
57054         (version_etc_copyright): Declare as readonly.
57055         (version_etc_va): New function. Provide a different translatable string
57056         for each possible number of authors < 10. Abbreviate when there are 10
57057         authors or more.
57058         (version_etc): Make this function variadic. Call version_etc_va.
57059         Suggestion from Gary V. Vaughan.
57060
57061         * lib/long-options.h (parse_long_options): Change prototype: the
57062         authors string is moved to the end and becomes variadic.
57063         * lib/long-options.c: Include stdarg.h.
57064         (parse_long_options): Make this function variadic, too.
57065         Call version_etc_va, not version_etc.
57066
57067 2003-10-06  Bruno Haible  <bruno@clisp.org>
57068
57069         * modules/version-etc-2: Remove file.
57070         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
57071
57072 2003-10-06  Bruno Haible  <bruno@clisp.org>
57073
57074         * modules/fatal-signal: New file.
57075         * MODULES.html.sh (func_all_modules): Add fatal-signal.
57076
57077 2003-10-06  Bruno Haible  <bruno@clisp.org>
57078
57079         * m4/fatal-signal.m4: New file.
57080         * m4/signalblocking.m4: New file, from GNU gettext.
57081
57082 2003-10-06  Bruno Haible  <bruno@clisp.org>
57083
57084         * lib/version-etc-2.h: Remove file.
57085         * lib/version-etc-2.c: Remove file.
57086
57087 2003-10-06  Bruno Haible  <bruno@clisp.org>
57088
57089         * lib/fatal-signal.h: New file, from GNU gettext.
57090         * lib/fatal-signal.c: New file, from GNU gettext.
57091
57092 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57093
57094         * README: Rework advice for preventing empty .o files.
57095         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57096         not <sys/types.h>.
57097
57098 2003-10-04  Karl Berry  <karl@gnu.org>
57099
57100         * lib/argp*: update from libc.
57101
57102 2003-10-04  Karl Berry  <karl@gnu.org>
57103
57104         * config/config.{guess,sub}: update from config.
57105
57106 2003-10-02  Bruno Haible  <bruno@clisp.org>
57107
57108         * modules/lchown (Include): Add lchown.h.
57109         * modules/time_r (Include): Use "..." syntax.
57110         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57111
57112 2003-10-01  Simon Josefsson  <jas@extundo.com>
57113
57114         * MODULES.html.sh (func_all_modules): Move gethostname from section
57115         'based on' to section 'lacking' POSIX:2001.
57116
57117 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57118
57119         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57120         to output mode on the same stream.
57121
57122 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57123
57124         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57125         Fix arg typo in previous patch.
57126
57127 2003-09-28  Jim Meyering  <jim@meyering.net>
57128
57129         * lib/error.c: Correct cpp indentation.
57130
57131 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57132
57133         * modules/free: New file.
57134
57135 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57136
57137         * m4/free.m4: New file.
57138
57139 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57140
57141         * lib/minmax.h (MIN, MAX)
57142         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57143         Omit the special code that used __typeof__, since we worry that
57144         it could be more trouble than it's worth.  See:
57145         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57146         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57147
57148         * lib/free.c: New file.
57149
57150 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57151
57152         Trivial fixes to Makefile.am parts of module listings.
57153         * modules/strstr: Append strstr.h to lib_SOURCES.
57154         * modules/strcase: Likewise, for strcase.h.
57155
57156 2003-09-27  Karl Berry  <karl@gnu.org>
57157
57158         * config/mkinstalldirs: update from automake.
57159
57160 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57161
57162         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57163         (error_tail): Do not loop, reallocating temporary buffer, since
57164         the output cannot contain more wide characters than the input
57165         contains bytes, the size must be big enough already.  This avoids
57166         one potential size overflow calculation.  Check for size overflow
57167         when calculating temporary buffer size.  Free temporary buffer
57168         when done, if it was allocated with malloc; this plugs a memory
57169         leak.  Remove casts from void * to pointers, that are no longer
57170         needed now that we're assuming C89 or better.
57171
57172         Merge error changes from glibc.
57173
57174         * lib/error.c, error.h: Update copyright notice header to match glibc.
57175         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57176         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57177         Disable cancellation while printing error.
57178         * lib/error.h: Prepend __ to parameter names.
57179
57180 2003-09-26  Jim Meyering  <jim@meyering.net>
57181
57182         * lib/error.c (error_tail): Move some declarations
57183         into inner scope where the local variables are used.
57184
57185 2003-09-26  Bruno Haible  <bruno@clisp.org>
57186
57187         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57188         stpncpy().
57189         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57190
57191 2003-09-26  Bruno Haible  <bruno@clisp.org>
57192
57193         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57194         (stpncpy): Define as alias for gnu_stpncpy.
57195         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57196
57197 2003-09-25  Simon Josefsson  <jas@extundo.com>
57198
57199         * lib/xgetdomainname.h: New file.
57200         * lib/xgetdomainname.c: New file.
57201
57202 2003-09-25  Simon Josefsson  <jas@extundo.com>
57203             Bruno Haible  <bruno@clisp.org>
57204
57205         * modules/getdomainname: New file.
57206         * modules/xgetdomainname: New file.
57207         * MODULES.html.sh (func_all_modules): Add getdomainname,
57208         xgetdomainname.
57209
57210 2003-09-25  Simon Josefsson  <jas@extundo.com>
57211             Bruno Haible  <bruno@clisp.org>
57212
57213         * m4/getdomainname.m4: New file.
57214
57215 2003-09-25  Simon Josefsson  <jas@extundo.com>
57216             Bruno Haible  <bruno@clisp.org>
57217
57218         * lib/getdomainname.h: New file.
57219         * lib/getdomainname.c: New file.
57220
57221 2003-09-25  Karl Berry  <karl@gnu.org>
57222
57223         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57224
57225 2003-09-25  Karl Berry  <karl@gnu.org>
57226
57227         * config/install-sh: update from automake.
57228
57229 2003-09-25  Bruno Haible  <bruno@clisp.org>
57230
57231         * modules/version-etc-2: New file, from modules/version-etc with
57232         modifications.
57233         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57234
57235 2003-09-25  Bruno Haible  <bruno@clisp.org>
57236
57237         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57238         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57239
57240 2003-09-24  Simon Josefsson  <jas@extundo.com>
57241
57242         * modules/xgethostname: Add xgethostname.h.
57243
57244 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57245
57246         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57247         the buffer associated with the argument.  Bug reported by
57248         Simon Josefsson.
57249
57250 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57251
57252         * README: Document assumptions that 'int' is at least 32 bits
57253         wide, that integer arithmetic is 2's complement without overflow,
57254         that there are no holes in integer values, that adding sizes of
57255         two nonoverlapping objects can't overflow, and that all-bits-zero
57256         yields scalar zero.  Fix spelling and capitalization typos.
57257
57258 2003-09-19  Karl Berry  <karl@gnu.org>
57259
57260         * lib/argp.h: update from libc.
57261
57262 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57263
57264         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57265         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57266         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57267
57268 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57269
57270         * gnulib-tool: Use "test -h", not "test -L", for portability
57271         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57272         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57273         (sed_extract_prog): Issue s commands one-by-one, rather than
57274         using \| in one s command.
57275
57276 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57277
57278         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57279         input error, instead of returning NULL the next time we are called
57280         (and therefore losing track of errno).
57281
57282 2003-09-16  Bruno Haible  <bruno@clisp.org>
57283
57284         * gnulib-tool (func_create_testdir): Warn about duplicated
57285         dependencies.
57286
57287 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57288
57289         * modules/argmatch, modules/fatal, modules/obstack,
57290         modules/xalloc, modules/xgethostname: Sort dependencies by
57291         importance, not alphabetically.
57292
57293 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57294
57295         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57296         fails, so that the caller gets the proper errno.
57297
57298         * lib/readutmp.c (read_utmp): Likewise.
57299         Check for fstat error.  Close stream and free storage
57300         when failing.
57301
57302 2003-09-14  Karl Berry  <karl@gnu.org>
57303
57304         * config/srclist.txt (strdup.c): disable for c89 changes.
57305
57306 2003-09-14  Jim Meyering  <jim@meyering.net>
57307
57308         * lib/getloadavg.c: Correct cpp indentation.
57309         * lib/strdup.c: Likewise.
57310         * lib/vasnprintf.c: Likewise.
57311
57312 2003-09-14  Bruno Haible  <bruno@clisp.org>
57313
57314         * modules/fwriteerror: New file.
57315         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57316
57317 2003-09-14  Bruno Haible  <bruno@clisp.org>
57318
57319         * lib/fwriteerror.h: New file.
57320         * lib/fwriteerror.c: New file.
57321
57322 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57323
57324         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57325         modules/xgethostname, modules/xalloc: Depend on exit.
57326
57327 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57328
57329         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57330
57331         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57332         and AC_MINIX, too, so that their extensions are available.
57333
57334         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57335         This macro has been superseded by gl_BACKUPFILE.
57336
57337         More patches to assume C89 or better.
57338
57339         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57340
57341         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57342         unconditionally.
57343         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57344         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57345         Include <string.h>, <stdlib.h> unconditionally.
57346         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57347         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57348         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57349         headers or for string.h.
57350         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57351         or strtoul.
57352
57353         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57354         headers.
57355         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57356         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57357         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57358         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57359         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57360         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57361         memcpy, memset.
57362         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57363         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57364         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57365         strtol.
57366         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57367         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57368         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57369         strtoul.
57370
57371 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57372
57373         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57374         * lib/obstack.c [!defined _LIBC]: Likewise.
57375         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57376         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57377         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57378
57379         More changes to assume C89 or better.
57380
57381         * lib/error.c (error_tail): Assume vprintf.
57382
57383         * lib/argmatch.c (getenv): Remove decl.
57384         * lib/progreloc.c (get_full_program_name): Define via prototype.
57385         * lib/setenv.c (clearenv): Likewise.
57386         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57387         needed.
57388         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57389         (malloc, memcpy): Remove decls.
57390         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57391         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57392         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57393         (memcpy): Remove macro.
57394         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57395         (__P): Remove.  All uses removed.
57396         (PTR): Remove.  All uses changed to void *.
57397         (CHAR_BIT, NULL): Remove.
57398         (spaces, zeros, memset_space, memset_zero)
57399         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57400         Remove.
57401         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57402         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57403         Define with prototype.
57404         Remove now-unnecessary prototype decl.
57405         (extra_args_spec): Assume ANSI C.  All uses changed.
57406         (extra_args_spec_iso): Remove.
57407         (my_strftime, emacs_strftimeu): Define via prototype.
57408         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57409         unconditionally.
57410         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57411         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57412         (strtoul, strtol): Remove decls.
57413         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57414         LONG_MAX): Remove.
57415         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57416         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57417         (LOCALE_PARAM_PROTO): New macro.
57418         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57419         (INTERNAL (strtol), strtol): Define with a prototype.
57420         (PARAMS): Remove.  All uses removed.
57421         * lib/tempname.c: Include <string.h> unconditionally.
57422         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57423         * lib/xgethostname.c (main): Define with a prototype.
57424         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57425         Include <stdlib.h> unconditionally.
57426         (calloc, malloc, realloc, free): Remove decls.
57427         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57428         Include <stdlib.h> unconditionally.  Sort include file names.
57429         (strtod): Remove.
57430         (xstrtod): Define with a prototype.
57431         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57432         (strtol, strtoul): Remove decls.
57433
57434 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57435
57436         More patches to assume C89 or better.
57437         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57438         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57439         string.h, memchr, STDC_HEADERS.
57440
57441 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57442
57443         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57444         Include <stdlib.h>, <string.h> unconditionally.
57445         Remove now-unnecessary cast to char *.
57446         * lib/strnlen.c: Include <string.h> unconditionally.
57447         * lib/yesno.c (yesno): Define with a prototype.
57448
57449 2003-09-11  Bruno Haible  <bruno@clisp.org>
57450
57451         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57452
57453 2003-09-10  Jim Meyering  <jim@meyering.net>
57454
57455         * lib/error.c: Correct indentation of cpp directives.
57456
57457 2003-09-10  Bruno Haible  <bruno@clisp.org>
57458
57459         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57460         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57461         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57462         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57463         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57464         <stdlib.h> and <string.h> checks.
57465         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57466         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57467
57468 2003-09-10  Bruno Haible  <bruno@clisp.org>
57469
57470         * lib/strcspn.c: Include <string.h> unconditionally.
57471         * lib/strpbrk.c: Include <string.h> unconditionally.
57472         * lib/strstr.c: Include <string.h> unconditionally.
57473         * lib/unicodeio.c: Include <string.h> unconditionally.
57474         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57475         * lib/unsetenv.c: Likewise.
57476         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57477         * lib/yesno.c: Include <stdlib.h> unconditionally.
57478         (rpmatch): Add prototype.
57479
57480 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57481
57482         More patches to assume C89 or better.
57483         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57484         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57485         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57486         or for string.h.
57487         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57488         stdlib.h.
57489         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57490         C headers.
57491         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57492         string.h.
57493         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57494         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57495         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57496         or for string.h.
57497         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57498         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57499         C headers.
57500         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57501         memcpy.
57502         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57503         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57504         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57505         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57506         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57507         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57508         string.h, free.
57509         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57510         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57511         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57512         C headers, or for string.h.
57513         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57514         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57515         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57516         headers, memory.h, stdlib.h, string.h, strings.h.
57517         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57518         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57519         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57520         strchr.
57521         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57522         headers, memory.h, string.h.
57523         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57524         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57525         free.
57526         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57527         headers.
57528         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57529         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57530         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57531         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57532         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57533
57534 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57535
57536         More K&R removal.
57537
57538         * lib/acosl.c (main): Use a prototype.
57539         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57540         tanl.c: Likewise.
57541
57542         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57543
57544         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57545         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57546         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57547         with a prototype.
57548         * lib/getopt.c (const): Remove macro.
57549         Include <string.h> unconditionally.
57550         (my_index): Remove; all uses changed to strchr.
57551         (strlen): Remove decl.
57552         (exchange): Remove forward decl; no longer needed.
57553         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57554         Define with prototype.
57555         * lib/getopt1.c (const): Remove macro.
57556         (getopt_long, getopt_long_only, main): Define with prototype.
57557
57558         * lib/getugroups.c: Include <string.h> unconditionally.
57559
57560         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57561         (getusershell, setusershell, endusershell, readname, main):
57562         Define with prototypes.
57563
57564         * lib/group-member.c: Include group-member.h first.
57565         Include <stdlib.h> unconditionally.
57566
57567         * lib/hard-locale.c: Include hard-locale.h first.
57568         Include <stdlib.h>, <string.h> unconditionally.
57569
57570         * lib/hash.c (free, malloc): Remove decls.
57571         Include <stdlib.h> unconditionally.
57572
57573         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57574         (getenv): Do not declare.
57575
57576         * lib/idcache.c: Include <string.h> unconditionally.
57577
57578         * lib/long-options.c: Include long-options.h first, to test interface.
57579         Include <stdlib.h> unconditionally.
57580
57581         * lib/makepath.c: Include makepath.h first, to test interface.
57582         Include <stdlib.h> and <string.h> unconditionally.
57583
57584         * lib/linebuffer.c: Include <stdlib.h>.
57585         (free): Remove decl.
57586
57587         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57588         stddef.h. rpl_malloc returns void *, not char *.
57589         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57590         prototype.
57591
57592         * lib/md5.h: Include <limits.h> unconditionally.
57593         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57594         (__P): Remove; all uses removed.
57595         * lib/md5.c: Include "md5.h" first.
57596         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57597         md5_buffer, md5_process_bytes, md5_process_block):
57598         Define with prototypes.
57599         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57600         * lib/sha.c: Include "sha.h" first.
57601         Include <stdlib.h>, <string.h> unconditionally.
57602
57603         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57604         * lib/memcmp.c (__ptr_t): Likewise.
57605         * lib/memrchr.c (__ptr_t): Likewise.
57606         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57607         Include <string.h> unconditionally.
57608         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57609         * lib/memchr.c: Include <stdlib.h> unconditionally.
57610         * lib/memchr.c (LONG_MAX): Remove.
57611         * lib/memrchr.c (LONG_MAX): Likewise.
57612         * lib/memchr.c (__memchr): Define via a prototype.
57613         * lib/memrchr.c (__memrchr): Likewise.
57614         * lib/memcmp.c (__P): Remove, and remove all uses.
57615         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57616         Remove forward decls; no longer needed.
57617         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57618         Use types required by C89 in prototype.
57619
57620         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57621         * lib/savedir.c: Likewise.
57622         * lib/mkdir.c (free): Remove decl.
57623         * lib/rmdir.c (rmdir): Define with a prototype.
57624         * lib/savedir.c: Include savedir.h first, to test interface.
57625
57626         * lib/mktime.c (STDC_HEADERS): Remove.
57627         Include <stdlib.h>, <string.h> unconditionally.
57628
57629         * lib/modechange.c: Include <stdlib.h> unconditionally.
57630         (malloc): Remove decl.
57631
57632         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57633         (free): Remove decl.
57634
57635         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57636         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57637         (This type really should be intptr_t, but that's a C99ism.)
57638         (_obstack_memcpy): Remove: all uses changed to memcpy.
57639         Include <string.h> unconditionally.
57640         (struct obstack): Assume __STDC__ for types of members
57641         chunkfun, freefun, extra_arg.
57642         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57643         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57644         obstack_begin, obstack_specify_allocation,
57645         obstack_specify_allocation_with_arg, obstack_chunkfun,
57646         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57647         Remove unprototyped decls and the macros that use them.
57648         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57649         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57650         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57651         (defined __STDC__ && __STDC__)]:
57652         Remove nonprototyped code.
57653         Include <stdlib.h> unconditionally.
57654         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57655         _obstack_allocated_p, _obstack_free, obstack_free,
57656         _obstack_memory_used, print_and_abort):
57657         Define using prototypes.
57658         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57659         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57660         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57661         obstack_next_free, obstack_object_size, obstack_room) [0]:
57662         Remove unused, unprototyped code.
57663
57664         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57665
57666         * lib/physmem.c (physmem_total, physmem_available, main): Define
57667         with prototypes.
57668
57669         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57670         (main): Define with a prototype.
57671
57672         * lib/posixver.c (getenv): Remove decl.
57673
57674         * lib/putenv.c (malloc): Returns void *, not char *.
57675         Include <string.h> unconditionally.
57676         (strchr, memcpy, NULL): Do not define.
57677
57678         * lib/readtokens.c: Include readtokens.h first, to test interface.
57679         Include <stdlib.h>, <string.h> unconditionally.
57680         (init_tokenbuffer): Define with a prototype.
57681
57682         * lib/regex.c (PARAMS): Remove.  All uses removed.
57683         All uses of _RE_ARGS removed, too.
57684         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57685         unconditionally.
57686         (bzero): Assume memset exists.
57687         (memcmp, memcpy, NULL): Remove.
57688         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57689         char, or assignments to local vars of type signed char.
57690         (init_syntax_once, PREFIX(extract_number_and_incr),
57691         PREFIX(print_partial_compiled_pattern),
57692         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57693         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57694         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57695         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57696         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57697         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57698         wcs_compile_range, byte_compile_range, truncate_wchar,
57699         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57700         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57701         count_mbs_length, wcs_re_match_2_internal,
57702         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57703         PREFIX(alt_match_null_string_p),
57704         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57705         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57706         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57707         now-unnecessary declaration, if any.
57708         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57709         regcomp, regexec):
57710         Remove now-unnecessary casts among pointer types.
57711         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57712
57713         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57714         (free): Remove decl.
57715
57716         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57717
57718         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57719         (free): Remove decl.
57720
57721         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57722         * lib/xgetcwd.c: Likewise.
57723
57724         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57725         (free): Remove decl.
57726
57727         * lib/strchrnul.c (strchrnul): Define with a prototype.
57728         Fix bug: c_in was not converted to char before searching.
57729
57730         The following changes are not K&R related:
57731
57732         * lib/group-member.h: Include <sys/types.h>, so that this file is
57733         self-contained.
57734         * lib/makepath.h: Likewise.
57735
57736         * lib/getusershell.c (readname, default_index, line_size, readname):
57737         Use size_t, not int, for sizes.
57738         (readname): If the size overflows, report an error instead of
57739         looping forever.
57740
57741 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57742
57743         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57744         libc.
57745
57746 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57747
57748         * README: New section: portability guidelines.
57749
57750 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57751
57752         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57753         C89 spec.
57754
57755 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57756
57757         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57758
57759 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57760
57761         Assume C89 or better; remove K&R cruft.
57762         A few of these changes were first proposed by Derek Robert Price
57763         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57764
57765         * lib/addext.c: Include <string.h> unconditionally.
57766         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57767         Don't declare getenv or malloc.
57768
57769         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57770         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57771         (NULL): Remove.
57772         (find_stack_direction, alloca): Use prototypes.
57773
57774         * lib/atexit.c (atexit): Define using a prototype.
57775
57776         * lib/basename.c, dirname.c, stripslash.c:
57777         Include <string.h> unconditionally.
57778
57779         * lib/bcopy.c: Include <stddef.h>.
57780         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57781
57782         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57783
57784         * lib/error.h (error, error_at_line, error_print_progname)
57785         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57786         * lib/error.c: Include error.h first, to check interface.
57787         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57788         (VA_START): Remove; all uses changeed to va_start.
57789         (exit, strerror): Remove decls.
57790         (error_print_progname): Prototype uncondionally.
57791         Don't include <errno.h>; no longer needed.
57792         (private_strerror): Remove.
57793         (error_tail): Always define.
57794         (error, error_at_line): Assume C89 or better; always use prototypes.
57795         * lib/fatal.c: Include "fatal.h" first, to test interface.
57796         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57797         (VA_START): Remove; all uses changed to va_start.
57798         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57799         this case.
57800         (exit): Remove decl.
57801         (fatal): Prototype unconditionally.  Assume va_start works.
57802         Abort at end, to pacify gcc.
57803
57804         * lib/euidaccess.c (main): Define with a prototype.
57805
57806         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57807
57808         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57809
57810         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57811         prototypes.
57812         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57813         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57814         (getenv): Remove decl.
57815         (fnmatch): Define using a prototype.
57816         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57817         (FCT): Define using a prototype.
57818
57819         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57820
57821         * lib/gethostname.c: Include <stddef.h>.
57822         (gethostname): Define with prototype.  Length is size_t, not int.
57823
57824 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57825
57826         Assume C89 or better; remove K&R cruft.
57827         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57828         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57829         string.h, getenv, malloc.
57830         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57831         headers.
57832         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57833         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57834         do not check for strerror.
57835         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57836         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57837         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57838         do not check for doprnt or vprintf.
57839         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57840         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57841
57842 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57843
57844         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57845         getversion.c should have been removed then, but was accidentally
57846         preserved.
57847
57848         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57849         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57850
57851 2003-09-08  Karl Berry  <karl@gnu.org>
57852
57853         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57854                 config, forget about prep.
57855
57856         * config/depcomp, missing: update from automake.
57857
57858 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57859
57860         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57861         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57862
57863 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57864
57865         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57866         copy_tm_result.  Bug reported by Simon Josefsson in
57867         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57868
57869 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57870
57871         * m4/time_r.m4: New file.
57872         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57873         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57874         is. Check for timegm declaration.
57875         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57876         Do not check for gmtime_r.
57877         Replace mktime if __mktime_internal does not exist and if mktime
57878         hasn't been replaced already.
57879
57880 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57881
57882         * lib/time_r.c, lib/time_r.h: New files.
57883
57884         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57885         __localtime_r.
57886         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57887         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57888
57889         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57890         __gmtime_r.
57891         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57892         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57893         Include <time_r.h>.
57894
57895         * lib/timegm.c: Switch to glibc implementation, with the following
57896         changes:
57897         [defined HAVE_CONFIG_H]: Include <config.h>.
57898         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57899         (__mktime_internal) [!defined _LIBC]: New decl.
57900         (__gmtime_r) [!defined _LIBC]: New macro and function.
57901         (timegm): Use a prototype, since gnulib assumes C89.
57902         Do not bother declaring tmp to be const, as it's not really usefu.
57903         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57904         (timegm): Declare only if HAVE_DECL_TIMEGM.
57905
57906 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57907
57908         * MODULES.html.sh (func_all_modules): Add time_r.
57909         * modules/time_r: New file.
57910         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57911         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57912
57913 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57914
57915         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57916         Bug reported by Lute Kamstra in
57917         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57918
57919         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57920         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57921         course with correspondingly smaller numbers for tomorrow and
57922         yesterday.  From Tadayoshi Funaba.  Originally installed into
57923         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57924         coreutils merge?).
57925
57926 2003-08-31  Simon Josefsson  <jas@extundo.com>
57927
57928         * modules/timegm: New file.
57929         * MODULES.html.sh (func_all_modules): Add timegm.
57930
57931 2003-08-31  Simon Josefsson  <jas@extundo.com>
57932
57933         * m4/timegm.m4: New file.
57934
57935 2003-08-31  Simon Josefsson  <jas@extundo.com>
57936
57937         * lib/timegm.h: New file.
57938         * lib/timegm.c: New file.  Based on
57939         wget-1.8.2/src/http.c:mktime_from_utc.
57940
57941 2003-08-31  Karl Berry  <karl@gnu.org>
57942
57943         * lib/argp.h: update from libc.
57944
57945 2003-08-28  Bruno Haible  <bruno@clisp.org>
57946
57947         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57948         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57949         followed by '#define fnmatch fnmatch_posix' gives an error.
57950
57951 2003-08-28  Bruno Haible  <bruno@clisp.org>
57952
57953         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57954         warning on QNX, which defines O_BINARY to 000000.
57955
57956 2003-08-27  Jim Meyering  <jim@meyering.net>
57957
57958         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57959         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57960         would fail after 32.  Reported by Danny Levinson.  Details here:
57961         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57962
57963 2003-08-24  Bruno Haible  <bruno@clisp.org>
57964
57965         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57966         MSVC7 <stdio.h> is included later.
57967
57968 2003-08-22  Simon Josefsson  <jas@extundo.com>
57969
57970         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57971
57972 2003-08-20  Karl Berry  <karl@gnu.org>
57973
57974         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57975
57976 2003-08-20  Bruno Haible  <bruno@clisp.org>
57977
57978         * modules/progname: New file.
57979         * MODULES.html.sh (func_all_modules): Add progname.
57980
57981 2003-08-20  Bruno Haible  <bruno@clisp.org>
57982
57983         * lib/progname.h: New file, from GNU gettext.
57984         * lib/progname.c: New file, from GNU gettext.
57985         * lib/progreloc.c: New file, from GNU gettext.
57986
57987 2003-08-19  Jim Meyering  <jim@meyering.net>
57988
57989         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57990         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57991
57992 2003-08-19  Bruno Haible  <bruno@clisp.org>
57993
57994         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57995         more.
57996
57997 2003-08-19  Bruno Haible  <bruno@clisp.org>
57998
57999         * lib/xstrdup.c: Assume <string.h> exists.
58000
58001 2003-08-18  Paul Eggert  <eggert@twinsun.com>
58002
58003         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
58004         in makefile rules.
58005
58006 2003-08-18  Jim Meyering  <jim@meyering.net>
58007
58008         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
58009         * m4/lib-ld.m4: Likewise.
58010
58011 2003-08-18  Jim Meyering  <jim@meyering.net>
58012
58013         * lib/setenv.h: Indent nested cpp directive.
58014         * lib/vasnprintf.c: Remove trailing blanks.
58015
58016 2003-08-17  Simon Josefsson  <jas@extundo.com>
58017
58018         * modules/xstrndup: New file.
58019         * MODULES.html.sh (func_all_modules): Add xstrndup.
58020
58021 2003-08-17  Simon Josefsson  <jas@extundo.com>
58022
58023         * modules/argp: Fix autoconf macro name. Add more dependencies.
58024
58025 2003-08-17  Simon Josefsson  <jas@extundo.com>
58026
58027         * m4/xstrndup.m4: New file.
58028
58029 2003-08-17  Simon Josefsson  <jas@extundo.com>
58030
58031         * m4/argp.m4: New file.
58032
58033 2003-08-17  Simon Josefsson  <jas@extundo.com>
58034             Bruno Haible  <bruno@clisp.org>
58035
58036         * lib/xstrndup.h: New file.
58037         * lib/xstrndup.c: New file.
58038
58039 2003-08-17  Bruno Haible  <bruno@clisp.org>
58040
58041         * modules/strndup (Files, Include): Add lib/strndup.h.
58042
58043 2003-08-17  Bruno Haible  <bruno@clisp.org>
58044
58045         * modules/euidaccess (Files): Add lib/euidaccess.h.
58046
58047 2003-08-17  Bruno Haible  <bruno@clisp.org>
58048
58049         * lib/strndup.h: New file.
58050
58051 2003-08-17  Bruno Haible  <bruno@clisp.org>
58052
58053         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
58054         like AC_GNU_SOURCE.
58055         * modules/extensions (configure.ac): Comment out the invocation of
58056         gl_USE_SYSTEM_EXTENSIONS.
58057
58058 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58059
58060         Merges from coreutils, etc.
58061         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
58062         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
58063         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
58064         fixing a typo.
58065         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
58066         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
58067
58068 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58069
58070         Document merge from coreutils.
58071         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
58072         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
58073         * modules/utime: Add m4/utimes-null.m4.
58074
58075 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58076
58077         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
58078         space, undoing this 2003-08-12 change:
58079         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58080
58081 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58082
58083         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
58084         strtoul.c from libc, undoing this 2003-08-12 change:
58085         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58086
58087 2003-08-16  Jim Meyering  <jim@meyering.net>
58088
58089         Merges from coreutils.
58090         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58091         prefix.  Adjust cache variables similarly.  Create 500 rather than
58092         just 300 files, to exercise bug on Darwin6.5, too.
58093         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58094         $missing_dir.
58095         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58096         AM_SYS_POSIX_TERMIOS.
58097         Reported by mkc@mathdogs.com.
58098         Also change use of $am_cv_sys_posix_termios
58099         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58100         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58101         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58102         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58103         in /proc/mounts until it finds one with matching device number.  This
58104         is unnecessary when the FILE argument *is* a mount point.  No stat call
58105         is necessary in that case.  So, disable the statvfs-testing code on
58106         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58107         as RedHat bug# 84846.
58108         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58109         to 1MB, so as not to render systems with no stack size limit (e.g.,
58110         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58111         Include <unistd.h>.  On some systems,
58112         it is required for the definition of _SC_PAGESIZE.
58113
58114 2003-08-16  Jim Meyering  <jim@meyering.net>
58115
58116         Merge from coreutils.
58117         * lib/xstrtoimax.c: #else #if -> #elif.
58118         * lib/xstrtoumax.c: Likewise.
58119
58120 2003-08-16  Jim Meyering  <jim@meyering.net>
58121
58122         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58123         * m4/utimes.m4: Removed.
58124         * m4/utimes-null.m4: Renamed from utimes.m4.
58125
58126         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58127         to 1MB, so as not to render systems with no stack size limit (e.g.,
58128         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58129         Include <unistd.h>.  On some systems,
58130         it is required for the definition of _SC_PAGESIZE.
58131
58132 2003-08-16  Jim Meyering  <jim@meyering.net>
58133         and Paul Eggert  <eggert@cs.ucla.edu>
58134
58135         Merges from coreutils, etc.
58136
58137         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58138         using the latest version from cvs.  This avoids problems with #line
58139         directives using a vendor (Sun) compiler.
58140         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58141         Don't set GETGROUPS_LIB here; now it's
58142         done via getgroups.m4's wrapper function.
58143         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58144         rather than just in sh-util/configure.in, so that the
58145         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58146         same.
58147         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58148         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58149         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58150         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58151         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58152         Remove code that is now done by the newly-required macros.
58153         Append $(EXEEXT) to DF_PROG.
58154         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58155         Do not invoke or require the following here,
58156         since prereq.m4 or some gnulib .m4 now does this for us:
58157         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58158         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58159         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58160         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58161         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58162         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58163         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58164         AC_FUNC_OBSTACK.
58165         Do not replace the following functions, as this is now the job
58166         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58167         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58168         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58169         atexit getpass, strdup, getpagesize.
58170         Replace 'raise'.
58171         Do not check for the following functions, as this is now the job
58172         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58173         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58174         setregid.
58175         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58176         Check for sys/sysctl.h.
58177         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58178         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58179         of checking for ssize_t ourselves.
58180
58181         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58182         Require every macro that gnulib/modules/* suggests for us.
58183         (jm_PREREQ_ADDEXT): New macro.
58184         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58185         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58186
58187         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58188         (gl_PHYSMEM): Use it.
58189         Also check for `table' function.
58190         Check for new headers and functions.
58191         Add check for sys/sysmp.h.
58192         With suggestions from Kaveh Ghazi.
58193         Ignore headers that are present but cannot be compiled.  This
58194         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58195         C 5.4.
58196
58197 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58198
58199         Document merge from coreutils.
58200         * modules/userspec: Depend on posixver.
58201         * modules/strftime: Depend on tzset.
58202
58203 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58204
58205         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58206         rather than tab, after '#' in shell-script copyright notices.
58207         Suggested by Bruno Haible.
58208
58209 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58210
58211         * config/srclist-update: Use three spaces, rather than tab, after '#'
58212         in shell-script copyright notices.  Suggested by Bruno Haible.
58213         Remove unnecessary parenthesization in regular expression.
58214
58215 2003-08-15  Jim Meyering  <jim@meyering.net>
58216
58217         Merge from coreutils.
58218         * lib/xgethostname.c: Include <stdlib.h>.
58219         (xghostname): Don't exit for anything other than memory-related
58220         failure; just return NULL.
58221         * lib/userspec.c: Include "posixver.h".
58222         (parse_user_spec): Accept `.' as a separator only
58223         in pre-POSIX-200112 mode.
58224         * lib/strtoimax.c: Use #elif rather than #else #if.
58225         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58226         Remove function, now that we can rely on a working tzset function.
58227         [!_LIBC]: Ensure that the required autoconf test has been run.
58228         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58229         Use underlying_strftime for %r.
58230         * lib/sha.c: Merge in some clean-up and optimization changes from
58231         glibc.
58232         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58233         Ensure that it is a multiple of 64.
58234         Rearrange loop exit tests so as to avoid performing an
58235         additional fread after encountering an error or EOF.
58236         * lib/realloc.c: Update copyright date.
58237
58238 2003-08-15  Jim Meyering  <jim@meyering.net>
58239         and Paul Eggert  <eggert@twinsun.com>
58240
58241         Merge from coreutils.
58242         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58243         member but strut utmpx does not.  Needed for AIX 4.3.3.
58244         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58245
58246 2003-08-15  Jim Meyering  <jim@meyering.net>
58247         and Paul Eggert  <eggert@cs.ucla.edu>
58248
58249         Merges from coreutils, etc.
58250         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58251         Require gl_FUNC_TZSET_CLOBBER.
58252         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58253         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58254         members.
58255
58256 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58257
58258         Help the merge from coreutils.
58259         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58260         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58261         * m4/tzset.m4: Use it too.
58262
58263 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58264
58265         * modules/tzset: New file.
58266
58267 2003-08-14  Jim Meyering  <jim@meyering.net>
58268
58269         Merges from coreutils.
58270         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58271         variable names, rather than @FNMATCH_H@.
58272         * modules/alloca: Likewise for $(ALLOCA_H).
58273
58274         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58275         the three copies of the literal target, `fnmatch.h'.
58276         * modules/alloca (alloca.h): Likewise.
58277
58278 2003-08-14  Jim Meyering  <jim@meyering.net>
58279
58280         Merge from coreutils.
58281         * m4/tzset.m4: New file.
58282         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58283         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58284         otherwise, AIX 5.1 systems would end up using the latter.
58285         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58286         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58287         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58288         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58289
58290 2003-08-14  Jim Meyering  <jim@meyering.net>
58291
58292         Merge from coreutils.
58293         * lib/obstack.h: Whitespace changes.
58294         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58295         and xcalloc return values.
58296         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58297         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58298         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58299         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58300         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58301         error from mntctl.
58302         Use mntctl's return value to drive the entry-processing loop, since
58303         we can't rely on the value of the vmt_length member in the last
58304         entry.  On some systems doing so could result in exhausting
58305         virtual memory.  Based in part on a patch from Mike Jetzer.
58306
58307 2003-08-14  Jim Meyering  <jim@meyering.net>
58308         and Paul Eggert  <eggert@twinsun.com>
58309
58310         Merges from coreutils, plus other fixes.
58311         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58312         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58313         for credits and details.  Thanks to Kaveh Ghazi for helping
58314         to keep these files in sync.
58315         (ARRAY_SIZE): Define it.
58316         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58317         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58318         (memcasecmp): Don't assume size_t fits in unsigned int.
58319         Remove casts and duplicate code.
58320         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58321         (memcpy): Remove definition.
58322         Merge in some clean-up and optimization changes from glibc.
58323         [BLOCKSIZE]: Move definition to top of file.
58324         Ensure that it is a multiple of 64.
58325         Rearrange loop exit tests so as to avoid performing an
58326         additional fread after encountering an error or EOF.
58327         * lib/md5.h (md5_uintptr): Define.
58328         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58329         return to the initial working directory.  Preserve errno
58330         for caller.
58331         * lib/idcache.c: Include "xalloc.h".
58332         (xmalloc, xrealloc): Remove decls.
58333         (getuser): Remove casts no longer required in C89.
58334         * lib/human.c: Include stdio.h, for sprintf.
58335         * lib/group-member.c: Include "xalloc.h".
58336         (xmalloc, xrealloc): Remove decls.
58337         (get_group_info): Remove casts no longer required in C89.
58338         * lib/getusershell.c (readname): Remove casts no longer required in
58339         C89.
58340         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58341         * lib/getline.c: Whitespace fix, from coreutils.
58342
58343 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58344
58345         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58346         Check for isascii.
58347
58348         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58349         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58350         Undo previous (whitespace-only) change.
58351
58352 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58353
58354         * lib/exclude.c: Include <ctype.h>
58355         (IN_CTYPE_DOMAIN): New macro.
58356         (is_space): New fn.
58357         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58358         and empty lines.
58359
58360         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58361         Undo previous (whitespace-only) change.
58362
58363 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58364
58365         * config/srclist-update: Change update back to the old behavior,
58366         leaving whitespace alone.  Use one 'sed' command rather than a
58367         pipeline.
58368         (fixlicense): Now a variable, not a function.
58369         (remove_trailing_blanks): Remove.
58370         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58371         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58372         Undo previous (whitespace-only) change.
58373
58374 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58375
58376         Merge from coreutils.
58377         * modules/euidaccess: Add lib_SOURCES, include for new
58378         file euidaccess.h
58379
58380 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58381
58382         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58383         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58384         Normalize leading white space and remove trailing white space.
58385
58386         Merge from coreutils
58387         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58388
58389         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58390         0.12.1.  These files are now being upgraded automatically by
58391         ../config/srclist-update.
58392
58393 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58394
58395         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58396         Normalize leading white space and remove trailing white space.
58397         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58398         notice, as per ../config/srclist-update.
58399
58400         Merge from coreutils.
58401         * lib/euidaccess.h: New file.
58402         * lib/euidaccess.c: Include it.
58403         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58404         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58405         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58406
58407 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58408
58409         * config/srclist-update: Add copyright notice.
58410         (remove_id_lines, remove_trailing_blanks): New constants.
58411         (fixfile): Use them to normalize spacing a bit in copied files.
58412         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58413         Normalize leading white space and remove trailing white space.
58414
58415         * config/texinfo.tex: Sync with texinfo.
58416
58417         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58418         strtoul.c from libc, to merge coreutils whitespace changes.
58419
58420         * config/srclist.txt: Get the following m4 files from gettext:
58421         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58422         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58423         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58424         wint_t.m4.
58425
58426 2003-08-12  Karl Berry  <karl@gnu.org>
58427
58428         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58429         been made.
58430
58431 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58432
58433         * modules/gnu-source, m4/gnu-source.m4:
58434         Remove; we're assuming Autoconf 2.54 or later now.
58435         Suggested by Bruno Haible.
58436         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58437
58438 2003-08-11  Bruno Haible  <bruno@clisp.org>
58439
58440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58441
58442 2003-08-11  Bruno Haible  <bruno@clisp.org>
58443
58444         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58445         (vasnprintf): Use it instead of wcslen.
58446
58447 2003-08-11  Bruno Haible  <bruno@clisp.org>
58448
58449         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58450         value to ensure that _Bool promotes to int. Use #define for _Bool when
58451         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58452
58453 2003-08-10  Karl Berry  <karl@gnu.org>
58454
58455         * lib/regex.h: update from libc (whitespace fix).
58456
58457 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58458
58459         Merge some files from coreutils.  These changes were
58460         originally made by Jim Meyering.
58461         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58462         many older Unixes require this.
58463         * lib/alloca.c (alloca): Remove cast to argument of free;
58464         no longer needed in C89.
58465         * lib/alloca_.h, regex.h: Fix white space to match
58466         what GNU indent does.
58467
58468 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58469
58470         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58471         apparently Emacs's Unicode mode got confused before my 2003-08-05
58472         checkin.
58473
58474 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58475
58476         * m4/extensions.m4: New file.
58477         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58478         Require gl_USE_SYSTEM_EXTENSIONS.
58479         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58480         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58481
58482 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58483
58484         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58485         * modules/extensions, modules/gnu-source: New files.
58486         * modules/timespec, modules/unlocked-io: Depend on extensions.
58487
58488 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58489
58490         * modules/restrict: New file.
58491         * MODULES.html.sh (func_all_modules): Add restrict.
58492         * modules/regex: Depend on restrict.
58493
58494 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58495
58496         * m4/restrict.m4: New file.
58497         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58498
58499 2003-08-07  Bruno Haible  <bruno@clisp.org>
58500
58501         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58502         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58503
58504 2003-08-07  Bruno Haible  <bruno@clisp.org>
58505
58506         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58507         makes the module 'getndelim2' compatible with the module 'getline'.
58508
58509 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58510
58511         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58512         byte with "\201" to avoid glitches when editing that source file
58513         with multi-gnome-terminal.
58514
58515 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58516
58517         * lib/bumpalloc.h: Remove.
58518
58519 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58520
58521         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58522         * modules/bumpalloc: Remove.
58523
58524 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58525
58526         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58527         GNU coding style.
58528
58529         Merge from coreutils.
58530         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58531         1. From glibc.
58532         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58533         from Karl Berry, implemented by Jim Meyering.
58534         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58535         from Dmitry V. Levin.
58536         Remove anachronistic cast of xrealloc.
58537         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58538         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58539         type. Otherwise, it wouldn't compile with at least /bin/cc on
58540         ymp-cray-unicos9.0.2.X.
58541         Combine two mostly-identical uses of alloca into one.
58542         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58543
58544 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58545
58546         [From Emacs.]
58547
58548         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58549         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58550         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58551         obsolete NLIST_NAME_UNION.
58552         [__GNU__]: Undef BSD and FSCALE.
58553         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58554
58555 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58556
58557         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58558         an enum type, so that it's guaranteed to promote to int.  See:
58559         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58560
58561 2003-08-03  Karl Berry  <karl@gnu.org>
58562
58563         * config/depcomp: update from automake.
58564
58565 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58566
58567         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58568         (strerror): Don't assume that a printable int fits in 14 bytes.
58569
58570 2003-07-31  Bruno Haible  <bruno@clisp.org>
58571
58572         * modules/getpass-gnu: New file.
58573         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58574
58575 2003-07-31  Bruno Haible  <bruno@clisp.org>
58576
58577         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58578
58579 2003-07-24  Karl Berry  <karl@gnu.org>
58580
58581         * config/missing: update from automake.
58582
58583 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58584             Bruno Haible  <bruno@clisp.org>
58585
58586         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58587         * lib/getline.c (getline, getdelim): Likewise.
58588         Remove _GNU_SOURCE define; now it's defined in config.h through
58589         m4/getline.m4.
58590
58591 2003-07-23  Karl Berry  <karl@gnu.org>
58592
58593         * config/config.sub: update from prep.
58594
58595 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58596
58597         * modules/xalloc (Depends-on): Add exitfail.
58598         * modules/xmemcoll: Likewise.
58599
58600 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58601
58602         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58603         over-parenthesization in macros.
58604
58605         Sync with coreutils.
58606
58607         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58608         required by C99.
58609
58610         Use `exit_failure' for xalloc and xmemcoll instead of their own
58611         private exit-failure variables.
58612         * lib/xalloc.h (xalloc_exit_failure): Remove.
58613         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58614         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58615         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58616         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58617         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58618
58619 2003-07-20  Jim Meyering  <jim@meyering.net>
58620
58621         * modules/closeout (Depends-on): Add exitfail.
58622         Suggestion from Bruno Haible.
58623
58624 2003-07-19  Karl Berry  <karl@gnu.org>
58625
58626         * config/config.sub: update from prep.
58627
58628 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58629
58630         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58631         Remove.
58632         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58633         to test that it can stand by itself.  Include "exitfail.h".
58634         Clients should set exit_failure instead.
58635         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58636
58637 2003-07-18  Bruno Haible  <bruno@clisp.org>
58638
58639         * modules/getndelim2: New file.
58640         * modules/getline: Share files with module getndelim2.
58641         * modules/getnline: Depend on getndelim2 instead of sharing files with
58642         it. Add getnline.c to lib_SOURCES.
58643         * MODULES.html.sh (func_all_modules): Add getndelim2.
58644
58645 2003-07-18  Bruno Haible  <bruno@clisp.org>
58646
58647         * m4/getndelim2.m4: New file.
58648         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58649         invoke gl_PREREQ_GETNDELIM2.
58650         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58651         gl_PREREQ_GETNDELIM2.
58652         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58653         gl_GETNDELIM2.
58654
58655 2003-07-18  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/getndelim2.h: New file.
58658         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58659         getndelim2.h.
58660         (getndelim2): Make non-static. Change return type to ssize_t.
58661         * lib/getline.h: Change argument names.
58662         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58663         * lib/getnline.c: Include getndelim2.h.
58664
58665 2003-07-18  Andreas Schwab  <schwab@suse.de>
58666
58667         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58668
58669 2003-07-17  Karl Berry  <karl@gnu.org>
58670
58671         * config/config.sub: update from prep.
58672
58673 2003-07-17  Bruno Haible  <bruno@clisp.org>
58674
58675         * modules/getnline: New file.
58676         * modules/getline: Add lib/getndelim2.c to source file list.
58677         * MODULES.html.sh (func_all_modules): Add getnline.
58678
58679 2003-07-17  Bruno Haible  <bruno@clisp.org>
58680
58681         * m4/getnline.m4: New file.
58682
58683 2003-07-17  Bruno Haible  <bruno@clisp.org>
58684
58685         * m4/Makefile.am.in: Remove file.
58686         * m4/Makefile.am: Remove file.
58687         * m4/Makefile.in: Remove file.
58688
58689 2003-07-17  Bruno Haible  <bruno@clisp.org>
58690
58691         * lib/getnline.h: New file.
58692         * lib/getnline.c: New file.
58693         * lib/getndelim2.c: New file, extracted from getline.c.
58694         (getndelim2): Renamed from getdelim2, with added nmax argument.
58695         * lib/getline.c: Include getndelim2.c.
58696         (getdelim2): Moved out to getndelim2.c.
58697         (getline, getdelim): Update.
58698
58699 2003-07-17  Bruno Haible  <bruno@clisp.org>
58700
58701         * lib/Makefile.am: Remove file.
58702         * lib/Makefile.in: Remove file.
58703
58704 2003-07-17  Bruno Haible  <bruno@clisp.org>
58705
58706         * configure.in: Remove file.
58707         * Makefile.in: Remove file.
58708
58709 2003-07-17  Bruno Haible  <bruno@clisp.org>
58710
58711         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58712
58713 2003-07-16  Karl Berry  <karl@gnu.org>
58714
58715         * config/srclist-update: was running fixlicense twice, which caused
58716                 texinfo.tex to be nullified for some reason.  Simplify,
58717                 $gplsrc is no longer needed as far as I can see?
58718
58719 2003-07-16  Jim Meyering  <jim@meyering.net>
58720
58721         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58722
58723 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58724
58725         * config/srclist.txt: Get the following files from gettext-runtime/intl
58726         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58727         ref-del.sin.  From Bruno Haible.
58728         * config/srclist-update (fixfile): Change grep pattern again, since the
58729         previous fix didn't work (there was another trailing $).  Use
58730         '[$]' to escape the $s.
58731
58732 2003-07-15  Karl Berry  <karl@gnu.org>
58733
58734         * lib/vasnprintf.c: update from gettext.
58735
58736 2003-07-15  Karl Berry  <karl@gnu.org>
58737
58738         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58739         gets expanded when surrounded by '$'.
58740
58741 2003-07-15  Jim Meyering  <jim@meyering.net>
58742
58743         * modules/save-cwd: Don't depend on error.  From Derek Price.
58744
58745 2003-07-15  Jim Meyering  <jim@meyering.net>
58746
58747         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58748
58749 2003-07-14  Simon Josefsson  <jas@extundo.com>
58750
58751         * modules/mempcpy: New file.
58752         * MODULES.html.sh (func_all_modules): Add mempcpy.
58753
58754 2003-07-14  Simon Josefsson  <jas@extundo.com>
58755
58756         * m4/mempcpy.m4: New file.
58757
58758 2003-07-14  Simon Josefsson  <jas@extundo.com>
58759
58760         * lib/mempcpy.h: New file.
58761         * lib/mempcpy.c: New file.
58762
58763 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58764
58765         * modules/getdate, modules/posixtm: Depend on mktime.
58766
58767 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58768
58769         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58770         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58771         unicodeio.c, unicodeio.h, unlocked-io.h:
58772         Switch from LGPL to GPL.
58773
58774 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58775
58776         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58777         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58778         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58779         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58780         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58781         updated automatically by ../config/srclist-update.  This changes
58782         their license from LPGL to GPL.
58783
58784 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58785
58786         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58787         assumed to refer to the root of the most recent stable gettext version.
58788         * config/srclistvars.sh: Add defaults for eggert.
58789         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58790         Match "This program" as well as "The program".  This is needed
58791         for gettext.
58792
58793 2003-07-14  Jim Meyering  <jim@meyering.net>
58794
58795         Don't emit diagnostics.  Let callers do that.
58796         * lib/save-cwd.c: Don't include "error.h".
58797         (save_cwd): Don't call error.  Ensure that errno is valid
58798         when returning nonzero.
58799
58800         * lib/save-cwd.h (restore_cwd): Update prototype.
58801         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58802         Simplify.  Don't call error upon failure.  Let callers do that.
58803         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58804         when auditing is enabled.  But don't bother updating the #if.
58805
58806 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58807
58808         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58809         it breaks C++ compilation.
58810         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58811
58812 2003-07-10  Simon Josefsson  <jas@extundo.com>
58813
58814         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58815
58816 2003-07-10  Jim Meyering  <jim@meyering.net>
58817
58818         * m4/clock_time.m4: Remove trailing blank.
58819         * m4/intmax_t.m4: Likewise.
58820
58821 2003-07-10  Jim Meyering  <jim@meyering.net>
58822
58823         * lib/vasnprintf.c: Remove trailing blanks.
58824         Make cpp indentation consistent.
58825
58826 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58827
58828         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58829         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58830         Switch from LGPL to GPL.
58831
58832 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58833
58834         * config/srclist.txt: Sort sublists.  Add
58835         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58836         that differ from gnulib for one reason or another; we'd like this list
58837         to be smaller but for now let's document what we have.
58838
58839 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58840
58841         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58842         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58843         and sweeter "eval x=$x".
58844         * config/srclist.txt: Get lib/argp* from glibc.
58845
58846 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58847
58848         * lib/mktime.c: Fix some boundary cases and remove need for floating
58849         point.
58850
58851         Issue a compile-time diagnostic if time_t is floating point, or if
58852         two's complement arithmetic is not in effect, or if arithmetic
58853         right shift does not propagate the sign.  These assumptions were
58854         all in the original code but they weren't checked.
58855
58856         (TIME_T_MIDPOINT, verify): New macros.
58857         (__isleap): Remove; it has integer overflow problems.
58858         (leapyear): New function, without those problems.
58859         (ydhms_tm_diff): Remove; splitting into two parts.
58860         (ydhms_diff): New function, containing the arithmetic part of
58861         the old ydhms_tm_diff function.  Issue a compile-time
58862         diagnostic if we are not using C99 integer division.
58863         Avoid casts when possible.
58864         (guess_time_tm): New function, containing the checking part of
58865         the old ydhms_tm_diff function.  Return the new value, rather than
58866         the difference between it and the old.  Accept a new argument T
58867         so that *T specifies the old value.  Check for overflow in the result.
58868
58869         (__mktime_internal): Use a time_t offset, not a long int offset.
58870         This undoes the 2003-06-04 change, which is no longer needed now
58871         that we have better overflow checking.
58872         (localtime_offset): Likewise.
58873
58874         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58875         and long are 64-bit but int is only 32-bit.
58876         (ydhms_diff): Use long int to store year1 and yday1.
58877         Issue a compile-time diagnostic if long int is not wide enough.
58878
58879         (__mktime_internal): Use long int to store adjusted year and yday.
58880         Use plain C rather than preprocessor commands, if that doesn't
58881         affect efficiency.
58882         Check for overflow (and try to repair) after each probe
58883         rather than checking only at the very end.  This avoids some bugs
58884         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58885         does not equal GMT offset at maximum time).
58886         Use integer to check for overflow rather than floating point; this
58887         is more portable to non-IEEE hosts, and is a tad faster.
58888         When we detect that we are oscillating between two values,
58889         don't check whether tm_isdst has the requested value, since
58890         we already know the answer.  When tm_isdst has the wrong value,
58891         use a different heuristic to find the right one, based on the
58892         extreme values actually observed in practice in tz2003a,
58893         rather than the (overly optimistic) "previous 3 calendar quarters".
58894
58895         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58896         "T const" to accommodate glibc style.
58897         (check_result): Use less-confusing report format.  "long" -> "long int.
58898         (main): Likewise.
58899         Don't loop if the iteration overflows time_t.
58900         Allow a negative step in the iteration.
58901
58902 2003-07-06  Karl Berry  <karl@gnu.org>
58903
58904         * config/depcomp: update from automake.
58905         * config/config.sub: update from prep.
58906
58907 2003-07-03  Karl Berry  <karl@gnu.org>
58908
58909         * config/config.guess: update from prep.
58910
58911 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58912
58913         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58914         xreadlink.c now includes it unconditionally.
58915
58916 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58917
58918         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58919         having it depend on HAVE_SYS_TYPES_H.
58920
58921 2003-07-01  Bruno Haible  <bruno@clisp.org>
58922
58923         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58924         <sys/types.h> should be sufficient.
58925         Reported by Paul Eggert.
58926
58927 2003-06-26  Karl Berry  <karl@gnu.org>
58928
58929         * config/depcomp: update from automake.
58930
58931 2003-06-26  Bruno Haible  <bruno@clisp.org>
58932
58933         * modules/human: Depend on module stdbool.
58934
58935 2003-06-25  Bruno Haible  <bruno@clisp.org>
58936
58937         * modules/readlink: New file.
58938         * modules/xreadlink: Depend on it.
58939         * MODULES.html.sh (func_all_modules): Add readlink.
58940
58941 2003-06-25  Bruno Haible  <bruno@clisp.org>
58942
58943         * m4/readlink.m4: New file.
58944
58945 2003-06-25  Bruno Haible  <bruno@clisp.org>
58946
58947         * lib/readlink.c: New file.
58948
58949 2003-06-22  Karl Berry  <karl@gnu.org>
58950
58951         * config/srclist.txt: update mkinstalldirs from automake.
58952         * config/mkinstalldirs: update.
58953
58954 2003-06-22  Bruno Haible  <bruno@clisp.org>
58955
58956         Portability to mingw32.
58957         * m4/ssize_t.m4: New file, from GNU gettext.
58958         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58959         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58960
58961 2003-06-22  Bruno Haible  <bruno@clisp.org>
58962
58963         * modules/safe-read: Add m4/ssize_t.m4.
58964         * modules/xreadlink: Add m4/ssize_t.m4.
58965
58966 2003-06-20  Bruno Haible  <bruno@clisp.org>
58967
58968         Assume C89, so PARAMS isn't needed.
58969         * lib/unicodeio.h (PARAMS): Remove.
58970         * lib/unicodeio.c: Don't use PARAMS.
58971
58972 2003-06-18  Karl Berry  <karl@gnu.org>
58973
58974         * config/config.{guess,sub}: update from prep.
58975
58976 2003-06-18  Jim Meyering  <jim@meyering.net>
58977
58978         Merge changes from coreutils.
58979         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58980         Remove explicit declarations of xmalloc and realloc.
58981         Include xalloc.h.
58982         (read_utmp): Remove anachronistic cast of xmalloc.
58983
58984 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58985
58986         Assume C89, so PARAMS isn't needed.
58987         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58988         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58989         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58990         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58991         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58992         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58993         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58994         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58995         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58996         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58997         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58998         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58999         no longer needed. Anyway, config.h should always be included before any
59000         other file.
59001
59002 2003-06-11  Simon Josefsson  <jas@extundo.com>
59003
59004         * modules/sysexits: New file.
59005         * MODULES.html.sh (func_all_modules): Add sysexits.
59006
59007 2003-06-11  Simon Josefsson  <jas@extundo.com>
59008
59009         * lib/sysexit_.h: New file.
59010
59011 2003-06-11  Derek Price  <derek@ximbiot.com>
59012
59013         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
59014         necessary.
59015
59016 2003-06-11  Bruno Haible  <bruno@clisp.org>
59017
59018         * m4/sysexits.m4: New file.
59019
59020 2003-06-10  Simon Josefsson  <jas@extundo.com>
59021
59022         * lib/argp.h: New file, from glibc.
59023         * lib/argp-ba.c: New file, from glibc.
59024         * lib/argp-eexst.c: New file, from glibc.
59025         * lib/argp-fmtstream.c: New file, from glibc.
59026         * lib/argp-fmtstream.h: New file, from glibc.
59027         * lib/argp-fs-xinl.c: New file, from glibc.
59028         * lib/argp-help.c: New file, from glibc.
59029         * lib/argp-namefrob.h: New file, from glibc.
59030         * lib/argp-parse.c: New file, from glibc.
59031         * lib/argp-pv.c: New file, from glibc.
59032         * lib/argp-pvh.c: New file, from glibc.
59033         * lib/argp-xinl.c: New file, from glibc.
59034
59035 2003-06-10  Simon Josefsson  <jas@extundo.com>
59036
59037         * modules/strchrnul: New file.
59038
59039 2003-06-10  Simon Josefsson  <jas@extundo.com>
59040
59041         * modules/argp: New file.
59042
59043 2003-06-10  Simon Josefsson  <jas@extundo.com>
59044
59045         * m4/strchrnul.m4: New file.
59046
59047 2003-06-10  Simon Josefsson  <jas@extundo.com>
59048
59049         * lib/strchrnul.h: New file.
59050         * lib/strchrnul.c: New file.
59051
59052 2003-06-10  Bruno Haible  <bruno@clisp.org>
59053
59054         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
59055
59056 2003-06-07  Karl Berry  <karl@gnu.org>
59057
59058         * config/config.{guess,sub}: update from prep.
59059
59060 2003-06-07  Jim Meyering  <jim@meyering.net>
59061
59062         * modules/strtod: Use $(...) notation, not @...@ for
59063         AC_REPLACE'd variables.
59064         * modules/localcharset: Likewise.
59065
59066 2003-06-07  Jim Meyering  <jim@meyering.net>
59067
59068         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
59069         in place of my name in the copyright comment.
59070         Remove definition and uses of __P.
59071
59072         From coreutils.
59073         * lib/stat.c: Don't declare xmalloc explicitly.
59074         Instead, include "xalloc.h".
59075         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
59076         xrealloc, and xcalloc return values.
59077         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
59078         Improve comment.
59079         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
59080
59081 2003-06-07  Bruno Haible  <bruno@clisp.org>
59082
59083         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
59084         avoid AC_CONFIG_LINKS.
59085         * modules/fnmatch (Makefile.am): Use explicit creation rule for
59086         fnmatch.h, to avoid AC_CONFIG_LINKS.
59087         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
59088
59089 2003-06-07  Bruno Haible  <bruno@clisp.org>
59090
59091         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59092         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59093         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59094         directory.
59095         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59096         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59097         directory.
59098
59099 2003-06-06  Jim Meyering  <jim@meyering.net>
59100
59101         Merge from coreutils.
59102         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59103         Consolidate declarations and initializations of *_base* locals.
59104
59105         Merge from coreutils.
59106         This avoids a core dump on systems without GNU putenv,
59107         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59108         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59109         (unsetenv): New static function, from GNU libc.
59110         (rpl_putenv): Use it.
59111
59112         * lib/modechange.c: Remove trailing blanks.
59113
59114         Merge from coreutils.
59115         * lib/fsusage.c: Remove declaration of statfs.
59116         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59117
59118         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59119
59120 2003-06-06  Jim Meyering  <jim@meyering.net>
59121
59122         * lib/stdbool_.h: Renamed from stdbool.h.in.
59123
59124 2003-06-06  Jim Meyering  <jim@meyering.net>
59125             Bruno Haible  <bruno@clisp.org>
59126
59127         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59128         Adjust Makefile.am snippet not to redirect directly to target.
59129         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59130
59131 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59132
59133         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59134         mismatch, look in future quarters as well as past.  This fixes a
59135         bug when processing fall-backwards gaps immediately after a long
59136         period of daylight-saving time.
59137
59138         * lib/mktime.c: Assume freestanding C89 or better.
59139         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59140         (__P): Remove; not used.
59141         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59142         (mktime, not_equal_tm, print_tm, check_result,
59143         main): Use prototypes.  Use const * where appropriate.
59144         (main): Fix typo in testing code that uncovered by above changes.
59145         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59146
59147 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59148
59149         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59150         locale.h, localeconv.  This merges changes from coreutils.
59151
59152         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59153         It can be removed after the next Autoconf is released.
59154         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59155         needed.
59156
59157 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59158
59159         * lib/mktime.c: Fix Debian bug 177940
59160         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59161         (localtime_offset): Now long int, not time_t, because we want it
59162         to be guaranteed to be signed.  All uses changed.
59163         (__mktime_internal): If overflow would occur when adding offset,
59164         don't add it.
59165
59166         Merge 'human' changes from coreutils.  Rewrite to support
59167         locale-specific notations like thousands separators.
59168         * lib/human.c: Simplify authorship notice.
59169         Include human.h immediately after config.h.
59170         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59171         <limits.h>: Do not include, since human.h does.
59172         (SIZE_MAX, UINTMAX_MAX): New macros.
59173         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59174         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59175         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59176         (power_letter): Renamed from suffixes.
59177         (generate_suffix_backwards): Remove.
59178         (adjust_value): Now takes int style (because of human.h changes)
59179         and long double value (for greater precision on some platforms).
59180         (group_number): New function.
59181         (human_readable): Use it.  Use integer options, not enum.
59182         Put the options before the sizes in the arg list.
59183         Support all the new options.
59184         The old human_readable function has been removed;
59185         use inttostr.h instead.
59186         (human_readable, default_block_size, humblock):
59187         Use uintmax_t, not int, for block sizes.
59188         (human_readable_inexact, block_size_types): Remove.
59189         (block_size_opts): New constant.
59190         (human_options): Renamed from human_block_size, with new signature
59191         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59192         * lib/human.h: Add copyright and authorship notice.
59193         Include <limits.h> and <stdbool.h> unconditionally.
59194         (PARAMS): Remove.  All uses removed.
59195         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59196         (enum human_inexact_style): Remove tag; now a nameless enum.
59197         (human_floor, human_ceiling, human_round_to_even): Now have
59198         values 2, 0, 1 rather than -1, 1, 0.
59199         (human_group_digits, human_suppress_point_zero, human_autoscale,
59200         human_base_1024, human_SI, human_B): New constants.
59201         (human_readable_inexact, human_block_size): Remove.
59202         (human_readable): Size args are now uintmax_t, not int.
59203         (human_options): New decl.
59204
59205         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59206         unnecessary now that we assume C89 or better.  This change
59207         imported from coreutils.
59208
59209         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59210         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59211         in the 2003-05-30 sync from glibc.
59212
59213         .h files should stand alone, but we shouldn't include <sys/types.h>
59214         if we can get away with just <stddef.h>.
59215
59216         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59217         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59218         rather than <sys/types.h>, as we merely need size_t.
59219         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59220         to get size_t.
59221         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59222         Include <stdio.h>, to get FILE.
59223         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59224         memcasecmp.h has included <stddef.h> and all we need is size_t.
59225         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59226         our interface, instead of including <sys/types.h>
59227
59228 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59229
59230         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59231         now, as glibc mktime is buggy on non-glibc systems.
59232
59233 2003-06-03  Karl Berry  <karl@gnu.org>
59234
59235         * config/config.sub: update from prep.
59236
59237 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59238
59239         [from coreutils]
59240         Fix some minor time-related bugs with POSIX time arguments.
59241         Some valid time stamps were being rejected (notably -1, and
59242         time stamps before 1900 on 64-bit hosts).  And some invalid
59243         time stamps were being accepted, e.g. September 31.
59244
59245         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59246         that we can return (time_t) -1 successfully.
59247         * lib/posixtm.c: Likewise.
59248         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59249         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59250         (t): Remove static var.
59251         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59252         of static var.  All uses changed.
59253         (year): Do not reject years before 1900; they can occur with
59254         64-bit time_t.
59255         (posix_time_parse): Do not check for out-of-range components;
59256         that is now the caller's responsibility, since our checks were
59257         only approximations.
59258         (posixtime): Use mktime to check for out-of-range components,
59259         since it knows them exactly.
59260         If mktime returns (time_t) -1, check whether an error actually occurred
59261         by invoking localtime on -1.
59262         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59263         posixtime failures better.
59264         Improve the test data (in comments only).
59265
59266 2003-06-02  Karl Berry  <karl@gnu.org>
59267
59268         * config/mkinstalldirs (version): new variable.
59269         (--version): new option.
59270         (usage): improve message.
59271
59272 2003-05-30  Karl Berry  <karl@gnu.org>
59273
59274         * lib/mktime.c: update from libc.
59275
59276 2003-05-30  Bruno Haible  <bruno@clisp.org>
59277
59278         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59279         * config/config.rpath: Upgrade to gettext-0.12.1.
59280
59281 2003-05-30  Bruno Haible  <bruno@clisp.org>
59282
59283         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59284         * m4/nls.m4: New file, from gettext-0.12.1.
59285         * m4/po.m4: New file, from gettext-0.12.1.
59286         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59287
59288 2003-05-30  Bruno Haible  <bruno@clisp.org>
59289
59290         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59291         * lib/localcharset.h: Likewise.
59292         * lib/localcharset.c: Likewise.
59293
59294 2003-05-29  Karl Berry  <karl@gnu.org>
59295
59296         * config/config.rpath: update from gettext.
59297
59298 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59299
59300         Assume the headers required for C89 freestanding compilers.
59301         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59302         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59303         * m4/human.m4 (gl_HUMAN): Likewise.
59304         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59305         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59306         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59307         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59308         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59309         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59310
59311 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59312
59313         Assume the headers required for C89 freestanding compilers.
59314         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59315         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59316         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59317         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59318         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59319         define, since <limits.h> is guaranteed to do that.
59320         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59321         * lib/exclude.c: Include <stdbool.h> unconditionally.
59322         * lib/tempname.c: Include <stddef.h> unconditionally.
59323         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59324         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59325         <stddef.h> does that.
59326         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59327         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59328         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59329         needed.
59330         * lib/xstrtol.c: Likewise.
59331         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59332         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59333
59334         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59335         warnings on some platforms.
59336
59337         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59338         arbitrarily.
59339
59340 2003-05-26  Jim Meyering  <jim@meyering.net>
59341
59342         Merge in a change from coreutils:
59343         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59344         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59345         that condition, rather than `-1' which is slightly misleading.
59346         Change the name of the cache variable to have the gl_ prefix.
59347         Prompted by a patch from Richard Dawe for DJGPP.
59348
59349 2003-05-24  Karl Berry  <karl@gnu.org>
59350
59351         * config/config.guess: update from prep.
59352
59353 2003-05-22  Karl Berry  <karl@gnu.org>
59354
59355         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59356
59357 2003-05-20  Karl Berry  <karl@gnu.org>
59358
59359         * config/config.guess: update from prep.
59360
59361 2003-05-18  Karl Berry  <karl@gnu.org>
59362
59363         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59364         might actually be set by the user.
59365
59366         * config/depcomp, install-sh, mdate-sh: update from automake.
59367
59368 2003-05-17  Bruno Haible  <bruno@clisp.org>
59369
59370         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59371         invalid expansion for AC_EGREP_CPP.
59372         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59373         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59374         Suggested by Akim Demaille <akim@epita.fr> in
59375         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59376
59377 2003-05-12  Jim Meyering  <jim@meyering.net>
59378
59379         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59380         the space-padded-by-default conversion specifiers, %e, %k, %l.
59381
59382 2003-05-12  Bruno Haible  <bruno@clisp.org>
59383
59384         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59385         the string is longer than 4 KB.
59386
59387 2003-05-11  Karl Berry  <karl@gnu.org>
59388
59389         * config/config.{guess,sub}: update from prep.
59390
59391 2003-05-09  Bruno Haible  <bruno@clisp.org>
59392
59393         * modules/error: Add m4/strerror_r.m4 to file list.
59394
59395 2003-05-03  Bruno Haible  <bruno@clisp.org>
59396
59397         Upgrade to Unicode-4.0.
59398         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59399         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59400         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59401         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59402         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59403         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59404         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59405         Change width of U+E0100..U+E01EF from 1 to 0.
59406
59407 2003-04-25  Jim Meyering  <jim@meyering.net>
59408
59409         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59410         of type size_t, not int.
59411
59412 2003-04-25  Bruno Haible  <bruno@clisp.org>
59413
59414         * lib/copy-file.c: Include <stddef.h>, for size_t.
59415
59416 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59417
59418         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59419         code which expansion is under static control.  Patch imported from
59420         Akim Demaille's patch to Bison; see
59421         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59422
59423 2003-04-14  Bruno Haible  <bruno@clisp.org>
59424
59425         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59426
59427 2003-04-11  Jim Meyering  <jim@meyering.net>
59428
59429         Merge changes from Coreutils.
59430
59431         2003-03-22  Jim Meyering  <jim@meyering.net>
59432
59433         * lib/strftime.c (widen): Cast alloca return value to proper type.
59434
59435         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59436
59437         From GNU libc.
59438         * lib/strftime.c (my_strftime): Handle very large width
59439         specifications for numeric values correctly.  Improve checks for
59440         overflow.
59441
59442         2003-01-19  Jim Meyering  <jim@meyering.net>
59443
59444         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59445         definitions.
59446         (nl_get_alt_digit) [! defined my_strftime]: Define.
59447         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59448         _nl_get_alt_digit and _nl_get_walt_digit.
59449
59450         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59451         libc. These changes have no effect outside of _LIBC.
59452
59453 2003-04-10  Bruno Haible  <bruno@clisp.org>
59454
59455         * modules/findprog: New file.
59456         * MODULES.html.sh (func_all_modules): Add it.
59457
59458 2003-04-10  Bruno Haible  <bruno@clisp.org>
59459
59460         * m4/findprog.m4: New file.
59461         * m4/eaccess.m4: New file.
59462
59463 2003-04-10  Bruno Haible  <bruno@clisp.org>
59464
59465         * lib/findprog.h: New file, from GNU gettext.
59466         * lib/findprog.c: New file, from GNU gettext.
59467
59468 2003-04-05  Jim Meyering  <jim@meyering.net>
59469
59470         Merge changes from Coreutils.
59471
59472         * lib/exclude.h (PARAMS): Remove definition and uses.
59473         * lib/exclude.c: Remove uses of `PARAMS'.
59474
59475         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59476         Add test-cases for DOS filenames. Declare program_name.
59477         (main): Set up program_name.  Patch by Rich Dawe.
59478
59479         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59480         error from mntctl.
59481         Use mntctl's return value to drive the entry-processing loop, since
59482         we can't rely on the value of the vmt_length member in the last
59483         entry.  On some systems doing so could result in exhausting
59484         virtual memory.  Based in part on a patch from Mike Jetzer.
59485
59486 2003-04-04  Bruno Haible  <bruno@clisp.org>
59487
59488         * modules/linebreak: New file.
59489         * MODULES.html.sh (func_all_modules): Add it.
59490
59491 2003-04-04  Bruno Haible  <bruno@clisp.org>
59492
59493         * m4/linebreak.m4: New file.
59494
59495 2003-04-04  Bruno Haible  <bruno@clisp.org>
59496
59497         * lib/linebreak.h: New file, from GNU gettext.
59498         * lib/linebreak.c: New file, from GNU gettext with slight
59499         modifications.
59500         * lib/lbrkprop.h: New file, from GNU gettext.
59501
59502 2003-04-03  Bruno Haible  <bruno@clisp.org>
59503
59504         * modules/utf8-ucs4: New file.
59505         * modules/utf16-ucs4: New file.
59506         * modules/ucs4-utf8: New file.
59507         * modules/ucs4-utf16: New file.
59508         * MODULES.html.sh (func_all_modules): Add them.
59509
59510 2003-04-03  Bruno Haible  <bruno@clisp.org>
59511
59512         * m4/utf-ucs4.m4: New file.
59513         * m4/ucs4-utf.m4: New file.
59514
59515 2003-04-03  Bruno Haible  <bruno@clisp.org>
59516
59517         * lib/utf8-ucs4.h: New file, from GNU gettext.
59518         * lib/utf16-ucs4.h: New file, from GNU gettext.
59519         * lib/ucs4-utf8.h: New file, from GNU gettext.
59520         * lib/ucs4-utf16.h: New file, from GNU gettext.
59521
59522 2003-04-02  Bruno Haible  <bruno@clisp.org>
59523
59524         * modules/binary-io: New file.
59525         * MODULES.html.sh (func_all_modules): Add it.
59526
59527 2003-04-02  Bruno Haible  <bruno@clisp.org>
59528
59529         * lib/binary-io.h: New file, from GNU gettext.
59530
59531 2003-04-01  Bruno Haible  <bruno@clisp.org>
59532
59533         * modules/pathname: New file.
59534         * MODULES.html.sh (func_all_modules): Add it.
59535
59536 2003-04-01  Bruno Haible  <bruno@clisp.org>
59537
59538         * lib/pathname.h: New file, from GNU gettext.
59539         * lib/concatpath.c: New file, from GNU gettext.
59540
59541 2003-03-30  Bruno Haible  <bruno@clisp.org>
59542
59543         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59544
59545 2003-03-30  Bruno Haible  <bruno@clisp.org>
59546
59547         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59548         function chown() doesn't exist.
59549
59550 2003-03-28  Bruno Haible  <bruno@clisp.org>
59551
59552         * modules/copy-file: New file.
59553         * MODULES.html.sh (func_all_modules): Add it.
59554
59555 2003-03-28  Bruno Haible  <bruno@clisp.org>
59556
59557         * m4/copy-file.m4: New file.
59558
59559 2003-03-28  Bruno Haible  <bruno@clisp.org>
59560
59561         * lib/copy-file.h: New file, from GNU gettext.
59562         * lib/copy-file.c: New file, from GNU gettext.
59563
59564 2003-03-18  Jim Meyering  <jim@meyering.net>
59565
59566         * lib/quote.c (quote_n): Fix typo in comment.
59567
59568 2003-03-18  Bruno Haible  <bruno@clisp.org>
59569
59570         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59571         checking.
59572         * m4/onceonly_2_57.m4: Likewise.
59573
59574 2003-03-17  Bruno Haible  <bruno@clisp.org>
59575
59576         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59577         (m4_quote): Remove macro.
59578         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59579
59580 2003-03-14  Jim Meyering  <jim@meyering.net>
59581
59582         Merge changes from Coreutils.
59583         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59584         to be const, in order to avoid warnings.
59585         (obstack_room): Likewise.
59586         (obstack_empty_p): Likewise.
59587
59588 2003-03-14  Bruno Haible  <bruno@clisp.org>
59589
59590         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59591         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59592
59593 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59594
59595         Merge changes from Bison.
59596         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59597         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59598         when compiling Bison 1.875's `bitset bset = obstack_alloc
59599         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59600         * lib/hash.c: Include <stdbool.h> unconditionally.
59601
59602 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59603
59604         * m4/onceonly.m4 (m4_quote): New macro.
59605         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59606         Quote AC_FOREACH variable-expansions properly.
59607
59608 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59609
59610         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59611
59612 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59613
59614         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59615         Reported by Bruce Becker; see:
59616         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59617
59618 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59619             Bruno Haible  <bruno@clisp.org>
59620
59621         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59622         Reported by John Hughes, see
59623         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59624
59625 2003-02-20  Bruno Haible  <bruno@clisp.org>
59626
59627         * MODULES.html.sh (func_all_modules): Add poll.
59628
59629 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59630
59631         * modules/poll: New file.
59632
59633 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59634
59635         * lib/poll_.h: New file.
59636         * lib/poll.c: New file.
59637
59638 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59639
59640         * m4/poll.m4: New file.
59641
59642 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59643
59644         * modules/mathl: New file.
59645
59646 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59647
59648         * lib/mathl.h: New file.
59649         * lib/acosl.c: New file.
59650         * lib/asinl.c: New file.
59651         * lib/atanl.c: New file.
59652         * lib/ceill.c: New file.
59653         * lib/cosl.c: New file.
59654         * lib/expl.c: New file.
59655         * lib/floorl.c: New file.
59656         * lib/frexpl.c: New file.
59657         * lib/ldexpl.c: New file.
59658         * lib/logl.c: New file.
59659         * lib/sincosl.c: New file.
59660         * lib/sinl.c: New file.
59661         * lib/sqrtl.c: New file.
59662         * lib/tanl.c: New file.
59663         * lib/trigl.c: New file.
59664         * lib/trigl.h: New file.
59665
59666 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59667
59668         * m4/mathl.m4: New file.
59669
59670 2003-02-18  Bruno Haible  <bruno@clisp.org>
59671
59672         * MODULES.html.sh (func_all_modules): Add mathl.
59673
59674 2003-02-17  Bruno Haible  <bruno@clisp.org>
59675
59676         * modules/mkdtemp: New module.
59677         * MODULES.html.sh (func_all_modules): Add it.
59678
59679 2003-02-17  Bruno Haible  <bruno@clisp.org>
59680
59681         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59682
59683 2003-02-17  Bruno Haible  <bruno@clisp.org>
59684
59685         * lib/mkdtemp.h: New file, from GNU gettext.
59686         * lib/mkdtemp.c: New file, from GNU gettext.
59687
59688 2003-02-02  Jim Meyering  <jim@meyering.net>
59689
59690         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59691         e.g. glibc-2.2.93.
59692
59693 2003-01-31  Bruno Haible  <bruno@clisp.org>
59694
59695         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59696         'rpl_rename'.
59697         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59698         'rpl_strnlen'.
59699         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59700         'rpl_strtod'.
59701         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59702         'rpl_utime'.
59703
59704 2003-01-31  Bruno Haible  <bruno@clisp.org>
59705
59706         * lib/rename.c: #undef rename before defining rpl_rename.
59707         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59708
59709 2003-01-30  Bruno Haible  <bruno@clisp.org>
59710
59711         * modules/vasnprintf, modules/vasprintf: New modules.
59712         * MODULES.html.sh (func_all_modules): Add them.
59713
59714 2003-01-30  Bruno Haible  <bruno@clisp.org>
59715
59716         * m4/signed.m4: New file, from GNU gettext.
59717         * m4/longdouble.m4: New file, from GNU gettext.
59718         * m4/wchar_t.m4: New file, from GNU gettext.
59719         * m4/wint_t.m4: New file, from GNU gettext.
59720         * m4/vasnprintf.m4: New file.
59721         * m4/vasprintf.m4: New file.
59722
59723 2003-01-30  Bruno Haible  <bruno@clisp.org>
59724
59725         * lib/printf-args.h: New file, from GNU gettext.
59726         * lib/printf-args.c: New file, from GNU gettext.
59727         * lib/printf-parse.h: New file, from GNU gettext.
59728         * lib/printf-parse.c: New file, from GNU gettext.
59729         * lib/vasnprintf.h: New file, from GNU gettext.
59730         * lib/vasnprintf.c: New file, from GNU gettext.
59731         * lib/asnprintf.c: New file, from GNU gettext.
59732         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59733         * lib/vasprintf.c: New file, from GNU gettext.
59734         * lib/asprintf.c: New file, from GNU gettext.
59735
59736 2003-01-29  Bruno Haible  <bruno@clisp.org>
59737
59738         * modules/stpncpy: New module.
59739         * MODULES.html.sh (func_all_modules): Add it.
59740
59741 2003-01-29  Bruno Haible  <bruno@clisp.org>
59742
59743         * m4/stpncpy.m4: New file.
59744
59745 2003-01-29  Bruno Haible  <bruno@clisp.org>
59746
59747         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59748         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59749
59750 2003-01-28  Bruno Haible  <bruno@clisp.org>
59751
59752         * modules/c-ctype: New module.
59753         * MODULES.html.sh (func_all_modules): Add it.
59754
59755 2003-01-28  Bruno Haible  <bruno@clisp.org>
59756
59757         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59758         Paul Eggert.
59759         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59760         Paul Eggert.
59761
59762 2003-01-27  Bruno Haible  <bruno@clisp.org>
59763
59764         * modules/xsetenv: New module.
59765         * MODULES.html.sh (func_all_modules): Add it.
59766
59767 2003-01-27  Bruno Haible  <bruno@clisp.org>
59768
59769         * lib/xsetenv.h: New file, from GNU gettext.
59770         * lib/xsetenv.c: New file, from GNU gettext.
59771
59772 2003-01-23  Jim Meyering  <jim@meyering.net>
59773
59774         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59775         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59776
59777 2003-01-23  Bruno Haible  <bruno@clisp.org>
59778
59779         * modules/minmax: New module.
59780         * MODULES.html.sh (func_all_modules): Add it.
59781
59782 2003-01-23  Bruno Haible  <bruno@clisp.org>
59783
59784         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59785         Eggert.
59786
59787 2003-01-22  Bruno Haible  <bruno@clisp.org>
59788
59789         * modules/exit: New module.
59790         * MODULES.html.sh (func_all_modules): Add it.
59791
59792 2003-01-22  Bruno Haible  <bruno@clisp.org>
59793
59794         * lib/exit.h: New file, from GNU gettext.
59795
59796 2003-01-19  Bruno Haible  <bruno@clisp.org>
59797
59798         * gnulib-tool: Recognize option --extract-maintainer.
59799         (func_get_maintainer): New function.
59800         * modules/*: Add Maintainer entry.
59801
59802 2003-01-16  Jim Meyering  <jim@meyering.net>
59803
59804         * m4/regex.m4: The `regex' struct is both input and output.
59805         Initialize it before each use.  Patch by Tim Waugh.
59806
59807 2003-01-16  Bruno Haible  <bruno@clisp.org>
59808
59809         * MODULES.html.sh: Add a table of contents. Add the module name as
59810         leftmost column. Add hyperlinks.
59811
59812 2003-01-15  Bruno Haible  <bruno@clisp.org>
59813
59814         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59815
59816 2003-01-15  Bruno Haible  <bruno@clisp.org>
59817
59818         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59819         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59820         suffix.
59821
59822 2003-01-15  Bruno Haible  <bruno@clisp.org>
59823
59824         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59825
59826 2003-01-15  Bruno Haible  <bruno@clisp.org>
59827
59828         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59829         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59830
59831 2003-01-14  Jim Meyering  <jim@meyering.net>
59832
59833         * lib/same.c (same_name): Tweak a comment.
59834
59835 2003-01-14  Bruno Haible  <bruno@clisp.org>
59836
59837         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59838         when a string comparison is sufficient.
59839
59840 2003-01-14  Bruno Haible  <bruno@clisp.org>
59841
59842         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59843         'unsigned int'.
59844
59845 2003-01-14  Bruno Haible  <bruno@clisp.org>
59846
59847         * lib/hash-pjw.c: Add comment about low quality of this function.
59848
59849 2003-01-13  Bruno Haible  <bruno@clisp.org>
59850
59851         * modules/stpcpy: Distribute lib/stpcpy.h.
59852         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59853
59854 2003-01-13  Bruno Haible  <bruno@clisp.org>
59855
59856         * modules/*: Add a description.
59857         * modules/strpbrk: Fix Makefile.am snippet.
59858         * modules/strtoimax: Fix dependencies.
59859         * modules/strtoumax: Likewise.
59860
59861 2003-01-13  Bruno Haible  <bruno@clisp.org>
59862
59863         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59864         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59865         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59866
59867 2003-01-13  Bruno Haible  <bruno@clisp.org>
59868
59869         * gnulib-tool (func_create_testdir): Store config/* files in the main
59870         directory.
59871         * config.rpath: Move to ...
59872         * config/config.rpath: ... here.
59873         * modules/gettext: Contains config/config.rpath, not config.rpath.
59874         * modules/iconv: Likewise.
59875
59876 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59877
59878         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59879         to avoid collisions with libcurses and libreadline.
59880
59881         * m4/getstr.m4: Remove.
59882         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59883
59884 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59885
59886         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59887         to avoid collisions with libcurses and libreadline.
59888
59889         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59890         * lib/getstr.h, getstr.c: Remove.
59891         * lib/getline.c: Include "getline.h", to check interface.
59892         Move body of old getstr.c here: this defines MIN_CHUNK and
59893         declares getdelim2, which is renamed from getstr.
59894         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59895
59896         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59897         All uses changed.
59898         * lib/linebuffer.h: Likewise.
59899         (readline): Remove backward-compatibility macro.
59900
59901 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59902
59903         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59904         to avoid collisions with libcurses and libreadline.
59905         * getstr: Remove.
59906         * MODULES.html.sh: Remove getstr.
59907         * modules/getline: Depend on unlocked-io, not getstr.
59908
59909 2003-01-12  Jim Meyering  <jim@meyering.net>
59910
59911         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59912
59913 2003-01-10  Bruno Haible  <bruno@clisp.org>
59914
59915         * modules/alloca: Change Makefile.am requirements. Simplify Include
59916         requirements. Add lib/alloca_.h to file list.
59917
59918 2003-01-10  Bruno Haible  <bruno@clisp.org>
59919
59920         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59921
59922 2003-01-10  Bruno Haible  <bruno@clisp.org>
59923
59924         * lib/alloca_.h: New file.
59925         * lib/getdate.y: Unconditionally include alloca.h.
59926         * lib/makepath.c: Likewise.
59927         * lib/setenv.c: Likewise.
59928         * lib/userspec.c: Likewise.
59929
59930 2003-01-09  Karl Berry  <karl@gnu.org>
59931
59932         * MODULES.html.sh: include `dirname $0` in PATH, to find
59933         gnulib-tool.
59934
59935 2003-01-09  Bruno Haible  <bruno@clisp.org>
59936
59937         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59938         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59939
59940 2003-01-09  Bruno Haible  <bruno@clisp.org>
59941
59942         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59943
59944 2003-01-09  Bruno Haible  <bruno@clisp.org>
59945
59946         * lib/stdbool.h.in: New file.
59947
59948 2003-01-09  Bruno Haible  <bruno@clisp.org>
59949
59950         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59951         * MODULES.html.sh: Likewise.
59952
59953 2003-01-08  Jim Meyering  <jim@meyering.net>
59954
59955         * lib/full-write.c: Undefine and define-away `const' after inclusion
59956         of errno.h, not before.  Suggestion from Bruno Haible.
59957
59958 2003-01-08  Bruno Haible  <bruno@clisp.org>
59959
59960         * modules/full-read: Depend on full-write.
59961
59962 2003-01-08  Bruno Haible  <bruno@clisp.org>
59963
59964         * lib/safe-read.c: Include specification header first, to ensure its
59965         selfcontainedness.
59966         * lib/full-write.c: Likewise.
59967
59968 2003-01-07  Jim Meyering  <jim@meyering.net>
59969
59970         * lib/full-write.c: Rework so that it may serve to define full_read,
59971         too.
59972         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59973
59974 2003-01-07  Bruno Haible  <bruno@clisp.org>
59975
59976         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59977         <inttypes.h>.
59978         * lib/xstrtol.h: Likewise.
59979         * lib/xstrtoimax.c: Likewise.
59980         * lib/xstrtoumax.c: Likewise.
59981         * lib/human.h: Likewise.
59982
59983         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59984         on systems that have <inttypes.h> but not <stdint.h>.
59985
59986 2003-01-07  Bruno Haible  <bruno@clisp.org>
59987
59988         * MODULES.html.sh: Add copyright notice.
59989         (missed_files): Omit CVS directory entries.
59990         (func_module): Make it work with sed-3.02.
59991         * MODULES.txt: Remove file.
59992
59993 2003-01-06  Jim Meyering  <jim@meyering.net>
59994
59995         * lib/version-etc.c: Update year in translatable copyright string.
59996
59997 2003-01-03  Karl Berry  <karl@gnu.org>
59998
59999         * config/config.{guess,sub}: update from prep.
60000
60001 2003-01-02  Karl Berry  <karl@gnu.org>
60002
60003         * doc/COPYING.DOC: belatedly updated to 1.2.
60004
60005 2003-01-01  Karl Berry  <karl@gnu.org>
60006
60007         * gnulib-tool (func_verify_module): report module name $module in
60008         error message, not $1.
60009         * gnulib-tool (create-testdir): don't complain if destdir couldn't
60010         be created, only if it doesn't exist.
60011         * gnulib-tool (last_checkin_date): don't expand the $Date here.
60012
60013 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60014
60015         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
60016
60017 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60018
60019         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
60020         memcmp if strcoll doesn't work.
60021
60022 2002-12-31  Bruno Haible  <bruno@clisp.org>
60023
60024         * lib/utime.c (utime_null): No need to call ftruncate if the file was
60025         nonempty.
60026
60027 2002-12-31  Bruno Haible  <bruno@clisp.org>
60028
60029         * lib/memcoll.c (STRCOLL): New macro.
60030         (memcoll): Use it.
60031
60032 2002-12-31  Bruno Haible  <bruno@clisp.org>
60033
60034         * lib/localcharset.h: New file.
60035         * lib/localcharset.c: Include it.
60036         * lib/unicodeio.c: Likewise.
60037
60038 2002-12-31  Bruno Haible  <bruno@clisp.org>
60039
60040         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
60041         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
60042
60043 2002-12-31  Bruno Haible  <bruno@clisp.org>
60044
60045         * lib/getline.h: Include <stddef.h>, for size_t.
60046
60047         * lib/unicodeio.h: Include <stddef.h>, for size_t.
60048         * lib/unicodeio.c: Don't include <stddef.h>.
60049
60050 2002-12-31  Bruno Haible  <bruno@clisp.org>
60051
60052         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
60053         HAVE_TM_ZONE.
60054
60055 2002-12-24  Karl Berry  <karl@gnu.org>
60056
60057         * config/config.guess: update from prep.
60058
60059 2002-12-24  Bruno Haible  <bruno@clisp.org>
60060
60061         General infrasructure.
60062         * m4/README: Rewritten.
60063         * m4/onceonly.m4: New file.
60064         * m4/onceonly_2_57.m4: New file.
60065
60066         Module atexit.
60067         * m4/atexit.m4: New file.
60068
60069         Module strtod.
60070         * m4/strtod.m4: New file.
60071
60072         Module strtol.
60073         * m4/strtol.m4: New file.
60074
60075         Module strtoul.
60076         * m4/strtoul.m4: New file.
60077
60078         Module memchr.
60079         * m4/memchr.m4: New file.
60080
60081         Module memcmp.
60082         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
60083         (jm_FUNC_MEMCMP): Invoke it.
60084
60085         Module memcpy.
60086         * m4/memcpy.m4: New file.
60087
60088         Module memmove.
60089         * m4/memmove.m4: New file.
60090
60091         Module memset.
60092         * m4/memset.m4: New file.
60093
60094         Module strcspn.
60095         * m4/strcspn.m4: New file.
60096
60097         Module strpbrk.
60098         * m4/strpbrk.m4: New file.
60099
60100         Module strstr.
60101         * m4/strstr.m4: New file.
60102
60103         Module strerror.
60104         * m4/strerror.m4: New file.
60105
60106         Module mktime.
60107         * m4/mktime.m4: Renamed from jm-mktime.m4.
60108         (gl_PREREQ_MKTIME): New macro.
60109         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60110
60111         Module malloc.
60112         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60113         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60114         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60115
60116         Module realloc.
60117         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60118         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60119         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60120
60121         Module strftime.
60122         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60123         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60124         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60125         gl_TM_GMTOFF.
60126         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60127
60128         Module xalloc.
60129         * m4/xalloc.m4: New file.
60130
60131         Module alloca.
60132         * m4/alloca.m4: New file.
60133
60134         Module putenv.
60135         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60136         (jm_FUNC_PUTENV): Invoke it.
60137
60138         Module setenv.
60139         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60140         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60141         when invoked twice.
60142         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60143         gt_FUNC_SETENV.
60144
60145         Module memrchr.
60146         * m4/memrchr.m4: New file.
60147
60148         Module stpcpy.
60149         * m4/stpcpy.m4: New file.
60150
60151         Module strcase.
60152         * m4/strcase.m4: New file.
60153
60154         Module strdup.
60155         * m4/strdup.m4: New file.
60156
60157         Module strnlen.
60158         * m4/strnlen.m4: New file.
60159
60160         Module strndup.
60161         * m4/strndup.m4: New file.
60162
60163         Module xstrtod.
60164         * m4/xstrtod.m4: New file.
60165
60166         Module xstrtol.
60167         * m4/xstrtol.m4: New file.
60168
60169         Module getdate.
60170         * m4/getdate.m4: New file.
60171
60172         Module unlocked-io.
60173         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60174         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60175         * m4/jm-glibc-io.m4n: Remove file.
60176
60177         Module long-options.
60178         * m4/long-options.m4: New file.
60179
60180         Module md5.
60181         * m4/md5.m4: New file.
60182
60183         Module sha.
60184         * m4/sha.m4: New file.
60185
60186         Module getstr.
60187         * m4/getstr.m4: New file.
60188
60189         Module getline.
60190         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60191         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60192         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60193         simply getline. Infoke gl_PREREQ_GETLINE.
60194
60195         Module obstack.
60196         * m4/obstack.m4: New file.
60197
60198         Module hash.
60199         * m4/hash.m4: New file.
60200
60201         Module readtokens.
60202         * m4/readtokens.m4: New file.
60203
60204         Module strverscmp.
60205         * m4/strverscmp.m4: New file.
60206
60207         Module stdbool.
60208         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60209         OSF/1.
60210
60211         Module strtoll.
60212         * m4/strtoll.m4: New file.
60213
60214         Module strtoull.
60215         * m4/strtoull.m4: New file.
60216
60217         Module strtoimax.
60218         * m4/strtoimax.m4: New file.
60219
60220         Module strtoumax.
60221         * m4/strtoumax.m4: New file.
60222
60223         Module xstrtoimax.
60224         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60225         jm_AC_PREREQ_XSTRTOIMAX.
60226         Moved the strtol prerequisites to strtol.m4.
60227         Moved the strtoll prerequisites to strtoll.m4.
60228         Moved the strtoimax prerequisites to strtoimax.m4.
60229
60230         Module xstrtoumax.
60231         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60232         jm_AC_PREREQ_XSTRTOUMAX.
60233         Moved the strtoul prerequisites to strtoul.m4.
60234         Moved the strtoull prerequisites to strtoull.m4.
60235         Moved the strtoumax prerequisites to strtoumax.m4.
60236
60237         Module chown.
60238         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60239         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60240
60241         Module dup2.
60242         * m4/dup2.m4: New file.
60243
60244         Module ftruncate.
60245         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60246         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60247
60248         Module getgroups.
60249         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60250         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60251
60252         Module gettimeofday.
60253         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60254         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60255         gl_PREREQ_GETTIMEOFDAY.
60256
60257         Module mkdir.
60258         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60259         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60260
60261         Module mkstemp.
60262         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60263         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60264         jm_AC_TYPE_UINTMAX_T.
60265         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60266
60267         Module stat.
60268         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60269         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60270
60271         Module lstat.
60272         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60273         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60274
60275         Module timespec.
60276         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60277         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60278         * m4/st_mtim.m4: Indentation.
60279
60280         Module nanosleep.
60281         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60282         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60283         gl_PREREQ_NANOSLEEP.
60284
60285         Module regex.
60286         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60287         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60288         (gl_REGEX): New macro.
60289
60290         Module rename.
60291         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60292         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60293
60294         Module rmdir.
60295         * m4/rmdir.m4: New file.
60296
60297         Module utime.
60298         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60299         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60300         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60301
60302         Module dirname.
60303         * m4/dirname.m4: New file.
60304
60305         Module getopt.
60306         * m4/getopt.m4: New file.
60307
60308         Module unistd-safer.
60309         * m4/unistd-safer.m4: New file.
60310
60311         Module fnmatch.
60312         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60313         declaration.
60314         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60315         (gl_FUNC_FNMATCH_POSIX): New macro.
60316         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60317         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60318         simply fnmatch.
60319
60320         Module exclude.
60321         * m4/exclude.m4: New file.
60322
60323         Module human.
60324         * m4/human.m4: New file.
60325
60326         Module acl.
60327         * m4/acl.m4: Nop.
60328
60329         Module backupfile.
60330         * m4/backupfile.m4: New file.
60331         * m4/d-ino.m4: Indentation.
60332
60333         Module fsusage.
60334         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60335         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60336         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60337
60338         Module dirfd.
60339         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60340         requirements.
60341
60342         Module euidaccess.
60343         * m4/euidaccess.m4: New file.
60344
60345         Module file-type.
60346         * m4/file-type.m4: New file.
60347
60348         Module fileblocks.
60349         * m4/fileblocks.m4: New file.
60350
60351         Module filemode.
60352         * m4/filemode.m4: New file.
60353
60354         Module isdir.
60355         * m4/isdir.m4: New file.
60356
60357         Module lchown.
60358         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60359         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60360
60361         Module makepath.
60362         * m4/makepath.m4: New file.
60363
60364         Module modechange.
60365         * m4/modechange.m4: New file.
60366
60367         Module mountlist.
60368         * m4/mountlist.m4: New file.
60369         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60370         Indentation.
60371
60372         Module path-concat.
60373         * m4/path-concat.m4: New file.
60374
60375         Module pathmax.
60376         * m4/pathmax.m4: New file.
60377
60378         Module same.
60379         * m4/same.m4: New file.
60380
60381         Module save-cwd.
60382         * m4/save-cwd.m4: New file.
60383
60384         Module savedir.
60385         * m4/savedir.m4: New file.
60386
60387         Module xgetcwd.
60388         * m4/xgetcwd.m4: New file.
60389         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60390
60391         Module xreadlink.
60392         * m4/xreadlink.m4: New file.
60393
60394         Module safe-read.
60395         * m4/safe-read.m4: New file.
60396
60397         Module safe-write.
60398         * m4/safe-write.m4: New file.
60399
60400         Module closeout.
60401         * m4/closeout.m4: New file.
60402
60403         Module stdio-safer.
60404         * m4/stdio-safer.m4: New file.
60405
60406         Module getpass.
60407         * m4/getpass.m4: New file.
60408
60409         Module getugroups.
60410         * m4/getugroups.m4: New file.
60411
60412         Module group-member.
60413         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60414         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60415
60416         Module idcache.
60417         * m4/idcache.m4: New file.
60418
60419         Module userspec.
60420         * m4/userspec.m4: New file.
60421
60422         Module gettime.
60423         * m4/clock_time.m4: New file.
60424         * m4/gettime.m4: New file.
60425
60426         Module settime.
60427         * m4/settime.m4: New file.
60428
60429         Module posixtm.
60430         * m4/posixtm.m4: New file.
60431
60432         Module gethostname.
60433         * m4/gethostname.m4: New file.
60434
60435         Module canon-host.
60436         * m4/canon-host.m4: New file.
60437
60438         Module gettext.
60439         * m4/codeset.m4: New file, from gettext-0.11.5.
60440         * m4/gettext.m4: New file, from gettext-0.11.5.
60441         * m4/glibc21.m4: New file, from gettext-0.11.5.
60442         * m4/iconv.m4: New file, from gettext-0.11.5.
60443         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60444         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60445         * m4/inttypes.m4: New file, from gettext-0.11.5.
60446         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60447         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60448         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60449         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60450         * m4/lib-link.m4: New file, from gettext-0.11.5.
60451         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60452         * m4/progtest.m4: New file, from gettext-0.11.5.
60453         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60454         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60455         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60456
60457         Module localcharset.
60458         * m4/localcharset.m4: New file.
60459
60460         Module hard-locale.
60461         * m4/hard-locale.m4: New file.
60462
60463         Module mbswidth.
60464         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60465         onceonly macros.
60466         * m4/mbrtowc.m4: Add comment.
60467
60468         Module memcasecmp.
60469         * m4/memcasecmp.m4: New file.
60470
60471         Module memcoll.
60472         * m4/memcoll.m4: New file.
60473
60474         Module unicodeio.
60475         * m4/unicodeio.m4: New file.
60476
60477         Module rpmatch.
60478         * m4/rpmatch.m4: New file.
60479
60480         Module yesno.
60481         * m4/yesno.m4: New file.
60482
60483         Module exitfail.
60484         * m4/exitfail.m4: New file.
60485
60486         Module c-stack.
60487         * m4/c-stack.m4 (gl_C_STACK): New macro.
60488         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60489
60490         Module error.
60491         * m4/error.m4 (gl_ERROR): New macro.
60492         (jm_PREREQ_ERROR): Use onceonly macros.
60493
60494         Module fatal.
60495         * m4/fatal.m4: New file.
60496
60497         Module getloadavg.
60498         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60499         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60500
60501         Module getpagesize.
60502         * m4/getpagesize.m4: New file.
60503
60504         Module getusershell.
60505         * m4/getusershell.m4: New file.
60506
60507         Module physmem.
60508         * m4/physmem.m4: New file.
60509
60510         Module posixver.
60511         * m4/posixver.m4: New file.
60512
60513         Module quotearg.
60514         * m4/quotearg.m4: New file.
60515
60516         Module quote.
60517         * m4/quote.m4: New file.
60518
60519         Module readutmp.
60520         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60521
60522         Module sig2str.
60523         * m4/sig2str.m4: New file.
60524
60525         Other.
60526         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60527         ulonglong.m4.
60528         * m4/intmax_t.m4: New file.
60529         * m4/d-type.m4: Indentation.
60530         * m4/jm-macros.m4: Update.
60531         * m4/prereq.m4 (jm_PREREQ): Update.
60532         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60533         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60534         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60535         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60536         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60537         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60538         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60539         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60540         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60541         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60542         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60543         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60544         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60545         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60546         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60547         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60548         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60549         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60550         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60551
60552 2002-12-24  Bruno Haible  <bruno@clisp.org>
60553
60554         * MODULES.txt: Update according to m4/ changes.
60555
60556         Module gettext.
60557         * config.rpath: New file, from gettext-0.11.5.
60558
60559         * modules/*: New module descriptions.
60560         * gnulib-tool: New file.
60561         * MODULES.html.sh: New file.
60562
60563 2002-12-21  Karl Berry  <karl@gnu.org>
60564
60565         * doc/fdl.texi: update to version 1.2.
60566
60567 2002-12-19  Karl Berry  <karl@gnu.org>
60568
60569         * config/config.guess: update from prep.
60570
60571 2002-12-18  Bruno Haible  <bruno@clisp.org>
60572
60573         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60574         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60575
60576 2002-12-17  Bruno Haible  <bruno@clisp.org>
60577
60578         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60579         stdlib.h, string.h.
60580
60581 2002-12-17  Bruno Haible  <bruno@clisp.org>
60582
60583         * lib/canon-host.c (strdup): Remove unused declaration.
60584
60585         * lib/fsusage.c: Include full_read.h.
60586         (get_fs_usage): Use full_read instead of safe_read.
60587
60588         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60589
60590 2002-12-12  Karl Berry  <karl@gnu.org>
60591
60592         * config/config.guess: update from prep.
60593
60594 2002-12-11  Bruno Haible  <bruno@clisp.org>
60595
60596         * m4/setenv.m4: New file, from gettext-0.11.5.
60597
60598 2002-12-11  Bruno Haible  <bruno@clisp.org>
60599
60600         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60601         not unsetenv().
60602         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60603         modifications:
60604
60605         2002-12-11  Bruno Haible  <bruno@clisp.org>
60606
60607                 * setenv.c (alloca): Fall back to malloc.
60608                 (freea): New macro.
60609                 (setenv): Use freea() to free memory allocated with alloca().
60610
60611         2002-11-13  Bruno Haible  <bruno@clisp.org>
60612
60613                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60614                 function declarations.
60615                 * unsetenv.c (unsetenv): Likewise.
60616
60617         2002-03-04  Bruno Haible  <bruno@clisp.org>
60618
60619                 Portability to AIX 4.3.3.
60620                 * unsetenv.c: New file, extracted from setenv.c.
60621                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60622
60623         2001-12-20  Bruno Haible  <bruno@clisp.org>
60624
60625                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60626                 use malloc instead. For SunOS 4.
60627
60628         2001-12-11  Bruno Haible  <bruno@clisp.org>
60629
60630                 * setenv.c: Declare alloca.
60631                 (compar_fn_t): New typedef.
60632                 (KNOWN_VALUE, STORE_VALUE): Use it.
60633
60634         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60635         setenv.h.
60636
60637 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60638
60639         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60640         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60641         Choose values that are less likely to collide with system fnmatch
60642         options.
60643         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60644         defined (e.g., a pure POSIX system).
60645         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60646         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60647
60648 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60649
60650         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60651         a pain in practice to deal with generated m4 files.  This change
60652         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60653
60654         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60655         and jm-glibc-io.m4, as they are no longer a special case.
60656         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60657         kludge and the auto-generation stuff.  Check only whether the
60658         functions are declared, not whether they exist, since older hosts
60659         that don't declare the functions can't use the optimization anyway.
60660
60661 2002-12-06  Jim Meyering  <jim@meyering.net>
60662
60663         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60664
60665         Merge in changes from libc's misc/error.c, in preparation
60666         for the merge of gnulib's changes back into libc.
60667
60668         * lib/error.c (_): Define only if not already defined.
60669         Move definition to follow all #include directives.
60670         Include unlocked-io.h only if !_LIBC.
60671         [_LIBC]: Include <libio/libioP.h>.
60672         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60673         (fflush): Tweak definition to use INTUSE.
60674         (putc): Define.
60675
60676 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60677
60678         * lib/alloca.c [defined emacs]: Include "lisp.h".
60679         (xalloc_die) [defined emacs]: New macro.
60680         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60681         [! defined emacs]: Include <xalloc.h>.
60682         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60683         (pointer): Typedef to POINTER_TYPE *.
60684         (malloc): Remove decl; we now always use xmalloc.
60685         (alloca): Use old-style definition, since Emacs needs this.
60686         Check for arithmetic overflow when computing combined size.
60687
60688 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60689
60690         Do not generate unlocked-io.h automatically, since it's easier to
60691         maintain it by hand.
60692
60693         * lib/unlocked-io.h: New file, from GNU diffutils,
60694         but with proper copyright notice and attribution.
60695         * lib/gen-uio: Remove.
60696         * lib/Makefile.am: Add copyright notice.
60697         (libfetish_a_SOURCES): Add unlocked-io.h.
60698         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60699         (DISTCLEANFILES, io_functions): Remove macros.
60700         (EXTRA_DIST): Remove gen_uio.
60701         (unlocked-io.h): Remove rule.
60702
60703 2002-12-04  Jim Meyering  <jim@meyering.net>
60704
60705         Reflect the fact that stat.c and lstat.c are no longer generated.
60706         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60707         (DISTCLEANFILES): Likewise.
60708         (EXTRA_DIST): Likewise.
60709         (all_local): Don't depend on stat.c or lstat.c.
60710         (stat.c, lstat.c): Remove rules.
60711         (EXTRA_DIST): Remove xstat.in.
60712
60713         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60714         * lib/stat.c: New file.  Contents mostly from xstat.in.
60715         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60716         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60717
60718         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60719         too.
60720         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60721
60722 2002-12-03  Jim Meyering  <jim@meyering.net>
60723
60724         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60725         but not semantics, to minimize the differences between these two files.
60726         (safe_read): Change comment to mention SAFE_READ_ERROR.
60727
60728         * lib/safe-read.c (IS_EINTR): Define.
60729         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60730
60731 2002-12-02  Jim Meyering  <jim@meyering.net>
60732
60733         * lib/safe-read.c (EINTR): Define.
60734         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60735         (INT_MAX): Provide fallback.
60736         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60737
60738         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60739
60740 2002-12-02  Bruno Haible  <bruno@clisp.org>
60741
60742         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60743         Define, taken from safe-read.c.
60744         (INT_MAX): Provide fallback.
60745         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60746         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60747
60748         * lib/safe-read.c (EINTR): Remove definition.
60749         (safe_read): Don't use EINTR if it is absent.
60750
60751 2002-12-01  Jim Meyering  <jim@meyering.net>
60752
60753         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60754         zero.
60755         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60756
60757 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60758
60759         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60760         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60761         with `if (! (value < limit)) abort ();', for readability.
60762
60763 2002-11-26  Karl Berry  <karl@gnu.org>
60764
60765         * lib/strdup.c: copy from libc again, with jim's ok.
60766         * lib/.cppi-disable: re-add strdup.c
60767
60768 2002-11-25  Karl Berry  <karl@gnu.org>
60769
60770         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60771         instead of "strtol.c".
60772
60773 2002-11-25  Karl Berry  <karl@gnu.org>
60774
60775         * config/install-sh: update from automake for variable quoting, $0 in
60776         error msgs, etc.
60777
60778         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60779         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60780         entry.
60781
60782 2002-11-25  Jim Meyering  <jim@meyering.net>
60783
60784         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60785
60786 2002-11-24  Karl Berry  <karl@gnu.org>
60787
60788         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60789         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60790
60791 2002-11-24  Jim Meyering  <jim@meyering.net>
60792
60793         Update from coreutils:
60794
60795         * lib/mktime.c: Merge in changes from libc.
60796
60797         Avoid a link-time failure on some Linux systems.
60798         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60799         (otherwise).
60800         (__mon_yday): Declare with the STATIC attribute.
60801         (__mktime_internal): Likewise.
60802         Based on a report from Greg Schafer.
60803
60804 2002-11-23  Jim Meyering  <jim@meyering.net>
60805
60806         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60807         Use `unsigned', not `int', as type of index.
60808
60809         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60810
60811         * lib/fsusage.c: Remove unneeded parentheses around operands of
60812         `defined'.
60813
60814 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60815
60816         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60817         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60818         so that we can be included first.
60819         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60820         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60821         No need to include stddef.h or sys/types.h any more.
60822         Surround local include files with "", not "<>".
60823         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60824         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60825         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60826         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60827         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60828         (ISPRINT): Remove; no longer needed now that we assume C89.
60829
60830         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60831         Preserve errno.
60832
60833         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60834         quotearg_char): Use SIZE_MAX rather than
60835         (size_t) -1 when we are talking about "infinity".
60836
60837         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60838
60839 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60840
60841         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60842         hint that one should use `if (! x) abort ();' rather than `assert
60843         (x);', and anyway it's one less thing to worry about configuring.
60844         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60845         hash_rehash, hash_insert): Use abort rather than assert.
60846
60847 2002-11-22  Bruno Haible  <bruno@clisp.org>
60848
60849         * lib/safe-read.h: Assume C89. Add comments.
60850         (safe_read): Change return type to size_t.
60851         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60852         byte counts > SSIZE_MAX correctly.
60853         * lib/safe-write.h: New file.
60854         * lib/safe-write.c: New file.
60855         * lib/full-read.h: New file.
60856         * lib/full-read.c: New file.
60857         * lib/full-write.h: Assume C89. Add comments.
60858         * lib/full-write.c: Include safe-write.h.
60859         (full_write): Rewritten to use safe_write.
60860         Suggested by Jim Meyering and Paul Eggert.
60861
60862 2002-11-21  Jim Meyering  <jim@meyering.net>
60863
60864         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60865
60866         Merge in changes from the coreutils.
60867
60868         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60869         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60870         <stdint.h>.
60871         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60872         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60873         int.  Work more efficiently if X is the same width as uintmax_t.
60874         Do not compare X to -1, to avoid bogus compiler warning.
60875         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60876         Don't assume that f_frsize and f_bsize are the same type.
60877
60878         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60879         warning on FreeBSD.
60880
60881         * lib/makepath.c (make_path): Restore umask *before* creating the final
60882         component.
60883         (make_path): Minor reformatting.
60884
60885         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60886         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60887         HAVE_MALLOC/HAVE_REALLOC.
60888
60889         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60890         dummy ones.  At least on GNU/Linux systems, `auto' means something
60891         else.
60892         From Michael Stone.
60893
60894 2002-11-21  Bruno Haible  <bruno@clisp.org>
60895
60896         Remove case insensitive option matching.
60897         * lib/argmatch.h (argcasematch): Remove declaration.
60898         (ARGCASEMATCH): Remove macro.
60899         (__xargmatch_internal): Remove case_sensitive argument.
60900         (XARGMATCH): Update.
60901         (XARGCASEMATCH): Remove macro.
60902         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60903         case_sensitive argument.
60904         (argcasematch): Remove function.
60905         (__xargmatch_internal): Remove case_sensitive argument.
60906         (main): Use XARGMATCH instead of XARGCASEMATCH.
60907
60908         * lib/xmalloc.c: Change compile-time error message. Add comment about
60909         required autoconf version.
60910
60911 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60912
60913         Merge argmatch cleanups from Bison.  Assume C89.
60914
60915         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60916         Include stdlib.h, for EXIT_FAILURE.
60917         Always include <string.h>, since we assume C89.
60918         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60919         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60920         Include <stddef.h> instead, since it's all we need for size_t.
60921         (PARAMS): Remove.  All uses removed.
60922         (ARRAY_CARDINALITY): Do not bother to #undef.
60923         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60924         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60925         Remove unnecessary parentheses.
60926         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60927         Insert necessary parentheses.
60928         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60929         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60930
60931 2002-11-19  Bruno Haible  <bruno@clisp.org>
60932
60933         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60934         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60935
60936         * lib/mbswidth.h (PARAMS): Remove macro.
60937         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60938         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60939
60940         * lib/gcd.h (PARAMS): Remove macro.
60941         (gcd): Use ANSI C function declarations.
60942         * lib/gcd.c (gcd): Likewise.
60943
60944 2002-11-15  Bruno Haible  <bruno@clisp.org>
60945
60946         * lib/strcspn.c: Include <stddef.h>.
60947         (strcspn): Use ANSI C function declaration. Change return type to
60948         size_t. Use NULL.
60949         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60950         (strpbrk): Use NULL.
60951         * lib/strpbrk.h (PARAMS): Remove macro.
60952         (strpbrk): Use ANSI C function declaration.
60953         * lib/strstr.c: Don't include <sys/types.h>.
60954         * lib/strstr.h (PARAMS): Remove macro.
60955         (strstr): Use ANSI C function declarations.
60956
60957 2002-11-14  Karl Berry  <karl@gnu.org>
60958
60959         * config/mkinstalldirs: `do' on separate line, instead of
60960         `for var; do'.
60961
60962 2002-11-06  Bruno Haible  <bruno@clisp.org>
60963
60964         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60965         * lib/gcd.c (gcd): Likewise.
60966
60967 2002-11-05  Bruno Haible  <bruno@clisp.org>
60968
60969         * lib/gcd.h: New file, from gettext-0.11.5.
60970         * lib/gcd.c: New file, from gettext-0.11.5.
60971
60972 2002-11-05  Bruno Haible  <bruno@clisp.org>
60973
60974         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60975         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60976         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60977         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60978
60979         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60980         <libintl.h>.
60981         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60982         <libintl.h>.
60983
60984         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60985         * lib/human.c: Include gettext.h instead of <libintl.h>.
60986         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60987         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60988         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60989         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60990         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60991         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60992         (textdomain): Remove definition.
60993         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60994
60995         * lib/long-options.c: Remove include of <libintl.h> and definition of
60996         _.
60997         * lib/same.c: Remove include of <libintl.h> and definition of _.
60998
60999 2002-11-04  Owen Taylor  <otaylor@redhat.com>
61000
61001         * lib/config.charset: A few additions for Solaris.
61002
61003 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61004
61005         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
61006         * lib/localcharset.c (locale_charset): Declare as extern "C".
61007
61008 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61009
61010         * lib/config.charset: msdos in uk_UA uses CP1125.
61011
61012 2002-11-04  Bruno Haible  <bruno@clisp.org>
61013
61014         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
61015         * lib/strcase.h: New file, from GNU gettext-0.11.5.
61016         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
61017         * lib/strstr.h: New file, from GNU gettext-0.11.5.
61018         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
61019
61020 2002-11-04  Bruno Haible  <bruno@clisp.org>
61021
61022         * lib/localcharset.c (locale_charset): Don't return an empty string.
61023
61024 2002-11-04  Bruno Haible  <bruno@clisp.org>
61025
61026         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
61027         aliases.
61028
61029 2002-11-04  Bruno Haible  <bruno@clisp.org>
61030
61031         * lib/config.charset: Update for newest glibc. Add canonical names
61032         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
61033
61034 2002-11-04  Bruno Haible  <bruno@clisp.org>
61035
61036         * lib/config.charset: Add support for NetBSD.
61037
61038 2002-11-04  Bruno Haible  <bruno@clisp.org>
61039
61040         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
61041
61042 2002-11-01  Bruno Haible  <bruno@clisp.org>
61043
61044         * configure.in: Add AC_CONFIG_AUX_DIR call.
61045         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
61046         test/Makefile.
61047         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
61048
61049 2002-09-28  Karl Berry  <karl@gnu.org>
61050
61051         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
61052         installed automake until the next release, since changes have been
61053         made.
61054
61055 2002-09-25  Karl Berry  <karl@gnu.org>
61056
61057         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
61058         * lib/getopt*: copy from libc/posix.
61059         * lib/gettext.h: copy from gettext.
61060         * lib/.cppi-disable: add strdup.c, gettext.h.
61061
61062 2002-09-25  Karl Berry  <karl@gnu.org>
61063
61064         * config/srclist.txt: enable gettext.h check.
61065         * config/config.{guess,sub}: update from prep.
61066         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
61067                 from automake 1.6.3.
61068         See srclist*.
61069
61070 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
61071
61072         * regex.c (PATFETCH): Remove the translating fetch.
61073         (PATFETCH_RAW): Rename to PATFETCH.
61074         (set_image_of_range): New fun.
61075         (SET_RANGE_TABLE_WORK_AREA): Use it.
61076         (regex_compile): Don't translate the pattern chars so eagerly.
61077         Only do it when inserting an `exactn' bytecode or when handling
61078         a char-range.
61079         (mutually_exclusive_p): Avoid empty statement.
61080
61081 2002-07-06  Jim Meyering  <meyering@lucent.com>
61082
61083         * m4/README: Don't mention Makefile.am.in.
61084         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
61085
61086 2002-07-01  Jim Meyering  <meyering@lucent.com>
61087
61088         * lib/c-stack.c: Include sys/time.h.
61089         From Volker Borchert.
61090
61091 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61092
61093         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61094
61095 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61096
61097         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61098         New macro.  Use it uniformly instead of
61099         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61100         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61101         reported by Vin Shelton.
61102
61103 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61104
61105         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61106         Do not assume SA_SIGINFO behavior.
61107         Bug reported by Jim Meyering on NetBSD 1.5.2.
61108
61109 2002-06-22  Jim Meyering  <meyering@lucent.com>
61110
61111         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61112         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61113
61114         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61115         now that configure.ac uses AC_GNU_SOURCE.
61116         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61117         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61118
61119         Update to latest tools.  Suggestions from Paul Eggert.
61120         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61121         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61122         * m4/fnmatch.m4: Likewise.
61123         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61124         to AC_HEADER_STDBOOL
61125
61126 2002-06-22  Jim Meyering  <meyering@lucent.com>
61127
61128         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61129         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61130
61131 2002-06-22  Jim Meyering  <meyering@lucent.com>
61132
61133         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61134
61135         * lib/exitfail.c, exitfail.h: Likewise.
61136         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61137
61138         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61139         of fnmatch.h.
61140         (EXTRA_DIST): Add fnmatch_loop.c.
61141         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61142
61143         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61144         * lib/fnmatch.c: Update from diffutils-2.8.2.
61145         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61146         * lib/fnmatch.h: Remove file.
61147
61148 2002-06-21  Jim Meyering  <meyering@lucent.com>
61149
61150         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61151         * m4/mbrtowc.m4: Likewise.
61152
61153         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61154         * m4/mbswidth.m4: Reflect name change:
61155         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61156         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61157
61158         * m4/lib-link.m4: Update from gettext-0.11.2.
61159         * m4/gettext.m4: Likewise.
61160
61161         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61162         From Alfred M. Szmidt.
61163
61164 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61165
61166         * lib/file-type.h: Report an error if neither S_ISREG nor
61167         S_IFREG is defined, instead of using a test specific to glibc
61168         2.2.  This should be safe, since POSIX requires S_ISREG and
61169         Unix Version 7 had S_IFREG.  We don't need to check for
61170         <sys/types.h> since we don't use any symbols that it defines.
61171
61172 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61173
61174         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61175         $@-t, so that each temporary file name is unique and valid in the first
61176         8 characters, for operation under DOS.
61177
61178 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61179
61180         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61181
61182 2002-06-15  Jim Meyering  <meyering@lucent.com>
61183
61184         Work even with DJGPP 2.03, which lacks support for symlinks.
61185         From Richard Dawe.
61186         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61187         is defined.
61188         * lib/lchown.c (S_ISLNK): Likewise.
61189
61190 2002-06-15  Jim Meyering  <meyering@lucent.com>
61191
61192         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61193         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61194         have been included before this file.
61195
61196 2002-06-14  Jim Meyering  <meyering@lucent.com>
61197
61198         * lib/file-type.h: Use the version from diffutils-2.8.2.
61199         * lib/file-type.c: Likewise.
61200
61201 2002-06-07  Jim Meyering  <meyering@lucent.com>
61202
61203         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61204         They're needed at least for NetBSD 1.5.2.
61205         ($statxfs_includes): Include those same headers.
61206         ($statxfs_includes): Include sys/vfs.h if available.
61207         ($statxfs_includes): Likewise for sys/statvfs.h.
61208         Check for the following members in both structs statfs and statvfs:
61209         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61210
61211 2002-06-01  Jim Meyering  <meyering@lucent.com>
61212
61213         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61214         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61215
61216 2002-05-28  Jim Meyering  <meyering@lucent.com>
61217
61218         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61219         Reported by Volker Borchert.
61220
61221 2002-05-27  Jim Meyering  <meyering@lucent.com>
61222
61223         Fix a problem seen only on nonconforming systems whereby ls.c's
61224         use of localtime, and then of gettimeofday would cause trouble:
61225         the localtime call used to initialize rpl_gettimeofday's save
61226         mechanism would clobber ls's current local time information so
61227         that in any long listing the first file would always be listed
61228         with date 1970-01-01.  Analysis by Volker Borchert.
61229
61230         * lib/gettimeofday.c (localtime): Undefine.
61231         (rpl_localtime): New function.
61232
61233 2002-05-27  Jim Meyering  <meyering@lucent.com>
61234
61235         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61236         localtime.
61237
61238         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61239         use the replacement function; it wouldn't resolve at link time.
61240         Reported by Volker Borchert.
61241
61242 2002-05-22  Jim Meyering  <meyering@lucent.com>
61243
61244         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61245         file-type.h.
61246         * lib/file-type.h: New file.
61247         * lib/file-type.c (file_type): New file/function.  Extracted from
61248         diffutils.
61249
61250 2002-04-30  Jim Meyering  <meyering@lucent.com>
61251
61252         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61253
61254 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61255
61256         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61257
61258 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61259
61260         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61261         Do not check for alloca.h (no longer used) or stdbool.h (was never
61262         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61263
61264 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61265
61266         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61267
61268 2002-04-29  Jim Meyering  <meyering@lucent.com>
61269
61270         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61271         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61272         Use AC_FUNC_STRNLEN here instead.
61273
61274         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61275         With autoconf-2.53a, it's part of AC_PROG_CC.
61276
61277 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61278
61279         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61280         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61281
61282 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61283
61284         * lib/sig2str.h, lib/sig2str.c: New files.
61285         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61286
61287 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61288
61289         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61290         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61291         of 127, since 64 is the largest conceivable number for ancient
61292         nonstandard hosts.
61293         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61294
61295 2002-04-28  Jim Meyering  <meyering@lucent.com>
61296
61297         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61298
61299 2002-04-24  Jim Meyering  <meyering@lucent.com>
61300
61301         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61302         (jm_PREREQ): Use it.
61303
61304         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61305         mach/mach.h fcntl.h.
61306         Check for this function: setlocale.
61307
61308 2002-04-24  Jim Meyering  <meyering@lucent.com>
61309
61310         * lib/gettext.h: New file, from Gettext.
61311         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61312         (libfetish_a_SOURCES): Add gettext.h.
61313
61314 2002-04-16  Jim Meyering  <meyering@lucent.com>
61315
61316         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61317         ut_pid, ut_id, ut_exit.
61318
61319 2002-04-16  Jim Meyering  <meyering@lucent.com>
61320
61321         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61322         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61323         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61324
61325 2002-04-12  Jim Meyering  <meyering@lucent.com>
61326
61327         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61328         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61329         existence of the getmntinfo function.  Needed for Darwin 5.3.
61330
61331         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61332         This is necessary at least on Darwin 5.3.
61333
61334         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61335         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61336         strnlen.o in the library, and that makes some versions of ranlib
61337         object.
61338
61339 2002-04-12  Jim Meyering  <meyering@lucent.com>
61340
61341         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61342
61343 2002-04-09  Jim Meyering  <meyering@lucent.com>
61344
61345         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61346         to be more precise.  Rather than saying we're checking whether the
61347         function `works', say what we're testing.
61348         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61349         Reported by Bruno Haible.
61350
61351 2002-03-10  Jim Meyering  <meyering@lucent.com>
61352
61353         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61354         Suggestion from Santiago Vila.
61355
61356 2002-03-08  Jim Meyering  <meyering@lucent.com>
61357
61358         * lib/rename.c: Mention that this wrapper is needed also on
61359         mips-dec-ultrix4.4 systems.
61360
61361 2002-03-02  Jim Meyering  <meyering@lucent.com>
61362
61363         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61364         not HAVE_CLOCK_SETTIME.
61365
61366 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61367
61368         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61369         Check for clock_settime.
61370
61371 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61372
61373         * lib/nanosleep.h: Rename to....
61374         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61375
61376         * lib/gettime.c: New file.
61377         * lib/settime.c: New file.
61378         * lib/stime.c: Remove.
61379
61380         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61381         timespec.h.  Remove nanosleep.h.
61382
61383 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61384
61385         * m4/acl.m4: New file.
61386         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61387         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61388
61389 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61390
61391         * lib/acl.c, lib/acl.h: New files.
61392         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61393
61394 2002-02-24  Jim Meyering  <meyering@lucent.com>
61395
61396         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61397         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61398         cause trouble.  Reported by Nelson Beebe.
61399
61400 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61401
61402         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61403         compilers that don't know that xalloc_die never returns.
61404
61405 2002-02-20  Jim Meyering  <meyering@lucent.com>
61406
61407         * lib/getdate.c: Regenerate using bison-1.33.
61408
61409 2002-02-17  Jim Meyering  <meyering@lucent.com>
61410
61411         * config/config.guess (main): Don't use `head -1'; it's no longer
61412         portable. Use `sed 1q' instead.
61413
61414 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61415
61416         * m4/codeset.m4: Upgrade to gettext-0.11.
61417         * m4/gettext.m4: Upgrade to gettext-0.11.
61418         * m4/glibc21.m4: Upgrade to gettext-0.11.
61419         * m4/iconv.m4: Upgrade to gettext-0.11.
61420         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61421         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61422         * m4/lib-ld.m4: New file, from gettext-0.11.
61423         * m4/lib-link.m4: New file, from gettext-0.11.
61424         * m4/lib-prefix.m4: New file, from gettext-0.11.
61425         * m4/progtest.m4: Upgrade to gettext-0.11.
61426
61427 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61428
61429         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61430         (jm_PREREQ): Use it.
61431
61432 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61433
61434         * lib/posixver.c, lib/posixver.h: New files.
61435         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61436
61437 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61438             Bruno Haible  <bruno@clisp.org>
61439
61440         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61441         (fwrite_success_callback): New declaration.
61442         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61443         print_unicode_char. Call failure callback instead of error.
61444         (fwrite_success_callback): New function.
61445         (exit_failure_callback): New function.
61446         (fallback_failure_callback): New function.
61447         (print_unicode_char): Call unicode_to_mb.
61448
61449 2002-01-26  Jim Meyering  <meyering@lucent.com>
61450
61451         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61452         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61453
61454 2002-01-26  Jim Meyering  <meyering@lucent.com>
61455
61456         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61457
61458 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61459
61460         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61461
61462 2002-01-22  Jim Meyering  <meyering@lucent.com>
61463
61464         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61465         Otherwise, some versions of automake would omit the rule that makes
61466         Makefile from Makefile.in.
61467
61468 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61469
61470         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61471         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61472         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61473         (memcoll): Set errno to zero if there is no error.
61474
61475         * lib/quotearg.c (quotearg_buffer_restyled):
61476         Fix bug with quoting buffers containing NUL when backslashing escapes.
61477         This bug was exposed by the other changes in this patch.
61478         (quotearg_n_options): New arg ARGSIZE.
61479         All callers changed.
61480         (quoting_options_from_style): New function.
61481         (quotearg_n_style): Use it.
61482         (quotearg_n_style_mem): New function.
61483
61484         * lib/quotearg.h (quotearg_n_style_mem): New function.
61485
61486 2002-01-19  Jim Meyering  <meyering@lucent.com>
61487
61488         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61489         Remove useless quotes: DF_PROG="df".
61490         * m4/strnlen.m4: New file.
61491
61492 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61493
61494         * lib/backupfile.c (ISDIGIT): Comment fix.
61495         * lib/getdate.y (ISDIGIT): Likewise.
61496         * lib/posixtm.c (ISDIGIT, year): Likewise.
61497         * lib/strverscmp.c (ISDIGIT): Likewise.
61498         * lib/userspec.c (ISDIGIT): Likewise.
61499
61500 2002-01-16  Jim Meyering  <meyering@lucent.com>
61501
61502         * lib/getdate.y: Add three semicolons, each just before a closing
61503         brace. Bison (as of version 1.31) no longer papers over that mistake.
61504
61505 2002-01-05  Jim Meyering  <meyering@lucent.com>
61506
61507         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61508
61509 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61510
61511         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61512         not silently exit merely because the output buffer happens to
61513         have nothing pending.
61514
61515 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61516
61517         See the big note in ../ChangeLog.
61518         * lib/human.c (suffixes): Prefer K to k for 1024.
61519         (generate_suffix_backwards): New function.
61520         (human_readable_inexact): Use it.
61521         * lib/xstrtol.c (__xstrtol): If there is no number but there
61522         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61523         Accept 'K' as well as 'k'.
61524
61525 2001-12-15  Jim Meyering  <meyering@lucent.com>
61526
61527         * lib/regex.h (__restrict_arr): Update from libc.
61528
61529         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61530         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61531         (STREQ): Define.
61532
61533 2001-12-14  Jim Meyering  <meyering@lucent.com>
61534
61535         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61536         Suggestion from Bruno Haible.
61537
61538 2001-12-10  Jim Meyering  <meyering@lucent.com>
61539
61540         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61541         xrealloc, Instead, include "xalloc.h".
61542         (initbuffer): Don't cast xmalloc return value to char*.
61543         (readline): Reword comment.
61544         Don't cast xrealloc return value to char*
61545         Return NULL, not 0.
61546
61547 2001-12-09  Jim Meyering  <meyering@lucent.com>
61548
61549         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61550         about `signed and unsigned type in conditional expression'.
61551         * lib/posixtm.c (posix_time_parse): Likewise.
61552
61553         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61554
61555         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61556         to avoid a pedantic warning.
61557
61558         * lib/getstr.c: Don't include assert.h.
61559         (getstr): Remove warning-evoking assertions.
61560         Return -1 if offset parameter is out of bounds.
61561         Change the type of a local from int to size_t.
61562
61563         * lib/strftime.c (my_strftime_localtime_r): Include this function
61564         definition in the `#if ! HAVE_TM_GMTOFF' block.
61565
61566         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61567         Include xalloc.h instead.
61568
61569 2001-12-02  Jim Meyering  <meyering@lucent.com>
61570
61571         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61572         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61573         included.
61574
61575         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61576         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61577
61578 2001-11-30  Akim Demaille  <akim@epita.fr>
61579
61580         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61581         before being defined.
61582
61583 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61584
61585         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61586         First arg is int, not unsigned.
61587         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61588         (SIZE_MAX, UINT_MAX): New macros.
61589         (quotearg_n_options): Abort if N is negative.
61590         Avoid overflow check on hosts where size_t is 64 bits and int
61591         is 32 bits, as overflow is impossible there.
61592         Fix off-by-one typo that caused unnecessary reallocation.
61593
61594 2001-11-27  Jim Meyering  <meyering@lucent.com>
61595
61596         * lib/tempname.c: Merge with version from libc.
61597         * lib/regex.c: Likewise.
61598
61599         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61600         systems for which STDC_HEADERS is 0, it was not included, resulting in
61601         a warning about an integer-to-pointer conversion problem with getenv.
61602         Reported by Volker Borchert.
61603
61604 2001-11-26  Jim Meyering  <meyering@lucent.com>
61605
61606         * lib/gtod.h: Remove file.
61607         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61608         * lib/gettimeofday.c: Don't include gtod.h.
61609         (GTOD_init): Remove function.
61610         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61611         Suggestion from Volker Borchert.
61612
61613 2001-11-23  Jim Meyering  <meyering@lucent.com>
61614
61615         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61616         it.
61617         * lib/hash.c (struct hash_table): Define it here instead.
61618
61619 2001-11-22  Jim Meyering  <meyering@lucent.com>
61620
61621         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61622
61623 2001-11-20  Jim Meyering  <meyering@lucent.com>
61624
61625         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61626         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61627
61628 2001-11-19  Jim Meyering  <meyering@lucent.com>
61629
61630         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61631         directory.  Use "conftestXXXXXX" as the template.
61632         Suggestion from Paul Eggert.
61633
61634         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61635         immediately, so the test doesn't mistakenly hit the max-open-files
61636         limit.
61637
61638 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61639
61640         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61641         (TEMPORARIES): New macro.
61642         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61643         removes an artificial limitation (e.g. HP-UX 10.20, where
61644         TMP_MAX is 17576).
61645
61646 2001-11-18  Jim Meyering  <meyering@lucent.com>
61647
61648         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61649
61650 2001-11-18  Jim Meyering  <meyering@lucent.com>
61651
61652         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61653         on SunOS 4.
61654
61655         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61656         files will be created before anything else.
61657
61658 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61659
61660         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61661         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61662
61663 2001-11-17  Jim Meyering  <meyering@lucent.com>
61664
61665         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61666         Prompted by a report from Bob Proulx.
61667
61668         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61669         Instead, require UTILS_FUNC_MKSTEMP.
61670
61671 2001-11-17  Jim Meyering  <meyering@lucent.com>
61672
61673         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61674         Now, that's done as part of AC_FUNC_STRTOD.
61675
61676 2001-11-17  Jim Meyering  <meyering@lucent.com>
61677
61678         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61679         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61680         rather than group writable.  Patch by Juan F. Codagnone.
61681
61682         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61683         xrealloc, Instead, include "xalloc.h".
61684
61685         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61686         Remove explicit declarations of xmalloc, xrealloc,
61687         and xstrdup.  Instead, include "xalloc.h".
61688
61689         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61690         unlocked-io.h.
61691         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61692         Likewise.
61693         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61694
61695         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61696         Reported by Padraig Brady.
61697
61698         * lib/mkstemp.c: #undef mkstemp.
61699         Include config.h.
61700         (rpl_mkstemp): Rename from mkstemp.
61701         Protoize.
61702
61703 2001-11-16  Jim Meyering  <meyering@lucent.com>
61704
61705         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61706         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61707         determine the amount of total physical memory, use pstat_getstatic.
61708         HPUX-11 doesn't define _SC_PHYS_PAGES.
61709         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61710         If sysconf couldn't be used to determine the amount of available
61711         physical memory, use both pstat_getstatic and pstat_getdynamic.
61712         Based on a patch from Bob Proulx.
61713
61714 2001-11-10  Jim Meyering  <meyering@lucent.com>
61715
61716         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61717         (jm_PREREQ): Use it.
61718
61719 2001-11-09  Jim Meyering  <meyering@lucent.com>
61720
61721         * m4/jm-macros.m4: Require autoconf-2.52f.
61722         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61723         Use these AC_-prefixed names, not the AM_-prefixed ones.
61724
61725         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61726
61727 2001-11-05  Jim Meyering  <meyering@lucent.com>
61728
61729         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61730
61731 2001-11-04  Jim Meyering  <meyering@lucent.com>
61732
61733         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61734         $DEFS.
61735
61736 2001-11-03  Jim Meyering  <meyering@lucent.com>
61737
61738         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61739         of AC_DEFUN.
61740
61741         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61742         know the name of the variable in the macro definition.
61743
61744 2001-11-03  Jim Meyering  <meyering@lucent.com>
61745
61746         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61747         in argmatch_to_argument call.
61748
61749         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61750         argument.
61751
61752         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61753         e.g., a fault due to an attempt to free a NULL pointer.
61754
61755 2001-11-01  Jim Meyering  <meyering@lucent.com>
61756
61757         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61758         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61759
61760 2001-11-01  Jim Meyering  <meyering@lucent.com>
61761
61762         * lib/dirfd.c, lib/dirfd.h: New files.
61763         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61764
61765         * lib/hash.c (hash_print) [TESTING]: Clean up.
61766
61767 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61768
61769         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61770         to avoid a warning if -Wall.
61771
61772 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61773
61774         * README: New file
61775         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61776         (per RMS's instructions, this is now the canonical source)
61777         * lgpl/, gpl/: New directories.
61778
61779 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61780
61781         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61782
61783 2001-10-21  Jim Meyering  <meyering@lucent.com>
61784
61785         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61786         this code would end up calling gettext even in packages built
61787         with --disable-nls.
61788         * lib/getopt.c (_): Likewise.
61789         * lib/regex.c (_): Likewise.
61790
61791 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61792
61793         * m4/error.m4 (jm_PREREQ_ERROR):
61794         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61795         AC_FUNC_STRERROR_R does that.
61796         Check for strerror declaration.
61797
61798         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61799         are supposed to have them these days.
61800         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61801         Merge changes from latest Autoconf CVS.
61802         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61803         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61804         POSIX decided to standardize on the int flavor of strerror_r.
61805
61806 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61807
61808         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61809         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61810         Use strerror_r that is only a macro, even if it is not a function.
61811         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61812         (private_strerror): Use prototypes, not old-style function definition.
61813         (print_errno_message): New function.
61814         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61815         char*-flavored one.
61816         (error_tail, error, error_at_line): Use it.
61817
61818 2001-10-11  Jim Meyering  <meyering@lucent.com>
61819
61820         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61821         and quote_n (1, ... to avoid clobbering a buffer.
61822
61823 2001-10-05  Jim Meyering  <meyering@lucent.com>
61824
61825         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61826         hash-pjw.h.
61827         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61828         * lib/hash-pjw.h: New file.
61829
61830 2001-09-30  Jim Meyering  <meyering@lucent.com>
61831
61832         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61833         `struct fsstat' has the `f_fstypename' member.
61834         Use that to define FS_TYPE, which is now used to make
61835         the getfsstat link test tighter.
61836
61837 2001-09-30  Jim Meyering  <meyering@lucent.com>
61838
61839         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61840         Include <sys/ucred.h>, for Apple Darwin.
61841         Include sys/mount.h and sys/fs_types.h only if available.
61842         (FS_TYPE): Define.
61843         (read_filesystem_list): Use FS_TYPE.
61844
61845 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61846
61847         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61848         a boolean context.
61849
61850 2001-09-29  Jim Meyering  <meyering@lucent.com>
61851
61852         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61853         [one-argument getmntent function]): Include stdio.h before mntent.h.
61854         SunOS 4.1.x needs it for the declaration of `FILE'.
61855         Patch by Volker Borchert.
61856
61857         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61858         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61859         sys/fs_types.h, and make the link-test for getfsstat guard #include
61860         directives with appropriate #if HAVE_*_H tests so that we can
61861         detect getfsstat on Apple Darwin1.3.7 systems.
61862         Reported by Nelson Beebe.
61863         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61864
61865 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61866
61867         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61868         #defines strtoimax.  Also treat the other strto* functions
61869         like strtoimax.
61870
61871         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61872         Check for strtoul and strtoumax,
61873         as those declarations are made even in the signed case.
61874         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61875         Likewise, for strtol and strtoimax.
61876
61877 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61878
61879         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61880         #defines strtoimax.  Also treat the other strto* functions
61881         like strtoimax.
61882
61883         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61884         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61885         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61886
61887 2001-09-26  Jim Meyering  <meyering@lucent.com>
61888
61889         Most macros in unlocked-io.h had the wrong number of arguments.
61890         * lib/gen-uio: New script.
61891         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61892         * lib/unlocked-io.hin: Remove file.
61893         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61894         rather than trying to embed it here.
61895         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61896         Reported by Padraig Brady.
61897
61898 2001-09-25  Volker Borchert  <bt@teknon.de>
61899
61900         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61901         `result'.
61902
61903 2001-09-24  Jim Meyering  <meyering@lucent.com>
61904
61905         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61906
61907 2001-09-23  Jim Meyering  <meyering@lucent.com>
61908
61909         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61910         instead of the mere test for existence of mntent.h.  The latter
61911         would get a false-positive on AIX 3.4 systems.
61912         In the outer getmntent if-block, don't die if neither of the getmntent
61913         tests succeeds.  Instead, just fall through and continue with the
61914         remaining tests.
61915
61916 2001-09-23  Jim Meyering  <meyering@lucent.com>
61917
61918         * lib/mountlist.c: Remove useless parentheses in #if directives.
61919         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61920         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61921
61922 2001-09-22  Jim Meyering  <meyering@lucent.com>
61923
61924         * m4/gettext.m4: New file.  From gettext.
61925         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61926         * m4/progtest.m4: Likewise
61927         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61928         * m4/glibc21.m4: Likewise.
61929
61930         * m4/libintl.m4: Remove.  No longer used.
61931
61932 2001-09-22  Jim Meyering  <meyering@lucent.com>
61933
61934         * lib/localcharset.c: Update from latest gettext.
61935         * lib/config.charset: Likewise.
61936
61937 2001-09-20  Jim Meyering  <meyering@lucent.com>
61938
61939         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61940         strtoimax.
61941         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61942         strtoumax.
61943
61944 2001-09-20  Jim Meyering  <meyering@lucent.com>
61945
61946         * lib/xstrtol.c (strtoimax): Guard declaration with
61947         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61948         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61949         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61950         (strtoumax): Likewise, for completeness (it wasn't necessary).
61951
61952 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61953
61954         * lib/strtoimax.c (HAVE_LONG_LONG):
61955         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61956         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61957         to work around bug in IBM C compiler.
61958
61959 2001-09-17  Jim Meyering  <meyering@lucent.com>
61960
61961         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61962         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61963         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61964         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61965         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61966         whenever the right hand side need not be expanded by the shell.
61967
61968 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61969
61970         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61971         library.  It's not correct, as some older glibcs are buggy.
61972         fnmatch wasn't fixed until glibc 2.2.
61973
61974         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61975         special shell magic here.
61976
61977 2001-09-16  Jim Meyering  <meyering@lucent.com>
61978
61979         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61980         * m4/jm-macros.m4: Require it.
61981
61982 2001-09-16  Jim Meyering  <meyering@lucent.com>
61983
61984         * lib/mkdir.c: New file.
61985
61986 2001-09-15  Jim Meyering  <meyering@lucent.com>
61987
61988         * m4/jm-macros.m4: Check for help2man.
61989
61990 2001-09-11  Jim Meyering  <meyering@lucent.com>
61991
61992         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61993         The body, by Paul Eggert, was moved here from configure.in.
61994         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61995
61996 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61997
61998         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61999         (jm_PREREQ): Use it.
62000
62001 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62002
62003         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
62004         Use ssize_t, not int, to store result of readlink.
62005         Check for ssize_t overflow as well as size_t overflow,
62006         as POSIX says the result of readlink is implementation-defined
62007         when ssize_t overflows.
62008         Remove unnecessary cast to char*.
62009         Use free+malloc instead of realloc, as the storage doesn't need
62010         to be preserved and it's clearer and can be more efficient that way.
62011         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
62012         * lib/xreadlink.h (xreadlink): Update prototype.
62013
62014 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62015
62016         * lib/xgetcwd.c: Revert some of the previous change; intead,
62017         fix the HAVE_GETCWD_NULL code to behave more like the
62018         !HAVE_GETCWD_NULL code used to.
62019
62020         Include "xalloc.h".
62021         (xgetcwd): Do not return NULL when memory is exhausted; instead,
62022         invoke xalloc_die.
62023
62024 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62025
62026         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
62027         sys/param.h, as pathmax.h includes them.
62028
62029 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62030
62031         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
62032         (jm_PREREQ_XGETCWD): New macro.
62033
62034         * m4/getcwd.m4: New file.
62035
62036 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62037
62038         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
62039         like the HAVE_GETCWD_NULL code.
62040         Include pathmax.h if not HAVE_GETCWD.
62041         Do not include xalloc.h.
62042         (INITIAL_BUFFER_SIZE): New symbol.
62043         Do not use xmalloc / xrealloc, since the caller is responsible for
62044         handling errors.  Preserve errno around `free' during failure.
62045         Do not overrun buffer when using getwd.
62046
62047 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62048
62049         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
62050         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
62051         getcwd (NULL, 0).
62052
62053 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62054
62055         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
62056         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
62057         spotted by Jim Meyering.
62058
62059 2001-09-03  Jim Meyering  <meyering@lucent.com>
62060
62061         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
62062         failure.
62063
62064 2001-09-02  Jim Meyering  <meyering@lucent.com>
62065
62066         * lib/error.c: Update from GNU libc.
62067
62068 2001-09-01  Jim Meyering  <meyering@lucent.com>
62069
62070         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
62071         Used by df.
62072
62073 2001-09-01  Jim Meyering  <meyering@lucent.com>
62074
62075         * lib/xreadlink.c: New file.
62076         * lib/xreadlink.h: New file.
62077         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
62078         xreadlink.h.
62079
62080         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
62081         doesn't conflict with sparc Solaris 7's definition in
62082         /usr/include/sys/int_types.h.
62083
62084         * lib/exclude.c: Use `""', not `<>' to #include non-system header
62085         files.
62086         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
62087         and strncasecmp as r-values.  Unixware didn't have declarations.
62088
62089 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62090
62091         * lib/xstrtol.h: Add copyright notice.
62092         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62093         LONGINT_INVALID_SUFFIX_CHAR.
62094
62095 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62096
62097         * lib/xstrtol.c (strtoimax): New decl.
62098
62099 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62100
62101         * lib/xgetcwd.c: Don't include pathmax.h.
62102         Include stdlib.h and unistd.h if available.
62103         Include xalloc.h.
62104         (xmalloc, xstrdup, free): Remove decls.
62105         (xgetcwd): Don't assume sizes fit in unsigned.
62106         Check for overflow when computing sizes.
62107         Simplify reallocation code.
62108
62109 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62110
62111         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62112         a directory's st_size can have an arbitrary value, so the old
62113         usage could waste an arbitrary amount of memory.  All uses
62114         changed.
62115         * lib/savedir.h: Update prototype.
62116
62117 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62118
62119         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62120
62121         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62122         old strtoimax.c.
62123
62124         Also, make the following further changes to make this file's
62125         configuration more similar to that of strtol.c:
62126         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62127         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62128         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62129         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62130         changed to signed values.
62131
62132         And make the following changes as well:
62133         Fix copyright notice, as 1999 was missing.
62134         (verify): New macro.
62135         (strtoimax): Check sizes at compile-time, not run-time.
62136         Prefer strtol to strtoll if both work.
62137         (main): Remove; it was not that useful and was a pain to maintain.
62138
62139         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62140
62141 2001-08-31  Jim Meyering  <meyering@lucent.com>
62142
62143         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62144         Use an initial, malloc'd, buffer of length 128 rather than
62145         a statically allocated one of length 1024.
62146
62147 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62148
62149         Simplify code, partly by assuming autoconf 2.52 semantics.
62150
62151         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62152
62153         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62154         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62155         All uses removed.
62156         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62157         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62158         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62159         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62160         jm_AC_HEADER_INTTYPES_H.
62161         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62162
62163         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62164
62165         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62166         Quote first arg of AC_DEFUN.
62167         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62168         since they are needed to parse the include file even if we need
62169         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62170         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62171         but with opposite signedness.
62172
62173 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62174
62175         Merge 'exclude' changes from tar 1.13.22.
62176         This fixes one or two unlikely storage allocation overflow bugs,
62177         but doesn't change user-visible behavior otherwise.
62178
62179 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62180
62181         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62182         (jm_PREREQ_EXCLUDE): New macro.
62183
62184 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62185
62186         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62187         tm to be declared.
62188
62189 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62190
62191         * lib/hash.c: Remove '2001' from copyright notice.
62192
62193 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62194
62195         * lib/full-write.h: New file.
62196         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62197         * lib/full-write.c: Correct credits, as cccp.c no longer
62198         exists and anyway it was so heavily changed from the old cccp
62199         code as to be unrecognizable.  Include full-write.h.
62200         (full_write) Return size_t, with short writes meaning failure.
62201         All callers changed.  This fixes a bug with large buffers
62202         on 64-bit hosts.
62203         * lib/utime.c: Include full-write.h.
62204
62205 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62206
62207         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62208         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62209         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62210         Include if available.
62211         (<xalloc.h>): Include
62212         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62213         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62214         collide with FNM macros.
62215         (struct patopts): New struct.
62216         (struct exclude): Use it, as exclude patterns now come with options.
62217         (new_exclude): Support above changes.
62218         (new_exclude, add_exclude_file):
62219         Initial size must now be a power of two to simplify overflow checking.
62220         (free_exclude, fnmatch_no_wildcards): New function.
62221         (excluded_filename): No longer requires options arg, as the options
62222         are determined by add_exclude.  Now returns bool, not int.
62223         (excluded_filename, add_exclude):
62224         Add support for the fancy new exclusion options.
62225         (add_exclude, add_exclude_file): Now takes int options arg.
62226         Check for arithmetic overflow when computing sizes.
62227         (add_exclude_file): xrealloc might modify errno, so don't
62228         realloc until after errno might be used.
62229
62230         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62231         New macros.
62232         (free_exclude): New decl.
62233         (add_exclude, add_exclude_file): Now takes int options arg.
62234         (excluded_filename): No longer requires options arg, as the options
62235         are determined by add_exclude.  Now returns bool, not int.
62236
62237 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62238
62239         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62240
62241 2001-08-27  Jim Meyering  <meyering@lucent.com>
62242
62243         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62244
62245         * lib/version-etc.c (N_): Remove definition.
62246         Revert most of last change.
62247         Instead, simply don't mark the `Copyright...' string for translation.
62248         Based on advice from Paul Eggert.
62249
62250         * lib/strtoxmax.c: Tweak comment.
62251
62252 2001-08-26  Jim Meyering  <meyering@lucent.com>
62253
62254         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62255
62256         * m4/xstrtoimax.m4: New file.
62257         * m4/xstrtoumax.m4: Add comments explaining why we
62258         AC_REPLACE_FUNCS(strtol).
62259
62260 2001-08-26  Jim Meyering  <meyering@lucent.com>
62261
62262         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62263         of copyright with `%s' so translators don't get an untranslated
62264         message in 2002.
62265         (COPYRIGHT_YEAR): Define.
62266         (version_etc): Use fprintf rather than fputs.
62267         Suggestion from Ulrich Drepper.
62268
62269         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62270
62271         * lib/strtoll.c: New file, from GNU libc.
62272         * lib/xstrtoimax.c: New file.
62273
62274         * lib/xstrtol.h: Add xstrtoimax.
62275         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62276         * lib/strtoimax.c: New file.  Likewise, but first define
62277         STRTOUXMAX_SIGNED.
62278
62279         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62280         ...
62281         * lib/strtoxmax.c: ... then renamed to this.
62282
62283 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62284
62285         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62286         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62287         (jm_AC_TYPE_INTMAX_T): New macro.
62288         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62289
62290         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62291
62292         * m4/longlong.m4: Renamed from ulonglong.m4.
62293         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62294         * m4/uintmax_t.m4: Removed.
62295
62296 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62297
62298         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62299         Port to Solaris 8, where 'sed' requires a space after the 'r'
62300         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62301         Redirect output to $tmp just once.
62302
62303 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62304
62305         * lib/addext.c (<errno.h>): Include.
62306         (errno): Declare if not defined.
62307         (addext): Work correctly when pathconf returns -1 and leaves
62308         errno alone because there is no limit.  Also, work even if
62309         pathconf returns a value greater than SIZE_MAX.
62310
62311 2001-08-12  Jim Meyering  <meyering@lucent.com>
62312
62313         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62314         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62315         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62316         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62317         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62318         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62319         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62320         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62321         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62322         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62323         utime.m4, utimes.m4, xstrtoumax.m4:
62324         Quote the first argument in each use of AC_DEFUN.
62325
62326 2001-08-12  Jim Meyering  <meyering@lucent.com>
62327
62328         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62329         Simply `return getcwd (NULL, 0);'.
62330         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62331         Use 1300 as initial value for length, not PATH_MAX.
62332
62333         * lib/pathmax.h: Clean up cpp syntax.
62334
62335 2001-08-12  Jim Meyering  <meyering@lucent.com>
62336
62337         * lib/gettimeofday.c: New file.
62338         * lib/gtod.h: New file.
62339         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62340
62341 2001-08-05  Jim Meyering  <meyering@lucent.com>
62342
62343         * m4/jm-macros.m4: Require autoconf-2.52.
62344
62345 2001-08-04  Jim Meyering  <meyering@lucent.com>
62346
62347         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62348         stmt, to get in sync with glibc.
62349
62350 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62351
62352         The following changes are from gettext 0.10.39 as maintained by
62353         Bruno Haible.
62354
62355         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62356         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62357         with inverted sense.  All uses changed.
62358
62359         * lib/mbswidth.c: Don't include <limits.h>.
62360         Include <stdlib.h> and <string.h> unconditionally.
62361         (iswcntrl, mbsinit, ISCNTRL): New macros.
62362         (mbsnwidth): Use K&R style function declarations.
62363         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62364         can optimize it when MB_CUR_MAX == 1.
62365         The width of control characters is zero, not 1.
62366
62367 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62368
62369         The following changes are from gettext 0.10.39 as maintained by
62370         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62371
62372         * m4/codeset.m4: Upgrade to serial AM1.
62373         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62374         all uses changed.  Quote first arg of AC_DEFUN.
62375         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62376
62377         * m4/iconv.m4: Upgrade to serial AM2.
62378         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62379         Add --with-libconv-prefix.
62380         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62381         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62382         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62383         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62384         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62385
62386         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62387         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62388         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62389         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62390         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62391         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62392         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62393         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62394         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62395
62396         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62397         string.h any more.
62398
62399         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62400         not the default value.
62401
62402         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62403         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62404         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62405         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62406         Also check for iswcntrl, used for wcwidth fallback.
62407         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62408         to Autoconf 2.13.
62409
62410 2001-08-03  Jim Meyering  <meyering@lucent.com>
62411
62412         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62413         as it was in the original.  Reported by Paul Eggert.
62414
62415 2001-07-16  Jim Meyering  <meyering@lucent.com>
62416
62417         * m4/gettimeofday.m4: New file.
62418         Prompted by a report from Bernhard Baehr.
62419
62420 2001-07-15  Jim Meyering  <meyering@lucent.com>
62421
62422         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62423         stuff. Now it's in ../Makefile.cfg.
62424
62425 2001-07-15  Jim Meyering  <meyering@lucent.com>
62426
62427         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62428         (BUILT_SOURCES): Add unlocked-io.h.
62429         (io_functions): Define.
62430         (unlocked-io.h): New rule.
62431         (DISTCLEANFILES): Add unlocked-io.h.
62432         (all-local): Depend on unlocked-io.h, to ensure it is created.
62433
62434         * lib/unlocked-io.hin: New file
62435
62436         * lib/regex.c: Update from glibc.
62437
62438 2001-07-05  Jim Meyering  <meyering@lucent.com>
62439
62440         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62441         recommendation.
62442         (libfetish_a_SOURCES): Put all .h files here instead.
62443         Remove a thus-exposed (better checks in automake) duplicate and
62444         two unnecessary .h files.
62445
62446 2001-07-04  Jim Meyering  <meyering@lucent.com>
62447
62448         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62449         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62450         distcheck failure.
62451
62452 2001-07-02  Jim Meyering  <meyering@lucent.com>
62453
62454         The following changes were prompted by suggestions from Bruno Haible.
62455
62456         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62457         is now generated.
62458         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62459         definition of EXTRA_DIST.
62460         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62461         ensure that the generated file is created/updated whenever the list
62462         of $(unlocked_functions) is changed.
62463         (jm-glibc-io.m4): New rule.
62464         (unlocked-io.h): New rule -- currently unused.
62465
62466 2001-06-24  Jim Meyering  <meyering@lucent.com>
62467
62468         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62469         unmatched right bracket, rather than kludging it with an extra,
62470         falsely-matching quote in a comment.  Patch by Akim Demaille.
62471
62472 2001-06-11  Jim Meyering  <meyering@lucent.com>
62473
62474         * lib/regex.c: Update from GNU libc.
62475
62476 2001-05-27  Jim Meyering  <meyering@lucent.com>
62477
62478         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62479         Check for ut_type in struct utmp.
62480
62481 2001-05-27  Jim Meyering  <meyering@lucent.com>
62482
62483         * lib/readutmp.h (UT_TYPE): Define.
62484
62485 2001-05-24  Jim Meyering  <meyering@lucent.com>
62486
62487         * lib/argmatch.c: Include "quote.h".
62488         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62489         quote function.  Reported by Göran Uddeborg.
62490
62491 2001-05-22  Jim Meyering  <meyering@lucent.com>
62492
62493         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62494         now that we use the package-supplied version unconditionally.
62495         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62496
62497 2001-05-21  Jim Meyering  <meyering@lucent.com>
62498
62499         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62500         shell syntax errors.
62501
62502 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62503
62504         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62505
62506 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62507
62508         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62509         Don't bother to check library strftime, since
62510         we'll be using our own my_strftime function anyway.
62511         Define my_strftime instead of strftime.
62512
62513 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62514
62515         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62516         which is not yet declared.
62517
62518 2001-05-15  Jim Meyering  <meyering@lucent.com>
62519
62520         * m4/regex.m4: Use proper quoting so brackets appear in the test
62521         program.
62522         Reported by, and with help from, Bruno Haible.
62523
62524 2001-05-13  Jim Meyering  <meyering@lucent.com>
62525
62526         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62527         undefined.
62528
62529 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62530
62531         dirname code cleanup.  base_name now behaves more compatibly
62532         with POSIX basename when given file names that have trailing
62533         slashes, and similarly for dir_name.  Add new primitives
62534         base_len and dir_len.  Put the directory-name-related decls
62535         into dirname.h.
62536
62537         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62538         * lib/backupfile.c (base_name): Likewise.
62539         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62540         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62541         * lib/makepath.c (strip_trailing_slashes): Likewise.
62542         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62543         ISSLASH): Likewise.
62544         * lib/rename.c (strip_trailing_slashes): Likewise.
62545         * lib/same.c (base_name): Likewise.
62546         * lib/stripslash.c (ISSLASH): Likewise.
62547
62548         * lib/addext.c: Include <dirname.h> after size_t is defined.
62549         * lib/backupfile.c: Likewise.
62550
62551         * lib/addext.c (addext): Use base_len to trim redundant
62552         trailing slashes instead of doing it ourselves.
62553         But do not trim the last slash if it is not redundant.
62554
62555         * lib/backupfile.c (find_backup_file_name,
62556         max_backup_version): Use base_len instead of rolling it ourselves.
62557         Handle the case of "" and (on DOS) "C:" correctly.
62558
62559         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62560         needed. Include <string.h>, <dirname.h>.
62561         (base_name): Allow file names ending in slashes, other than names
62562         that are all slashes.  In this case, return the basename followed
62563         by the slashes.  This is more general, and can be used in places
62564         where the original base_name purposely had an assertion failure.
62565         (base_len): New function.
62566
62567         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62568         Do not include <assert.h>; no longer needed.
62569         Include xalloc.h.
62570         (memrchr): Remove decl.
62571         (dir_name_r): Remove.
62572         (dir_len): Renamed from dirlen.  All callers changed.
62573         Rewrite in terms of base_name, for simplicity and consistency.
62574         (dir_name): Never return NULL.  All callers changed.
62575         Do not include <stdlib.h> in test program; no longer needed.
62576         return 0; is fine for test program.
62577
62578         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62579         New macros.
62580         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62581
62582         * lib/path-concat.c (path_concat): Use base_len to compute
62583         base length, not strlen; this means we cannot rely on memcpy
62584         to null-terminate.
62585
62586         * lib/same.c (STREQ): Remove.
62587         (same_name): Handle the case where the basename ends in trailing '/'.
62588
62589         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62590         a slash was stripped.  Do not strip the last slash after a
62591         file system prefix.
62592
62593 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62594
62595         * lib/Makefile.am (libfetish_a_SOURCES):
62596         Add strftime.c, since we now compile it on all hosts.
62597
62598         * lib/strftime.c (my_strftime):
62599         Define to nstrftime if emacs, but only if my_strftime is not defined.
62600         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62601         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62602         Add one more extra argument: a nanoseconds value.
62603         All uses changed.
62604         (ns): New macro.
62605         (my_strftime function): Add %N format.
62606         (emacs_strftimeu): Renamed from emacs_strftime,
62607         with extra ut argument.
62608
62609 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62610
62611         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62612
62613 2001-04-21  Jim Meyering  <meyering@lucent.com>
62614
62615         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62616         doesn't interfere.
62617
62618 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62619
62620         * m4/ftruncate.m4: Check for chsize.
62621         Link with ftruncate.o unconditionally if ftruncate is missing.
62622         This was required when cross-compiling to i586-mingw32msvc.
62623
62624 2001-04-08  Jim Meyering  <meyering@lucent.com>
62625
62626         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62627         recomputed; that's necessary when the offset spans a DST transition.
62628         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62629
62630 2001-04-02  Jim Meyering  <meyering@lucent.com>
62631
62632         * lib/regex.h, regex.c: Update from GNU libc.
62633
62634 2001-03-24  Jim Meyering  <meyering@lucent.com>
62635
62636         * m4/jm-macros.m4: Require autoconf-2.49d.
62637
62638 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62639
62640         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62641
62642 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62643
62644         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62645
62646 2001-03-17  Jim Meyering  <meyering@lucent.com>
62647
62648         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62649         now that the version in autoconf is equivalent.
62650         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62651
62652         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62653         Suggestion from Akim Demaille.
62654
62655         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62656         (jm_PREREQ_TEMPNAME): New function.
62657
62658 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62659
62660         * lib/tempname.c (uint64_t): Define to uintmax_t if
62661         not defined, and if UINT64_MAX is not defined.
62662         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62663         Reported by John David Anglin.
62664
62665 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62666
62667         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62668         resolve alias if codeset is empty.
62669         * lib/config.charset (BeOS): Use wildcard syntax.
62670
62671 2001-03-13  Jim Meyering  <meyering@lucent.com>
62672
62673         * lib/path-concat.c (path_concat)
62674         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62675         concatenating e.g., `C:' and `foo'.
62676         From Bruno Haible.
62677
62678 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62679
62680         * lib/localcharset.c (locale_charset): Don't use
62681         setlocale(LC_CTYPE,NULL). Don't return NULL.
62682         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62683
62684 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62685
62686         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62687         support for DOS/DJGPP.
62688
62689 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62690
62691         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62692         lacks mkstemp.  Compile our own tempname.c if we compile our own
62693         mkstemp.c, as mkstemp relies on tempname.
62694
62695 2001-03-01  Jim Meyering  <meyering@lucent.com>
62696
62697         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62698         AH_VERBATIM really does output its argument verbatim.
62699
62700 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62701
62702         * lib/Makefile.am (libfetish_a_SOURCES):
62703         Add dup-safer.c, fopen-safer.c.
62704         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62705
62706         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62707         * lib/unistd-safer.h: New files.
62708
62709 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62710
62711         The mkstemp replacement is taken from glibc 2.2.2, with some
62712         portability fixes for use outside glibc, as follows:
62713
62714         * lib/tempname.c (struct_stat64): New macro.
62715         (direxists, __gen_tempname): Use it.
62716         This avoids a portability problem with Solaris 8.
62717
62718         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62719         (<stddef.h>, <stdint.h>, <string.h>):
62720         Include only if STDC_HEADERS || _LIBC.
62721         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62722         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62723         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62724         (__set_errno): Define this macro if <errno.h> doesn't.
62725         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62726         Define these macros if <stdio.h> doesn't.
62727         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62728         Define these macros if <sys/stat.h>
62729         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62730         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62731         __xstat64): Define if not _LIBC.
62732         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62733         (__gen_tempname): Invoke gettimeofday only if
62734         HAVE_GETTIMEOFDAY || _LIBC;
62735         otherwise, fall back on plain "time".
62736         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62737
62738         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62739
62740         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62741
62742 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62743
62744         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62745
62746 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62747
62748         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62749         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62750         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62751         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62752
62753 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62754
62755         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62756         Remove workaround macros for hosts that have mbrtowc but not
62757         mbstate_t, as we now insist on proper declarations for both
62758         before using mbrtowc.
62759
62760 2001-02-17  Jim Meyering  <meyering@lucent.com>
62761
62762         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62763         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62764         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62765         UnixWare 7.1.1.
62766
62767         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62768         rather than AC_CACHE_VAL.
62769
62770 2001-02-17  Jim Meyering  <meyering@lucent.com>
62771
62772         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62773         around included file name.
62774
62775         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62776
62777         * lib/strftime.c: Update from GNU libc (the only changes were to
62778         comments).
62779
62780 2001-02-17  Jim Meyering  <meyering@lucent.com>
62781
62782         * lib/regex.c: Update from libc.
62783
62784 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62785
62786         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62787         clash.
62788
62789 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62790
62791         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62792         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62793         Reported by Mark Hounschell via Paul Eggert.
62794
62795 2001-02-07  Jim Meyering  <meyering@lucent.com>
62796
62797         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62798
62799 2001-02-05  Jim Meyering  <meyering@lucent.com>
62800
62801         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62802         it includes the patch required for `large file' support with at least
62803         HP-UX's 10.20 /bin/cc.
62804
62805 2001-02-03  Jim Meyering  <meyering@lucent.com>
62806
62807         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62808         AS_IF, now that it works once again (mysteriously).
62809         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62810
62811 2001-01-30  Jim Meyering  <meyering@lucent.com>
62812
62813         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62814         * m4/chown.m4: Rename conftestchown to conftest.chown.
62815         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62816         s/conftestdir2/conftest.d2/.
62817         * m4/utimes.m4: s/conftestdata/conftest.data/
62818         Inspired by Pavel Roskin's change in autoconf.
62819
62820 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62821
62822         * lib/config.charset: Update for FreeBSD 4.2.
62823
62824 2001-01-27  Jim Meyering  <meyering@lucent.com>
62825
62826         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62827         a use of AS_IF.
62828         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62829
62830 2001-01-26  Jim Meyering  <meyering@lucent.com>
62831
62832         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62833         quotearg.c includes it.
62834
62835 2001-01-26  Jim Meyering  <meyering@lucent.com>
62836
62837         * lib/quotearg.c: Include stddef.h.
62838         * lib/quote.c: Include stddef.h.
62839         Reported by Axel Kittenberger.
62840
62841         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62842         line in double quotes so that it evokes a better diagnostic.
62843         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62844         Reported by Axel Kittenberger.
62845
62846 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62847
62848         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62849         as if it was a `charset'.
62850
62851 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62852
62853         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62854         has const.
62855
62856 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62857
62858         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62859         to avoid a warning.  Add back 'const' to inptr.
62860
62861 2001-01-20  Jim Meyering  <meyering@lucent.com>
62862
62863         Be sure that headers are checked before used in code compiled
62864         for the type checks.
62865         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62866         In place of that, invoke jm_CHECK_ALL_TYPES.
62867         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62868         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62869         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62870         The check for ssize_t was mistakenly run before the test for unistd.h.
62871
62872         The configure-time check for stdbool.h was missing.
62873         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62874         (jm_PREREQ_HASH): New function.
62875
62876 2001-01-17  Jim Meyering  <meyering@lucent.com>
62877
62878         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62879         for autoconf-2.49c.
62880         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62881
62882 2001-01-16  Jim Meyering  <meyering@lucent.com>
62883
62884         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62885         From Bruno Haible.
62886
62887 2001-01-14  Jim Meyering  <meyering@lucent.com>
62888
62889         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62890         foo and bar.  Create conftestdir/ in the script, not in the C code.
62891         Remove directories in the script, not in the C code.
62892         Remove conftestdir{,2} before trying to create the directory.
62893         Make the entire configure script fail if the mkdir fails.
62894
62895 2001-01-14  Jim Meyering  <meyering@lucent.com>
62896
62897         * lib/rename.c: New file.  From Volker Borchert.
62898         Include stdlib.h, string.h or strings.h, and xalloc.h.
62899         Use strip_trailing_slashes rather than open-coding it.
62900
62901 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62902
62903         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62904
62905 2001-01-03  Jim Meyering  <meyering@lucent.com>
62906
62907         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62908         of local `inptr' to avoid warning with some system declarations of
62909         iconv.
62910
62911 2001-01-02  Volker Borchert  <bt@teknon.de>
62912
62913         * m4/rename.m4: New file.
62914         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62915
62916 2001-01-01  Jim Meyering  <meyering@lucent.com>
62917
62918         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62919         even on systems with utmpx.h.  It's necessary for the declaration of
62920         utmp's ut_user member.  Reported by Andreas Jaeger.
62921
62922         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62923         available. They are required for the declarations of getgrgid and
62924         getpwuid resp.
62925         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62926         Reported by Andreas Jaeger.
62927
62928 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62929
62930         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62931         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62932         so `make install' also works in VPATH builds.
62933
62934 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62935
62936         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62937         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62938         can be used in subdirectories.
62939
62940 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62941
62942         * lib/modechange.c: Do not assume that mode_t uses the
62943         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62944         the other-execute bit of FOO even if S_IXOTH != 1.
62945
62946         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62947         WOTH, XOTH, ALLM): New macros.
62948         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62949          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62950         Use them.
62951         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62952         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62953         (mode_compile):
62954         No need to use uintmax_t; unsigned long is long enough.
62955         Don't bother to get suffix since we don't use it.
62956
62957 2000-12-26  Jim Meyering  <meyering@lucent.com>
62958
62959         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62960         better with autoheader.
62961
62962 2000-12-24  Jim Meyering  <meyering@lucent.com>
62963
62964         * lib/hash.c (is_prime): Return explicit boolean values.
62965         (hash_get_first): Return NULL to appease Irix5.6's 89.
62966         Reported by Nelson Beebe.
62967
62968 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62969
62970         * lib/localcharset.c (locale_charset): Add support for Win32.
62971
62972 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62973
62974         * lib/physmem.h, lib/physmem.c: New files.
62975
62976         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62977         (noinst_HEADERS): Add physmem.h.
62978
62979         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62980         't' for compatibility with Solaris 8 sort.
62981
62982 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62983
62984         * lib/config.charset: Add support for BeOS.
62985
62986 2000-12-17  Jim Meyering  <meyering@lucent.com>
62987
62988         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62989         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62990
62991 2000-12-16  Jim Meyering  <meyering@lucent.com>
62992
62993         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62994         N and M) would have treated it like `chown N:N FILE'.
62995
62996         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62997
62998 2000-12-16  Jim Meyering  <meyering@lucent.com>
62999
63000         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
63001         SHELLS_FILE to a file name that's useful on djgpp systems.
63002         Include stdlib.h.
63003         (ADDITIONAL_DEFAULT_SHELLS): Define.
63004         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
63005         Based mostly on a patch from Prashant TR.
63006
63007 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
63008
63009         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
63010         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
63011         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
63012
63013 2000-12-08  Andreas Schwab  <schwab@suse.de>
63014
63015         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
63016         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
63017
63018 2000-12-07  Jim Meyering  <meyering@lucent.com>
63019
63020         * lib/stripslash.c (ISSLASH): Define.
63021         (strip_trailing_slashes): Use ISSLASH rather than comparing against
63022         `/'.
63023         From Prashant TR.
63024
63025         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
63026         (dir_name_r): Declare this function as static.
63027         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
63028         manifest itself on a name containing a mix of slashes and
63029         backslashes.
63030         Make this function work with names starting with a DOS-style
63031         drive letter and colon prefix.
63032         (dir_name): Append `.' if necessary.
63033         Based mostly on patches from Prashant TR and Eli Zaretskii.
63034
63035         * lib/dirname.h (dir_name_r): Remove prototype.
63036
63037 2000-12-06  Paul Eggert  <eggert@twinsun.com>
63038
63039         * m4/off_t-format.m4: Remove this file.
63040         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
63041
63042 2000-12-06  Jim Meyering  <meyering@lucent.com>
63043
63044         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
63045         replacement strtoull, we may well need the replacement strtoul, too.
63046         Check for declarations of strtoul and strtoull.
63047         Check for strtol.  Mainly as a cue to cause automake to include
63048         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
63049         Check for limits.h -- strtol.c needs it.
63050
63051 2000-12-05  Jim Meyering  <meyering@lucent.com>
63052
63053         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
63054
63055 2000-12-04  Jim Meyering  <meyering@lucent.com>
63056
63057         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
63058         Also include memory.h, stdlib.h, unistd.h if appropriate.
63059         Reported by Andreas Jaeger (conflicting declaration of malloc).
63060
63061 2000-12-02  Jim Meyering  <meyering@lucent.com>
63062
63063         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
63064         * m4/jm-macros.m4 (jm_MACROS): require it.
63065
63066 2000-12-02  Jim Meyering  <meyering@lucent.com>
63067
63068         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
63069
63070 2000-12-01  Paul Eggert  <eggert@twinsun.com>
63071
63072         * lib/memrchr.c: Include <config.h> before any system include file.
63073
63074 2000-11-30  Jim Meyering  <meyering@lucent.com>
63075
63076         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
63077
63078 2000-11-30  Jim Meyering  <meyering@lucent.com>
63079
63080         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
63081
63082 2000-11-29  Paul Eggert  <eggert@twinsun.com>
63083
63084         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
63085
63086 2000-11-26  Jim Meyering  <meyering@lucent.com>
63087
63088         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
63089
63090 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63091
63092         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63093         size of (size_t) -1; it's not portable.
63094
63095 2000-11-17  Jim Meyering  <meyering@lucent.com>
63096
63097         * lib/strstr.c: Update from GNU libc.
63098
63099 2000-11-17  Akim Demaille  <akim@epita.fr>
63100
63101         * lib/obstack.h: Formatting changes.
63102         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63103         prevent type checking.
63104         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63105         cast the value to (void *): assigning a `foo *' to a `void *'
63106         variable is valid.
63107         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63108
63109 2000-11-16  Jim Meyering  <meyering@lucent.com>
63110
63111         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63112
63113 2000-11-11  Jim Meyering  <meyering@lucent.com>
63114
63115         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63116
63117 2000-11-10  Jim Meyering  <meyering@lucent.com>
63118
63119         * lib/obstack.h: Update from GNU libc.
63120         * lib/obstack.c: Likewise.
63121
63122 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63123
63124         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63125
63126 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63127
63128         * lib/getusershell.c (setusershell): Use rewind rather than
63129         fseek/fseeko, to avoid configuration hassles with fseeko.
63130         Don't bother opening SHELLS_FILE if shellstream is NULL;
63131         it's not necessary.
63132
63133 2000-11-05  Jim Meyering  <meyering@lucent.com>
63134
63135         * lib/makepath.h (make_dir): Declare.
63136         * lib/makepath.c (make_dir): Remove `static' attribute.
63137         Tweak a comment.
63138
63139 2000-11-04  Jim Meyering  <meyering@lucent.com>
63140
63141         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63142
63143 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63144
63145         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63146         last one in a bucket, advance to the next bucket.
63147
63148 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63149
63150         * lib/fnmatch.c: Do not comment out all the code if we are using
63151         the GNU C library, because in some cases we are replacing buggy
63152         code in the GNU C library itself.
63153
63154 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63155
63156         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63157         (regex_compile): Catch bogus \(\1\).
63158
63159 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63160
63161         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63162         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63163         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63164
63165 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63166
63167         * lib/error.h, getline.h, modechange.h:
63168         Remove "2000" from Copyright line, as the file hasn't been
63169         changed this year other than in the copyright notice.
63170
63171         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63172         was changed this year.
63173
63174 2000-10-29  Jim Meyering  <meyering@lucent.com>
63175
63176         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63177         renaming.
63178         * m4/ls-mntd-fs.m4: Likewise
63179
63180 2000-10-29  Jim Meyering  <meyering@lucent.com>
63181
63182         * lib/xstat.in: Fix grammar in comment.
63183
63184 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63185
63186         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63187         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63188         doesn't define __restrict_arr.
63189
63190 2000-10-28  Jim Meyering  <meyering@lucent.com>
63191
63192         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63193         (jm_PREREQ_MEMCHR): New function.
63194
63195 2000-10-28  Jim Meyering  <meyering@lucent.com>
63196
63197         * lib/memchr.c: Update from libc.
63198         Adjust for portability:
63199         [HAVE_STDLIB_H]: Include stdlib.h.
63200         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63201         Undef __memchr, too.
63202         [!weak_alias]: Define __memchr to memchr.
63203
63204         * lib/regex.c: Update from libc.
63205         * lib/regex.h: Likewise.
63206         * lib/getopt1.c: Likewise.
63207         * lib/memcmp.c: Likewise.
63208
63209         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63210         Avoid using fseek, when possible -- it's broken by design.
63211         Patch by Ulrich Drepper.
63212
63213 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63214
63215         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63216         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63217         Giving in to popular pressure to shut up the compiler with casts.
63218
63219 2000-10-26  Jim Meyering  <meyering@lucent.com>
63220
63221         * lib/strftime.c: Update from libc.
63222
63223 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63224
63225         * regex.c: More `unsigned char' -> `re_char' changes.
63226         Also change several `int' into `re_wchar_t'.
63227         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63228         (PUSH_FAILURE_POINTER): Don't cast any more.
63229         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63230         We want GCC to complain, since this piece of code makes
63231         re_match non-reentrant, which *should* be fixed.
63232         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63233         (EXTEND_BUFFER): Use RETALLOC.
63234         (SET_LIST_BIT): Don't cast.
63235         (re_wchar_t): New type.
63236         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63237         that those two functions will always properly return.
63238         (IMMEDIATE_QUIT_CHECK): Cast to void.
63239         (analyse_first): Use recursion rather than an explicit stack.
63240         (re_compile_fastmap): Can't fail anymore.
63241         (re_search_2): Don't check re_compile_fastmap for failure.
63242         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63243         Now also sets the new value (passed in a new argument).
63244         (re_match_2_internal): Use it.
63245         Also, use a new var `reg' of type size_t when looping through regs
63246         rather than reuse the inappropriate `mcnt'.
63247
63248 2000-10-25  Jim Meyering  <meyering@lucent.com>
63249
63250         * lib/obstack.c: Update from libc.
63251
63252 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63253
63254         * regex.c (regex_compile): Change the way of handling a range from
63255         a char less than 256 to a char not less than 256.
63256
63257 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63258
63259         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63260         NT-Emacs only.
63261         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63262         so that re_search functions only quit when callers expect them to.
63263
63264 2000-10-23  Jim Meyering  <meyering@lucent.com>
63265
63266         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63267         wrong.  That set_locale call must not have any side effects.
63268         From Paul Eggert.
63269
63270 2000-10-22  Jim Meyering  <meyering@lucent.com>
63271
63272         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63273         [CYCLIC]: Remove now-unused definition.
63274
63275         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63276         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63277         Suggestion from Ulrich Drepper.
63278
63279 2000-10-21  Jim Meyering  <meyering@lucent.com>
63280
63281         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63282         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63283         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63284
63285 2000-10-21  Jim Meyering  <meyering@lucent.com>
63286
63287         * lib/dirname.c (memrchr): Declare if necessary.
63288         (dir_name): Remove the restriction that there be no
63289         trailing slashes.  Now, this code skips past them, effectively
63290         ignoring them.
63291         [TEST_DIRNAME] (main): New unit tests.
63292
63293         * lib/memrchr.c: New file from GNU libc.
63294         Undef __memrchr, too.
63295         [!weak_alias]: Define __memrchr to memrchr.
63296         Guard weak_alias use with `#ifdef weak_alias'.
63297
63298 2000-10-21  Jim Meyering  <meyering@lucent.com>
63299
63300         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63301         (dir_name): Use dir_name_r.
63302         * lib/dirname.h (dir_name_r): Declare it.
63303
63304 2000-10-17  Jim Meyering  <meyering@lucent.com>
63305
63306         * lib/quote.h (PARAMS): Define and use.
63307         Reported by Akim Demaille.
63308
63309         * lib/getopt.c: Update from libc.
63310
63311 2000-10-16  Jim Meyering  <meyering@lucent.com>
63312
63313         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63314         setlocale.
63315         From Jan Fedak.
63316
63317 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63318
63319         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63320
63321 2000-09-25  Jim Meyering  <meyering@lucent.com>
63322
63323         * lib/md5.h (rol): Define (from GnuPG).
63324
63325         * lib/sha.c: Give credit (GnuPG) where due.
63326         (M): Use rol rather than open-coding it.
63327         Add a FIXME comment.
63328
63329 2000-09-21  Jim Meyering  <meyering@lucent.com>
63330
63331         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63332         Reported by Michael Stone.
63333
63334 2000-09-20  Jim Meyering  <meyering@lucent.com>
63335
63336         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63337         (noinst_HEADERS): Add sha.h.
63338         Based on code from Scott G. Miller and from GnuPG.
63339
63340 2000-09-18  Jim Meyering  <meyering@lucent.com>
63341
63342         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63343         LIBS. Otherwise, everyone ends up linking with -lelf for some
63344         configurations.
63345         Reported by Mike Stone.
63346
63347 2000-09-15  Jim Meyering  <meyering@lucent.com>
63348
63349         * lib/regex.c: Update from libc.
63350
63351 2000-09-10  Jim Meyering  <meyering@lucent.com>
63352
63353         * lib/getopt.c (_getopt_internal): Update from glibc.
63354
63355 2000-09-09  Jim Meyering  <meyering@lucent.com>
63356
63357         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63358         think it should be used as a general replacement for isascii.
63359         * lib/fnmatch.c: Likewise.
63360         * lib/mbswidth.c: Likewise
63361         * lib/regex.c: Likewise.
63362
63363         Don't use atoi.
63364         * lib/userspec.c: Include sys/param.h and limits.h.
63365         Include xstrtol.h.
63366         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63367         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63368         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63369         UID, GID.  Check range.
63370
63371 2000-09-06  Jim Meyering  <meyering@lucent.com>
63372
63373         * lib/getopt.c (_getopt_internal): Update from glibc.
63374
63375 2000-08-30  Jim Meyering  <meyering@lucent.com>
63376
63377         * lib/strftime.c: Merge in changes from GNU libc.
63378
63379 2000-08-26  Jim Meyering  <meyering@lucent.com>
63380
63381         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63382         * m4/fpending.m4: New file.
63383
63384 2000-08-26  Jim Meyering  <meyering@lucent.com>
63385
63386         * lib/closeout.c: Include "__fpending.h".
63387         (close_stdout_status): Return right away if there's nothing to flush.
63388
63389         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63390         * lib/__fpending.c: New file.
63391         * lib/__fpending.h: New file.
63392
63393 2000-08-20  Jim Meyering  <meyering@lucent.com>
63394
63395         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63396         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63397         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63398
63399 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63400
63401         Improve fileutils installation on systems where running
63402         programs (like install) can't be unlinked.
63403         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63404         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63405
63406 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63407
63408         Standardize on "memory exhausted" instead of "Memory exhausted"
63409         or "virtual memory exhausted".
63410         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63411         "virtual memory exhausted".
63412         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63413         our own message.
63414         * lib/userspec.c (parse_user_spec): Likewise.
63415         * lib/bumpalloc.h: comment fix
63416         * lib/same.c, userspec.c: Include xalloc.h.
63417
63418         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63419         not char *const and pointing to a constant array.
63420         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63421         (xrealloc): Comment fix.
63422
63423         * lib/userspec.c (parse_user_spec):
63424         Don't translate a message until just before returning,
63425         to avoid unnecessary translation.
63426
63427 2000-08-07  Jim Meyering  <meyering@lucent.com>
63428
63429         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63430         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63431         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63432         getgroups.c, gethostname.c, getopt.h, group-member.c,
63433         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63434         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63435         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63436         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63437         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63438         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63439         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63440         yesno.c: Back out Copyright date changes for each file with no change
63441         this year.  This eases coordination with other programs using the same
63442         source code modules.  From Paul Eggert.
63443
63444 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63445
63446         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63447         not char, for compatibility with glibc 2.1.3 strftime.c.
63448
63449 2000-08-03  Greg McGary  <greg@mcgary.org>
63450
63451         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63452         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63453         (EXTEND_BUFFER): Use them.
63454
63455 2000-08-01  Jim Meyering  <meyering@lucent.com>
63456
63457         * lib/dirname.c (ISSLASH): Define.
63458         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63459         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63460         both `\' and `/' may be use as path separators.
63461         Based on a patch from Prashant TR.
63462
63463 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63464
63465         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63466         slot vector a constant, since it might get modified.
63467
63468 2000-07-31  Jim Meyering  <meyering@lucent.com>
63469
63470         * lib/xmalloc.c: Use `virtual memory exhausted', not
63471         `Memory exhausted'.
63472         * lib/obstack.c (print_and_abort): Likewise.
63473
63474 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63475
63476         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63477         buffer, so that the caller can always quote one small
63478         component of a "memory exhausted" message in slot 0.
63479         From a suggestion by Jim Meyering.
63480
63481 2000-07-30  Jim Meyering  <meyering@lucent.com>
63482
63483         * lib/makepath.c (make_path): Quote the other instance, too.
63484
63485         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63486         (STATIC_BUF_SIZE): Define.
63487         (quotearg_n_options): Use only statically allocated storage when
63488         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63489         than STATIC_BUF_SIZE.
63490
63491 2000-07-29  Jim Meyering  <meyering@lucent.com>
63492
63493         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63494         * lib/dirname.c (dir_name): Likewise.
63495
63496         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63497         `/'.
63498
63499         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63500         (dir_name): Assert that there are no trailing slashes.
63501
63502 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63503
63504         * lib/mbswidth.h (mbswidth): Add a flags argument.
63505         (mbswidth): New declaration.
63506         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63507         * lib/mbswidth.c (mbswidth): Add a flags argument.
63508         (mbsnwidth): New function.
63509
63510 2000-07-24  Jim Meyering  <meyering@lucent.com>
63511
63512         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63513
63514 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63515
63516         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63517
63518 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63519
63520         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63521         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63522         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63523         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63524         invoke multibyte primitives.
63525
63526 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63527
63528         * lib/quotearg.c:
63529         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63530         so that mbstate_t is always defined.
63531
63532         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63533         be 1 in at least one GCC installation, and this configuration
63534         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63535         performance on hosts that have mbrtowc but have only unibyte
63536         locales, but I assume these hosts are rare.
63537
63538 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63539
63540         * lib/mbswidth.c (_XOPEN_SOURCE):
63541         Don't define; this causes problems on Solaris 7.
63542         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63543
63544 2000-07-23  Jim Meyering  <meyering@lucent.com>
63545
63546         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63547         too: getgrgid, getpwuid, getuid.
63548
63549 2000-07-23  Jim Meyering  <meyering@lucent.com>
63550
63551         * lib/basename.c (base_name): Add an assertion.
63552
63553 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63554
63555         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63556         shadow its mbsinit function.
63557
63558 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63559
63560         * lib/mbswidth.h: New file.
63561         * lib/mbswidth.c: New file.
63562         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63563         (noinst_HEADERS): Add mbswidth.h.
63564
63565 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63566
63567         * lib/config.charset: Add support for FreeBSD. Improve support for
63568         HP-UX and IRIX 6.
63569
63570 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63571
63572         * m4/mbswidth.m4: New file.
63573         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63574
63575 2000-07-15  Jim Meyering  <meyering@lucent.com>
63576
63577         * lib/makepath.c: Include quote.h.
63578         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63579         corresponding argument in a `quote (...)' call.
63580         Give better diagnostics.
63581
63582         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63583         (noinst_HEADERS): Add quote.h.
63584
63585         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63586         from tar's src/misc.c.
63587         * lib/quote.h: New file.  Prototypes for same.
63588
63589 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63590
63591         From a suggestion by Bruno Haible.
63592         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63593         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63594         to decide whether to define the BeOS workaround macro;
63595         this adjusts to the change to AC_MBSTATE_T.
63596
63597 2000-07-14  Jim Meyering  <meyering@lucent.com>
63598
63599         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63600         jm_AC_TYPE_UINTMAX_T.
63601
63602 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63603
63604         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63605
63606         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63607         quotearg_buffer_restyled): Add support for
63608         clocale_quoting_style.  Undo previous change to
63609         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63610         and "{RIGHT QUOTATION MARK}" msgids.
63611
63612 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63613
63614         From a suggestion by Bruno Haible.
63615         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63616         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63617         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63618         and mbstate_t, to a single-part test that simply defines mbstate_t.
63619         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63620         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63621
63622 2000-07-10  Jim Meyering  <meyering@lucent.com>
63623
63624         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63625
63626         * m4/gnu-source.m4: Output to confdefs.h directly.
63627         Suggestion from Akim Demaille.
63628
63629 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63630
63631         The old behavior of quoting `like this' doesn't look good with
63632         newer, ISO-style fonts.  See:
63633         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63634
63635         Instead, quote "like this" by default.  Let the translator
63636         tailor the locale-specific quoting behavior by providing
63637         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63638
63639         * lib/quotearg.c (N_): New macro.
63640         (gettext_default): New function.
63641         (quotearg_buffer_restyled): Use
63642         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63643         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63644
63645 2000-07-09  Jim Meyering  <meyering@lucent.com>
63646
63647         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63648         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63649
63650         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63651         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63652
63653 2000-07-09  Jim Meyering  <meyering@lucent.com>
63654
63655         * lib/Most files: Update copyright dates to include 2000.
63656
63657 2000-07-08  Jim Meyering  <meyering@lucent.com>
63658
63659         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63660         if not defined.
63661         (xgethostname): Remove now-unnecessary #ifdef.
63662         Move declaration of `err' into loop where it's used.
63663
63664 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63665         and Bruno Haible  <haible@clisp.cons.org>
63666
63667         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63668         only if the test for an object-type mbstate_t fails.  This
63669         prevents us from mistakenly reporting that mbstate_t is a
63670         system object type after we "#define mbstate_t int" to work
63671         around its lack.
63672
63673 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63674         and Bruno Haible  <haible@clisp.cons.org>
63675
63676         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63677
63678 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63679
63680         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63681         to strerror_r.
63682         Include <ctype.h> for use of isalpha.
63683
63684 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63685
63686         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63687         by allocating a larger buffer. Test the gethostname return value for
63688         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63689         returns an error and ENAMETOOLONG isn't defined.
63690
63691 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63692
63693         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63694         dimension.
63695
63696 2000-07-04  Jim Meyering  <meyering@lucent.com>
63697
63698         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63699         of the deprecated AC_CHECKING.
63700
63701 2000-07-04  Jim Meyering  <meyering@lucent.com>
63702
63703         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63704         Reported by Bruno Haible.
63705
63706 2000-07-04  Jim Meyering  <meyering@lucent.com>
63707
63708         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63709         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63710         lacks mbrtowc.
63711
63712 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63713
63714         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63715         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63716
63717 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63718         and Bruno Haible  <haible@clisp.cons.org>
63719
63720         * lib/quotearg.c (mbrtowc):
63721         Assign to *pwc, and return 1 only if result is nonzero.
63722         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63723
63724 2000-07-03  Jim Meyering  <meyering@lucent.com>
63725
63726         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63727
63728 2000-07-03  Jim Meyering  <meyering@lucent.com>
63729
63730         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63731         This is necessary to get a definition of e.g., UTMP_FILE on
63732         HP-UX 10.20.
63733         From Bob Proulx.
63734
63735 2000-07-02  Jim Meyering  <meyering@lucent.com>
63736
63737         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63738
63739         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63740         AC_LIBOBJ(function_name).
63741         * m4/chown.m4: Likewise.
63742         * m4/fnmatch.m4: Likewise.
63743         * m4/ftruncate.m4: Likewise.
63744         * m4/getgroups.m4: Likewise.
63745         * m4/getline.m4: Likewise.
63746         * m4/group-member.m4: Likewise.
63747         * m4/jm-macros.m4: Likewise.
63748         * m4/lstat.m4: Likewise.
63749         * m4/malloc.m4: Likewise.
63750         * m4/memcmp.m4: Likewise.
63751         * m4/nanosleep.m4: Likewise.
63752         * m4/putenv.m4: Likewise.
63753         * m4/realloc.m4: Likewise.
63754         * m4/regex.m4: Likewise.
63755         * m4/stat.m4: Likewise.
63756         * m4/strftime.m4: Likewise.
63757
63758 2000-07-02  Jim Meyering  <meyering@lucent.com>
63759
63760         * lib/quotearg.c (mbstate_t): Don't define here.
63761
63762 2000-07-02  Jim Meyering  <meyering@lucent.com>
63763
63764         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63765
63766 2000-07-01  Jim Meyering  <meyering@lucent.com>
63767
63768         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63769
63770 2000-07-01  Jim Meyering  <meyering@lucent.com>
63771
63772         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63773         problem.
63774
63775 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63776
63777         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63778         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63779
63780 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63781
63782         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63783         per change in ../m4/ls-mntd-fs.m4.
63784         (read_filesystem_list): Ignore symbolic links.
63785
63786 2000-06-29  Jim Meyering  <meyering@lucent.com>
63787
63788         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63789         for declaration of strcmp.
63790
63791         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63792
63793         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63794         Avoid warning by casting result to `char *' to remove `const'.
63795
63796 2000-06-28  Jim Meyering  <meyering@lucent.com>
63797
63798         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63799         included by quotearg.c, for which we perform this test.  From
63800         Bruno Haible.
63801
63802 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63803
63804         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63805         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63806         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63807
63808 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63809
63810         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63811
63812 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63813
63814         savedir now sets errno on failure and invokes xmalloc to get memory.
63815         Fix a couple of other minor bugs while we're at it.
63816
63817         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63818         (NAMLEN): Remove macro.
63819         (malloc, realloc): Remove decls.
63820         (stpcpy): Likewise.
63821         ("xalloc.h"): Include.
63822         (NAME_SIZE_DEFAULT): New macro.
63823         (savedir): Use xmalloc / xrealloc to allocate memory.
63824         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63825         Skip "" directory entries.
63826         Use strlen to calculate directory entry length, since the old method
63827         is rarely used these days and isn't worth supporting.
63828         Don't use a pointer after freeing it.
63829         Check for integer overflow when calculating allocation size.
63830         Use memcpy to copy entries, instead of stpcpy.
63831         Set errno properly when returning NULL.
63832         Check for readdir error.
63833
63834 2000-06-26  Jim Meyering  <meyering@lucent.com>
63835
63836         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63837
63838 2000-06-25  Jim Meyering  <meyering@lucent.com>
63839
63840         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63841         Linux header bug when _XOPEN_SOURCE is defined to 500.
63842
63843 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63844
63845         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63846         deficiency.
63847
63848 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63849
63850         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63851         Include xalloc.h.
63852         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63853
63854 2000-06-24  Jim Meyering  <meyering@lucent.com>
63855
63856         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63857         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63858         for which strerror does return char*, but which lacks a conveniently
63859         accessible declaration of the function.  If the compile-test says
63860         strerror_r doesn't work, then resort to a `run'-test that works on
63861         BeOS and segfaults on DEC Unix.
63862
63863 2000-06-24  Jim Meyering  <meyering@lucent.com>
63864
63865         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63866
63867 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63868
63869         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63870         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63871
63872 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63873
63874         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63875         (mbrtowc, mbstate_t): Define substitutes if
63876         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63877         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63878         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63879
63880 2000-06-23  Jim Meyering  <meyering@lucent.com>
63881
63882         * m4/afs.m4: Add missing AC_MSG_RESULT.
63883         Reported by Bruno Haible.
63884
63885         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63886         Suggestion from Bruno Haible.
63887
63888 2000-06-23  Jim Meyering  <meyering@lucent.com>
63889
63890         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63891
63892 2000-06-21  Jim Meyering  <meyering@lucent.com>
63893
63894         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63895
63896 2000-06-21  Jim Meyering  <meyering@lucent.com>
63897
63898         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63899         (noinst_HEADERS): Add getstr.h.
63900
63901         * lib/getline.c (getstr): Move into a separate file.
63902         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63903         the following changes: new parameter, delim2; both delim[12]
63904         parameters have type `int', not `char'.  The latter would lose
63905         with 8-bit delimiters.
63906         * lib/getstr.h: New file.
63907
63908 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63909
63910         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63911         than 1024, return a memory chunk of least possible size, instead
63912         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63913         Use free/xmalloc instead of xrealloc to avoid copying for very long
63914         paths.
63915
63916 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63917
63918         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63919         the empty string.
63920
63921 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63922
63923         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63924         address, not strdup.  Include <stdlib.h> and don't declare free().
63925
63926 2000-06-19  Jim Meyering  <meyering@lucent.com>
63927
63928         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63929
63930 2000-06-18  Jim Meyering  <meyering@lucent.com>
63931
63932         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63933
63934         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63935         `checking whether...' message to be consistent with that of the
63936         lstat test.
63937
63938 2000-06-18  Jim Meyering  <meyering@lucent.com>
63939
63940         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63941         Besides, these days every porting target provides a mkdir function.
63942
63943         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63944         needed. (this snippet comes from src/system.h).
63945
63946 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63947
63948         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63949
63950 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63951
63952         * lib/human.c (adjust_value): New function.
63953         (human_readable_inexact): Apply rounding style even when
63954         printing approximate values.
63955
63956 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63957
63958         * lib/human.c (human_readable_inexact): Allow an input block
63959         size that is not a multiple of the output block size, and vice versa.
63960         Reported by Piergiorgio Sartor.
63961
63962 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63963
63964         * lib/getdate.y (get_date): Apply relative times after time
63965         zone indicator, not before.  Reported by Todd A. Jacobs.
63966
63967 2000-06-13  Jim Meyering  <meyering@lucent.com>
63968
63969         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63970
63971         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63972
63973 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63974
63975         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63976
63977 2000-06-12  Jim Meyering  <meyering@lucent.com>
63978
63979         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63980         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63981         optional argument.
63982         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63983         the optional argument, `lib'.
63984
63985 2000-06-08  Jim Meyering  <meyering@lucent.com>
63986
63987         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63988
63989 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63990
63991         Rewrite largefile configuration so that we don't need to run
63992         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63993         AC_CANONICAL_HOST in configure.in -- jmm]
63994
63995         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63996         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63997         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63998         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63999         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
64000         All uses changed.
64001         Instead of inspecting the output of getconf, try to compile the
64002         test program without and with the macro definition.
64003         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
64004         for getconf.  Instead, check for the needed flags by compiling
64005         test programs.
64006
64007 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64008
64009         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
64010
64011 2000-06-04  Jim Meyering  <meyering@lucent.com>
64012
64013         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
64014         SunOS 4.1.4 for which gid_t is an unsigned type.
64015
64016 2000-06-03  Jim Meyering  <meyering@lucent.com>
64017
64018         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
64019         now that autoconf requires that.
64020
64021         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
64022         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
64023         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
64024
64025 2000-06-03  Jim Meyering  <meyering@lucent.com>
64026
64027         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
64028
64029 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64030
64031         * m4/glibc21.m4: New file.
64032         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
64033
64034 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64035
64036         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
64037         newer, don't install charset.alias.
64038         * lib/config.charset: Change the Linux/glibc rules so they become empty
64039         on glibc-2.1 or newer.
64040
64041 2000-06-02  Jim Meyering  <meyering@lucent.com>
64042
64043         * lib/mountlist.c: Back out last change.  Instead, do this...
64044         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
64045         me_dummy member using the same `ignore'-testing code.
64046         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
64047         fs_type strings.
64048         From Mark D. Roth.
64049
64050 2000-05-29  Jim Meyering  <meyering@lucent.com>
64051
64052         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
64053         mounts with the `ignore' attribute.  Based on a patch from
64054         Mark D. Roth.
64055
64056 2000-05-28  Jim Meyering  <meyering@lucent.com>
64057
64058         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
64059         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64060         * m4/stat.m4: Likewise.
64061         * m4/lstat.m4: Likewise.
64062         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
64063
64064         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
64065         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
64066
64067 2000-05-26  Jim Meyering  <meyering@lucent.com>
64068
64069         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
64070
64071 2000-05-24  Jim Meyering  <meyering@lucent.com>
64072
64073         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
64074         autoconf requires that.
64075         * m4/lib-check.m4: Likewise.
64076         * m4/jm-macros.m4: Likewise.
64077         * m4/strftime.m4: Likewise.
64078
64079         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
64080         AC_CHECK_DECLS, now that autoconf requires that.
64081
64082 2000-05-22  Jim Meyering  <meyering@lucent.com>
64083
64084         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64085         * m4/lstat.m4: Likewise.
64086
64087 2000-05-22  Jim Meyering  <meyering@lucent.com>
64088
64089         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
64090
64091 2000-05-20  Jim Meyering  <meyering@lucent.com>
64092
64093         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64094         (jm_PREREQ): Use it.
64095
64096 2000-05-18  Jim Meyering  <meyering@lucent.com>
64097
64098         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64099         back, too, since it may have been modified by allocate_entry.
64100         (hash_delete): Rewrite to use neither the assignment operator
64101         nor the comma operator in an if-expression.
64102
64103 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64104
64105         * lib/closeout.c:
64106         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64107         Remove; no longer needed.
64108         "quotearg.h": Add include.
64109         (file_name): Do not bother to explicitly initialize to NULL; it's less
64110         efficient on some hosts.
64111         (close_stdout_status): Remove test as to whether stdout was already
64112         closed; it breaks for the case "echo x | sort >&-".
64113         Quote file name colons.
64114         Do not assume that _("write error") lacks format strings.
64115
64116 2000-05-15  Jim Meyering  <meyering@lucent.com>
64117
64118         * lib/version-etc.c (version_etc_copyright): Update the copyright
64119         string used in all --version output.
64120
64121 2000-05-14  Jim Meyering  <meyering@lucent.com>
64122
64123         * lib/closeout.c (close_stdout_set_file_name): New function.
64124         (close_stdout_status): Use new file-scoped global.
64125         Return right away if fstat says the stdout file descriptor is invalid.
64126         * lib/closeout.h (close_stdout_set_file_name): Declare.
64127
64128 2000-05-10  Jim Meyering  <meyering@lucent.com>
64129
64130         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64131         (close_stdout_set_status): New function.
64132         * lib/closeout.h (close_stdout_set_status): Declare.
64133
64134 2000-05-09  Jim Meyering  <meyering@lucent.com>
64135
64136         * m4/gettext.m4: Rename this...
64137         * m4/libintl.m4: ...to this.
64138
64139 2000-05-08  Jim Meyering  <meyering@lucent.com>
64140
64141         * lib/long-options.c: Don't include closeout.h.
64142         (parse_long_options): Don't call close_stdout for --version.
64143
64144 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64145
64146         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64147         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64148         2.1.3 bug.  This avoids a clash when files like regex.c define
64149         _GNU_SOURCE.
64150
64151 2000-05-06  Jim Meyering  <meyering@lucent.com>
64152
64153         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64154         (AC_REPLACE_FUNCS): Add strnlen.
64155
64156         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64157         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64158
64159         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64160         AC_SEARCH_LIBS call for nanosleep.
64161         (LIB_NANOSLEEP): Set and AC_SUBST.
64162
64163 2000-05-06  Jim Meyering  <meyering@lucent.com>
64164
64165         * lib/strnlen.c: Undefine __strnlen and strnlen.
64166         [!weak_alias]: Define __strnlen to strnlen.
64167
64168         * lib/atexit.c: New file, from libiberty.
64169
64170 2000-05-06  Jim Meyering  <meyering@lucent.com>
64171
64172         * lib/closeout.c (close_stdout_status): Also check for errors on the
64173         stderr stream.
64174
64175 2000-05-05  Jim Meyering  <meyering@lucent.com>
64176
64177         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64178         AC_SEARCH_LIBS call for clock_gettime.
64179         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64180
64181         * m4/search-libs.m4: Update from autoconf.
64182
64183         su doesn't work on Solaris 2.6.
64184         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64185         <shadow.h>.  Reported by Dragos Harabor.
64186
64187 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64188
64189         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64190         memcpy instead of xmalloc, xrealloc, path_concat.
64191         (locale_charset): Treat empty environment variables as absent.
64192         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64193
64194 2000-05-04  Jim Meyering  <meyering@lucent.com>
64195
64196         * lib/getopt.c: Update from glibc.
64197         * lib/obstack.c: Likewise.
64198         * lib/obstack.h: Likewise.
64199         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64200         file
64201
64202         * lib/regex.h: Likewise.
64203         * lib/strndup.c: Likewise.
64204         * lib/strnlen.c: New file, from glibc.
64205
64206 2000-05-03  Jim Meyering  <meyering@lucent.com>
64207
64208         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64209
64210 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64211
64212         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64213         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64214         compile-time test, rather than inspecting host and OS, to
64215         decide whether to define _LARGEFILE_SOURCE.
64216
64217 2000-05-01  Jim Meyering  <meyering@lucent.com>
64218
64219         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64220
64221         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64222         Based on a patch from Bruno Haible.
64223
64224 2000-05-01  Jim Meyering  <meyering@lucent.com>
64225
64226         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64227
64228 2000-04-29  Jim Meyering  <meyering@lucent.com>
64229
64230         * lib/path-concat.c: Declare strdup only if it's not defined.
64231         * lib/canon-host.c: Likewise.
64232
64233 2000-04-28  Jim Meyering  <meyering@lucent.com>
64234
64235         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64236         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64237         is included first, then limits.h is included by locale.h by libintl.h.
64238         From John David Anglin.
64239
64240 2000-04-25  Jim Meyering  <meyering@lucent.com>
64241
64242         * lib/makepath.c (S_IRWXUGO): Define.
64243         (make_path): Always perform explicit chmod if MODE specifies any
64244         of the `special' permission bits.  Prompted by a bug report against
64245         install from Mate Wierdl and Joost van Baal.
64246
64247 2000-04-18  Jim Meyering  <meyering@lucent.com>
64248
64249         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64250         (jm_PREREQ): Use it.
64251
64252 2000-04-18  Jim Meyering  <meyering@lucent.com>
64253
64254         * lib/README: New file.
64255
64256         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64257         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64258
64259 2000-04-17  Jim Meyering  <meyering@lucent.com>
64260
64261         Get it right :-)
64262         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64263         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64264         Suggestion from Akim Demaille.
64265
64266 2000-04-17  Jim Meyering  <meyering@lucent.com>
64267
64268         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64269         the definition of it to rpl_strftime also defined-away the system's
64270         declaration.
64271
64272 2000-04-15  Jim Meyering  <meyering@lucent.com>
64273
64274         Use `C' to denote so-called `contiguous' files, the same way
64275         that tar does.
64276         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64277         (ftypelet): Use S_ISCTG.
64278         From Michael Deutschmann.
64279
64280 2000-04-14  Jim Meyering  <meyering@lucent.com>
64281
64282         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64283         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64284         clobbered.
64285
64286 2000-04-14  Jim Meyering  <meyering@lucent.com>
64287
64288         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64289
64290 2000-04-13  Jim Meyering  <meyering@lucent.com>
64291
64292         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64293         AH_VERBATIM to insert required #ifndef into config.h.in.
64294         Suggestion from Akim Demaille.
64295
64296 2000-04-12  Jim Meyering  <meyering@lucent.com>
64297
64298         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64299         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64300         Christian Krackowizer.
64301
64302         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64303         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64304         (AC_SYS_LARGEFILE): Require.
64305         (AM_C_PROTOTYPES): Require.
64306
64307 2000-04-08  Jim Meyering  <meyering@lucent.com>
64308
64309         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64310         names don't conflict.  Reported by Eli Zaretskii.
64311
64312 2000-04-07  Jim Meyering  <meyering@lucent.com>
64313
64314         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64315         sys/types.h, to work around system header problems on AIX 3.2.5.
64316         From Bruno Haible.
64317
64318 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64319
64320         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64321         bug.  Deal with the different error behavior of Irix iconv.
64322
64323 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64324
64325         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64326         IRIX if the installer said otherwise.
64327
64328 2000-04-05  Jim Meyering  <meyering@lucent.com>
64329
64330         Portability tweaks required for ultrix4.3.
64331         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64332         (jm_CHECK_DECLS): Add getutent to the list of functions.
64333         (_jm_DECL_HEADERS): Add utmpx.h.
64334         From John David Anglin.
64335
64336         * m4/strftime.m4: Back out the 2000-04-02 change.
64337         Instead of that change, simply undefine putenv in the test program.
64338
64339 2000-04-05  Jim Meyering  <meyering@lucent.com>
64340
64341         Portability tweaks required for ultrix4.3.
64342         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64343         getutent.
64344         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64345         * lib/canon-host.c: Declare strdup.
64346         * lib/path-concat.c: Likewise.
64347         From John David Anglin.
64348
64349 2000-04-04  Jim Meyering  <meyering@lucent.com>
64350
64351         Be more DOS 8.3-friendly.
64352         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64353         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64354         * lib/Makefile.am: Reflect renaming.
64355         Reported by Eli Zaretskii.
64356
64357         Use a temporary file name that won't clash with `charset.alias'
64358         in the DOS 8.3 name space.
64359         * lib/Makefile.am (charset_tmp): Define.
64360         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64361         (uninstall-local): Likewise.
64362         Reported by Eli Zaretskii.
64363
64364 2000-04-03  Jim Meyering  <meyering@lucent.com>
64365
64366         * m4/gettext.m4: Fix typo in comment.
64367
64368         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64369         textutils/configure.in).  Suggestion from Paul Eggert.
64370         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64371
64372 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64373
64374         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64375         variable in the shell rather than using putenv, which isn't
64376         portable.  This avoids the configure-time inter-test dependency
64377         on the potentially-renamed putenv function.
64378
64379 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64380
64381         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64382         before checking struct stat.st_blksize, so that
64383         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64384
64385 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64386
64387         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64388         since strftime.c uses HAVE_STRFTIME to decide whether to use
64389         the underlying strftime.
64390
64391 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64392
64393         * lib/time/strftime.c (my_strftime): Make sure we call the system
64394         strftime, not ourselves, when invoking the underlying strftime.
64395
64396 2000-03-24  Jim Meyering  <meyering@lucent.com>
64397
64398         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64399         (charset_alias): Define.
64400         (install-exec-local): Factor out common code.
64401         (uninstall-local): Split lines longer than 80.
64402         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64403         (SUFFIXES): Define.
64404         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64405         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64406
64407 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64408
64409         * lib/config.charset: Output a line containing "Packages using this
64410         file".
64411         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64412         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64413         ref-del.sed): New rules.
64414
64415 2000-03-17  Jim Meyering  <meyering@lucent.com>
64416
64417         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64418         Otherwise, include <strings.h>
64419
64420 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64421
64422         * lib/unicodeio.c (utf8_wctomb): New function.
64423         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64424         format instead of in UCS-4 with platform dependent endianness.
64425
64426 2000-03-10  Jim Meyering  <meyering@lucent.com>
64427
64428         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64429         From Marco Franzen.
64430
64431 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64432
64433         * lib/savedir.c (savedir): Work even if directory size is
64434         negative; this can happen with some screwy NFS configurations.
64435
64436 2000-03-06  Jim Meyering  <meyering@lucent.com>
64437
64438         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64439         if it's NULL (because we ran out of memory).  From Bruno Haible.
64440
64441 2000-03-05  Jim Meyering  <meyering@lucent.com>
64442
64443         * lib/localcharset.c ("path-concat.h"): Include.
64444         (get_charset_aliases): Use path_concat instead of ANSI string
64445         concatenation.
64446
64447         * lib/unicodeio.h (PARAMS): Define.
64448         Use it to guard prototype.
64449
64450 2000-03-04  Jim Meyering  <meyering@lucent.com>
64451
64452         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64453         for lib/localcharset.c.
64454
64455 2000-03-04  Jim Meyering  <meyering@lucent.com>
64456
64457         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64458         installing into it.
64459         (uninstall-local): Uncomment this rule so `make distcheck' works
64460         once again.
64461
64462         * lib/unicodeio.c (<errno.h>): Include it.
64463         (errno): Declare if not defined.
64464
64465         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64466
64467         * lib/config.charset: New version, incorporating remarks from a linux
64468         i18n mailing list.  From Bruno Haible.
64469
64470 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64471
64472         * m4/codeset.m4: New file.
64473         * m4/iconv.m4: New file.
64474         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64475
64476 2000-03-03  Jim Meyering  <meyering@lucent.com>
64477
64478         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64479
64480 2000-03-02  Jim Meyering  <meyering@lucent.com>
64481
64482         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64483         the messages come out on separate lines.
64484
64485         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64486         rather than jm_CHECK_DECLARATIONS.
64487         * m4/decl.m4: Remove now-unused file.
64488
64489         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64490         geteuid.
64491
64492 2000-03-02  Jim Meyering  <meyering@lucent.com>
64493
64494         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64495
64496 2000-03-01  Jim Meyering  <meyering@lucent.com>
64497
64498         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64499         * lib/unicodeio.c: Likewise.
64500
64501 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64502
64503         * lib/config.charset: New file.
64504         * lib/localcharset.c: New file.
64505         * lib/unicodeio.h, lib/unicodeio.c: New files.
64506         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64507         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64508         (noinst_HEADERS): Add unicodeio.h.
64509         (all-local, install-exec-local, charset.alias): New targets.
64510
64511 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64512
64513         * lib/quotearg.c (ALERT_CHAR): New macro.
64514         (quotearg_buffer_restyled): Use it.
64515
64516 2000-02-27  Jim Meyering  <meyering@lucent.com>
64517
64518         * m4/check-decl.m4: Add getenv to the list.
64519
64520 2000-02-27  Jim Meyering  <meyering@lucent.com>
64521
64522         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64523         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64524
64525         * lib/backupfile.c: Guard inclusion of stdlib.h with
64526         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64527         Declare malloc if needed.
64528
64529         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64530         `#ifndef HAVE_DECL..'
64531         now that autoconf always defines the HAVE_DECL_ symbols.
64532         * lib/human.c: Likewise.
64533         * lib/same.c: Likewise.
64534         * lib/strtoumax.c: Likewise.
64535
64536         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64537         declaration check was not run.
64538         * lib/hash.c: Likewise.
64539         * lib/human.c: Likewise.
64540         * lib/same.c: Likewise.
64541         * lib/strtoumax.c: Likewise.
64542
64543         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64544         `.', then first look up the entire `.'-containing string as a login
64545         name.
64546
64547 2000-02-23  Jim Meyering  <meyering@lucent.com>
64548
64549         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64550         in place of my hack.
64551
64552 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64553
64554         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64555         (textint): New typedef.
64556         (parser_control): Member year changed from int to textint.
64557         All uses changed.
64558         (YYSTYPE): Removed; replaced by %union with int and textint members.
64559         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64560         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64561         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64562         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64563         (date, number, to_year): Use width of number in digits, not its value,
64564         to determine whether it's a 2-digit year, or a 2-digit time.
64565         (yylex): Store number of digits of numeric tokens.
64566         Reported by John Kendall.
64567
64568         (parser_control): Changed from struct parser_control to typedef (for
64569         consistency).  All uses changed.
64570
64571         (tID): Removed; not used.
64572         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64573
64574 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64575
64576         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64577         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64578
64579 2000-02-12  Jim Meyering  <meyering@lucent.com>
64580
64581         * lib/userspec.c (ISDIGIT): Define it.
64582         (isdigit): Remove definition.
64583         (is_number): Use ISDIGIT, not isdigit.
64584         <libintl.h>: Include.
64585         (_ and N_): Define.
64586         (parse_user_spec): Mark translatable strings.
64587
64588 2000-02-10  Jim Meyering  <meyering@lucent.com>
64589
64590         With these changes, nanosleep.[ch] are finally enough like the other
64591         lib/* replacement files to compile on a few more losing systems.
64592
64593         * lib/nanosleep.h: Don't include config.h.
64594         Remove prototype from declaration of nanosleep.
64595         (PARAMS): Remove now-unneeded definition.
64596         * lib/nanosleep.c: #undef nanosleep.
64597         (rpl_nanosleep): Rename from nanosleep.
64598
64599 2000-02-10  Jim Meyering  <meyering@lucent.com>
64600
64601         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64602         gnu_nanosleep to rpl_nanosleep.
64603
64604 2000-02-09  Jim Meyering  <meyering@lucent.com>
64605
64606         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64607         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64608
64609 2000-02-08  Akim Demaille  <akim@epita.fr>
64610
64611         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64612         `[' and `]' and remove uses of `changequote'.
64613         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64614         (AC_SYS_LARGEFILE): Likewise.
64615         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64616         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64617         of changequote.
64618         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64619         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64620         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64621         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64622
64623 2000-02-05  Jim Meyering  <meyering@lucent.com>
64624
64625         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64626         Remove explicit use of AC_HEADER_TIME.  It is required by
64627         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64628         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64629         in autoconf whereby the expansion of the latter ended up preceding
64630         the expansion of its prerequisite, AC_HEADER_TIME.
64631         Reported by Volker Borchert.
64632
64633 2000-02-03  Jim Meyering  <meyering@lucent.com>
64634
64635         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64636
64637 2000-02-03  Jim Meyering  <meyering@lucent.com>
64638
64639         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64640         rather than with `#if HAVE_UTMPNAME'.
64641
64642 2000-02-02  Jim Meyering  <meyering@lucent.com>
64643
64644         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64645         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64646         Reported by Eli Zaretskii.
64647
64648 2000-02-01  Jim Meyering  <meyering@lucent.com>
64649
64650         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64651
64652 2000-01-31  Jim Meyering  <meyering@lucent.com>
64653
64654         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64655         functions.  Add the time.h and sys/time.h headers along with the
64656         AC_REQUIRE'ment of AC_HEADER_TIME.
64657
64658 2000-01-31  Jim Meyering  <meyering@lucent.com>
64659
64660         * lib/nanosleep.h (nanosleep): Guard declaration with
64661         `#if ! HAVE_DECL_NANOSLEEP'.
64662         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64663         the declaration in that vendor's sys/timers.h.
64664         Reported by Christian Krackowizer.
64665
64666         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64667         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64668         (ISPRINT): Likewise.
64669         Reported by Tom Tromey.
64670
64671 2000-01-30  Jim Meyering  <meyering@lucent.com>
64672
64673         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64674
64675         * m4/prereq.m4 (utmp_includes): Define.
64676         Check for ut_user and ut_name members in both struct utmpx
64677         and struct utmp.
64678
64679 2000-01-30  Jim Meyering  <meyering@lucent.com>
64680
64681         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64682         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64683         header files where only utmpx.ut_user is declared.
64684
64685         * lib/readutmp.h (UT_USER): Define.
64686
64687 2000-01-29  Jim Meyering  <meyering@lucent.com>
64688
64689         * m4/lib-check.m4: New file containing library-related checks from
64690         fileutils and sh-utils (textutils had none).
64691
64692 2000-01-28  Jim Meyering  <meyering@lucent.com>
64693
64694         * m4/perl.m4: Change format of warning message to look more like that
64695         from the missing script.  Suggestion from François Pinard.
64696
64697 2000-01-25  Jim Meyering  <meyering@lucent.com>
64698
64699         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64700         well as time.h in the compile check.
64701         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64702         Fix typo in cross-compiling case: s/yes/no/.
64703
64704 2000-01-23  Jim Meyering  <meyering@lucent.com>
64705
64706         * m4/jm-macros.m4: Move df-related tests here from
64707         fileutils/configure.in
64708
64709         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64710         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64711
64712         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64713         s/space/ac_fsusage_space/.
64714         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64715
64716         * m4/ftruncate.m4: New file (derived from part of
64717         fileutils/configure.in).
64718         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64719         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64720
64721         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64722         AC_SUBST these here, rather than just in sh-util/configure.in, so
64723         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64724         all the same.
64725         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64726         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64727         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64728         (AC_SUBST(POW_LIBM)): Likewise.
64729         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64730
64731 2000-01-23  Jim Meyering  <meyering@lucent.com>
64732
64733         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64734         obstack.c.
64735
64736 2000-01-22  Jim Meyering  <meyering@lucent.com>
64737
64738         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64739
64740         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64741
64742         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64743         configure.in
64744         (AC_CHECK_HEADERS): Likewise for sh-utils.
64745         (AC_CHECK_HEADERS): Likewise for textutils.
64746         Merge the three lists of headers.
64747
64748         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64749         from fileutils' configure.in.
64750
64751         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64752         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64753         check-decl.m4.
64754
64755         * m4/check-decl.m4: Use #if rather than #ifdef.
64756         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64757         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64758         (_jm_DECL_HEADERS): Define new function.
64759         (jm_CHECK_DECLARATIONS): Require it.
64760
64761 2000-01-22  Jim Meyering  <meyering@lucent.com>
64762
64763         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64764         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64765         Required for some AIX systems.  Reported by Christian Krackowizer.
64766         [TESTING] (main): New function.
64767
64768         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64769         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64770         letters.
64771
64772         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64773         iswprint.
64774
64775         * lib/strverscmp.c (ISDIGIT): Define.
64776         (strverscmp): Use ISDIGIT, not isdigit.
64777
64778 2000-01-19  Jim Meyering  <meyering@lucent.com>
64779
64780         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64781         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64782         defines `struct timespec' in <sys/time.h>
64783
64784         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64785         Thanks to Akim for explaining.
64786
64787 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64788
64789         * lib/nanosleep.c (nanosleep):
64790         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64791         POSIX.1 doesn't require SA_INTERRUPT and some systems
64792         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64793         it's been part of POSIX.1 since day 1 (in 1988).
64794
64795 2000-01-17  Jim Meyering  <meyering@lucent.com>
64796
64797         * lib/interlock: Remove unused file.  Reported by François Pinard.
64798
64799 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64800
64801         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64802         alert, backslash, formfeed, and vertical tab unnecessarily in
64803         shell quoting style.
64804
64805 2000-01-16  Jim Meyering  <meyering@lucent.com>
64806
64807         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64808         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64809         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64810         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64811
64812 2000-01-16  Jim Meyering  <meyering@lucent.com>
64813
64814         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64815         because the latter didn't work.
64816
64817 2000-01-15  Jim Meyering  <meyering@lucent.com>
64818
64819         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64820         (AC_REPLACE_FUNCS): Add memcpy and memset.
64821         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64822         Add strpbrk.
64823         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64824
64825 2000-01-12  Jim Meyering  <meyering@lucent.com>
64826
64827         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64828         (jm_PREREQ): Use it.
64829         (jm_PREREQ_READUTMP): New macro.
64830         (jm_PREREQ): Use it.
64831
64832 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64833
64834         Quote multibyte characters correctly.
64835         * m4/c-bs-a.m4: New file.
64836         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64837         (jm_PREREQ): Use it.
64838
64839 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64840
64841         * m4/uintmax_t.m4: Port to autoconf 2.13.
64842
64843 2000-01-08  Jim Meyering  <meyering@ascend.com>
64844
64845         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64846         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64847
64848 2000-01-04  Jim Meyering  <meyering@ascend.com>
64849
64850         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64851         jm_STRUCT_DIRENT_D_TYPE.
64852         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64853         jm_STRUCT_DIRENT_D_INO.
64854         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64855         jm_STRUCT_UTIMBUF.
64856         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64857         renamings.
64858         * m4/utime.m4: Likewise.
64859
64860         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64861         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64862
64863 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64864
64865         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64866         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64867
64868 2000-01-02  Jim Meyering  <meyering@ascend.com>
64869
64870         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64871         remember if this is necessary.
64872
64873 1999-12-26  Jim Meyering  <meyering@ascend.com>
64874
64875         * m4/jm-macros.m4: Use it here.
64876         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64877
64878 1999-12-23  Jim Meyering  <meyering@ascend.com>
64879
64880         * m4/jm-macros.m4: Check for clock_gettime (moved from
64881         fileutils/configure.in)
64882         Check for gettimeofday.
64883
64884 1999-12-20  Jim Meyering  <meyering@ascend.com>
64885
64886         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64887         autoconf-2.14a-1999-12-20.
64888
64889 1999-12-19  Jim Meyering  <meyering@ascend.com>
64890
64891         * m4/lstat-slash.m4: New file.
64892         * m4/jm-macros.m4: Use the new macro:
64893         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64894
64895 1999-12-07  Jim Meyering  <meyering@ascend.com>
64896
64897         * m4/perl.m4: Require that File::Compare be available, too.
64898         Too many systems seem to lack it.
64899
64900         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64901         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64902
64903 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64904
64905         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64906         problem with the QNX 4.25 shell, which doesn't propagate exit
64907         status of failed commands inside shell assignments.
64908
64909 1999-11-17  Jim Meyering  <meyering@ascend.com>
64910
64911         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64912
64913 1999-11-07  Jim Meyering  <meyering@ascend.com>
64914
64915         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64916
64917 1999-11-06  Jim Meyering  <meyering@ascend.com>
64918
64919         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64920         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64921
64922 1999-11-05  Jim Meyering  <meyering@ascend.com>
64923
64924         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64925         configure.in of textutils, fileutils, and sh-utils into this one
64926         (shared between those packages) file.
64927         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64928         AC_STRUCT_ST_BLKSIZE.
64929
64930 1999-11-03  Jim Meyering  <meyering@ascend.com>
64931
64932         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64933         of AC_CHECK_TYPE checks includes unistd.h.
64934         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64935         Suggestion from Akim Demaille.
64936
64937 1999-10-30  Jim Meyering  <meyering@ascend.com>
64938
64939         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64940         m4-quoted string.
64941         * m4/ls-mntd-fs.m4: Likewise.
64942         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64943         * m4/jm-winsz1.m4: Likewise.
64944
64945         * m4/const.m4: Remove file, since the fix made it into the experimental
64946         version of autoconf.
64947         * m4/mktime.m4: Likewise.
64948
64949         * m4/check-type.m4: Remove file, now that the latest version of
64950         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64951
64952         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64953         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64954         AC_CHECK_TYPE.
64955
64956 1999-10-04  Jim Meyering  <meyering@ascend.com>
64957
64958         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64959
64960 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64961
64962         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64963         2.95.1 bug with HP-UX 10.20.
64964
64965 1999-09-17  Jim Meyering  <meyering@ascend.com>
64966
64967         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64968         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64969         due to missing strdup (against sh-utils-2.0).
64970
64971 1999-08-29  Jim Meyering  <meyering@ascend.com>
64972
64973         * m4/jm-macros.m4: Require jm_BISON.
64974         * m4/bison.m4: New file.
64975
64976 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64977
64978         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64979         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64980
64981 1999-08-05  Jim Meyering  <meyering@ascend.com>
64982
64983         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64984         to avoid conflicts with `conftest' on 8+3 filesystems.
64985         Suggestion from Eli Zaretskii.
64986
64987 1999-08-04  Jim Meyering  <meyering@ascend.com>
64988
64989         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64990         fileutils and sh-utils (textutils's getline test was inadequate).
64991         (AM_FUNC_GETLINE): Run this test.
64992         (AC_CHECK_FUNCS): Check for getdelim.
64993         Reported by Bob Proulx.
64994
64995 1999-08-02  Jim Meyering  <meyering@ascend.com>
64996
64997         * m4/jm-macros.m4: Add a comment.
64998
64999 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65000
65001         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
65002         <inttypes.h> defines strtoumax as a macro (and not as a
65003         function).
65004
65005 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65006
65007         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
65008         that we can shift, multiply and divide unsigned long long
65009         values; Ultrix cc can't do it.
65010
65011 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65012
65013         * m4/mktime.m4: New file, which is a preview of what should appear
65014         in the next public autoconf release.
65015
65016 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65017
65018         * m4/lfs.m4: Remove this file.
65019         * m4/largefile.m4: New file.  It contains the old contents of
65020         lfs.m4, except that all names with prefix AC_LFS have been
65021         changed to use the prefix AC_SYS_LARGEFILE instead, to be
65022         compatible with future autoconf versions.  Also, some minor m4
65023         quoting problems have been fixed.
65024
65025 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65026
65027         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
65028         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
65029         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
65030         and simplify the shell code.
65031
65032 1999-08-01  Jim Meyering  <meyering@ascend.com>
65033
65034         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
65035         m4.
65036
65037 1999-07-20  Jim Meyering  <meyering@ascend.com>
65038
65039         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
65040
65041 1999-07-15  Jim Meyering  <meyering@ascend.com>
65042
65043         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
65044
65045 1999-05-22  Jim Meyering  <meyering@ascend.com>
65046
65047         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
65048
65049 1999-05-20  Jim Meyering  <meyering@ascend.com>
65050
65051         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
65052         Add a colon after each `then' in case $4 is empty.
65053
65054 1999-05-16  Jim Meyering  <meyering@ascend.com>
65055
65056         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
65057
65058 1999-05-10  Jim Meyering  <meyering@ascend.com>
65059
65060         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
65061
65062         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
65063         AC_FUNC_MKTIME.
65064
65065 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
65066
65067         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
65068
65069 1999-05-04  Paul Eggert  <eggert@twinsun.com>
65070
65071         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
65072         not CPPFLAGS, so that linking works correctly in IRIX.
65073
65074 1999-04-30  Paul Eggert  <eggert@twinsun.com>
65075
65076         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
65077
65078 1999-04-20  Paul Eggert  <eggert@twinsun.com>
65079
65080         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
65081         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
65082         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
65083         jm_AC_TYPE_UNSIGNED_LONG_LONG.
65084         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
65085
65086         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
65087
65088 1999-04-20  Jim Meyering  <meyering@ascend.com>
65089
65090         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65091         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65092         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65093
65094 1999-04-18  Jim Meyering  <meyering@ascend.com>
65095
65096         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65097         * m4/jm-macros.m4: Use it.
65098
65099 1999-04-06  Jim Meyering  <meyering@ascend.com>
65100
65101         * m4/strftime.m4: Remove test for %f.
65102
65103 1999-03-29  Jim Meyering  <meyering@ascend.com>
65104
65105         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65106         superset of the AC_TYPE_* checks in the textutils, fileutils,
65107         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65108         AC_TYPE_PID_T.
65109
65110 1999-03-28  Jim Meyering  <meyering@ascend.com>
65111
65112         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65113         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65114         replaced e.g., in the *.sh files of the sh-utils.
65115
65116 1999-03-20  Jim Meyering  <meyering@ascend.com>
65117
65118         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65119         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65120         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65121
65122 1999-03-19  Jim Meyering  <meyering@ascend.com>
65123
65124         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65125
65126 1999-03-12  Jim Meyering  <meyering@ascend.com>
65127
65128         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65129
65130 1999-03-07  Jim Meyering  <meyering@ascend.com>
65131
65132         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65133         declared.
65134
65135 1999-02-17  Jim Meyering  <meyering@ascend.com>
65136
65137         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65138         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65139
65140 1999-02-07  Jim Meyering  <meyering@ascend.com>
65141
65142         * m4/group-member.m4: New file -- extracted from sh-utils'
65143         configure.in.
65144
65145         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65146         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65147
65148 1999-02-06  Jim Meyering  <meyering@ascend.com>
65149
65150         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65151         * m4/fnmatch.m4: Likewise.
65152         * m4/getgroups.m4: Likewise.
65153         * m4/lstat.m4: Likewise.
65154         * m4/malloc.m4: Likewise.
65155         * m4/putenv.m4: Likewise.
65156         * m4/realloc.m4: Likewise.
65157         * m4/regex.m4: Likewise.
65158         * m4/stat.m4: Likewise.
65159         * m4/strftime.m4: Likewise.
65160         Suggestion from Alain Magloire.
65161
65162         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65163         * m4/fnmatch.m4: Likewise.
65164         * m4/getgroups.m4: Likewise.
65165         * m4/getline.m4: Likewise.
65166         * m4/lstat.m4: Likewise.
65167         * m4/malloc.m4: Likewise.
65168         * m4/memcmp.m4: Likewise.
65169         * m4/putenv.m4: Likewise.
65170         * m4/realloc.m4: Likewise.
65171         * m4/regex.m4: Likewise.
65172         * m4/stat.m4: Likewise.
65173         * m4/strftime.m4: Likewise.
65174         Suggestion from Alain Magloire.
65175
65176         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65177         an argument.
65178
65179         * m4/regex.m4: Add a run-time Test for proper operation of
65180         re_compile_pattern.
65181
65182 1999-01-31  Jim Meyering  <meyering@ascend.com>
65183
65184         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65185
65186 1999-01-30  Jim Meyering  <meyering@ascend.com>
65187
65188         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65189
65190         * m4/jm-mktime.m4: Make this a wrapper around the official
65191         AM_FUNC_MKTIME rather than my private copy, now that the official one
65192         is up to date.
65193         * m4/mktime.m4: Remove file.
65194
65195         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65196         * m4/uptime.m4: Likewise.
65197         * m4/uintmax_t.m4: Likewise.
65198
65199 1999-01-28  Jim Meyering  <meyering@ascend.com>
65200
65201         * m4/jm-macros.m4: Use jm_AFS.
65202         * m4/afs.m4: New file (from fileutils' configure.in).
65203
65204         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65205         * m4/chown.m4: Likewise.
65206         * m4/d-ino.m4: Likewise.
65207         * m4/d-type.m4: Likewise.
65208         * m4/fnmatch.m4: Likewise.
65209         * m4/getgroups.m4: Likewise.
65210         * m4/gettext.m4: Likewise.
65211         * m4/jm-mktime.m4: Likewise.
65212         * m4/jm-winsz2.m4: Likewise.
65213         * m4/lcmessage.m4: Likewise.
65214         * m4/ls-mntd-fs.m4: Likewise.
65215         * m4/malloc.m4: Likewise.
65216         * m4/memcmp.m4: Likewise.
65217         * m4/putenv.m4: Likewise.
65218         * m4/realloc.m4: Likewise.
65219         * m4/st_mtim.m4: Likewise.
65220         * m4/strftime.m4: Likewise.
65221
65222 1999-01-16  Jim Meyering  <meyering@ascend.com>
65223
65224         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65225         (ARGMATCH_DIE_DECL): Define.
65226
65227 1999-01-12  Jim Meyering  <meyering@ascend.com>
65228
65229         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65230         Reported by Lars Hecking.
65231
65232 1999-01-10  Jim Meyering  <meyering@ascend.com>
65233
65234         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65235         gross kludge.
65236         * m4/inttypes_h.m4: Likewise.
65237         * m4/lstat.m4: Likewise.
65238         * m4/malloc.m4: Likewise.
65239         * m4/readdir.m4: Likewise.
65240         * m4/realloc.m4: Likewise.
65241         * m4/st_dm_mode.m4: Likewise.
65242         * m4/stat.m4: Likewise.
65243         * m4/utimbuf.m4: Likewise.
65244         * m4/utimes.m4: Likewise.
65245
65246         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65247         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65248         comments in config.h.in are meaningful.
65249
65250         * m4/jm-macros.m4: Require autoconf-2.13 here.
65251
65252         * m4/regex.m4: By default, don't use the included regex.c on systems
65253         with glibc 2.  Suggestion from Uli Drepper.
65254
65255 1999-01-02  Jim Meyering  <meyering@ascend.com>
65256
65257         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65258
65259 1998-12-18  Jim Meyering  <meyering@ascend.com>
65260
65261         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65262         Based on a suggestion from Lars Hecking.
65263
65264 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65265
65266         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65267
65268 1998-11-16  Jim Meyering  <meyering@ascend.com>
65269
65270         * m4/lfs.m4: Double-quote the `uname...` expression.
65271
65272 1998-11-14  Jim Meyering  <meyering@ascend.com>
65273
65274         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65275         * m4/stat.m4: Likewise.
65276
65277 1998-11-03  Jim Meyering  <meyering@ascend.com>
65278
65279         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65280         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65281
65282 1998-10-18  Jim Meyering  <meyering@ascend.com>
65283
65284         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65285
65286 1998-10-17  Jim Meyering  <meyering@ascend.com>
65287
65288         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65289         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65290         calls for those previously hard-coded headers.  Instead, take a new
65291         parameter.
65292         (jm_CHECK_DECLARATIONS): Reflect interface change.
65293         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65294         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65295
65296         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65297
65298 1998-10-14  Jim Meyering  <meyering@ascend.com>
65299
65300         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65301         instead of "TZ=America/Vancouver".  From Paul Eggert.
65302
65303 1998-10-11  Jim Meyering  <meyering@ascend.com>
65304
65305         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65306         This adds a test for a recently added compatibility fix for mktime.c.
65307         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65308
65309 1998-09-27  Jim Meyering  <meyering@ascend.com>
65310
65311         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65312
65313         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65314         ../configure.in, including a change from Gordon Matzigkeit to allow
65315         cross-compiling for the Hurd.
65316
65317         * m4/glibc.m4: New file/macro to test for the GNU C Library
65318         versions 1 and 2.  From Gordon Matzigkeit.
65319         Indent.
65320
65321 1998-09-21  Jim Meyering  <meyering@ascend.com>
65322
65323         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65324
65325 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65326
65327         Port nanosecond-resolution times to UnixWare 2.1.2 and
65328         pedantic Solaris 2.6.
65329
65330         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65331         AC_STRUCT_ST_MTIM.
65332         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65333         Generate name of ns member, instead of just 1 or undef.
65334         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65335
65336 1998-08-15  Jim Meyering  <meyering@ascend.com>
65337
65338         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65339         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65340         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65341         instead of jm_TYPE_SSIZE_T.
65342
65343 1998-08-12  Jim Meyering  <meyering@ascend.com>
65344
65345         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65346
65347 1998-08-02  Jim Meyering  <meyering@ascend.com>
65348
65349         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65350         in acconfig.h manually.
65351
65352 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65353
65354         * m4/st_mtim.m4: New file.
65355
65356 1998-07-28  Jim Meyering  <meyering@ascend.com>
65357
65358         * m4/utimes.m4: Undef stat.
65359
65360 1998-07-25  Jim Meyering  <meyering@ascend.com>
65361
65362         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65363         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65364
65365 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65366
65367         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65368         uid and gid actually remain unchanged.
65369
65370 1998-07-07  Jim Meyering  <meyering@ascend.com>
65371
65372         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65373
65374 1998-07-04  Jim Meyering  <meyering@ascend.com>
65375
65376         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65377         to prove that this macro can be used in packages without regex.c.
65378
65379 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65380
65381         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65382         is to be used.
65383
65384 1998-07-03  Jim Meyering  <meyering@ascend.com>
65385
65386         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65387
65388         * m4/gettext.m4: New file -- from gettext-0.10.35.
65389         * m4/lcmessage.m4: Likewise.
65390         * m4/progtest.m4: Likewise.
65391
65392         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65393         * m4/jm-macros.m4: Require the new macro.
65394
65395 1998-06-29  Jim Meyering  <meyering@ascend.com>
65396
65397         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65398         for the definition of NGROUPS (used in a system header included
65399         by sys/mount.h).
65400
65401 1998-06-28  Jim Meyering  <meyering@ascend.com>
65402
65403         * m4/ls-mntd-fs.m4: New file.
65404         * m4/fstypename.m4: New file.
65405
65406         * m4/jm-macros.m4: Require the new macro.
65407         * m4/jm-glibc-io.m4: New file.
65408
65409 1998-05-19  Jim Meyering  <meyering@ascend.com>
65410
65411         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65412         * m4/lchown.m4: New file.
65413
65414         * m4/Makefile.am.in: New file.
65415         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65416
65417 1998-05-14  Jim Meyering  <meyering@ascend.com>
65418
65419         * m4/Makefile.am (EXTRA_DIST): Add them.
65420         * m4/jm-macros.m4: New file.
65421         * m4/utimbuf.m4: New file.
65422
65423 1998-05-12  Jim Meyering  <meyering@ascend.com>
65424
65425         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65426
65427 1998-05-11  Jim Meyering  <meyering@ascend.com>
65428
65429         * m4/isc-posix.m4: New file.
65430
65431 1998-05-10  Jim Meyering  <meyering@ascend.com>
65432
65433         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65434
65435 1998-05-09  Jim Meyering  <meyering@ascend.com>
65436
65437         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65438         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65439         with automake.
65440
65441         * m4/ssize_t.m4: New file.
65442         * m4/mktime.m4: Remove file -- the new automake has this now.
65443
65444 1998-04-26  Jim Meyering  <meyering@ascend.com>
65445
65446         * m4/assert.m4: New file.
65447         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65448
65449 1998-04-05  Jim Meyering  <meyering@ascend.com>
65450
65451         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65452         (jm_PREREQ): Use it here.
65453
65454 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65455
65456         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65457         in acconfig.h.
65458
65459 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65460
65461         * m4/prereq.m4: New file.
65462         * m4/error.m4: New file.
65463         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65464
65465 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65466
65467         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65468         cache-check for the same variable -- that defeated the purpose of
65469         the test; the test program was never run.  This was a problem only
65470         on systems with losing getline functions -- HP-UX 10.20 is one.
65471         Reported by Bjorn Helgaas.
65472
65473 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65474
65475         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65476
65477 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65478
65479         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65480
65481         * m4/const.m4: New file.  Use an initializer in this declaration
65482         typedef int charset[2]; const charset x;
65483         Reported by Bob Glickstein.
65484
65485 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65486
65487         * m4/chown.m4: Fix reversed types on -1 args to chown.
65488         From Kaveh Ghazi.
65489
65490 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65491
65492         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65493         Add lseek and memchr.
65494
65495         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65496         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65497         have a 20-character limit on names.
65498
65499 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65500
65501         * m4/inttypes_h.m4: New file.
65502         * m4/uintmax_t.m4: New file.
65503         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65504
65505
65506         -----
65507
65508         Local Variables:
65509         coding: utf-8
65510         End:
65511
65512         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65513
65514         Copying and distribution of this file, with or without
65515         modification, are permitted provided the copyright notice
65516         and this notice are preserved.